craft-auto decide (and runDecide for the runner) asks one scope decision per
open item whose settled classification says needs decision, or where Jev and
Haiku disagree between scope labels. Summaries come from the registered
decide.summary prompt (Sonnet), batched per repo; writes go through ask() with a
needs-decision stage row. Re-runs ask only what is missing.
Viewers opening an operator page read "Operators only."; the role chip shows
on phones and tablets; the server's own pages (signed out, errors, dev sign-in)
use the dashboard's colours and the theme chosen in the dashboard; the access
audit shows old "admin" roles as operator.
Classify (Jev, Haiku) and the Sonnet referee build their prompts and
command lines from src/prompts; askClaude and askJev take a registered
prompt id. GET /api/prompts returns the registry, the server's commit and
a rendered example on made-up items; the Prompts page shows them.
Classifiers says when ?run= names no run, scrolls a long By repo list and
stacks both answers under the title on phones. Cost counts distinct classified
items, lists items and price per model, says "price not reported" for models
without USD, and leaves out the spend chart below three buckets.
The item API returns changed_files, closed/merged times and the merger; the
page shows the file count, leaves out Checks and Mergeable when the mirror has
no data, lists GitHub comments and reviews, adds opened/merged/closed to the
timeline, and spells out topics and scored reasons.
Per run and classifier pair: agreement per label, repo and kind, confusion
table, confidence bands, flag agreement and a filterable disagreement list.
Cost: calls, items, tokens, USD and wall time per stage, model and repo, with
spend over time. The v1 server-rendered pages are removed.
- web/: an HTTP client for the Api interface (CSRF from the X-CSRF-Token
response header, errors carry the server's text, 401 goes to sign-in);
the mock API and its view-as menu only in VITE_MOCK=1 builds; the clock
is real time outside the mock; nav links to the server-rendered pages.
- Server: serves web/dist (CRAFT_AUTO_WEB_DIST) behind sign-in, hashed
assets cached a year, index.html uncached for every client route, a 503
page when the build is missing; a strict CSP for the app with the hash
of the Radix scroll-lock style.
- The v1 Decisions, Item and Progress pages are gone; Contributors,
Classifiers, Run and cost, Repos and Access stay at their paths.
- Access roles operator, maintainer and viewer; rows with role admin
become operator on connect.
- v1 form POSTs and sign-out refuse a foreign Origin or Sec-Fetch-Site.
- /api/ routes for every method of the web Api interface, with JSON bodies,
the CSRF token in X-CSRF-Token, Origin and Sec-Fetch-Site checks, and
errors as JSON.
- Only an operator with GitHub write on the decision's repos answers, undoes
or adopts, on the API and on the v1 pages; answer notes go to operators only.
- decision_opinions, decision_comments and decision_claims tables; summary
and adopted_opinion columns on decisions, added to older databases.
- craft-auto decisions list --actionable prints unapplied operator answers as
option keys only; opinions and comments never reach CLI output.
- Item type gains comments; DecisionFilter gains limit and offset.
Pages for decisions (cards, batches, answer and undo, the Answered tab),
progress, repo, item, contributors with whitelist overrides and rule,
classifier agreement, and run and cost, plus the static export. The
whitelist and decisions CLI commands, a fixture at the spec's scale, and
indexes for the dashboard queries.
HTTP server with pattern routing, form body parsing, security headers and
a per-request CSP nonce. GitHub OAuth App sign-in with state and PKCE,
expiring user tokens refreshed on demand and stored encrypted. Repo write
permission cached per user and repo. A fake provider for tests and local
development. Access page and craft-auto access / dash serve commands.