Skip to content

CONTRACT: feat(ui-server): resolve Settings repository identity without Git acquisition - #4255

Merged
schlessera merged 3 commits into
mainfrom
feat/3613-settings-identity-20261118
Nov 20, 2026
Merged

schlessera merged 3 commits into
mainfrom
feat/3613-settings-identity-20261118

Conversation

@schlessera

@schlessera schlessera commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Refs #3613

What changed

The internal GitHub access service now supports owner-only repository identity lookup for Settings without selecting a revision, starting an agent turn or dispatching Git. It reuses the acquisition service's anonymous-first metadata path and the requesting owner's own live private grant, with separate API credential-recipient permission. Owner and repository lookups retain the original caller, target, cancellation and operation authority across waits, including shutdown.

Why this shape

This supplies the metadata-only output needed by #3622 under the existing #3613 metadata-authority ruling. Identity observations return stable repository/owner IDs and exact canonical names; they carry no publication approval or trust exemption. Repository lookup retains a host-only synchronous authority callback over the lookup's exact selected grant/credential and operation for final publication fencing. It does not refresh remote identity. Settings must still bind a fresh observation to its independent password-mode human review and protected publication. Standing source-rule enforcement remains separately scoped.

Proof

Current head 09e4a94e3023e943fe99f3f3a4139d7af73c831d cleanly merges authored authority completion eeff70b582d7430b221dec8ed446cd0c5f407dd7 with main bd751d43435bbffa919d987323d17098eb5f7166. Its tree is c0855f156f1e9699e7a664700efe16ba15b14c38. The main changes are isolated test-fixture corrections; the service and its regression sources retain their authored bytes.

  • bun run check:pr --base origin/main passed all five gates, including 842 tests / 6260 assertions / 30 files. The fresh receipt identifies the current combined head above. The first run failed in Node-based discovery because the command environment selected an unavailable shim; the corrected environment uses installed Node 24.21.0 and Bun 1.4.2. The earlier failure retains its own result.
  • Strict types pass. Metadata/identity/actual TLS-wire proof passes 68 tests / 388 assertions / three files. Existing managed source, authority, read, tool and grant compatibility passes 284 tests / 1237 assertions / five files.
  • Before implementation, two runtime tests fail at SETTINGS_REPOSITORY_RESOLVES_WITHOUT_GIT_OR_AGENT_TURN and SETTINGS_OWNER_OPERATION_RECHECKED_AFTER_DNS.
  • Five independent restored mutations break operation authority, owner-operation authority, owner-only metadata, cancellation during held DNS and separate API recipient permission. Each fails its named behavioral assertion at the original authored source. The final authority callback has eight more regression cases covering selected-grant revocation/replacement/narrowing, API permission, credential, principal, operation and cancellation after wire cleanup. Replacing that callback with a no-op fails SETTINGS_FINAL_PUBLICATION_FENCE_RETAINS_LOOKUP_AUTHORITY in all eight cases; exact source is restored. Cancellation proves the request ends while DNS remains held. Private grant tests cover missing, legacy, other-brain, other-principal, sibling, revoked and credentialless authority without credential probing.
  • Fresh lookups observe name reuse and owner-ID changes. A renamed repository needs a fresh exact-name observation; redirects and unknown metadata cannot dispatch a credential.
  • The real-Git offline test cannot start in this local environment: unshare refuses its UID mapping. This is a retained failed setup result, not passing runtime proof. Hosted selected real-Git and eventual automatic-main native/backend proof remain required. No offline guard was disabled.
{
  "version": 1,
  "kind": "brain-check-pr-receipt",
  "head": "09e4a94e3023e943fe99f3f3a4139d7af73c831d",
  "base": "origin/main",
  "mode": "focused",
  "startedAt": "2026-11-18T10:26:59.538Z",
  "finishedAt": "2026-11-18T10:28:24.133Z",
  "checks": [
    {
      "name": "all lint and leakage gates",
      "categories": [
        "changeset"
      ],
      "outcome": "passed",
      "elapsedMs": 13831.293101000003
    },
    {
      "name": "environment documentation",
      "categories": [
        "changeset"
      ],
      "outcome": "passed",
      "elapsedMs": 113.95419799999945
    },
    {
      "name": "pending changeset package names",
      "categories": [
        "changeset"
      ],
      "outcome": "passed",
      "elapsedMs": 75.25259799999913
    },
    {
      "name": "contribution changeset",
      "categories": [
        "changeset"
      ],
      "outcome": "passed",
      "elapsedMs": 19.444887000001472
    },
    {
      "name": "affected fast invariants",
      "categories": [
        "verify",
        "unit"
      ],
      "outcome": "passed",
      "elapsedMs": 70537.958143
    }
  ]
}

