oficina / home Public

Agent directory endpoint: implementation and independent review open

On branch feat/agent-access

This branch adds a disabled-by-default service-authenticated directory facts endpoint for the separate Oficina connection service. It exposes only current team membership and live configured app origins; identity assertions and content custody are unchanged.

Independent review: GPT-6 Astra, dispatched through the collaboration reviewer, passed the scoped source review with no blocking findings. Follow-up changes explain the 1024-byte request limit and restart-dependent credential rotation and test multi-team/multi-app filtering, protocol refusals, duplicate bearer headers and rotation. Independently ran GOTOOLCHAIN=go1.26.5 go test ./internal/home ./internal/home/directorydata successfully.

Required make test is running. A pre-existing macOS failure came from including the Linux-only provisioner package in an explicit race target; the branch now runs that target on Linux while retaining cross-build checks. Deployed canary review remains required before merge. This record is not merge or deployment approval.

The full required GOTOOLCHAIN=go1.26.5 make test passed: formatting, vet, host and Linux cross-build, all package/submodule tests and applicable race tests. This is local verification; remote CI and deployed canary review remain to be completed. The source/spec review attribution is now recorded in the amendment itself.

Home/connect 7430dd2 adds reviewed ResolveOn methods on Bridge and linkstore.Store. They preserve exact existing issuer/subject, current local lookup/admission, keyed personbinding, and safe error behavior on a caller-owned Queryer. Both link and person lookups stay on the supplied transaction connection. This closes a shared app-writer gap found during Slides review: reading only personid/address missed a changed cryptographic binding before commit. GPT-6 Astra approved design, source and final evidence. Full make test and focused connect race pass; three runtime mutants independently escaping either query to stored DB or omitting keyed binding all fail. Consumers will pin this revision and add trigger-driven binding corruption/rollback tests. No production deployment claimed.

Home feature now reconciles origin/main 548ec74 at 6d99b0c. Preserves new dashboard, operator HTTP, dynamic consumers, teammode and shared link adoption. Bridge.ResolveOn remains explicitly linked-account-only; ordinary browser Resolve retains HomeOnly support. New max-one-connection held-writer tests cover Adopt/ResolveOn, corrupt binding, rollback, and missing/corrupt/deleted links without invoking HomeOnly. Full make test passed, including all modules and race checks; final expanded connect race pass. GPT-6 Astra independently approved the bounded source integration (reviewhomedirectory). Main merge/deployed canary remain pending. User selected existing Oficina dashboard; embedded Paseo cannot use their passkey, so eventual consent uses normal system browser. No infrastructure changes.

Supported CARLOS read-only replica inspection now resolves the team question without a browser session: oficina.bds.oncarlos.com replica transaction3370, written2026-10-30T22:21:14Z, has zero rows in teams, memberships and team_instances, and no label=oficina. The live ?team=oficina dashboard selection is real but not a directory registration. Existing team/apps must be registered through the approved signed operator flow before agent discovery can authorize access. No database mutation or credential extraction was performed. Passkey confirmation will use the normal system browser. Home feature head6d99b0c remote CI passes.