Skip to content

ui-server: reuse protected policy publication for durable human Settings operations #3608

Closed

Description

@schlessera

Out of scope

No combined taint resolution yet, second file writer, ordinary-policy hot reload or non-password owner-equivalence invention. The qualified repository identity/metadata transport is owned by #3613 and is reused here after delivery.

Context

Part of #3597.

GovernancePolicySchema (packages/common/src/governance-policy.ts:101) includes the canonical trust schema delivered by #3607. In the refreshed draft, createTrustSettings (packages/ui-server/src/brain/trust-settings.ts:76) owns durable Settings review/publication; publishProtectedPolicy (packages/ui-server/src/brain/policy-publication.ts:6) is the shared descriptor-bound publisher; createTrustSettingsRoutes (packages/ui-server/src/routes/trust-settings.ts:8) supplies the HTTP owner boundary. These anchors were reverified at draft head 6a814ee735e6a37ae3a8c034b4e1c35c65b56d60.

Read the reviewed implementation design, review disposition, docs/plans/reviewable-session-safety.md and docs/decisions/session-safety-reviews.md. #3599/#3618 delivered the plan/ADR; #3607/#3620 delivered bounded canonical trust policy data and pure matching at main 4e6a2d8c840bcf2c74e20641d4603968b7b77476, with runtime capabilities disabled. ROADMAP.md binding decisions, append-only provider history, G6 and the protected publisher boundary apply.

Scope

  • Extract/reuse the descriptor-bound privileged publication core with host-owned Settings operation identity; do not fabricate an agent turn or duplicate the file writer.
  • Expose owner-only exact-base add/edit/remove review/commit/read receipts for both trust lists.
  • Persist prepared/file-published/committed/partial/unknown states and provenance sufficient for honest restart reconciliation, scoped to principal, brain and reviewed bytes.

Acceptance criteria

  • Owner-only CRUD works without an agent turn; voice/agent/forged-card/non-qualified ambient attempts and commit-time revocation are refused.
  • Stale file bases, symlink/inode ancestry changes and unrelated policy edits cannot be clobbered; drafts and exact diffs remain available.
  • A restart distinguishes proven publication from matching current bytes; an unknown completion is never blindly replayed.
  • Request identity/body/authority and bounded receipts survive retry; another tab's subsequent edit/removal is reflected without claiming the old rule remains active.
  • Only the trust revision refreshes active admissions; ordinary budgets/commands/profiles keep turn-bound behavior.

Verification

Actual protected-file descriptor and HTTP owner boundary tests, crash injection at each durable stage, stale-base/symlink/authority mutations and no-agent-turn assertions. Include revision exhaustion before publication and truthful proof/recovery receipts.

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 relevant effective-taint behavior. Update authoritative integration contracts and API reports in the implementing commit with CONTRACT metadata and a minor changeset. The effective-state semantic break follows the recorded breaking-before-1.0 ruling and breaking label where implemented; preserve mixed-version fallback.

Implementation and dependency reconciliation — 2026-11-05

Draft PR #3622 implements origin/tunnel CRUD, repository read/removal, exact-byte review, shared descriptor publication and bounded durable crash receipts. Migration 080 stays independent of the occurrence ledger's 079/081+. All original two-list CRUD acceptance remains.

Repository create/edit needs independent host identity from #3613. The metadata architecture was already decided there: a fixed host API path with separate credential-recipient checks and a live repository grant. The missing resolver is a concrete output dependency, not an unanswered policy decision. Browser IDs cannot self-verify. Keep the draft and full CRUD requirement; no reduced-scope completion is approved. The parent removed needs: decision, restored agent-ready for the fully specified brief, and added blocked for #3613. The chain is acyclic: #3613 depends on #3602/#3607/#3612, not #3608; all priorities remain p2.

Active source/recipient enforcement and removal fencing remain #3609. This slice supplies a trust-only revision reader and preserves ordinary admitted policy. Receipts must disclose unavailable enforcement until the enforcing paths are qualified; no historical trigger is cleared. Required hosted runtime/provider-history proof remains outstanding. Local startup-copy EDQUOT and unsupported-worker failures remain failures and are not relabeled as passing proof.

