Repository navigation
Conversation
Spec .internal/specs/2026-10-20-SPEC-agent-draft.md slice P3 (needs cms#686 and the setup-code PR deployed). - affitor agent setup --client <name> --code <aff_sc_…>: redeems the dashboard's single-use code with no session and installs that one agent's private credential; a failed local write names the key to revoke. - affitor draft show / draft set: read the open draft, then replace it with its draft_id + revision (or open one); prints where an owner applies it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Member
Author
|
Closed without merge: founder decision 21/10 to skip the agent-draft feature for now (CMS #686/#694 closed too). Branch kept so this can be reopened. |
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
Slice P3 of
.internal/specs/2026-10-20-SPEC-agent-draft.md(spec Codex r4 ĐẠT). Works once the CMS slices are deployed (cms#686 drafts, then the setup-code PR on top of it).affitor agent setup --client <name> --code <aff_sc_…>: redeems the dashboard's single-use setup code (POST /api/v1/agent-setup-codes/redeem, no session) and installs that one agent's private credential, same file and launcher as today. Exactly one client per code. Never retried; a failed local write names the key id to revoke;code_used/code_expired/code_cancelled/issuer_changedanswer in plain words.affitor draft show/affitor draft set --name … --website … --tagline … --description … --type --rate --months(or--file): uses the saved agent key;setreads the open draft and replaces it with itsdraft_id+revision(or opens one), then prints the dashboard link where an owner or admin applies it.Tests
tests/agent-draft.test.ts(12): redeem without session, typed refusals, malformed code / foreign origin refused before any request, one-client install,draft setbindsdraft_id+revision, server field reasons, flag shaping, and an end-to-end run of the built CLI (agent setup --codethendraft set, no secret printed).🤖 Generated with Claude Code