Skip to content

CONTRACT: chore: merge main into the G1a integration branch (#4201) - #4482

Draft
schlessera wants to merge 9 commits into
feat/4201-gmail-g1afrom
chore/4201-g1a-sync-main
Draft

schlessera wants to merge 9 commits into
feat/4201-gmail-g1afrom
chore/4201-g1a-sync-main

Conversation

@schlessera

@schlessera schlessera commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Refs #4201

What changed

Brings main (seven commits since the integration branch was cut at 134c0eee9, up to 7e861bdb3) into the G1a integration branch feat/4201-gmail-g1a, so the G1a landing PR can be opened against current main. One file conflicted: packages/ui-server/src/app.ts, where the Google credential home's boot cleanup (#4206) met main's reference owner continuity (b7202e638, #4273). The resolution keeps both:

The merge also moved three file:line citations off their anchors (two in docs/plans/chat-history-deletion.md into packages/ui-server/src/ws/host.ts, one in docs/plans/google-workspace.md into turn-egress.ts); a second commit re-anchors them.

Why this shape

A merge, not a rebase: the integration branch's task commits are already reviewed and squash-merged, and scripts/review-receipt.ts keeps a record valid across a merge refresh. This PR must be merged with a merge commit, not squashed: a squash would leave the integration branch's merge base with main at 134c0eee9, and the landing PR would conflict again on the same hunk.

Independent review

gpt-6-astra (high effort, read-only) reviewed f87c00784..7574bb1a2: the conflict resolution, every file both sides changed, cross-cutting interactions between main's trust, owner-evidence and proxy changes and G1a's Google modules, and the three re-anchored citations. No findings; its coverage ledger marks every question verified, and it regenerated the three overlapping api-reports in memory and found them exact. Residual gaps it names: boot-failure fault injection and the native worker, proxy and Security runtime tests, which it did not run. The receipt (bun scripts/review-receipt.ts check 4482: required, 0 findings) is posted on this PR.

Proof

bun run check:pr --base origin/feat/4201-gmail-g1a
  • bun run api-report: no change. NODE_OPTIONS=--max-old-space-size=6144 bun run typecheck, bun run lint and bun scripts/check-leakage.ts: clean.
  • bun run test packages/ui-sdk packages/ui-server -t google: 85 pass, 0 fail.
  • ./packages/ui-server/tests/reference-owner-resolution.test.ts, ./packages/ui-server/tests/reference-owner-native-root.test.ts and ./packages/ui-server/tests/google-credential.test.ts: 102 pass, 0 fail. The last boots the real app and asserts that it holds the Google home while serving and releases it on close.
  • bun scripts/check-citations.ts: no drifted citation that is not already drifted on main or on the integration branch (436 drifted here, 445 on main, 447 on the integration branch).
{"version":1,"kind":"brain-check-pr-receipt","head":"7574bb1a23c5fe892151011a8e024792d5654583","base":"origin/feat/4201-gmail-g1a","mode":"focused","startedAt":"2026-11-23T09:22:03.987Z","finishedAt":"2026-11-23T09:23:46.506Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":11004.853156999998},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":121.75015200000053},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":114.62370199999714},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":19.288305000001856},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":91197.681801}]}

Checklist

  • Focused local preflight/behavioral receipts and complete selected hosted proof passed; actual head/base/job checkout evidence is in Proof.
  • Acceptance criteria: none of its own; it carries main into the integration branch.
  • A recorded independent review of this head (bun scripts/review-receipt.ts check 4482: required, 0 findings, 0 undisposed).
  • Milestone 0.46.0, with the rest of G1a.
  • No changeset: it adds no change of its own beyond main's and the integration branch's.
  • No personal data anywhere in the diff.
  • No machine-contract change of its own. It carries main's contract changes (docs/integration-contract/http.md, package-api.md and wire.md), hence the CONTRACT: title and contract label.
  • Docs: the three citations the merge moved are re-anchored.
  • No guard changed beyond carrying ui-server, ui-sdk: host-only Google credential home, keyring secret and pinned binary, with a native worker-isolation proof #4206's boot-failure release onto main's new boot step.
  • Nothing on a turn's path changed in the provider-facing history.

Anything left open

schlessera and others added 9 commits November 21, 2026 11:12
)