Correction 2026-11-05: replaced the resolver scope question with its existing approved #3613 dependency, preserved every acceptance criterion, and restored the full body after temporary receipt-file storage exhausted its local quota.

Verified draft heavy feedback — 2026-11-05

Run 42077503852, attempt 1, completed successfully for head 1f5c0df15285c54dfdd57859e8a97b1efba0ac73, tree 841546e382f69949bb2a67d55d46ba9be488af33, parent 758152e3b41a66c732ab281ffa2d61909b5b3afe, against admitted base 33eff275315a94156bfd6122b35cc75e549cac04. Actual checkout logs for all 15 selected execution jobs (verify, pack, four unit shards, runtime, runtime_host, three browser shards, two layout shards, captures and endurance) match this head; all available resource receipts agree on the immutable tree and parent. The separate aggregate intentionally checks out workflow revision 33eff275315a94156bfd6122b35cc75e549cac04 and validates the requested target and every selected result. It reports draft feedback, never candidate proof.

This feedback retains its original head/base. It is not confirmation of a combined tree on later main. Repository create/edit still depends on #3613 and remains an incomplete #3608 acceptance criterion. Keep the PR draft, retain milestone 0.45.0, and obtain new exact-candidate confirmation after the complete repository identity implementation and any required branch refresh.

Conflict refresh — 2026-11-05

Draft #3622 now carries 6a814ee735e6a37ae3a8c034b4e1c35c65b56d60, tree cb9db7a70b8b8f4bd247be135075e26a406862f2, integrating delivered main da1f3abd1a81f74dc8118fa0f0fa2df279966e44 (#3600/#3621). The sole conflict was competing imports in app.ts; both Settings and the occurrence collector were retained. Migrations 079/080/081 coexist, and focused combined integration passes 98 tests / 796 assertions. Exact-head preflight passes all five gates, 818 tests / 5542 assertions; typecheck and API-report verification pass. No new product behavior, weakened guard or moved criterion is included.

The earlier successful draft feedback above retains its original head/base; it is not qualification of this refreshed tree. Complete selected final-candidate proof, including native runtime and both provider-history guards, remains required before merge. Repository create/edit remains incomplete and blocked on #3613. This maintenance claim settings-3608-refresh-20261105 is released after the refresh; preserve the full CRUD criteria, blocked label, draft state and 0.45.0 milestone.

Refresh 2026-11-05: verified current publisher/route anchors and recorded the combined safety-ledger base, exact refresh proof and unchanged repository blocker.

Verified draft gates — 2026-11-05

Draft run 42107051506 passed changeset and draft gates on head 6a814ee735e6a37ae3a8c034b4e1c35c65b56d60. Both execution logs checked out 41a5a065a6a260dc062747df9a735d5e846b4be7; its independently verified immutable parents are main da1f3abd1a81f74dc8118fa0f0fa2df279966e44 and this PR head, with tree cb9db7a70b8b8f4bd247be135075e26a406862f2. Both contract jobs checked out the actual PR head and passed. The aggregate explicitly selected none of the nine heavy categories, so their skips are expected draft behavior and supply no complete candidate proof. Repository create/edit remains blocked on #3613; the PR stays draft and mergeable with all full-CRUD criteria retained. No confirmation or merge is requested.

Current implementation — 2026-11-20

The complete two-list publication implementation is in draft #3622 at 76325e4383602a6af1fb49ca0ec8827f0f86e3f6, refreshed cleanly through delivered identity resolver #4255/#3613 squash d88c227c66f374224e35a245dc1c8ef8ba2fbe26. Both prerequisite outputs are delivered; the active blocker declarations are removed. Repository/owner create and edit now compare browser IDs with independent fresh host metadata at preparation and publication; private metadata retains its selected grant and API credential-recipient boundary. Runtime enforcement remains #3609 and stays unavailable in publication receipts.

Exact-head preflight passes all five gates (842 tests / 6261 assertions), build/typecheck/API reports pass, and the current real HTTP/TLS/descriptor/crash Settings suite passes 42 tests / 199 assertions. Guard mutations fail at their intended publication and concurrent-read assertions. Independent review found two defects, both fixed and recorded: asynchronous failed/absent publication falsely granted user/policy attribution, and concurrent readback retained a pre-lock operation receipt. Fresh independent review of final head 76325e4383602a6af1fb49ca0ec8827f0f86e3f6 returned no findings; exact-candidate and automatic-main proof subsequently passed. Older feedback retains its original recorded identities.

