Commit Graph
526 Commits
Author SHA1 Message Date
David Mann ff4feeca4d Tooltips open at once and take rich content; item icons say what they mean on hover
The app's Tooltip replaces the browser title: no delay, an optional bold title over any content, TipLines for a few lines of detail, and it stays on screen at the edges.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:00:58 +01:00
David MannandClaude Opus 5.5 d656f897b3 Merge queue moves up to second in the navigation, right after Home
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:03:02 +01:00
David MannandClaude Opus 5.5 cf70a87298 Home opens the picked project's home, and stays lit on any project home
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:45:09 +01:00
David MannandClaude Opus 5.5 96bba677ac Next steps uses the wide page like the other merge queue tabs, so switching tabs no longer jumps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:09:47 +01:00
aiongg 147d1131cd Queue items: several PRs or issues at once, and each queue row says how it came in (#8) 2026-11-16 15:06:07 +00:00
aiongg d41ba7f799 The Merge queue table fits beside an open rail: a compact layout below 1800px puts the closed issues under the id and the checks two to a line; the Queue items dialog's button says Queue items 2026-11-16 15:05:52 +00:00
aiongg 1e1d1c1a0e Merge the contributor's Queue items follow-ups (#8)
The weighted fast track and add-to-queue change itself keeps main's form. On top of it:

- Queue items: a button on the Merge queue tab opens a dialog that takes PRs and issues, one per line, with a weight, and answers each line; refused lines stay in the box.
- An issue line fast-tracks the issue. When exactly one open PR closes it, that PR is queued too; when several do, the answer lists them and none is queued.
- Every fast-track mark Queue items makes keeps a heavier weight already there.
- Each merge queue row says how the PR came in, by whom (staff only) and when, in an Added column.
2026-11-16 15:02:01 +00:00
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 8f01aca0d4 Review fixes: Add to merge queue keeps the review holds and a heavier weight, the Now feed restarts per project, a stale pick clears, and closing references of other repos are left out 2026-11-16 14:45:23 +00:00
aiongg 8954ebe36e List pages show their own repo filter only under All projects; with a project picked, the picker is the repo control 2026-11-16 14:41:41 +00:00
aiongg dbd2bd2cdf The project page's merge queue says when PRs are queued but none is lined up next 2026-11-16 14:35:56 +00:00
aiongg 4acb89e221 Projects home, project pages and a project picker for list pages (#7) 2026-11-16 14:35:37 +00:00
aiongg 1df8671345 The project picker narrows list pages only; pages reached by their own link show every repo
- The server applies x-autocraft-scope only on routes marked scoped (decisions inbox and needs, items, merge queue and next
  steps, activity, Now and the project home), and never on writes. Item, decision, batch, job, agent, finding, search,
  settings, /api/repos, /api/me and /api/progress show every repo the user may see.
- A list page's project is its URL's repo (or /projects/<repo>), else the pick; requests carry it and cache keys include it.
  A list page with a pick and no repo in its URL puts the pick there; a link with ?repo=X leaves the pick alone.
- /api/decisions/open-counts gives the user's inbox count per repo; the picker and the tiles show it.
- / opens the picked project only on first load; the logo and the Projects link show the tiles; a tile picks its project.
- The phone picker sits in the navigation drawer.
2026-11-16 14:35:09 +00:00
aiongg 95f379cbcf Mock fast-track weights: two seeded items carry weights 8 and 3 2026-11-16 14:26:03 +00:00
aiongg 4a9345e4b1 Merge "Operators add PRs to the merge queue, and fast track gets a weight"
On the merge queue board: the Add to merge queue box (PR and weight) sits
in the Merge queue tab's toolbar beside the repo picker, the fast-track
mark shows the weight, and operators change the weight from the row's
overflow menu.
2026-11-16 14:22:40 +00:00
aiongg c3608d7447 Merge branch 'pr7' into projects 2026-11-16 14:21:00 +00:00
David MannandClaude Opus 5.5 6ae399fcb1 Queue items takes issues too, in a larger dialog
An issue line fast-tracks the issue with the weight, so Fix works it first, and queues each open PR that closes it (GitHub's closing references), saying which were queued or that none closes it yet. The dialog is wider (up to 760px) with room for twelve lines and says what queuing a PR and an issue does; Dialog gains size="lg" for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:49:45 +01:00
David MannandClaude Opus 5.5 bace5394d0 Queue items adds several PRs at once, and each queue row says who added it and how
The add box at the top of the Merge queue becomes a Queue items button. It opens a dialog that takes PRs one per line (a GitHub URL, repo#n or owner/repo#n) and a weight, adds each in turn and answers per line; refused lines stay in the box to fix.

Merge queue rows carry how the PR came in, from data the database already keeps: Queued (an operator's Queue items, from its pre-approval row), Pre-approved (a pre-approval with a fix-up), Merge answer (decisions.answered_by, or a Merge answer carried to a new head), or Take review. The login shows to staff only. The table's Added column shows it with the time, in place of Updated, and the weight moves into the row's last cell beside its menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:42:23 +01:00
David MannandClaude Opus 5.5 8ce68bac6b Operators add PRs to the merge queue, and fast track gets a weight
Fast-tracked items have a weight from 1 to 10 (default 5): heavier items
go first in every stage that orders by the work rank, and equal weights
keep the order added. The weight is a new fast_track column; the scores
(fastScoreSql, workScores) put it above the order added, so every planner
and the merge order follow it without other changes. The CLI takes
`fasttrack add <item> --weight N` and `fasttrack weight <item> N`, and
POST /api/fast-track/weight sets it (audited as fasttrack-weight).

"Add to merge queue" (POST /api/queue/add {item, weight}, operators)
starts a pre-approved merge at the PR's current head with no fix-up, a
row in `review` as a carried Merge answer uses, so the PR merges only
after a sure take review there, a clean pre-merge review and green CI; a
take-fix review, a defect or a red head asks the Merge? question. It also
fast-tracks the PR with the weight.

The Merge queue tab's add box now adds to the merge queue with a weight,
the fast-track marker shows the weight, and operators change it on the
board's cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:40:34 +01:00
David MannandClaude Opus 5.5 0bfbece1c0 Workable's wide columns show from 1800px
A merge queue row needs about 1450px with every column; from xl (1280px) the wide columns pushed the table into sideways scrolling on most laptop screens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:40:31 +01:00
David MannandClaude Opus 5.5 63448fb2b0 The merge queue drops the Fast track box at the top
The box did not say what it was for. Fast track stays in each row's menu and on the item and decision pages; adding PRs to the queue comes with the Queue items button (the weights PR).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:37:05 +01:00
David MannandClaude Opus 5.5 915d4c8415 Workable rows lead with the PR id and the issues it closes, both opening GitHub
The first columns of a Workable table are now ID and, where a page asks for it, Closes: the PR's number and the issues it closes when it merges (GitHub's closing references, from the mirror), each a link to GitHub, with the repo under the id. The title opens the item page. The GitHub button, the merge-position number and the row that opened under a PR are gone: our build joins the Checks as a fifth icon, the Verify and build failures show on hover, and an open decision links from the line under the title.

Merge queue rows carry closes, read once per page from the items_closing index; the mock gives some PRs one or two closed issues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:26:48 +01:00
David MannandClaude Opus 5.5 865f2ae730 Merge queue steps run in the order a PR passes them
Verify, CI, pre-merge review, Ready, then In a batch, with Stopped last; the share bar and its legend follow the same order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:20:35 +01:00
David MannandClaude Opus 5.5 7506804021 Recently merged is a button beside Merge queue, listing what AutoCraft merged as Workable rows
The "Merged by AutoCraft" link at the top of the Merge queue page led to Items without saying so. A Recently merged button next to Merge queue and Steps now shows the last 50 PRs AutoCraft merged, newest first, in the same Workable table: how it merged (by rule, on approval, in a batch), the author and when, with a link to the full list in Items. The repo filter carries across the buttons. The Merged lately group leaves the queue table, which now holds only PRs still on their way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:19:49 +01:00
David MannandClaude Opus 5.5 c800b6f641 Workable columns stay readable on narrower screens
The item column keeps at least 280px and the table scrolls sideways below its full width, instead of the item column collapsing to nothing. Columns marked wide (Author and Updated in the merge queue) show on xl screens and on phones only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:17:02 +01:00
David MannandClaude Opus 5.5 d2202a5c7f Workable rows keep the lead in a fixed slot so titles line up
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:13:42 +01:00
David MannandClaude Opus 5.5 b686dd841f The merge queue is one table of Workable rows, grouped by the step each PR waits on
The Merge queue tab showed the same PRs five ways: board cards, the stopped list, Next merges, the batch table and the Not in a batch table. A new Workable table (web/src/ui/organisms/Workable.tsx) is now the one way to show a PR or an issue in a list: the item with its merge position, fast-track mark and why it waits in the first column, the page's columns after it, and the review, decision, Verify summary and our build in a detail that opens under the row. On a phone the cells wrap under the item.

The merge queue uses it for everything: groups by step, nearest to merging first (Ready, each integration batch with its facts and Stop batch, Pre-merge review, CI, Verify), then Stopped and Merged lately. Columns are Step, Checks (review, CI, Verify and mergeability as one run of icons), Size, Author, Updated and the row menu. The legend under the share bar jumps to a group. The old Merge tab tables and cards are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:12:28 +01:00
David MannandClaude Opus 5.5 3e9ed9a66c Operators add PRs to the merge queue, and fast track gets a weight
Fast-tracked items have a weight from 1 to 10 (default 5): heavier items
go first in every stage that orders by the work rank, and equal weights
keep the order added. The weight is a new fast_track column; the scores
(fastScoreSql, workScores) put it above the order added, so every planner
and the merge order follow it without other changes. The CLI takes
`fasttrack add <item> --weight N` and `fasttrack weight <item> N`, and
POST /api/fast-track/weight sets it (audited as fasttrack-weight).

"Add to merge queue" (POST /api/queue/add {item, weight}, operators)
starts a pre-approved merge at the PR's current head with no fix-up, a
row in `review` as a carried Merge answer uses, so the PR merges only
after a sure take review there, a clean pre-merge review and green CI; a
take-fix review, a defect or a red head asks the Merge? question. It also
fast-tracks the PR with the weight.

The Merge queue tab's add box now adds to the merge queue with a weight,
the fast-track marker shows the weight, and operators change it on the
board's cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:46:51 +01:00
David MannandClaude Opus 5.5 37a10f7f27 A project page opens with what is happening now and what merges next
The top of a project page has two sections. Live is the newest work of
the project from the Now feed (jobs with their model calls and build
tasks, merges, writes, decisions, failures), with running entries marked;
it updates with the feed's live events. Merge queue lists the PRs that
merge next in the project, in merge order, with what each waits on, and
links to the whole queue filtered to the repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:42:07 +01:00
David MannandClaude Opus 5.5 fad65b574b The Queue page is the Merge queue, and opens on the board
The nav entry "Queue" is now "Merge queue", and /next opens the Merge
queue tab first; Steps moves to /next/steps (links that meant Steps follow
it). The board is no longer a page of its own: it sits at the top of the
Merge queue tab, with the existing tables below it under Details, and the
tab's repo picker filters both. The page is wider on that tab so the six
lanes fit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:40:28 +01:00
David MannandClaude Opus 5.5 f26753b806 A project picker narrows the whole app to one repo
The top of the navigation has a project picker (All projects, or one repo).
The web app sends the pick with every request as `x-autocraft-scope`, and
the server applies it in visibleRepos and hiddenRepos, so every list that
already respects repo visibility is narrowed to that repo without changing
its query. A scope only ever hides more: one the user cannot see is
ignored. The picker's own repo list, write rights, repo owners and direct
links (needVisible) ignore the scope, so an item of another repo still
opens.

Opening /projects/<repo> picks that project, /projects/all clears it, and
with a project picked `/` goes to that project's page. Changing the pick
refetches every view. The mockup narrows its lists the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:36:40 +01:00
David MannandClaude Opus 5.5 428dc545c7 Home starts with a tile per project, and each project gets its own home
The start page (/) is now Projects: one tile per tracked repo with open
items, open decisions, PRs merged by AutoCraft and the open-items trend,
plus an "All projects" tile. A tile opens /projects/<repo>, the former
home view scoped to that repo; /projects/all is the former home view over
every repo. Links from a project page (needs, items, phases) carry the
repo as their filter.

GET /api/home takes ?repo=NAME. It scopes every part of the payload by
hiding every other repo, so the existing queries stay as they are; a repo
the requester cannot see answers 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:15:24 +01:00
David MannandClaude Opus 5.5 5f80a3c25e Merge queue board shows each approved PR by the step it waits on
A new Merge queue page (/merge, nav entry, `g m`) lays out every PR with a
take or take-fix review in lanes: Verify, CI, Pre-merge review, Ready, In a
batch and Merged. A bar on top shows the share of the queue at each step,
PRs in "Next merges" carry their merge position, and PRs that are stopped
(failed checks, conflicts, decisions, holds) are listed below the lanes.
A repo picker filters the board (?repo=). The data is the existing queue
page API; nothing changes on the server. The table view stays at
/next/merge, linked as Details.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:10:26 +01:00
aiongg fe383861e9 The Contributors table fits a 1280 px window: the closed-unmerged header wraps and the repos and override columns are narrower 2026-11-14 23:49:15 +00:00
aiongg 70d7ac2d4c Alerts read a stale maintainer permission again, a superseded account-id error is dropped, and Contributors shows the tier the merge rule uses
- The alert pass reads a maintainer's repo permission from GitHub (the normal read path) when the
  cached one is over a day old, at most once a day per login and repo. A failed read keeps the
  older row; only an answer without write access ends the alerts. Turning alerts on takes a
  write permission of any age.
- The author-ids health check ignores an error older than the last successful pass, and the
  connection drops such an error.
- Contributors (page and CLI) shows the counts, override and tier of the account the login is
  bound to; an allow that does not count for it shows as not in effect.
2026-11-14 23:47:38 +00:00
aiongg cb7b665b85 Merge branch 'sec3-model-text'
# Conflicts:
#	docs/pipeline.md
#	src/outside.ts
2026-11-14 23:32:43 +00:00
aiongg dd7604637d Merge branch 'sec3-review-base' 2026-11-14 23:27:23 +00:00
aiongg 6bca12f063 A security finding's build tasks go only to environments an operator marked confidential, which take no PR code
build_envs.confidential is set on the Build environments page or with envs add/set --confidential, never by the worker. claim() hands fix-check and scan-test tasks only to confidential environments and gives those no PR build, integration batch or PR/issue task; a signing worker skips integration batches too. While no enabled environment is confidential the tasks stay queued with the reason "Waiting for a confidential build environment.", the security fix's check tool answers at once, and the 4-hour round and scan-test limit starts only once a confidential environment can take the tasks.
2026-11-14 23:26:35 +00:00
aiongg bc54276a93 The answer form shows a drafted issue's body and target repository and names another repository in the confirmation; a conversation card press carries the digest of the card it was made on 2026-11-14 23:25:55 +00:00
aiongg 60b2eb7fae Review-derived records bind the base branch the diff was read against
A review whose diff was read against another base than the PR has now is stale,
and its re-review waits and counts like one after a push. A re-review against a
new base withdraws the head's Merge decision and deletes its pre-merge review;
pre-merge rows and the sensitive-content memo are kept per base. Delta and
carried reviews only stand on an earlier review of the same base and record
that base. A batch takes a PR only when its review read the default branch,
checked again for each member before landing.

A plain Merge answer carried across a clean base merge ends when the review
there asks for fixes. Duplicate decisions bind each PR member to the head its
comparison read, and Act checks the kept PR's head too. A maintainer's
discussion entries are kept first in the review prompt's budget; one that does
not fit makes a take unsure.
2026-11-14 23:24:37 +00:00
aiongg 83b1b26cda Merge sec2-worker 2026-11-11 12:54:44 +00:00
aiongg ba81858456 Worker trust: fetch step ignores repo toolchain and cargo config, PR builds carry a base commit, signing workers take no PR-code tasks, fix-issue reads manifests for build scripts, i18n commit comes from the base, tarball and cache hardening 2026-11-11 12:53:42 +00:00
aiongg 9b2a38b48b Formatter steps run without the target and cache mounts 2026-11-11 12:53:40 +00:00
aiongg 91f74f914d Hide repo-scoped data from viewers in workspace, insight, pipeline and audit views; harden response headers, URL checks, dist reads and artifact names; record every run item 2026-11-10 15:11:30 +00:00
aiongg eda6af9fbb Screenshots review fixes: own task step, no stage rows but hold, chars validator, switch-off stops tasks, image checks, retry once 2026-11-09 15:02:27 +00:00
aiongg a260906762 Merge shots-compare: before/after comparison, hold on a clear regression, item page card (switch off)
# Conflicts:
#	src/dash/api/item-page.ts
#	src/prompts/index.ts
#	src/stages/registry.ts
#	web/src/api/mock/redesignData.ts
#	web/src/api/types.ts
2026-11-09 14:52:07 +00:00
aiongg b1e0523aea Screenshots: collect and compare runs, hold on a clear regression, item page card 2026-11-09 14:51:07 +00:00
aiongg ea89112296 Nightly page: no requirement lines under the inputs 2026-11-09 14:46:23 +00:00
aiongg f2dea278d6 Merge nightly-ui: nightly toolchain images, API and Reports page
# Conflicts:
#	src/live.ts
#	src/runner/autopilot.ts
#	web/src/api/topics.ts
2026-11-09 14:46:14 +00:00
aiongg 55e26a4cb5 Merge scan-tests: run the proposed test of security deep-scan findings (switch off)
# Conflicts:
#	src/prompts/index.ts
2026-11-09 14:45:54 +00:00