Commit Graph
377 Commits
Author SHA1 Message Date
aiongg 62b5c5c432 Name each regression test after its item; report git apply error lines 2026-11-05 22:40:31 +00:00
aiongg d951efd5e7 Fold the question into its answer when a resolution card has run, before the refetch lands 2026-11-05 19:19:55 +00:00
aiongg cbb16f46ce Fold a decision into its answer the moment the answer is accepted, before the refetch lands 2026-11-05 18:58:10 +00:00
aiongg 02469b5d16 Needs you: an answered decision stays on screen, on the phone and the desktop 2026-11-05 18:49:11 +00:00
aiongg c5fcc9f0f8 Merge repo-switch-speed 2026-11-05 18:33:34 +00:00
aiongg ac629ffedb Repo switches: keep a newer press's state while an older answer lands, queue All with the single switches, assert the one-repo answer 2026-11-05 18:33:24 +00:00
aiongg 218cd1e967 Merge gate-hold-reason 2026-11-05 18:33:14 +00:00
aiongg bb9e8c1439 Gate hold: more lanes, per-request lookup, viewer filtering, live topics, updated gate texts in tests 2026-11-05 18:33:04 +00:00
aiongg 19bc44c35c Merge health-checks 2026-11-05 18:30:40 +00:00
aiongg 3da6af5b8a Repo approval switches: endpoints answer with the changed repo; switches flip at once and roll back on error 2026-11-05 18:28:07 +00:00
aiongg b344e0af61 Stop jobs that show no progress for longer than their longest single call plus 10 min 2026-11-05 18:27:32 +00:00
aiongg 41f2b9809e Show why an answered decision is held by a write gate 2026-11-05 18:26:38 +00:00
aiongg 78470474d8 Stuck jobs review fixes: code-derived deadlines, graceful deadline stop, drain only from on, check history, drain blocks manual jobs, cheaper warning query
- Deadline is the larger of the registry floor and the bound from the code (model calls, check time, lint rounds, items); a stopped step waits at least 1 hour.
- At the deadline the job is told to finish its current item; its process is stopped 10 minutes later.
- pipeline drain is refused from Off; pipeline on --if-draining ends only a drain.
- Check limit history: same shape, exit 0, run time from worker claim; queue wait keeps the total cap.
- Draining starts no job, manual ones included. deadlineStops reads a bounded window; index for the median query; ack refuses unknown steps; no Draining subtitle.
2026-11-05 18:26:26 +00:00
aiongg 8834d94af0 Add health checks (warnings menu, /healthz/checks) and isolate sync failures per repo 2026-11-05 18:24:44 +00:00
aiongg 33fdd13c66 Handle long and stuck jobs: per-check limit from history, drain state, per-step job deadlines
- The check tool stops one check after 5x the repo's median recent duration of that command (5 to 15 min, 15 min without history) and logs what it was doing and the worker's last output; cargo check and test output now also streams to the task log.
- autocraft pipeline drain: no new jobs, running jobs keep their writes; the dashboard shows Draining.
- Every registry step has maxMin; the runner stops a job past it and fails it with 'stopped: ran past N min'; the header warns until acknowledged or a later run succeeds.
2026-11-05 18:13:44 +00:00
aiongg 28f75e91c7 Phone decision inbox: list first, decision on its own screen with a back control 2026-11-05 17:54:58 +00:00
aiongg 1aaf5ee7b6 Decision inbox: leave a selection the new filter excludes 2026-11-05 17:50:24 +00:00
aiongg 13f2a47447 Name the answering operator on a waiting-token line seen by someone else 2026-11-05 17:07:56 +00:00
aiongg 397226cb01 App lanes: revoke one session's token only, queue revocations until GitHub confirms, audit advisory writes as legacy, authorize only for the answering operator, fixed exec reasons for viewers, revoke the token of a refused authorize 2026-11-05 17:07:14 +00:00
aiongg dc57337320 Merge app-user-lane 2026-11-05 16:55:25 +00:00
aiongg ea512be5d2 Show the authorize action to any operator on a waiting-token decision 2026-11-05 16:53:33 +00:00
aiongg 010fa29e51 GitHub App user lane: answered actions run as the answering operator with their user token, waiting states on decisions, Retry and an 'act as you' authorization 2026-11-05 16:50:52 +00:00
aiongg 4c93632939 App lane: installation-token writes for repos on the app identity, base-repo branches instead of forks, and a per-repo identity setting (UI and CLI) 2026-11-05 16:47:45 +00:00
aiongg ce22d0604a Merge branch 'security-fix-land'
# Conflicts:
#	src/github/write.ts
2026-11-05 15:57:00 +00:00
aiongg d4016b1fe8 Merge branch 'github-app-setup'
# Conflicts:
#	src/dash/api/admin.ts
#	src/dash/server/index.ts
#	src/schema.sql
#	web/src/api/client.ts
#	web/src/api/mock/adminMock.ts
#	web/src/api/types.ts
#	web/src/registry/index.ts
2026-11-05 15:56:50 +00:00
aiongg c6cb199514 GitHub App page: Remove clears the registered app's keys so another app can be registered 2026-11-05 15:47:40 +00:00
aiongg 6b5202758b Security fix and landing: address review findings (own-PR handling, wording guard before push, build scope, viewer hiding, advisory resume, exits from awaiting-admin) 2026-11-05 15:46:01 +00:00
aiongg 46ff06bd74 Org setup link review fixes: role-call fallbacks, owner check results, OAuth client for the flow, installation verification, token revocation, flow keys 2026-11-05 15:45:10 +00:00
aiongg 80340e3f91 Merge main into security-fix-land 2026-11-05 15:38:44 +00:00
aiongg ae47254c3b Inbox MCP review fixes: viewer gating, answering off by default, limits, via agent marks
- viewers get fix-up, verification and review states without job errors or model text (MCP list_fixups and item page)
- while answering is unavailable: no answering tokens, no answer tools or instructions, switch hidden
- MCP limits keyed by login; per-address limit counts failed authentication only
- feedback limiter passed explicitly in AppOptions
- decision_opinions and decision_comments store via; item thread and Opus includes mark posts via agent
- docs and tests updated
2026-11-05 15:30:44 +00:00
aiongg 311eee2982 GitHub App org setup link: one-time links for an org owner (create, list, revoke), standalone setup page, app-manager grant through write.ts 2026-11-05 15:28:43 +00:00
aiongg 611c87d432 Security deep scan: private fixes, quiet-PR landing, advisory route and publish
The fix step writes a patch on the scan's pinned commit, builds and tests it in the worker container, has Opus review it and keeps it as a local commit that is never pushed. Land opens a plain pull request through write.ts; urgent findings can take the advisory route with a private fork. Merges are found by polling. Publish releases the advisory with an optional CVE request.
2026-11-05 15:27:43 +00:00
aiongg cd9966c1ab GitHub App review fixes: probe the secrets file before converting, keep user_tokens current on refresh, POST registration bound to the session, app owner, safer secrets write, docs 2026-11-05 15:22:48 +00:00
aiongg fa38eee588 Connect page: token list as rows on phones 2026-11-05 15:20:19 +00:00
aiongg 818f610625 Merge main into github-app-setup 2026-11-05 15:19:51 +00:00
aiongg f86baa9dc8 Inbox MCP: refuse answering until user tokens exist, end tokens with sessions and demotion, share limits, frame results, clean up Connect page
- answer_decision and undo_answer refuse in one place (answering.enabled)
- session revoke and demotion from operator delete tokens; Access page lists and revokes any login's tokens
- userForLogin honours the session age cap through a shared helper
- MCP feedback shares the dashboard's limiter; list_repos and list_fixups get a per-token budget
- mcp-token-create and mcp-token-revoke are audited actions, operator-only
- option labels and writes in feedback and answer replies are inside the untrusted frame
- Connect page uses Switch, Badge and EmptyState and drops explanatory text
2026-11-05 15:19:08 +00:00
aiongg 1088ee860f Merge origin/inbox-mcp into main 2026-11-05 15:16:14 +00:00
aiongg 3c372b2b39 GitHub App groundwork: app secrets, manifest registration page, app sign-in with user_tokens 2026-11-05 15:10:58 +00:00
aiongg 47a0dfa79a Merge branch 'security-scan-web' 2026-11-05 15:09:37 +00:00
aiongg bcb50e1a09 Security scan review fixes: count failed-call cost and record usage, sink-based dedupe with links, per-repo pseudo repo hiding, failed scans fail their job
Merges main (repo owners). Failed calls count against the spend cap, scan spend goes to token_usage and the job's usage, repeats link to the earlier finding, maintainers lose access to scan jobs, runs and audit rows of repos they cannot see, orphaned scans are closed, backslashes are normalised before the path check, verify scores are floored.
2026-11-05 15:08:30 +00:00
aiongg 6a8de56864 Owners other than storytold are tracked by name only: verified on tracking, synced per repo, owner-checked on reads 2026-11-05 15:02:28 +00:00
aiongg c0f4db6c5a Merge security-scan-server and adapt the security UI to its API 2026-11-05 14:59:06 +00:00
aiongg 872ffdc991 Security deep scan, server side: tables, three prompts, scan job with spend cap, operator and maintainer API
The scan runs as the operator-started job security-scan. Findings are visible to operators and maintainers only; the scan's jobs and agent runs are recorded under a pseudo repo that viewers never see. Dismiss, backlog and reopen work; fix, land, advisory and publish answer 501.
2026-11-05 14:57:09 +00:00
aiongg fdf1330e52 Owner tests and mocks: neutral owner name 2026-11-05 14:55:35 +00:00
aiongg 5c81199095 Make the GitHub owner a per-repo property so AutoCraft can track repos outside storytold 2026-11-05 14:55:06 +00:00
aiongg b925b17e18 Add security deep scan dashboard: repo scan controls, findings list and finding page 2026-11-05 14:53:28 +00:00
David MannandClaude Opus 5.5 e9910f2a64 Inbox MCP: operators can opt a token in to answering decisions (answer_decision, undo_answer; 7-day tokens, same checks as the dashboard)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 06:13:55 +01:00
David MannandClaude Opus 5.5 e90f7454f6 Connect agent: open it from the user menu instead of the rail
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 06:09:17 +01:00
David MannandClaude Opus 5.5 3ac2c83f1c Inbox MCP server: contributors' own agents list open decisions and held fix-ups and send feedback back (POST /mcp, personal agent tokens, Connect page)
Closes #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 05:54:01 +01:00
aiongg be464bc583 Long-lived Claude token per account: setup-token flow, token env for model calls, rejection mark, Accounts page 2026-11-05 03:40:31 +00:00