Commit Graph
32 Commits
Author SHA1 Message Date
aiongg 659756434f Merge main into pipe-decide; use the shared settled rule, allow 5 options, gate bugfix decisions 2026-11-02 19:13:46 +00:00
aiongg 004ca26739 Merge branch 'dash-items'
# Conflicts:
#	src/dash/api/index.ts
#	web/src/registry/index.ts
#	web/src/shell/AppShell.tsx
2026-11-02 19:11:19 +00:00
aiongg 23f61be157 Decide stage: scope decisions with AI summaries for items that need a maintainer's call
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.
2026-11-02 19:10:57 +00:00
aiongg 57ad57a618 Merge branch 'dash-fixes' 2026-11-02 19:06:46 +00:00
aiongg 5b899eaab1 Merge branch 'pipe-labels' 2026-11-02 19:04:33 +00:00
aiongg e144daf4dd Label stage: labels ensure/plan/apply, per-repo operator approval on the Repos page 2026-11-02 19:03:52 +00:00
aiongg cb52cfb037 Settled type labels, full-text index, items API, cached progress since tracking began 2026-11-02 19:03:43 +00:00
aiongg 25c6956660 Shell: operators-only notice, role chip on all widths, styled server pages
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.
2026-11-02 19:03:20 +00:00
aiongg 4b77999b42 Prompts page: one registry for every model prompt, shown as sent
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.
2026-11-02 19:02:44 +00:00
aiongg 79fe373bcd Classifiers and Cost: unknown runs, phone layout, distinct items, unpriced models
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.
2026-11-02 19:01:52 +00:00
aiongg 49d719f3fa Item page: real file count, discussion, timeline and readable verdicts
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.
2026-11-02 19:00:28 +00:00
aiongg dae8777c88 Merge main into dash-admin; remove the server-rendered pages, dash export and v1 route handling 2026-11-02 18:31:51 +00:00
aiongg 6c7183f79e Contributors, Repos and Access as React views over JSON endpoints; drop their v1 pages 2026-11-02 18:24:10 +00:00
aiongg f53d62aec2 Merge branch 'dash-images'
# Conflicts:
#	docs/dashboard-spec.md
2026-11-02 18:21:05 +00:00
aiongg f92b902516 Merge branch 'dash-insight' 2026-11-02 18:20:41 +00:00
aiongg aa7972e9c8 Dashboard: Classifiers and Run and cost as React pages with JSON endpoints
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.
2026-11-02 18:20:18 +00:00
aiongg 49bd00544d Image proxy: GET /img serves GitHub-hosted images from bodies and comments; the Markdown renderer shows them inline 2026-11-02 18:20:13 +00:00
aiongg d8410cb8ea Classify rules: a feature we have that differs from the reference application is a bugfix 2026-11-02 18:14:30 +00:00
aiongg 29de659517 Decisions: CLI output marks non-actionable answers and drops answer notes; re-check the answer before storing an opinion; cap minAge 2026-11-02 18:12:50 +00:00
aiongg b7b2aaaab6 Serve the React frontend over the JSON API; operator, maintainer and viewer roles
- 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.
2026-11-02 18:11:09 +00:00
aiongg 4b77070c2b Merge the dashboard JSON API; tests use the home directory for scratch DBs 2026-11-02 18:00:07 +00:00
aiongg f20627cc96 Dashboard JSON API: decisions, opinions, comments, claims, items, search, progress
- /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.
2026-11-02 17:58:49 +00:00
aiongg 088a27d77c Add classify, classify-sample, classify-referee and classify-compare for the Jev/Haiku pilot 2026-11-02 17:53:22 +00:00
aiongg 723afe411c Sync: a tracked repo counts as synced once a per-repo pass finished, even when empty 2026-11-02 17:26:47 +00:00
aiongg 351ddf719d Sync: default incremental mode is one org-wide search; per-repo passes as fallback
Adds settings.org_high_water, a 15-minute repo-list refresh, a sync lock file
and --per-repo.
2026-11-02 15:35:09 +00:00
aiongg 0fa5f9bab0 Admin-managed tracked repos: sync, dashboard scope, /repos page, repos CLI 2026-11-02 15:01:43 +00:00
aiongg 5464cedafd Merge dashboard pages; wire dash export 2026-11-02 14:54:32 +00:00
aiongg b23e53951f Dashboard pages, decision and whitelist commands, scale fixture
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.
2026-11-02 14:53:29 +00:00
aiongg 99ef5599a2 Dashboard server: GitHub sign-in, sessions, CSRF, rate limits, access list
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.
2026-11-02 14:48:24 +00:00
aiongg 7abc920859 Dashboard contract: route types, audit helper, decision and account tables 2026-11-02 14:39:17 +00:00
aiongg 92915e46a8 Add GitHub mirror: sync and sync-status commands 2026-11-02 14:36:17 +00:00
aiongg e57f3b75d0 Switch to TypeScript on Node 24 with node:sqlite 2026-11-02 14:36:17 +00:00