Commit Graph
89 Commits
Author SHA1 Message Date
aiongg 9532f539b1 Ask comments that never reached GitHub are asked again after a backoff
A write that fails before any request goes out (the GitHub App's installation token could not be minted) returns sent: false. The fix-up, conflict and CI fix steps record such a comment as comment-unsent instead of the final comment-failed; the planner asks again 10 minutes after the first and an hour after the second, and a third unsent comment is final. Existing comment-failed rows with an installation-token reason become comment-unsent.
2026-11-16 15:01:05 +00:00
aiongg ee966e7afa Code-carrying model replies reach their parsers with only the known credential shapes hidden; stored copies and every posted GitHub text get the whole scrub 2026-11-14 23:52:35 +00:00
aiongg 5a3b165c1d Merge branch 'sec3-runner'
# Conflicts:
#	docs/operations.md
2026-11-14 23:27:17 +00:00
aiongg de0547d883 Whitelist tiers, overrides and the pipeline's own tier belong to accounts and heads; removing an operator ends what acts as them
- History counts per GitHub account: a PR row with an id counts for that id, an id-less row for the
  account the login is bound to, and for nobody while the login is unbound. The sync no longer binds a
  login that has id-less merged or closed PRs; the backfill binds it from the history's own author.
  A failed binding pass shows as the author-ids health warning.
- An allow override stores the account it was given to (looked up when set) and counts only for it;
  a deny holds for any account under the login, in any letter case. The outside-author limits read
  the same per-account standing.
- The pipeline's own Fix, main CI fix and security fix PRs keep their own tier only while the head is
  a commit the pipeline pushed to its own branch (own_commits), or reached from one only through its
  own later pushes; otherwise a person is asked.
- Removing or demoting an operator revokes their org setup links, and a link works only while its
  creator is an operator. Removal drops Discord links and codes in any letter case.
- Decision alerts to maintainers need a repo permission read within a day.
- A cached author permission is not used for another account under the login, nor once its refresh
  has failed too often or for too long.
- Pushes to new branches and new PRs need the grant of a step that opens the pipeline's own PRs;
  security fix writes carry their own grant kind.
2026-11-14 23:24:55 +00:00
aiongg f5bdb64c5e Runner hardening: per-repository installation tokens, a github.com-only credential helper, an allow-listed jev environment, pinned git attribute source and explicit repositories, absolute deny rules, a wider output scrub, and a deploy of the pushed commit
- Installation tokens for a write are minted for the write's repository (a transfer's also for its target); reads across repos and pushes to a contributor's fork keep the installation-wide token. Reading the app's keys checks the secrets file's mode like every other reader.
- The app's git credential helper is set for https://github.com only, after every configured helper is dropped.
- jev children get only the search path, home, locale, temp, cache, TLS and proxy variables and Jev's own.
- Git on the cached clones names the repository with GIT_DIR, runs with safe.bareRepository=explicit and reads attributes from the empty tree.
- The sandbox denies /proc and the credential directory in the absolute (//path) form as well.
- The scrub hides hex keys that are not digests, URL user:password, three-part dotted tokens and credentials inside hex or base64.
- The dashboard unit sees the settings file, releases, the bare repo and .local read-only.
- post-receive resolves the pushed commit once and the hook deploys that commit; the image build runs pnpm installs without install scripts.
2026-11-14 23:23:21 +00:00
aiongg a9c8f10cd5 Merge sec2-base-binding 2026-11-11 13:00:25 +00:00
aiongg 555110bfe4 Reviews and merges are bound to the head and base they read: diffs are fetched by commit and keyed on the fetched head, each review records its base branch, merges and batch members must match it, conflict merges take only the default or reviewed base, same-repo pushes need an author with write access, and adopted PRs must be the pipeline's own against the expected base 2026-11-11 13:00:05 +00:00
aiongg b9f48030b0 Checks must belong to the PR head commit, CI and build files need a person's look, the merge-time discussion read covers 100 entries, carries bind to the compared head, and a CI rerun first checks the run's commit 2026-11-11 12:51:51 +00:00
aiongg 9aa57afb56 Review links use the tracked repo's owner, worker auth limiter counts only failed requests, fix paths are normalised, identity switch is one transaction, lockfile resolutions equal one side exactly, SSE and webhook limits raised, health probe starts a background coverage refresh 2026-11-10 15:23:57 +00:00
aiongg a1be494889 Merge hard-lead-a 2026-11-10 15:14:37 +00:00
aiongg 283f61a64e Access entries bind the GitHub id when added, the identity switch revokes stored user tokens, worker plain http is limited to private hosts, and legacy-sealed values are re-sealed at startup 2026-11-10 15:13:33 +00:00
aiongg 3ca31e014c Merge hard-parse 2026-11-10 15:12:23 +00:00
aiongg 9f62d28191 Harden patch mode parsing, checkout paths and listing, reference names, worker update spec, mirror nulls, title length, file sizes, push target, stored resolutions and review fix paths 2026-11-10 15:11:21 +00:00
aiongg a9dfea2531 Claude calls get an exact environment and scrubbed output; preapproval, revocation and lease claims are re-checked atomically; held outside items are skipped when proposals apply; the public health probe reads cached state only 2026-11-10 15:10:49 +00:00
aiongg 26c4573dcd Reporter writes take their identity from the writer's login, like the other user-lane writes 2026-11-09 13:20:49 +00:00
aiongg dd74d1f577 Discord filing review fixes: link text when the URL is too long for a button, new-issue slot taken at the choice to file, no text in the audit, audited writes through write.ts, slot reserved before the junk check, old token revoked at re-sign-in 2026-11-09 13:17:01 +00:00
aiongg 8c44df135c File Discord-drafted issues under the person's GitHub account: reporter sign-in routes, token store, junk check, limits, unlink 2026-11-09 13:08:52 +00:00
aiongg 882a024dae Resolve the pipeline account as the box account only: one cached lookup for claims, unassign and the stored login, never a bot login 2026-11-08 22:59:16 +00:00
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