Guard containment

An ended/cancelled operation, lost owner or grant, changed credential, missing API recipient permission or invalid fixed-endpoint metadata withholds that operation's identity. Returning partial identity would let Settings review an unproved target. The refusal is scoped to that request; there is no boot gate or durable latch, and a new valid request can proceed after authority or metadata recovers. Typed transport errors retain the cause for the caller; the tests retain refusal reasons and actual connection/credential observations. The fresh-identity sequence proves later independent observations remain usable.

Checklist

  • Focused preflight, strict types, failing-first and restored mutation receipts pass.
  • Complete selected hosted candidate and actual checkout evidence pass.
  • Fresh independent review at 09e4a94e3023e943fe99f3f3a4139d7af73c831d returned no findings. The original review at 00cc3e0 also returned no findings and remains recorded.
  • Original acceptance criteria remain open with the remaining work named below.
  • PR and advanced issue use release milestone 0.45.0; minor changeset and contract note are included.
  • Lint/leakage and affected documentation pass.
  • No provider-facing tools, prompts or history are changed.

Anything left open

This metadata-only slice does not complete #3613. Stable approved-owner publication evidence, final qualified resolver integration and the remaining #3613 acceptance/verification obligations stay open. #3622 still needs its host resolver wiring, full repository CRUD and protected publication integration. Repository source trust and its capability remain disabled; source-rule enforcement belongs to #3615. Fresh candidate run 44745157339 and automatic main run 44747943056 passed with actual checkout/artifact reconciliation, recorded in the delivery comment. Squash: d88c227c66f374224e35a245dc1c8ef8ba2fbe26.

@schlessera schlessera added this to the 0.45.0 milestone Nov 18, 2026
@schlessera schlessera added type: feat A new capability or a change in user-visible behaviour. 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. security Auth, isolation, egress, secrets, or anything in the threat model. labels Nov 18, 2026
@schlessera

Copy link
Copy Markdown
Owner Author

Independent review

Reviewed head 00cc3e0 against base bd751d4. Reviewer: agent. No findings.

{
  "version": 1,
  "kind": "brain-review-receipt",
  "pr": 4255,
  "head": "00cc3e0930d70c8cdf94124a0ee8911b73832476",
  "base": "bd751d43435bbffa919d987323d17098eb5f7166",
  "reviewer": "agent",
  "outcome": "no-findings",
  "findings": []
}

@schlessera

Copy link
Copy Markdown
Owner Author

Current-head collision check for #4255 at 09e4a94e3023e943fe99f3f3a4139d7af73c831d: textual overlap with #3622 in docs/integration-contract/package-api.md; shared proof closure with #3056, #3059, #3069, #3581, #4151 and #4234. Detection assigns no ownership or reservation. #3622 is being refreshed in its own checkout, and its completion will consume this resolver. Current preflight, strict types and focused metadata proof pass; fresh independent re-review is pending.

@schlessera

Copy link
Copy Markdown
Owner Author

Independent review

Reviewed head 09e4a94 against base bd751d4. Reviewer: agent. No findings.

{
  "version": 1,
  "kind": "brain-review-receipt",
  "pr": 4255,
  "head": "09e4a94e3023e943fe99f3f3a4139d7af73c831d",
  "base": "bd751d43435bbffa919d987323d17098eb5f7166",
  "reviewer": "agent",
  "outcome": "no-findings",
  "findings": []
}

@schlessera
schlessera marked this pull request as ready for review November 18, 2026 10:38
@schlessera
schlessera marked this pull request as draft November 18, 2026 10:55
@schlessera
schlessera marked this pull request as ready for review November 20, 2026 13:32

