Repository navigation
Add fail-closed OP v3 enrollment and message verification routes - #406
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Independent source review of
Dedicated caller checking, nine-field accepted-text binding and bounded decision checks were source-inspected; this is not full provider/interoperability signoff and no tests were rerun. Continue the existing owner/PR with source fixes and concrete provider/composition, or identify the exact source-ownership constraint. No protected provisioning or paid task is requested. |
|
Independent source review of exact 53a2c62 / tree 06ef381852964ae572a556a218787a7601102556: prior Engine-envelope and opaque-workspace findings are closed; the canonical SQL provider and opt-in server composition are now concrete source implementations, default disabled. P2 CONTROL-OP-3 — bound Engine evidence bodies before JSON buffering (src/op-intake.ts:146–155). The production evidence client calls Read each observer/message response through an explicit byte budget before decoding, cancel/drop immediately on overflow, and surface only the existing fixed unavailable/503 response. Do not rely on Content-Length or check only after buffering. Add streamed oversized observer and original-message negatives, including missing/misleading Content-Length, proving cancellation, fixed refusal and no positive proof. This is a source review, not a test rerun or live qualification. Actual PostgreSQL role/concurrency evidence, final Core/Engine/Gate/Control HTTP composition, exact CI and migration0106 slot coordination remain separate. No live approval records, credentials, grants, migrations or activation were applied. |
|
Control open-PR triage for the existing branch writer at |
|
Published source repair at
Final integrated local validation, all through the shared heavy queue:
The native PostgreSQL harness qualifies the synthetic schema/import/copy path. OP-specific trigger/CAS/revocation and runtime-readonly behaviors are exercised by the existing PGlite composition tests; this is not new native-PG OP concurrency evidence. No local full npm suite was rerun; fresh normal CI and final independent cumulative review remain required on this published head. Keep the merge hold until those gates and current feedback are clear. This is source work under the existing direct source-merge instruction. It performs no live authority seeding, grant issuance, credentials, SSO renewal, provider operation, migration deployment, release or runtime activation. The separate original remote task-delivery/SSO guard is unchanged. |
kjgbot
left a comment
There was a problem hiding this comment.
Independent full source review: qualified SOURCE PASS at exact 0c77da4306dbb879a54b0680a45cadf3120d0127, tree c46e28fb27423a7f2027ff59f40d1bd83ee489e7. Reviewed the full12-file feature delta against main 6ea77ad1, including the canonical provider, mounted HTTP routes, server composition, additive0106 migration, role grants, tests, bootstrap documentation and final generated manifest. This reviewer ran no tests/builds or database/runtime actions.
The earlier interoperability and availability findings are closed in source:
- Engine reads require and unwrap
{ok:true,data}; Control resolver/verifier responses remain their raw strict DTOs. Engine workspace IDs are explicitly pinned bounded opaque strings, including numeric IDs, distinct from Control workspace UUIDs. - Observer responses have a64KiB byte budget and original-message responses256KiB. The fixed-size streaming buffer refuses before retaining overflow, ignores missing/lying Content-Length as authority, cancels oversize/unneeded bodies, and emits fixed unavailable errors. Tests cover both endpoints, one-byte UTF-8 chunks, exact limits/overflow, absent/false lengths, cancellation, route503 and zero canonical authorization calls after overflow.
- Verification accepts only messageId input, independently obtains authenticated Engine observation and original DM text, verifies accepted/current/read hashes and immutable sender/workspace/broker recipient, then re-reads current canonical authority before issuing the short proof.
The provider's single fresh primary SQL statement binds the Control person, organization membership, application workspace and current Engine workspace mapping, immutable actor/consumed unreleased claim, approved runtime/key/ref/epoch/revision, logical runtime, explicit dev/test profile policy and active direct person-issued delegation. Its deadlines and observation/order checks clip the returned lease; ambiguity, expiration or revocation yields no positive decision. Logical runtime mapping is not physical-host attestation. Sampled authority remains an as-of lease of at most60seconds, not cross-service serialization.
0106 adds only new tables/indexes/guards. Policy is operator-written and runtime SELECT-only, with inherited write privilege checks. Identity/scope/key/validity are immutable; epoch binding is one-time and timestamped; revoked rows cannot be restored; replacement requires the retired predecessor/family and a fresh key. No record or credential is seeded, and explicit server opt-in remains disabled by default. Human bootstrap has concrete parameterized templates; no live bootstrap is performed here.
I independently compared the final manifest: all2,652 prior definitions and105 migration hashes are unchanged; exactly57 new OP objects were added (2tables,27columns,13constraints,10indexes,3triggers,2functions). The0106 file hash matches the recorded b7e7711a…; only manifest and count/scope documentation changed after the integrated source merge. Final worktree/head/tree were clean and match the published pin.
Execution evidence is distinct from this source review: the owner/coordinator reports integrated49/49 focused checks, typecheck/build, and a native PostgreSQL15 schema/import harness109/109 with no skips. The native harness validates migration/catalog/import behavior; OP-specific trigger/CAS/revocation/read-only behavior was exercised by the PGlite provider test, not claimed as a native PostgreSQL concurrency suite.
Before source merge, require the normal exact-published-head Typecheck/test, PostgreSQL suites and Cloud import verifier jobs; all three were queued at review. Later whole-chain qualification should compose the real owned Control provider with actual Gate/Engine and final Core, and separately cover native PostgreSQL OP lifecycle/concurrency/roles. Those are runtime/integration evidence limits, not invented live-activation gates for this disabled source PR. No actual credentials, OP grant, production policy, migration application, deployment or activation is claimed. No new source blocker found.
|
Merged under the existing direct source-merge instruction: Final normal run 46722722690 passed all three jobs. Typecheck passed; the npm test step completed normally with2662 passed/0 failed/164 skipped, and the separate synthetic-ledger step passed38/38. PostgreSQL suites passed76 tests across10 suites; the Cloud import verifier harness passed109/109 with no skips. No failed or cancelled step was masked. CodeRabbit/Proof were intentional skips. Independent exact-head source review is 6138159597; no unresolved threads or new feedback remained. This lands disabled source, the bounded evidence reader and an additive0106 schema/verified manifest. It seeds no live authority records, issues no grant or credential, and performs no configuration, SSO, provider, release, deployment or runtime activation. Native OP-specific concurrency and final whole-chain qualification remain separate. The original undelivered corrective source task is superseded by this landed fix and must not be retried when its old SSO path later recovers. |
Source scope
Mount the protected OP runtime enrollment resolver and message-ID verifier. Opt-in server composition joins the Control-owned enrollment and dev/test profile-grant records to the active person, membership, application/Engine workspace mapping, consumed agent claim and parent delegation. Both routes return 503 in the default application. Runtime database access to the new operator tables is read-only.
Each verification reads the Engine observer envelope and original DM independently, validates exact UTF-8 digest equality, then obtains the final primary Control snapshot. The broker receives all nine fields from the PR 107 wire, including the immutable acceptedTextSha256, with validity clipped to all authority deadlines. The source template documents enrollment, binding the Engine-issued epoch, replacement, revocation and the bounded as-of semantics.
Review dispositions
Verification
Local checks cover typecheck, build, serial migration tests, mounted HTTP routes, broker proof shape and composition against an ephemeral Control schema and an Engine-format fake. Retain merge-train:hold for owner review. End-to-end qualification with the independently built Engine remains a separate check.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.