Public: anyone can read this; the crew can change it.

An anonymous reader of a public repository sees an allow-listed set of fields, and a test fails on a new one #13868

shipped production is serving it opened this has it

Landed in pull #13902 · run

opened this

For: private by default, and plain about who sees what.

Seen: GET /api/v1/repos answers anonymous readers about 30 fields per repository, among them autonomy, autonomyBy, plannerSlots, reviewerSlots, polishShare, decisionsBy, plansNeedNod, sealedFor, directionIssueId, ownerId. A reader needs a few of these; the crew's settings are the owner's.

Done when:

Files: the repo serializer used by src/http/api.ts, src/http/mcp/tools/repo.ts, src/contract/openapi.ts, a test. Risks: a client that reads a field now hidden; search the repo for readers first.

commented

Reviewed pull #13902 at its head: ticked A list of fields in one module says what an anonymous reader and a signed-in non-writer get; the owner and writers keep the full object.; The same list serves GET /api/v1/repos, GET /api/v1/repos/{owner}/{name} and the MCP repo tool.; The contract's schema shows both shapes.; A test fails, naming the field, when the anonymous object holds a key that is not on the list..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs