Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/ithaca-settings-repository-identity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@schlessera/brain-ui-server": minor
---

Add owner-only GitHub repository metadata lookup for Settings with live grant, credential-recipient and operation-authority checks.
15 changes: 14 additions & 1 deletion docs/decisions/reference-source-acquisition.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ reclamation is observed.
## Fixed GitHub wire and identity authority (#3613)

The concrete access owner (`createGitHubReferenceAccess`,
`packages/ui-server/src/brain/github-reference-access.ts:19-151`) uses the
`packages/ui-server/src/brain/github-reference-access.ts:19-189`) uses the
fixed transport (`createGitHubReferenceWire`,
`packages/ui-server/src/brain/github-reference-wire.ts:19-254`).

Expand All @@ -205,6 +205,19 @@ Owner identity uses its own anonymous `/users/<owner>` operation, without a
Git channel or credentialed mode. Parsed identity data carries no trust or
approved-owner-boundary claim.

Settings repository lookup shares that metadata authority without selecting a
Git revision or fabricating an agent turn. Its separate owner-only operation
returns fresh repository/owner IDs through the same fixed anonymous-first path,
including the requesting owner's own grant for private metadata. Neither that
result nor anonymous owner lookup approves a trust boundary. The Settings
publisher must retain its independent human authority and bind a fresh identity
observation to reviewed publication; changing names or IDs cannot inherit an
old review. Cancellation and operation authority are retained before waits and
rechecked before returning the identity, including after wire shutdown. A
repository observation retains a synchronous authority check over its selected
grant and credential for the final publication boundary; invoking it does not
refresh metadata or approve the target.

The fixed wire shares one operation allowance across metadata, Git discovery,
authentication and fetch, and charges the real turn counter. It counts TLS
framing and both directions. Before forwarding each chunk it rechecks live
Expand Down
14 changes: 14 additions & 0 deletions docs/integration-contract/package-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@ before the proxy exists, so expired GitHub source is withheld without network
until an explicit turn request validates it. Other legacy repository transports
remain unqualified for repository trust.

The same internal access service provides owner-only repository metadata
lookup without a Git revision, acquisition, agent turn or Git channel. It
reuses the anonymous-first and live private-grant/API-recipient checks above;
owner namespace lookup remains anonymous-only. Both operations snapshot the
principal, target, cancellation and operation-authority callback before waits,
recheck them after waits including shutdown, and return fresh fixed-endpoint
identity data. Repository lookup also retains a synchronous `assertAuthority()`
callback over that exact lookup's selected grant/credential and operation; it
allows the publisher to recheck after later waits without selecting replacement
authority. This callback is not metadata refresh or approval evidence. They return no credential, relay capability, approved-owner
boundary or source-trust flag. The Settings publisher still supplies its
independent password-mode human authority and must revalidate identity before
publishing. A lookup at review time is not permanent identity approval.

Migration 089 records a retained source acquisition's host-issued identity,
brain/principal/turn, stable repository and owner identities, resolved ref,
commit/tree, sealed native root ID/UUID/creation generation, selected grant and
Expand Down
Loading
Loading