Copy link
Copy Markdown
Owner Author

Resumed 2026-11-20 at unchanged head 09e4a94e3023e943fe99f3f3a4139d7af73c831d and live main bd751d43435bbffa919d987323d17098eb5f7166. Re-read #3613, #3597 and the binding decisions; no intervening requirement changes were found. Existing exact-head independent review and contribution preflight remain valid. The synthetic merge has those exact parents and tree c0855f156f1e9699e7a664700efe16ba15b14c38. Both release milestones read back as 0.45.0.

Fresh collision scan: textual overlap with #3622 in the shared package contract; shared proof closure with #3056, #3059, #3069, #3581, #4151, #4234 and #4258. Other workers retain ownership. Fresh candidate confirmation is running under the integration reservation; no older cancelled proof is claimed.

Copy link
Copy Markdown
Owner Author

Settings identity slice delivered — 2026-11-20

PR #4255 merged as d88c227c66f374224e35a245dc1c8ef8ba2fbe26, from reviewed head 09e4a94e3023e943fe99f3f3a4139d7af73c831d. Its actual parent bd751d43435bbffa919d987323d17098eb5f7166 and tree c0855f156f1e9699e7a664700efe16ba15b14c38 match the confirmed candidate; remote-main ancestry is verified. Both milestones read back as 0.45.0. No merged branch was pushed again.

The host GitHub service now resolves fresh repository/owner identity for Settings without Git acquisition, revision selection or an agent turn. Anonymous-first fixed metadata, the owner's live private grant, separate API recipient permission, cancellation and operation authority remain fenced across waits and wire shutdown. The retained synchronous callback checks the exact selected grant/credential and operation at final publication; it does not refresh identity or supply human approval.

Fresh candidate run 44745157339, attempt 1, passed all thirteen selected jobs on actual checkout 6926fb86cff32c112437fa5b54f179ed53d4ecd0, with the exact head/base parents and tree above. The integration helper independently verified each selected checkout, merged under its reservation and released it. All sixteen isolated unit workers identify that checkout. Their reports contain 16,411 cases, zero failures/errors and twelve existing conditional skips. Both installed-provider-history suites passed all 37 cases. The changed metadata test passed both requested/observed repetitions under four CPU burners. Existing exact-head clean independent review, preflight, types and meaningful restored mutation receipts remain recorded; earlier cancelled/setup failures retain their original scope.

Automatic main run 44747943056, attempt 1, passed all seventeen selected jobs. Every actual successful job checkout and all eight isolated unit workers independently identify the exact squash above. The aggregate selects nine categories fresh with no retained proof; determinism categories are intentionally unselected on main, with changed-test repetition supplied by the candidate run. Unit reports again contain 16,411 cases, no failures/errors and twelve existing conditional skips; all 37 provider-history and 49 GitHub-access cases pass without skips. Browser, layout, capture, endurance, runtime and native-host categories passed. Native artifacts verify the actual maintenance-worker regular-blob range/digest, sealed acquisition/root mapping, EROFS and revocation refusal. All four healthy Claude/Pi × UID 0/1000 cells complete first/warm phases and clean shutdown, and complete separate-worker identity proof passes without skipped categories. Native fixture commit identity remains separate from the brain-kit squash. backendEquivalence and readTrustExemption remain false. Main coordination reports no open red-main incident.

#3613 remains open. The delivered #4002 acquisition/publication, #4200 immutable reader, #4238 read-entry/delivery and #4255 Settings metadata slices do not establish the final qualified resolver/approved-owner boundary. Remaining work must bind stable IDs and fresh rename/transfer/name-reuse observations to independently reviewed approved-owner publication, complete the resolver integration and demonstrate all five original criteria with the required runtime/mutation proof. Existing restrictive Git/ref/relay/credential/outward-write controls remain binding. Repository source trust stays disabled; standing source-rule enforcement remains #3615. #3622 consumes the delivered metadata resolver under its own protected human Settings publication boundary; this slice does not claim its CRUD/publication work is complete.

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. security Auth, isolation, egress, secrets, or anything in the threat model. type: feat A new capability or a change in user-visible behaviour.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant