Repository navigation
CONTRACT: feat(ui-server): add durable owner trust Settings publication - #3622
Conversation
|
Parent continuation at |
|
Status at head |
|
Resolved the main conflict by preserving both appended API contracts and incorporating #3627 from main |
…8-durable-trust-settings
…rable-trust-settings
Independent reviewReviewed head b841e59 against base bd751d4. Reviewer: agent. 1 finding: 0 fixed, 0 filed, 0 rejected, 1 without a disposition. |
Independent reviewReviewed head b841e59 against base bd751d4. Reviewer: agent. 1 finding: 1 fixed, 0 filed, 0 rejected, 0 without a disposition. {
"version": 1,
"kind": "brain-review-receipt",
"pr": 3622,
"head": "b841e598a25dc1044924c1f38f9cf104c4529306",
"base": "bd751d43435bbffa919d987323d17098eb5f7166",
"reviewer": "agent",
"outcome": "findings",
"findings": [
{
"summary": "packages/ui-server/src/brain/turn-journal.ts:679: The Settings window awaits GitHub metadata, then unconditionally calls observe(true), even when lookup/publication fails. A concurrent governance.md edit during that wait is consequently classified as user/policy instead of agent/steering, suppressing steering-change and taint attribution. Reproduced with an active journal turn and a rejecting async callback: the unapproved edit was recorded with actor=user and class=policy.",
"disposition": "fixed",
"commit": "84fb7722fac887722aa86329f52bc34e62274493"
}
]
} |
Independent reviewReviewed head 84fb772 against base bd751d4. Reviewer: agent. 1 finding: 0 fixed, 0 filed, 0 rejected, 1 without a disposition. {
"version": 1,
"kind": "brain-review-receipt",
"pr": 3622,
"head": "84fb7722fac887722aa86329f52bc34e62274493",
"base": "bd751d43435bbffa919d987323d17098eb5f7166",
"reviewer": "agent",
"outcome": "findings",
"findings": [
{
"summary": "packages/ui-server/src/brain/trust-settings.ts:136: read() loads the operation and receipt before waiting for BRAIN_LOCK_KEY, then discards the refreshed row after acquiring it. A read during commit can capture stage=writing, wait until publication and durable proof complete, and still return publication=unknown. Reload and interpret the operation under the lock so concurrent readback reflects the completed outcome."
}
]
} |
Independent reviewReviewed head 84fb772 against base bd751d4. Reviewer: agent. 1 finding: 1 fixed, 0 filed, 0 rejected, 0 without a disposition. {
"version": 1,
"kind": "brain-review-receipt",
"pr": 3622,
"head": "84fb7722fac887722aa86329f52bc34e62274493",
"base": "bd751d43435bbffa919d987323d17098eb5f7166",
"reviewer": "agent",
"outcome": "findings",
"findings": [
{
"summary": "packages/ui-server/src/brain/trust-settings.ts:136: read() loads the operation and receipt before waiting for BRAIN_LOCK_KEY, then discards the refreshed row after acquiring it. A read during commit can capture stage=writing, wait until publication and durable proof complete, and still return publication=unknown. Reload and interpret the operation under the lock so concurrent readback reflects the completed outcome.",
"disposition": "fixed",
"commit": "0e987664acb14ca5c3e831b371605d2b19d936a9"
}
]
} |
Independent reviewReviewed head 76325e4 against base d88c227. Reviewer: agent. No findings. {
"version": 1,
"kind": "brain-review-receipt",
"pr": 3622,
"head": "76325e4383602a6af1fb49ca0ec8827f0f86e3f6",
"base": "d88c227c66f374224e35a245dc1c8ef8ba2fbe26",
"reviewer": "agent",
"outcome": "no-findings",
"findings": []
} |
|
Merged as Downloaded candidate artifacts show 16,444 passing cases across 1,269 selected files, zero failures, and 12 existing optional zsh/sqlite-vec skips. Both installed provider-history suites execute all 37 cases successfully; Settings 42 and journal 34 cases also pass without skips. All three changed Bun test files pass two requested/observed repetitions under four CPU burners. Fresh independent review of the final head returned no findings; both earlier findings have fixed dispositions and meaningful failing-first/restored receipts. Automatic main run 44751827563 is still running. Its heavy proof is not yet qualified. PR and closed #3608 retain milestone 0.45.0; no full main-completion claim is made yet. |
|
Automatic main qualification is complete. Run 44751827563, attempt 1, passed all 17 executed jobs on squash Downloaded artifacts verify 16,444 unit passes across 1,269 selected files, zero failures, and the same 12 optional zsh/sqlite-vec skips. Both installed provider-history guards execute all 37 cases; Settings 42 and journal 34 cases pass without skips. Browser artifacts show 9,762 passes across 427 modules; five intentional fine-pointer skips have matching passing cases. Layout has 1,707 passes across 92 modules. The actual ten-minute endurance case, capture provenance/reproducibility, and native runtime/host proof pass. Native artifacts identify this squash and confirm all four Claude/Pi × UID 0/1000 first/warm cells complete with clean shutdown, plus the complete separate-worker identity proof with no skipped phases/categories. The independent expected recovery control also ends with clean shutdown. Automatic website run 44751827506 passes and its actual artifact checkout is the same squash. #3608 is closed and retains 0.45.0. #3609 has all prerequisites satisfied and is unblocked; #3610/#3611 retain blocked for open #3609. Unrelated pre-existing citation release-check failures are tracked separately in #4263; affected citations in this PR were repaired. No runtime source-trust enforcement or historical clearing is enabled by this publication slice. |
Closes #3608
What changed
Password-mode human owners can review and publish origin, tunnel, GitHub repository and GitHub owner trust rules through exact-base Settings operations without an agent turn. Repository IDs from the browser must match fresh host metadata at review and again inside the commit journal window. Private metadata keeps its selected live grant and API credential-recipient authority through the final synchronous publication fence.
The shared descriptor-bound publisher retains exact reviewed bytes, file topology, bounded operation identities and durable staged receipts. Publication proof and the approved GitHub owner boundary commit together after file sync; boundary evidence survives operation pruning and retires on removal or selector change. Crash recovery never infers publication from equal bytes or blindly retries an unknown write. The journal awaits asynchronous publication and the HTTP boundary bounds concurrent lock waiters.
Only the trust revision refreshes. Ordinary governance snapshots stay turn-bound. Saved rules report runtime enforcement as unavailable; historical triggers are unchanged. Runtime admission/removal fencing belongs to #3609, Settings UI to #3610, and rule-plus-verdict review to #3611.
Validation
bun run check:pr --base origin/main: all five gates pass; 842 tests / 6261 assertions.NODE_OPTIONS=--max-old-space-size=6144), API report regeneration and diff checks pass.84fb7722fac887722aa86329f52bc34e62274493: the journal observes intervening edits normally and attributes only synchronous approved publication. Original-code mutation fails the named attribution assertion; all three new cases pass after restoration. Ordinary governance edits remain agent/content under the existing policy-surface exclusion. Fresh independent review of final head76325e4383602a6af1fb49ca0ec8827f0f86e3f6returned no findings; its recorded review gate passes.a reviewed repository cannot publish after owner_id metadata changesat its publication assertion.SETTINGS_MISSING_PUBLICATION_CALLBACK_IS_NOT_PROOF(expectednot_published, receivedproved). Both guards restored.{ "version": 1, "kind": "brain-check-pr-receipt", "head": "76325e4383602a6af1fb49ca0ec8827f0f86e3f6", "base": "origin/main", "mode": "focused", "startedAt": "2026-11-20T13:51:48.127Z", "finishedAt": "2026-11-20T13:54:02.059Z", "checks": [ { "name": "all lint and leakage gates", "categories": [ "changeset" ], "outcome": "passed", "elapsedMs": 21243.443666000003 }, { "name": "environment documentation", "categories": [ "changeset" ], "outcome": "passed", "elapsedMs": 147.5273240000024 }, { "name": "pending changeset package names", "categories": [ "changeset" ], "outcome": "passed", "elapsedMs": 143.40950899999734 }, { "name": "contribution changeset", "categories": [ "changeset" ], "outcome": "passed", "elapsedMs": 51.68496600000071 }, { "name": "affected fast invariants", "categories": [ "verify", "unit" ], "outcome": "passed", "elapsedMs": 112325.350954 } ] }0e987664acb14ca5c3e831b371605d2b19d936a9: operation/receipt and refreshed projection now load together under the lock. Both writing/file-published tests fail on original code atSETTINGS_READ_AFTER_LOCK_USES_COMPLETED_DURABLE_RECEIPTand pass after the fix.Anything left open
Implementation and independent review are complete; exact-candidate hosted confirmation remains before merge. Delivered #4255/#3613 squash
d88c227c66f374224e35a245dc1c8ef8ba2fbe26merged cleanly into current head76325e4383602a6af1fb49ca0ec8827f0f86e3f6; the refresh tree equals its first parent, with no duplicated resolver or changeset blocks. Existing older draft feedback retains its original head/base and is not proof for this candidate. Migration 094 is free on inspected maind88c227c66f374224e35a245dc1c8ef8ba2fbe26. No source-trust runtime capability, historical clearing or generic metadata relay is enabled here.