Commit Graph
36 Commits
Author SHA1 Message Date
aiongg 106679369f Merge kxb-u040 2026-11-21 22:22:32 +00:00
aiongg 5d0e07986c Convert src/access.ts and its tests' access, session, permission and link fixtures to the Kysely builder 2026-11-21 21:58:47 +00:00
aiongg 01c3604cdb Dashboard API index: items, stages, comments, reviews, fix-ups, actions and progress through the query builder; the tests of its tables use the builder in their fixtures 2026-11-21 21:54:14 +00:00
aiongg e8bffa8f39 Dashboard SQL on both dialects: decisions and needs builders take the handle, JSON idioms through portable helpers, index hints and NOCASE through helpers, RETURNING for new ids, test upserts 2026-11-21 18:53:18 +00:00
aiongg 20061c88d9 Apply async codemod: node scripts/codemod-async.ts over the program 2026-11-21 17:00:38 +00:00
aiongg 72b1a4edfa One instance-wide GitHub identity (box account or GitHub App) replaces the per-repo identity and the login-app variable; app keys are read again when the keys file changes 2026-11-08 20:56:53 +00:00
aiongg dbef88f7c4 Re-check maintainers' fix-ups, scope answers and card text where they act; record the answerer's role; memoize settle checks 2026-11-06 13:32:24 +00:00
aiongg 40606180a3 Check the app identity of every covered repo wherever the pipeline reads a maintainer's answer, and refuse their write on a legacy repo 2026-11-06 13:24:03 +00:00
aiongg 8933dd2383 Maintainers with write access settle decisions on app-identity repos when maintainer_writes is on 2026-11-06 13:22:59 +00:00
aiongg 54f45a9f6d Review fixes: snooze topic trigger, wider snooze wake, snooze cleared on answer, handled Undo by source, skipped close needs a note, stale snapshot at prompt time, replaced sibling cards 2026-11-05 01:24:55 +00:00
aiongg f5b451e762 Snooze, handled answers, card drafts (replaced, stale, option), skipped steps, per-option resolutions 2026-11-05 01:14:24 +00:00
aiongg 26d79ddc1a Show an item's open questions at the top of its page; filter decisions by item on the server 2026-11-04 19:40:37 +00:00
aiongg 79fda5a691 Items: Merged by AutoCraft state filter with merge-time sort and how-merged badge; link from the Merge queue tab 2026-11-04 17:33:44 +00:00
aiongg db99c99ad6 Replace owner directions with owner memory: statements from decision notes, comments and conversations, retrieved by similarity into the reviews, conflicts instead of directions 2026-11-04 13:00:27 +00:00
aiongg 7b35956578 Add the Directions section on the repo page, direction proposals from operators' notes, and directions in the item's review 2026-11-04 12:30:48 +00:00
aiongg df17c0b145 Tests: API shape, migration and parser boundary tests; fixtures and helpers the remaining tests do not use are gone 2026-11-04 07:43:21 +00:00
aiongg f01276ba5e Tests: delete the old suite except format and security boundary tests, trimmed 2026-11-04 07:36:22 +00:00
aiongg 306df63bb7 Dashboard: pre-merge review on the item page, waiting-premerge queue state, readable pre-merge facts 2026-11-04 05:13:09 +00:00
aiongg fa06bbcbf4 Feedback: retract only while open, keep the earlier note on a text-less pick, oldest first, Opus tab default 2026-11-03 18:56:09 +00:00
aiongg 10944c0290 One Feedback box: an optional option pick and free text replace the separate opinion and comment forms 2026-11-03 18:56:09 +00:00
aiongg 64a990e392 Make viewers read-only: refuse opinion, retract, comment and claim, and hide those controls 2026-11-03 17:03:48 +00:00
aiongg 4dd4d93800 Rename remaining craft-auto names to autocraft (command, env vars, paths, key label) 2026-11-03 16:48:10 +00:00
aiongg e32c735da0 Readable decision links carry the kind: /decisions/<repo>/<n>/<kind> 2026-11-03 15:02:23 +00:00
aiongg c32bfd138e Readable decision and item URLs: /decisions/<repo>/<n>, /items/<repo>/<n>; old ids keep working 2026-11-03 15:00:55 +00:00
aiongg 8aae8d2f80 Duplicate groups: release stale or failing members, hash check on adopt 2026-11-03 06:23:27 +00:00
aiongg 213cf83102 Duplicate groups: per-option stored texts with hash check, Act safeguards, carry-over fixes, cleanReason 2026-11-03 06:21:02 +00:00
aiongg d4f2a6b9f6 Tests keep their databases and checkouts in one scratch directory per process and remove it on exit 2026-11-03 05:02:28 +00:00
aiongg d9d4fd0078 Dashboard: merge queue verify states and column, flow and pipeline mocks, repo card layout, item API test 2026-11-02 23:31:52 +00:00
aiongg 5c2ebf320b Merge main into sec-auth; images and contributors follow repo visibility; spec security section 2026-11-02 20:48:27 +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 cb52cfb037 Settled type labels, full-text index, items API, cached progress since tracking began 2026-11-02 19:03:43 +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 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 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 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