Delivered and qualified — 2026-11-20

PR #3622 merged as 65883f2d5332220db8a17fd1ddba0f926a1888be, parent d88c227c66f374224e35a245dc1c8ef8ba2fbe26, tree 9566a616111d157060346602577f793e0beaaa43. Remote-main ancestry and equality to the confirmed candidate tree are verified. Exact-candidate run 44748884654 passed all 13 selected jobs. Automatic main run 44751827563, attempt 1, passed all 17 executed jobs; every actual checkout and all isolated unit-worker receipts identify the proper candidate or squash. Independent review has no remaining findings.

Downloaded main artifacts verify 16,444 unit passes across 1,269 files, both installed provider-history guards (37 cases), Settings 42 and journal 34 cases without skips, 9,762 browser passes, 1,707 layout passes, the actual ten-minute endurance case, capture reproducibility, and complete native runtime/host qualification. Twelve existing optional zsh/sqlite-vec unit skips and five intentional fine-pointer browser skips retain their original scope; matching browser cases pass. Native Claude/Pi × UID 0/1000 first/warm cells and complete separate-worker identity proof pass with clean shutdown. The automatic website build also passes on this squash.

The publication slice is complete; runtime admission/removal fencing remains #3609, UI CRUD remains #3610, and rule-plus-verdict review remains #3611. No existing trigger is cleared and no runtime trust enforcement is advertised. #3609 is unblocked by the delivered prerequisites; #3610/#3611 retain open #3609. Unrelated citation release-check maintenance is tracked in #4263. Milestone 0.45.0 is retained. Claim settings-3608-resume-20261120 is complete; the closed assignment remains delivery history.

