Repository navigation
Make the account-claim queue readable, findable, and visible to the ops bot - #272
Merged
Merged
Conversation
…s bot see the queue A staff-review claim request sat a month because the queue page named neither side plainly, nothing linked to it, and nothing could alert anyone. The staff queue response now carries the claimed member's facts and the requester's current account; a screen spec says each card states which GitHub user would sign in as which member and what approve does; the account menu links the queue with a pending count; and an agent with the new account-claims:read scope reads a reduced list (no evidence, no address) to alert staff. The deny note was specced as emailed but never was, and a pre-onboarding request holds no address to send to: the spec now says so and the email is listed as deferred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AGENT_SCOPES gains account-claims:read, which lets an agent read the pending account-claim requests without their evidence. It has no companion scopes. agent-grants/v3 is generated and vendored into the API mirror (with gitsheets contracts adopt; provenance lands when the data repo adopts from the published URL), and the sheet declares v3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t-claims The staff queue now says which member a request would act on, as it stands now (name, created, imported, existing GitHub link, project count, agent), and for a merge which account would be merged away. Both feeds share one resolver, the same one approve's refusal follows. The agent feed lists open requests for a grant with account-claims:read, built field by field: request id, type, submitted time, the typed username (withheld when it is not username-shaped, so a typed address stays private), whether it resolves and to which slug, and the requester's GitHub login. No evidence, note, address or person id. The tests also pin where a staff note goes: an approve note lands in the public commit's Reason trailer, a deny note never reaches the log. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the contract lockstep The queue card shows what approve does only when approve is possible. The plan's awaits and risks now say what the data repo must do and when: the API opens agent-grants in declared mode, so v3 is adopted on empty, fixture and legacy-import with this PR and on published at release time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…menu with a count Each queue card now reads as a sentence: GitHub user @login (linked to GitHub) wants to sign in as Full Name (slug) (linked to the member page), or, for a merge, which account would be merged away. Under it, the member's facts (member since, imported or not, projects, GitHub link), one warning when approve is not possible (no member has the username, already linked, an agent account), and one line on what approve does. The staff note field says where the note goes: into the public commit on approve, kept privately and not emailed on deny. The account menu's staff tools gain "Account claims" beside the members roster, with the pending count, and the menu button carries the count while any request waits. Members who are not staff never fetch the queue; the queue page sends them to the 404 page like the roster does. The mint form offers account-claims:read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…repo Matches codeforphilly-data pull request 32 (empty). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The data repo prunes it when it adopts v3 (codeforphilly-data pull requests 32 to 34), and the sheet-config check compares this folder with the empty branch. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
account-claims:read, and a new endpoint,GET /api/agent/account-claims. It lists pending requests with only what an alert needs. It never includes the evidence, any email address, or anything from a private profile.Why
A spec correction
specs/api/account-claim.mdsaid a denial reason is emailed to the requester. No code does that, and a pre-onboarding request stores no address to send to. The spec now says what deny does, and the denial email is listed inspecs/deferred.md.Before merge
agent-grants/v3onempty,fixtureandlegacy-import, and declares it on the agent-grants sheet. This PR then mirrors the newsources.tomlentry.publishedright before deploying. The site will not boot against a branch that still declares v2.How to test
npm run -w packages/shared check-contracts,npm run type-check,npm run lintandnpm test. Locally: API 856 tests, web 227, shared 120, all passing.check:sheet-configswas not run locally; it needs the data repo./staff/account-claim. Check that each card names the GitHub user and the member, with links.account-claims:read, callGET /api/agent/account-claims. Check that no evidence and no email appear.Not in this PR
specs/deferred.md.🤖 Generated with Claude Code