~bigbes/sr-ht-spec · parade

main · last commit 18 hours ago · 8tmadfpi

← Back to the parade

spec-rsb CLI: specsrht token create|list|revoke Rolling

status: in_progress P2 feature @Eugene Blikh
bd close spec-rsb bd update spec-rsb --status=open
Created byEugene Blikh
Ownerbigbes@gmail.com
Created2026-08-05T03:14:01Z
Started2026-08-05T03:14:05Z
Updated2026-08-05T03:14:05Z
Description
db.Store has the whole agent-token lifecycle (CreateAgentToken, ListAgentTokens, RevokeAgentToken, GenerateToken/HashToken) but nothing calls it: no CLI subcommand and no web page. A freshly deployed instance therefore has no way to issue the credential the agent write plane (REST PUT and mcpsrv spec_propose) requires, short of hand-writing an INSERT with a sha256 hash. Add a 'token' admin subcommand next to 'space', in the same shape: load config, open the pool, run, exit.
Acceptance criteria
specsrht token create <name> mints a token, stores only its hash, and prints the plaintext once; specsrht token list shows id/name/created/revoked; specsrht token revoke <id> stamps it revoked; usage errors are one clear line; unit tests cover argument parsing and row formatting

Depends on

No outgoing dependencies.

Depended on by

Nothing depends on this issue.

No comments.

  • Eugene Blikh created the issue · 2026-08-05T06:14:00Z
  • Eugene Blikh claimed · 2026-08-05T06:14:05Z
Stored rows — what this pane was built from, as read
issues 1 row
id spec-rsb
content_hash 96e8e61df2c62e5f21e9cb272da07c2d3a972f3600d57b6e05dee32e72ea7da5
title CLI: specsrht token create|list|revoke
description db.Store has the whole agent-token lifecycle (CreateAgentToken, ListAgentTokens, RevokeAgentToken, GenerateToken/HashToken) but nothing calls it: no CLI subcommand and no web page. A freshly deployed instance therefore has no way to issue the credential the agent write plane (REST PUT and mcpsrv spec_propose) requires, short of hand-writing an INSERT with a sha256 hash. Add a 'token' admin subcommand next to 'space', in the same shape: load config, open the pool, run, exit.
design
acceptance_criteria specsrht token create <name> mints a token, stores only its hash, and prints the plaintext once; specsrht token list shows id/name/created/revoked; specsrht token revoke <id> stamps it revoked; usage errors are one clear line; unit tests cover argument parsing and row formatting
notes
status in_progress
priority 2
issue_type feature
assignee Eugene Blikh
estimated_minutes NULL
created_at 2026-08-05T03:14:01Z
created_by Eugene Blikh
owner bigbes@gmail.com
updated_at 2026-08-05T03:14:05Z
closed_at NULL
closed_by_session
external_ref NULL
spec_id
compaction_level 0
compacted_at NULL
compacted_at_commit NULL
original_size NULL
sender
ephemeral 0
wisp_type
pinned 0
is_template 0
mol_type
work_type
source_system
metadata �{}
source_repo
close_reason
event_kind
actor
target
payload
await_type
await_id
timeout_ns 0
waiters
hook_bead
role_bead
agent_state
last_activity NULL
role_type
rig
due_at NULL
defer_until NULL
no_history 0
started_at 2026-08-05T03:14:05Z
is_blocked 0
events 2 rows
id 019fcfe9-e73a-7edc-8c59-98f8b2382d45
issue_id spec-rsb
event_type created
actor Eugene Blikh
old_value
new_value
comment NULL
created_at 2026-08-05T06:14:00Z
id 019fcfe9-f99d-71f4-9311-f54c432ab69c
issue_id spec-rsb
event_type claimed
actor Eugene Blikh
old_value {"id":"spec-rsb","title":"CLI: specsrht token create|list|revoke","description":"db.Store has the whole agent-token lifecycle (CreateAgentToken, ListAgentTokens, RevokeAgentToken, GenerateToken/HashToken) but nothing calls it: no CLI subcommand and no web page. A freshly deployed instance therefore has no way to issue the credential the agent write plane (REST PUT and mcpsrv spec_propose) requires, short of hand-writing an INSERT with a sha256 hash. Add a 'token' admin subcommand next to 'space', in the same shape: load config, open the pool, run, exit.","acceptance_criteria":"specsrht token create \u003cname\u003e mints a token, stores only its hash, and prints the plaintext once; specsrht token list shows id/name/created/revoked; specsrht token revoke \u003cid\u003e stamps it revoked; usage errors are one clear line; unit tests cover argument parsing and row formatting","status":"open","priority":2,"issue_type":"feature","owner":"bigbes@gmail.com","created_at":"2026-08-05T03:14:01Z","created_by":"Eugene Blikh","updated_at":"2026-08-05T03:14:01Z"}
new_value {"assignee":"Eugene Blikh","status":"in_progress"}
comment NULL
created_at 2026-08-05T06:14:05Z