Activity

  1. added
    type: featA new capability or a change in user-visible behaviour.
    area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.
    area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.
    securityAuth, isolation, egress, secrets, or anything in the threat model.
    on Nov 5, 2026
  2. added
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    on Nov 5, 2026
  3. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #3607 is closed, so scripts/sync-project.ts is removing the blocked label.

  4. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 5, 2026
  5. self-assigned this
    on Nov 5, 2026
  6. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Claiming only #3608 with token settings-3608-85ae9c27, intended branch feat/3608-durable-trust-settings. Dedicated checkout starts at delivered main 4e6a2d8c840bcf2c74e20641d4603968b7b77476. Sole dependency #3607 is closed and delivered via #3620; sync already cleared blocked. No active implementation PR or owner found. Collision scan reports shared closure overlap (including #3621); migration 080 is reserved here and 079/081+ ledger work stays with its owner. Draft implementation handoff only; parent owns hosted qualification and merge.

  7. added this to the 0.45.0 milestone on Nov 5, 2026
  8. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    2026-11-05 readiness refresh: the issue body now names the delivered plan/ADR and #3607/#3620 dependency, and corrects GovernancePolicySchema to line 101. The protected proposal and Apify route anchors remain 76 and 45. Migration 080 is independent of the occurrence-ledger migration 079/081+; the existing loader applies any missing filename, including an earlier migration added later.

    The implementation preserves the metadata boundary: no stable GitHub identity resolver exists in the delivered reference-source code, and #3613 remains open with its fixed host metadata transport scoped there. This task was explicitly instructed not to implement that transport. Browser-supplied stable IDs therefore cannot authorize repository create/edit; the draft will support origin/tunnel CRUD and reading/removing existing repository rules, with repository create/edit visibly unavailable. This leaves the two-list CRUD acceptance incomplete pending delivery/reuse of that resolver or an explicit ruling that disabled repository mutation is acceptable in this publication slice. It is not a passing implementation of that remaining criterion.

    The trust-only revision reader is supplied and tested without changing frozen ordinary governance snapshots. Active source/recipient admission and removal fencing remain #3609, with runtime capabilities disabled and saved-policy receipts reporting partial/unavailable enforcement. No historical trigger is cleared. All independent descriptor, HTTP, authority, durability and crash tests are implemented; local namespace refusal does not block that work. Hosted provider-history/runtime proof remains for the parent.

  9. 2 remaining items

  10. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Draft handoff: PR #3622, head 0f880443987cd4bb924d7257b23601f866df71c6, based on delivered main 4e6a2d8c840bcf2c74e20641d4603968b7b77476.

    Independent implementation and proof are preserved: 38 focused tests / 302 assertions pass; bypassing final authority/base/topology guards makes all five race cases fail as intended; restored tests and typecheck pass. Preflight passes lint/leakage, environment and changeset gates, but ends at 814 passing fast invariants / four EDQUOT startup-copy failures. Both provider-history attempts retain actual local failed/unsupported-host receipts; neither is passing proof.

    The original full repository create/edit criterion remains incomplete for the host-identity reason recorded in the issue body. No metadata transport was invented; needs: decision remains until the parent resolves that completion boundary. Runtime trust/fencing remains #3609 and is never advertised here. Parent owns supported-host proof, candidate integration and merge; the PR stays draft, with no reservation/confirmation/watch initiated. Both PR and issue use milestone 0.45.0, reverified against registry 0.44.0. Releasing only claim settings-3608-85ae9c27; no other issue was claimed.

  11. removed their assignment
    on Nov 5, 2026
  12. added
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    and removed
    needs: decisionBlocked on a maintainer or designer ruling, not on code.
    on Nov 5, 2026
  13. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Repository metadata authority is already decided on #3613 and in the ADR. Its missing host identity resolver is now recorded as Blocked by #3613; needs: decision is replaced with blocked plus agent-ready. All original two-list CRUD criteria remain and PR #3622 stays draft. There is no dependency cycle and blocker priorities remain p2. Independent publication fixes/proof can proceed while the ledger/admission chain unlocks that resolver. The complete issue body has been restored after the temporary receipt-file quota interrupted the first update.

  14. self-assigned this
    on Nov 5, 2026
  15. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Continuing the existing draft #3622 for conflict maintenance only, claim settings-3608-refresh-20261105, on feat/3608-durable-trust-settings. The previous owner handed integration to the parent and released their claim. Refreshing against delivered #3600 at main da1f3abd1a81f74dc8118fa0f0fa2df279966e44; the sole reported content conflict is application composition. Preserve both the durable occurrence recorder and protected Settings publisher, migration 080, all full-CRUD criteria and the #3613 blocker. No repository identity implementation, candidate confirmation or merge is included in this refresh.

  16. removed their assignment
    on Nov 5, 2026
  17. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Conflict maintenance complete for claim settings-3608-refresh-20261105: refreshed draft #3622 to 6a814ee735e6a37ae3a8c034b4e1c35c65b56d60 on delivered main da1f3abd1a81f74dc8118fa0f0fa2df279966e44. Focused combined integration98/796 and preflight818/5542 pass; typecheck/API reports pass. Both application compositions and migrations are retained. Releasing only this maintenance claim. Full repository create/edit remains blocked on #3613; draft and all criteria stay intact. No confirmation or merge requested.

  18. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    Resuming the existing draft #3622 under claim settings-3608-resume-20261120 on its existing branch. Full two-list CRUD criteria and milestone 0.45.0 remain. The concrete identity dependency #3613/#4255 is being qualified separately; this branch will merge its delivered main result before final independent review and candidate confirmation. Current local implementation validation includes real HTTP/TLS and crash tests, restored guard-breaking mutations, build, typecheck and focused preflight. No runtime enforcement or historical clearing is claimed by this publication slice.

  19. self-assigned this
    on Nov 20, 2026
  20. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 20, 2026
  21. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    Delivered through #3622, squash 65883f2d5332220db8a17fd1ddba0f926a1888be, with matching confirmed parent/tree and verified remote-main ancestry. Exact-candidate run 44748884654 and automatic-main run 44751827563 pass all selected jobs; actual checkouts and downloaded unit/browser/layout/endurance/native artifacts are verified. Fresh independent review has no findings. Acceptance criteria are complete for the publication slice, and the issue remains closed at milestone 0.45.0. Runtime enforcement remains #3609, which is now unblocked; #3610/#3611 retain that open dependency. Full receipts are recorded on the merged PR.

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

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.securityAuth, isolation, egress, secrets, or anything in the threat model.type: featA new capability or a change in user-visible behaviour.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions