Commit Graph
52 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 b4bd9dedd0 Bot user id lookup with the installation token 2026-11-05 18:51:50 +00:00
aiongg a54c860fd0 Commits on app-lane repos are authored and committed by the app's bot user 2026-11-05 18:51:18 +00:00
aiongg a1aca1885e Merge app-lanes-fix-b 2026-11-05 17:07:38 +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 24aefd3c4d Fix user-lane review findings: waiting decisions are no work, structured auth classification, allowlisted child env, per-repo card lanes, vault not memoized when unavailable 2026-11-05 17:05:12 +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 4ee5d381ea Merge branch 'app-identity' 2026-11-05 16:21:33 +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 2860653be8 GitHub App: installation token minter and git/gh identity env 2026-11-05 16:17:15 +00:00
aiongg ce22d0604a Merge branch 'security-fix-land'
# Conflicts:
#	src/github/write.ts
2026-11-05 15:57:00 +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 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 3c372b2b39 GitHub App groundwork: app secrets, manifest registration page, app sign-in with user_tokens 2026-11-05 15:10:58 +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
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 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 08a152322e Conversation cards: per-action button labels and a close card (completed or not planned) that settles the item's open decisions 2026-11-05 00:39:08 +00:00
aiongg 120b06dd9e Fix issue: delete the claim comment when an attempt ends without a PR 2026-11-04 16:36:36 +00:00
aiongg 3a46d15288 Push outcomes: a new branch's baseline is the CI of its base commit 2026-11-04 13:50:59 +00:00
aiongg fff39561d8 Assign when a stage starts work, release in the planner
Stages call claimForWork when their work on an item really starts (fix issues after triage, fix-up, conflict merge and CI fix before their model call or push, single merge before safe-merge, batch when members are put in). The planner only decides unassign: kept while the item is on the path to merge, released otherwise, including members of a batch that failed to open its PR. The step is renamed unassign; one item failing no longer fails the repo's job; a partial index serves the audit lookups.
2026-11-04 13:39:00 +00:00
aiongg b6891d4cf9 One assignment rule in the planner: assign while AutoCraft works an item, unassign when it waits on a person or a stage gave up
The planner emits assign and unassign actions from the item's assignees and the audit; one assign step carries them out with a live re-read of the assignees. The per-stage claim and release calls in fix-up, fix issues, merge and batch are removed.
2026-11-04 13:27:17 +00:00
aiongg b69e9fe290 Record the required-check outcome of every push of ours and trip a stage after repeated breakage
push_outcomes records the required-check result before and after each fix-up, conflict, CI fix and fix-issue push.
A push that turned the checks red makes the CI fix work on the pushed head first. A push stage pauses itself when
2 of its last 10 pushes broke a check; the merge path pauses when main CI turns red because of a merge of ours or a
post-merge review finds a defect. An operator resumes a stage with autocraft pipeline resume or the Pipeline page.
2026-11-04 12:44:29 +00:00
aiongg 6da40dba4e Lint model patches before the push: store the fix-up and CI-fix patch, queue the lint task, collect it through a lint Plan action (fold format, retry with findings, requeue once) 2026-11-04 12:30:27 +00:00
aiongg e2ddcd6ed3 Tighten six guard, usage, runner and dupe-group edge cases
Item and repo writes no longer accept a PR grant; a push refuses an ask or rerun grant. Claude steps write a usage row only when a call answered. The runner checks the group and claims the job in one transaction. A duplicate close computes a missing text hash and skips when the text changed. A batch PR with no members is not in scope. safe-merge refuses an empty --head.
2026-11-04 11:56:47 +00:00
aiongg bb89d46a16 Review fixes: integration PR scope and batch-tip head, batch guard checks verification, typed guard grants, fix-up source in the guard, merge command always gets --head 2026-11-04 07:50:54 +00:00
aiongg 3cea41a476 Guard item and repo writes: item gates, guardItem and guardRepo, every write takes a grant 2026-11-04 06:34:59 +00:00
aiongg df653e52be Guard PR writes: gates and guard, Guarded argument on merge, push, review, ask comment and CI run writes, merge pinned to the reviewed head 2026-11-04 06:25:21 +00:00
aiongg e7e9f0e94a Handle a red default branch: main-fix step, Fix red main repo approval, Haiku failure classifier, rerun and infra decision 2026-11-04 03:49:06 +00:00
aiongg d9e4611ae2 AI note: leave out the model name when none is recorded 2026-11-04 03:30:14 +00:00
aiongg 3a40fa36a1 Start every GitHub post with an AI note line added by the write wrapper 2026-11-04 03:29:35 +00:00
aiongg 6fecced1dc Merge main into ci-fix 2026-11-03 23:45:33 +00:00
aiongg 920b1592aa CI fix: read a failing gate check and fix it (formatter run, once-per-head rerun, checked model patch)
A wanted PR whose gate check fails at its reviewed head is triaged from the failed step logs.
Format-only failures are fixed from a build task's formatter diff without a model, infra failures
get one rerun per head, code failures get a Sonnet patch checked by Opus. Pushes follow the
fix-up path; closed branches get the patch as a comment where comments are approved. At most two
tries per head, recorded in ci_fixes and read by the merge queue's push chain.
2026-11-03 23:43:45 +00:00
aiongg 16da4f2701 Harden post-merge review: record filing before the create call, never re-file for a PR with a follow-up, scope diffs to the PR, dedupe, clean public text 2026-11-03 23:29:52 +00:00
aiongg 2645b8aa14 Post-merge review stage: review merged PRs, file defects as follow-up issues 2026-11-03 23:14:52 +00:00
aiongg 0193717c89 Merge branch 'fixup-push-conflicts' 2026-11-03 18:30:00 +00:00
aiongg 90a612f857 Claim: owner as a GraphQL variable 2026-11-03 18:28:12 +00:00
aiongg 70096d2caf Fix-up review fixes: no repeated ask, long-lived branches never pushed, conflict resolutions keep text outside conflicts, claim and release gates, shared daily counter, audit actions 2026-11-03 18:22:16 +00:00
aiongg ab34bf02b5 Fix-up and Fix: assign when work starts, release when giving up; claim comment on issues 2026-11-03 18:08:51 +00:00
aiongg 2474c8ba88 Approve waiting CI runs of reviewed outside PRs
The checks job records Actions runs held for approval at reviewed heads; the queue shows them as ci-approval. A new ci-approve step approves them for repos an operator allowed, with a daily limit of 30 PRs.
2026-11-03 18:01:37 +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 3a590404c9 Fix-up: repost an ask comment by editing the one we posted (craft-auto fixup repost) 2026-11-03 14:11:25 +00:00
aiongg 114e0f8c84 GitHub activity review fixes: allow-list visibility, owner in CLI merge rows, landed-after-error merges, scope gate for labelling steps, live UPDATE topic, wider write scan 2026-11-03 13:32:22 +00:00
aiongg bf2e999458 Record each GitHub write before the call and finish the row after; unknown outcome for rows left started 2026-11-03 13:23:56 +00:00