* CONTRACT: feat(ui-server): enforce prospective exact-origin trust (#3609)

* CONTRACT: fix(safety): fence reviewed origin admissions across publication and connect waits

* CONTRACT: fix(safety): bind shared cards to context and preserve trusted fork admissions

* CONTRACT: fix(ui-react): distinguish mixed source trust and human safety verdicts

* CONTRACT: fix(safety): separate transport approvals and hash verified policy bytes

* test(ui-sdk): type transport approval evidence explicitly

* CONTRACT: fix(safety): enforce IPv6 tunnels and retain last-valid trust on read failures

* test(ui-server): preserve selector scheme literal type

* CONTRACT: fix(safety): unify live trust observation and cache stable generations

* CONTRACT: fix(egress): canonicalize hosts and fence every send independently

* fix(egress): reject unmatched brackets in policy host patterns

* CONTRACT: docs(api): record independent recipient approval evidence

* CONTRACT: fix(safety): validate admission evidence and cache only verified live state

* test(ui-react): keep admission fixture discriminants literal

* CONTRACT: fix(safety): bind unmatched evidence to live snapshot and render IPv6 authorities

* test(ui-react): use supported polling assertion options

* CONTRACT: fix(egress): preserve DNS dial authority and version-one detector IDs

* test(ui-sdk): preserve legacy history fixture literals

* CONTRACT: fix(egress): cancel queued refresh and discriminate charge refusals

* CONTRACT: fix(trust): scope revocation to source rule and validate byte charges

* CONTRACT: fix(trust): retire source instances and unify send decisions

* CONTRACT: fix(egress): allow safe completion at exact byte cap

* CONTRACT: fix(egress): publish recipient grants only at dispatch

* CONTRACT: fix(egress): retain one typed refusal across all callers

* CONTRACT: fix(egress): guard the complete operation lifecycle

* CONTRACT: fix(egress): validate provenance and cancel every dispatch

* CONTRACT: preserve relay failure causes and own terminal cleanup

* CONTRACT: fence provider sends and preserve cancellation evidence

* CONTRACT: preserve upstream status and fence buffered provider responses

* CONTRACT: share relay response accounting and terminal fences

* CONTRACT: publish dispatch facts after transport starts and fence delivery

* CONTRACT: fence HTTP connection construction and prove selector retirement

* CONTRACT: preserve route allowance and debit all received overflow

* CONTRACT: classify synchronous transport failures before terminal cleanup

* CONTRACT: meter received HTTP headers before forwarding filters

* CONTRACT: publish egress exposure only after transport construction succeeds

* CONTRACT: bind recipient receipts to dispatch and share admission validation

* CONTRACT: meter relay request heads before filtering

* CONTRACT: preserve legacy egress routes and meter interim HTTP heads

* CONTRACT: require durable occurrence confirmation before trusted dispatch

* CONTRACT: preserve own-input approvals and classify peer recorder changes

* CONTRACT: retain dispatched session grants and preserve outward callback inputs

* CONTRACT: preserve shared-card approvals and inference refusal compatibility

* test: preserve compatible inference text at relay boundaries

* CONTRACT: exclude exact shared-card peer write reservations

* CONTRACT: preserve refusal causes through session binding
* feat(ui-server): bind immutable reads to approved owner evidence

* fix(ui-server): retain publication root identity across restarts

* fix(ui-server): require live host continuity for owner qualification

* fix(ui-server): close owner continuity during normal shutdown

* fix(ui-server): attest owner approval against pinned native brain identity

* fix(ui-server): wire native owner identity into host publication

* chore(ui-server): keep native root helper types private

* fix(ui-server): resolve owner evidence through live Settings policy
* CONTRACT: add reviewed trust controls to Security settings

* test(ui-react): prove capability-gated repository trust CRUD

* CONTRACT: fence trust Settings authority and stale review state

* CONTRACT: model trust Settings transitions and rule observations

* fix(ui-react): retain unknown save outcomes after access denial

* fix(settings): match HEAD reads and wrap policy disclosures
…rust (#4428)

* CONTRACT: combine single-trigger review with prospective source trust

* CONTRACT: enforce combined review ordering and preserve legacy safety clients

Guard bound verdict handles in the FULL worker, keep legacy capability fields false, and separate operation receipts from current rule and trigger state.

* CONTRACT: recover combined review status from durable evidence

Prefer committed or published operations, select after policy waits with retention checks, and ignore older focus-read results.

* CONTRACT: derive combined review completion from durable decisions

* fix(ui-react): preserve review completion across own live updates

* CONTRACT: classify combined safety review HTTP routes

* test(ui-react): await committed review response before acknowledgement
Resolves the conflict in packages/ui-server/src/app.ts between the Google
credential home's boot cleanup (#4206) and main's reference owner
continuity (b7202e6): both are kept, the Google masks also close if
owner continuity fails to open, and shutdown closes owner continuity
before the Google masks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schlessera schlessera added this to the 0.46.0 milestone Nov 23, 2026
@schlessera schlessera added type: chore Tooling, CI, release plumbing, dependencies. area: ui-server Hono app factory: turn coordinator, auth, session catalog, routes, cron. labels Nov 23, 2026
@uploads-sh

uploads-sh Bot commented Nov 23, 2026

Copy link
Copy Markdown

No uploads on this PR yet

This PR changes UI files (packages/ui-react/src/components/chat/safety-indicator.tsx, packages/ui-react/src/components/settings/agent-policy-group.tsx, packages/ui-react/src/components/settings/passkey-tab.tsx and 5 more). Screenshots help reviewers see what changed.

  • From the CLI: uploads put before.png after.png --pr 4482
  • From an agent: ask it to attach screenshots with uploads.sh
  • By hand: drag images into the PR description and they're imported automatically
Tips for agents

Label each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one put per shot:

uploads put after.png --pr 4482 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 4482 --app ios --screen "Chat" --state after

No CLI? With the Uploads MCP, call sign_upload_url for files on disk (or put) with repo, pr: 4482 and the same screen, state and caption fields.

This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with uploads list --pr 4482. More in the github-screenshots skill or the agent docs.

Workspace admins can turn this comment off in Settings → GitHub · docs

@schlessera schlessera added the contract Touches the integration contract: CONTRACT: commit, contract doc updated in the same commit. label Nov 23, 2026
@schlessera schlessera changed the title chore: merge main into the G1a integration branch (#4201) CONTRACT: chore: merge main into the G1a integration branch (#4201) Nov 23, 2026
@schlessera

Copy link
Copy Markdown
Owner Author

Independent review

Reviewed head 7574bb1 against base f87c007. Reviewer: agent. No findings.

{
  "version": 1,
  "kind": "brain-review-receipt",
  "pr": 4482,
  "head": "7574bb1a23c5fe892151011a8e024792d5654583",
  "base": "f87c007846042042e85d299254b1a5ecdf83cfab",
  "reviewer": "agent",
  "outcome": "no-findings",
  "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

area: ui-server Hono app factory: turn coordinator, auth, session catalog, routes, cron. contract Touches the integration contract: CONTRACT: commit, contract doc updated in the same commit. type: chore Tooling, CI, release plumbing, dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant