Repository navigation
Description
Out of scope
No bulk historical clear, organization-wide scope hidden in a single-repo choice, generic transaction claim across file/DB, or unqualified repository identity.
Context
Part of #3597.
createPolicyProposals (packages/ui-server/src/brain/policy-proposal.ts:101) already protects file publication, and createGovernanceWrites (packages/ui-server/src/governance/event-writes.ts:147) owns durable host evidence. The new review must reference exact occurrence identities rather than clearing by source or timestamp.
Read the reviewed implementation design and requested gpt-6-astra review/disposition. The delivered plan docs/plans/reviewable-session-safety.md and decision docs/decisions/session-safety-reviews.md record that design. The original source review used main 35217d283b849b5ef81700d5d4c2ec7486405d12; live implementation readiness is separate from that historical source review. ROADMAP.md “What binds future work”, the provider-history decision, G6 and the protected policy-writer boundary apply.
Scope
- Extend Mark as safe with verified source-origin/tunnel/repo choices, keeping Only this trigger as default and recipient permission independently unchecked.
- Publish the exact reviewed rule first, then commit the selected finalized-trigger verdict, with durable cross-authority stage receipts.
- Render current rule presence and remaining-trigger state across stale tabs, partial failure, retries and crash recovery.
Acceptance criteria
- Resolving A with future trust never clears B/C, including later same-source triggers already recorded; only future matched input can use the new source rule.
- Open/uncertain triggers cannot be cleared, and unavailable provenance suppresses the broad choices at both UI and server boundaries.
- A file-published/verdict-uncommitted crash leaves A restrictive with a partial receipt. Unknown publication needs fresh review; idempotency never blindly republishes.
- Another tab removing the new rule before verdict completion is reported honestly; the single safe verdict does not reinstate that rule.
- Owner/epoch/session authority, protected-file checks and source-versus-recipient separation remain enforced for every step.
Verification
Real HTTP/WS principal-boundary and write-worker fixtures, durable restart and partial-failure cases, A/B/C concurrency and deletion/revocation races.
Every behavioral implementation needs meaningful failing-first/mutation receipts and the relevant real runtime/browser proof. Run contribution preflight before opening a PR; missing/cancelled selected hosted proof is not green. No tests may require an API key or external network.
Contract impact
Implement the reviewed optional schema/API/history additions and the relevant effective-taint behavior. Update integration contracts and API reports in the same implementing commit with CONTRACT metadata and a minor changeset. The G6 default/coverage and effective-state semantic break follows the recorded breaking-before-1.0 ruling and breaking label; preserve mixed-version fallback.
Triage 2026-11-05 at main 35217d283b849b5ef81700d5d4c2ec7486405d12: verified source anchors and the published plan/review, retained all still-open output dependencies and existing native parent, and classified this requested but unscheduled work as priority: p2 without inventing a release milestone. The brief is complete with no independent needs gap; agent-ready may coexist with blocked, and this issue remains unpickable until its named outputs exist.
2026-11-14 dependency reconciliation: #3603, #3605 are closed with delivered prerequisites. #3605 now has all seven criteria and complete selected automatic-main proof, including native and both provider-history guards, at 03805baf5c0dc22e8dbd991956039c61b53641d0 (run 43612181306). Removed only the satisfied active dependency declarations. Active blockers #3608 and #3609 remain; blocked and the existing complete brief are retained. No implementation of this issue is claimed. All original acceptance criteria remain unchanged.
2026-11-20 dependency reconciliation: #3608 delivered through #3622, squash 65883f2d5332220db8a17fd1ddba0f926a1888be, with passing exact-candidate run 44748884654 and automatic main run 44751827563; actual checkout identities and squash parent/tree verified. Removed only the satisfied #3608 declaration. #3609 remains open, so blocked is retained. Original scope and acceptance criteria are unchanged; this reconciliation claims no implementation of this issue.
2026-11-21 dependency and readiness reconciliation: #3609 is delivered and closed after #4270, admission fix #4405 and socket fix #4409. Automatic main run 44903045249 on a09942a passed every selected job, with actual checkout/tree proof and hosted native/provider-history evidence. Removed the satisfied active #3609 declaration and blocked label. No active dependency or independent needs gap remains; retained the existing agent-ready label and original scope, acceptance criteria, priority and release scheduling. Repository choices stay disabled/unverified until their own enforcement capability exists, as this issue already specifies. This reconciliation claims no implementation of this follow-on issue. Current source anchors were refreshed; earlier dated dependency notes remain historical context.
Delivery reconciliation — 2026-11-21
Delivered by #4428, squash 7e861bdb3ba0729e217f2980063e18f3dd0172df, release milestone 0.45.0. The merge already closed this issue; all five acceptance criteria are reconciled below.
| Criterion | Result and evidence |
|---|---|
| C1 — A only; existing B/C and later same-source input survive | Complete. combined review publishes exact future rule then resolves only A; replay observes removal retains B/C; both are recorded after A with the same attested origin. Existing origin-trust tests cover verified future admission and revocation without retroactive grants. |
| C2 — finalized input and host-attested provenance | Complete. Server cases refuse open/interrupted_unknown exposure and unverified/historical provenance; browser choices are gated by evidence, provenance and capability. Repository choices remain disabled until qualified enforcement exists. |
| C3 — durable partial/unknown and no blind republication | Complete. Proved publication with verdict failure leaves A restrictive; DB close/reopen resumes only the original handle. Unproved rename requires fresh review; replay never republishes. Matrix cases cover quota, expiry, failures before/after commit and read-only recovery. |
| C4 — removal between authorities remains removed | Complete. rule removed between authorities does not return; the selected verdict can still commit, replay/removal and focus-refresh browser cases distinguish historical completion from current rule presence. |
| C5 — authority, protected file and separate recipient permission | Complete. Real HTTP/WS and FULL-worker fixtures enforce owner/epoch/session/Origin and protected publication proof on every endpoint. Recipient permission is independently unchecked and reviewed; browser off/on and explicit tunnel cases pass. |
Runtime evidence lives in packages/ui-server/tests/combined-safety-review.test.ts, origin-trust.test.ts, trust-settings.test.ts, the owner/FULL-worker suites and packages/ui-react/tests/browser/safety-review.layout.tsx. The PR records failing-first/mutation receipts, mixed-version fallback, minor changeset, contract/API reports, 25 loaded F1 repetitions and exact-head preflight.
Exact-squash main qualification
Candidate run 44932523390 passed. Its checkout fd02670c1c0a9abfcc7b4caad15485bb0da2354d had parents 50fc64314c1f21cfb04c49e69d7d284e5b981a29 and PR head 437546cf79b07cad3e1e3060edd31b8a95618892. The squash has that exact base parent and tree 3d1a1aff466f7a428560e755829d667f7b3d2966 and is present on remote main.
Automatic main-push run 44934429808 succeeded on the squash. All 17 executed jobs have the exact squash in their actual checkout log; all 13 resource receipts also match its parent/tree. This includes verification, packaging, all four unit shards, runtime, runtime_host, all three browser shards, both layout shards, captures, endurance and the integrated proof aggregate. Only determinism and browser_determinism were skipped, as expected on push; both passed in the candidate.
Deferred follow-ups
- ui-server: future-rule review is offered on hosts where Settings cannot prepare a rule #4436 remains open with no milestone: capability offer/preparation availability on non-Linux hosts. Its recorded test follow-up also covers
prepareFuture -> cancelFuture -> external revision, asserting no new progress entry, with no individual review to mask a missing cancelFuture call. - ui-react: scale remaining safety-review setup waits under browser CPU load #4440 remains open with no milestone: two remaining one-second setup waits in the F1 browser test. Neither failed during the loaded proof; this records the identified flake risk.
These binding review deferrals remain tracked independently; no qualified Git repository enforcement or completion of epic #3597 is claimed.
Activity
schlessera commentedon Nov 14, 2026
2026-11-14 dependency reconciliation: #3603, #3605 are closed with delivered prerequisites. #3605 now has all seven criteria and complete selected automatic-main proof, including native and both provider-history guards, at
03805baf5c0dc22e8dbd991956039c61b53641d0(run 43612181306). Removed only the satisfied active dependency declarations. Active blockers #3608 and #3609 remain; blocked and the existing complete brief are retained. No implementation of this issue is claimed. All original acceptance criteria remain unchanged.schlessera commentedon Nov 20, 2026
2026-11-20: removed only the satisfied #3608 dependency after #3622's qualified delivery. #3609 is still open, so blocked is retained. Original scope and acceptance criteria remain unchanged.
schlessera commentedon Nov 21, 2026
2026-11-21: removed the final active #3609 dependency after its original criteria were reconciled and it was closed. Final automatic main run 44903045249 passed every selected job on a09942a, including FULL-writer peers, native admission and provider-history guards. The only skips were the two repetition jobs intentionally unselected for main pushes. Updated the body and source anchors, removed blocked, and retained the existing agent-ready label: no active dependency or independent needs gap remains. Original feature criteria, priority and release scheduling are unchanged; this is readiness reconciliation, not implementation of this issue.
schlessera commentedon Nov 21, 2026
Claimed for implementation. Claim token:
claim-b37d17ac. Branch:feat/3611-combined-review-rule.schlessera commentedon Nov 21, 2026
Implementing #3610 from qualified main a09942a in a dedicated branch. The Settings slice adds an isolated trust-settings-section and API client methods; it does not edit the safety review flow. The required read-only auth state adds sanitized trust-list GET access with mutationAllowed; prepare, commit and receipt retain live owner checks. Please flag overlap with #3611 before editing these new surfaces.
schlessera commentedon Nov 21, 2026
2026-11-21 readiness: claimed as claim-b37d17ac on feat/3611-combined-review-rule from origin/main a09942a. Re-read #3597, reviewed design/disposition and the plan/ADR; verified createPolicyProposals at policy-proposal.ts:101 and createGovernanceWrites at governance/event-writes.ts:147. Assigned and read back release milestone 0.45.0 (latest published package is 0.44.0). Combined review will reuse the existing protected Settings publisher and single-occurrence verdict store. Repository choices remain unavailable until their own enforcement capability exists. Coordinated shared publisher/API surfaces on #3610; no Settings CRUD component changes are planned here.
schlessera commentedon Nov 21, 2026
2026-11-21 implementation handoff: draft #4428 at 047d005, based on a09942a. The PR and this issue both have release milestone 0.45.0, read back after creation.
Local proof: exact-head check:pr passes all gates and 1,015 fast invariants; full typecheck with the requested heap limit, build and API reports pass. The focused owner/publisher/recovery/client suites pass 118 tests; the final combined suite passes 12 tests including actual DB close/reopen and host attestation. The pinned offline Chromium suite passes all 39 tests, including 320px/desktop, recipient off/on, 44px scope targets and reload without replay. Route, stale-publication, bound-Settings, provenance and recipient-default mutations fail their intended assertions; all restored. Detailed receipts and the preflight block are in the PR.
Installed Pi provider-history attempts were refused at worker startup because bubblewrap could not create a namespace; retained as incomplete native proof and not rerun. No installed-native Claude tests ran under #4313. Independent review and selected hosted/native qualification remain with the orchestrator. No confirmation or merge was attempted.
schlessera commentedon Nov 21, 2026
Delivery qualified — 2026-11-21
#4428 delivered all five acceptance criteria as
7e861bdb3ba0729e217f2980063e18f3dd0172df. Exact-candidate run 44932523390 and automatic main run 44934429808 passed. All 17 executed main jobs checked out that exact squash; 13 resource receipts match its parent/tree, with only the two expected push determinism skips.The body now reconciles C1–C5 and preserves milestone 0.45.0. Follow-ups #4436 (including the isolated cancelFuture test gap) and #4440 remain open without milestones. The issue was already closed by the merged PR and remains completed.