Commit Graph
71 Commits
Author SHA1 Message Date
aiongg 833394875a Reads as the app: box-account writes and the pipeline account lookup keep the inherited environment, only gh and network git reads get a token, owner detection and per-installation rate figures, setting-read failures and mint failures handled, image proxy honours its token file 2026-11-08 21:46:15 +00:00
aiongg aafb298923 GitHub reads use the app's installation token under the app identity: one read environment for the mirror client, gh and git children, the image proxy and repository checks 2026-11-08 21:38:13 +00:00
aiongg c6bbb2d7b5 Only merges and closes that carry out a person's answer run as that person; every other write is the app's (actsAsPerson) 2026-11-08 21:28:21 +00:00
aiongg bda27cc948 GitHub identity review fixes: no OAuth fallback in app mode, sign-in bound to the identity it started under, coverage checks (switch, track, health) with transient errors apart, minter caches keyed by app, confirm step on the switch 2026-11-08 21:04:06 +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 1a3d7fdf63 Queue card presses at the daily GitHub write limit under one shared count, with a settling lock, dispute and access re-check; order Act by priority and stop repeat failures; rank model calls and prepares by repo then level with aging 2026-11-08 05:20:00 +00:00
aiongg 3bf2a0050f One answer per question: decision lock while a card settles, refused writing cards on answered decisions, Dispute with Keep or Undo, undo ends after a GitHub write, sweep of answers that can no longer apply 2026-11-08 04:48:15 +00:00
aiongg 33244fca28 Forced re-reads upsert comments in place; only completed check suites queue a re-read 2026-11-07 05:08:01 +00:00
aiongg cc02c10ba5 Webhook drain: async gh client, drop failing requests, shared rate-limit state, completed check events only, forced re-read, item_reads side table 2026-11-07 05:05:40 +00:00
aiongg 28ad0df76c GitHub App webhooks queue changed items for a prompt re-read, with the poll as backup; the item page shows when AutoCraft last read the item from GitHub 2026-11-07 04:59:18 +00:00
aiongg 5bda74195b Join GitHub writes to items: audit rows carry the job id, comments keep their URL, PR commits keep their headline, and a read module lists an item's writes 2026-11-07 04:20:51 +00:00
aiongg 1e9e254239 Write pacing: legacy is one key, owner from ':' targets, labels paced below the budget, cleanup on a paced batch 2026-11-06 23:50:24 +00:00
aiongg 39e6ce6723 Pace GitHub writes per identity and repo owner, with a pause after secondary-limit failures 2026-11-06 23:45:12 +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 e097c97ef5 Security advisories: set the affected version range on the draft and before publishing 2026-11-06 02:01:35 +00:00
aiongg d8fc1f3743 Issues closed by the Act step get GitHub's close reason: DUPLICATE with the kept issue for duplicates, NOT_PLANNED for out-of-scope; a rejected DUPLICATE is retried as NOT_PLANNED 2026-11-05 23:57:26 +00:00
aiongg 1c3feece5f A claim comment posted by the app's bot is ours to delete 2026-11-05 22:36:03 +00:00
aiongg 524bb0b18b Review edits follow the posting identity; every known app slug stays ours and counts as a mention; review footer above the recommendation 2026-11-05 22:04:01 +00:00
aiongg 6791faad96 Compare own logins as stored, without case folding 2026-11-05 20:04:50 +00:00
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