Commit Graph
265 Commits
Author SHA1 Message Date
aiongg 62019e9b1a Recognise the GitHub App's bot as ours on repos that write as the app 2026-11-05 20:03:34 +00:00
aiongg 9f274f0391 Add a CLI answer for decisions on test repos, answered under an operator login given on the command line 2026-11-05 19:37:14 +00:00
aiongg c5fcc9f0f8 Merge repo-switch-speed 2026-11-05 18:33:34 +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 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 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 e6e38b2563 GitHub App: user-token vault (CAS refresh, shared refresh pair, removal revokes) and identity map on grants and audit rows 2026-11-05 16:21:13 +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 9d97020534 Security landing: veil the trace header for viewers; test that viewers get no model text about a quiet PR 2026-11-05 15:54:02 +00:00
aiongg fefca4928f Security landing: quiet until published, viewer veil on model text, single draft advisory, Land reset from awaiting-admin, warm build scope, block-comment tracking 2026-11-05 15:52:30 +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 f22740fc6c Security landing: quiet PR out of the security filter; file names only checked for added files and left out of PR text 2026-11-05 15:47:15 +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 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 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 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 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 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 44ca5d41ae Edit the earlier conflict note instead of posting a new one when it is the newest comment 2026-11-05 06:55:50 +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 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
aiongg df72750451 Merge branch 'preapproval-server' into prepare-round 2026-11-05 02:13:24 +00:00
aiongg 043380b726 Operator fix-up edits any unprotected file and comments its changes; own CI fix and conflict pushes continue a pre-approval; cancel removes a queued PR from its batch 2026-11-05 02:11:49 +00:00
aiongg 4e55d785ca Merge branch 'prepare-server' into prepare-round; prepare uses applicableSteps from cards.ts 2026-11-05 02:01:02 +00:00
aiongg b2e0f43be6 Prepare review fixes: keep prepared summaries, one turn per item, stricter pick parsing, failure counting, scope filters 2026-11-05 01:59:54 +00:00
aiongg 0363b300ad Conversation steps: review fixes (Act usage, frame safety, label swap, owner prefix, order rules, issue action name) 2026-11-05 01:51:26 +00:00
aiongg 7f6b79b041 Pipeline steps and pre-approved merge: operator fix-ups, preapprovals state machine, merge hand-over, cancel route 2026-11-05 01:49:04 +00:00
aiongg 85845e0f17 Prepare step: one judgement-model call per open decision writes summary, pick and drafted answers
Replaces decide.recommend with decide.prepare for every open decision of an item, any kind. The call reads what stopped the pipeline, the item and the PR diff, and stores an Opus turn with proposed cards plus the decision's pick, reason and summary. A PR is prepared again when its head changes. Adds Decision.preparing, the judgement-model endpoints, the Needs-you feedback count for replies to AutoCraft's own comments, and docs.
2026-11-05 01:48:14 +00:00
aiongg fc31128041 Conversation cards: validate and run unlabel, reopen, open_issue, transfer, assign, request_reviewers, review and fixup steps 2026-11-05 01:44:51 +00:00
aiongg 9c2676cf37 Contract for the prepare round: step kinds, card drafts, pre-approved merge state, judgement model setting, shared resolution format 2026-11-05 01:37:16 +00:00