Skip to content

fix: enforce review, hook and reporting policy boundaries - #2939

Open
jeremi wants to merge 15 commits into
mainfrom
fix/review-hook-derived-policy
Open

jeremi wants to merge 15 commits into
mainfrom
fix/review-hook-derived-policy

Conversation

@jeremi

@jeremi jeremi commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Carry the configured initiator claim across the Review handoff and preserve its binding through retained review activation. Derive the human claim from BReg in Casework provider setup and keep the service credential claim.
  • Validate Record hook authority during authoring and Action application, including the binding in the loaded delivery. Reserve hook profiles for delivery by excluding them from HTTP authentication.
  • Hold unfinished work sealed with the earlier Review binding during a BReg or Coordinator upgrade and document how to settle it.
  • Apply contextual sensitivity to application and administrative-decision subject references during PublicSchema derivation. The source-model annotations are in PublicSchema #24.

Configuration

  • Set trustedInitiatorPrincipalClaim alongside trustedInitiatorIssuer on the affected Casework producer bindings. Use a claim that identifies the same person in BReg and Casework.
  • Assign a caller-independent access profile to Record hooks that apply proposals. Omit principal for notification-only hooks.
  • Finish or cancel older Review work on the previous matching release before upgrading. Record any needed history for older BReg requests with a named initiator.
  • Compare reporting permissions with a fresh derivation before redeploying an existing project derived from either affected PublicSchema concept.

Verification

  • Review protocol and Casework principal configuration tests passed.
  • The composed BReg and Casework approval journey passed against disposable PostgreSQL. Focused tests also passed for the trusted initiator binding and retained review activation.
  • The Record hook compiler checks and PostgreSQL checks passed for authorized application, notification delivery, outbox binding and refusal with no follow-up mutation.
  • Focused HTTP authentication, identity-facts, startup diagnostics, and Review upgrade checks passed. The generated Casework provider journey and maintained licensing approval journey passed on disposable PostgreSQL.
  • All 90 BReg derivation tests passed on the current snapshot.
  • Regenerated the Casework project and API contracts, Coordinator operation schemas, TypeScript client and identifier catalog. Generated client consistency, identifier reference closure and the 35 identifier tests passed.
  • Formatting, documentation evidence anchors and the public branch disclosure check passed.

jeremi added 15 commits December 2, 2026 23:26
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
@jeremi
jeremi marked this pull request as ready for review December 3, 2026 06:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T06:44:10.713302Z 18742d1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant