mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 11:48:24 +01:00
feat/parallel-implement
17
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
14967a376d |
fix(feedback): a run that streamed and then went quiet is on an offline machine too (#789)
#769 removed "Open Terminal" from runs whose builder is offline, on the grounds that it points the operator at a PTY on a switched-off laptop. It guarded on `!lastProgressAt`, so it only ever reached runs that never streamed a byte. A run that DID stream and then went silent kept the old sentence — and the machine is just as off. The row read: Needs you · Open Terminal — or Retry Worked 32 min, silent 15 min Every word true except the instruction, which is the only part that asks the operator to do something. Freshness has already expired by the time this branch is reached, so the silence is not the agent thinking; when `builderOffline` is also true, the machine carrying it is gone. Now it names that, and asks for the thing that would actually help: Needs you · Open Fleet Runner on This computer — or use cloud builder, then Retry Worked 32 min, then the This computer (Fleet Runner) builder went offline — silent 15 min. The diagnostic is observation only. Whether the work survived on that machine is not something this can see, so it does not say — it reports what the run achieved before the builder vanished and how long ago. The ask is identical for both offline readings (only the history differs), so it now lives once in `builderOfflineAsk` rather than being typed twice and drifting. An online builder is untouched: the existing "Open Terminal — or Retry" reading still fires, and its test still asserts `watchable: true`. Tests: two cases, local and cloud, proved by mutation — disabling the new branch fails with "must not send the operator to a terminal on an offline machine: Open Terminal — or Retry". tsc clean, lint 0 errors, test:unit 204/204. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
98e775a8f1 |
fix(feedback): a pull request the run never opened is not proof the fix shipped (#784)
The feedback ledger resolves its pull request from PROSE the agent wrote, so a
handoff that merely mentions a number ("same approach as PR #42") hands the
ledger someone else's work. If that pull request happens to be merged and
deployed, the row rendered "Live · confirm".
That is the worst sentence this surface can produce. The queue exists to answer
one question — is anything waiting on me — and a false Live is not a cosmetic
error, it removes the row from that answer. A report nobody has acted on stops
asking.
Loki already knew better. `prOpenedByRun` has guarded the MERGE since the
retry case that first exposed this, holding at NOT_OURS on exactly this
evidence. But `deriveShippingFromPr` ran unconditionally a few lines earlier,
so the same pull request the machine refused to touch was still good enough to
tell the operator their report had shipped. Refusing to act on evidence while
publishing a conclusion from it was never coherent. One rule, both decisions.
`prPredatesRun` is deliberately not the negation of `prOpenedByRun`. Merging
asks "may I act?", where unknown means no; reporting asks "may I claim this
shipped?", where unknown means leave the ledger alone — demoting a real fix to
"nothing shipped" because GitHub omitted a created_at would break every honest
row to catch a dishonest one. Both return false on missing or unparseable
timestamps, so only a PROVEN ordering moves anything.
The discounted pull request stays on the ledger and the row names it. "No pull
request was found" would be false and would send the reader hunting a parser
bug instead of the number they can check in one click.
Pinned against the real timestamps from dogfood-site-sep10-1201 (2026-09-11),
where the wrongly-named PR #1 predates its run by six hours and the real PR #3
lands two minutes in. Also moved this suite's success log to the last line: it
sat two thirds up, so the new failure printed underneath "✓ passed".
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
||
|
|
c116518216 |
fix(feedback): tell the truth when the builder goes offline after delivery (#769)
A dispatch whose builder goes down mid-run read "Starting", then "Needs you · Open Terminal — or Restart Fleet Runner" — pointing the operator at a terminal on a machine that is switched off. Loki already knew better: the snapshot carries builderChannel and per-channel presence. Two things kept that knowledge off the row. The phase guard was `!run.deliveredAt && run.builderOffline`. The runner stamps executedAt on its inject-ack, seconds after the prompt lands, so a claimed command counts as delivered for nearly the whole run and the honest branch could only ever fire in the opening moments. Gate it on PROGRESS instead: no bytes have arrived and the builder is down NOW is the whole diagnosis, delivered or not. A run that is actually streaming keeps its own reading, so a lapsed heartbeat cannot mute a live agent. builderChannel came only from an OPEN pending_commands row, and that row closes on the same early ack. With the channel unknown the offline test fell through to "any builder will do", which reported a local run healthy because the cloud box was up — the channel-aware code added for exactly this case was unreachable in practice. Fall back to the project's stored routing decision (locus lock → builder_pref → cloud floor), the same answer the dispatcher itself used. The diagnostic now separates claimed-then-silent from never-claimed: if the prompt already reached that machine, the honest ask is to bring it back, not to re-dispatch blind. Pinned in scripts/test/feedback-work-phase.ts — nothing covered builderOffline before, which is how the guard drifted into dead code. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
e38cb83871 |
fix(feedback): one alive signal — Working only with post-prompt evidence (#753)
Align Feedback ↔ Terminal to RUN-STATUS-SSOT: Working only when inject is verified generating or a generating/progress hop lands after the prompt; inject-no-generate → Needs you with Open Terminal / switch provider / Restart Fleet Runner. Stamp injectVerified on runner ack; expand quota chooser to Claude Code, Codex, Cursor, Grok, Antigravity (no Hermes). Prefer cloud-first always-on box-runner; do not expand dual-channel status language. |
||
|
|
4f4b2924a0 | fix(feedback): stop calling completed agents working (#749) | ||
|
|
13243a6bf6 |
feat(feedback): Watch progress, honest offline Queued, widget Loki modes seam (#734)
Captain Feedback no longer parks Substrata (and peers) under “moving on its own” while the cloud builder is offline. Builder offline → Needs you with a dig-in reason + Telegram path; one auto-retry cold-start before escalate. Watch on the row shows a short run-ledger step (not a PTY wall), with dig-in event trail and Terminal (source=cloud) once a session exists. Widget panel is Loki-on-the-site: Report/Chat/Watch mode strip (widget/surface-modes.ts). Report ships; Chat/Watch are progressive seams via data-fc-modes. |
||
|
|
15fb484a50 |
fix(feedback): Implement gets a real builder, Working means a PTY, Telegram when Needs you (#705)
Phone evidence: Heidi sat Queued / fake Working / Stalled with cloud builder offline and no session on Cloud. Boss-mode: - Implement prefers the cloud box-runner, falls back to hosted Hermes when offline, and refuses with one next action instead of queueing into the void. - Working only when a runner heartbeat proves a real agent PTY; delivered with no output is Starting, then Not running — never fake Working. - Feedback/Control stay short (badge + next action; dig-in for why); Telegram pings when stalled or Check live waits (check-feedback-needs-you). |
||
|
|
f637036f17 |
feat(feedback): say WHY the agent is quiet, not just that it is (#679)
* feat(feedback): say WHY the agent is quiet, not just that it is George dispatched a fix at 15:45:29. The first output arrived at 15:58:43 — thirteen minutes later, and only because he opened a terminal by hand and found the agent sitting at a Claude sign-in. The row said "the agent never reported any output". True, useless, and the reason was ten seconds away. Silence has two meanings and the operator can only act on one. "Thinking" is nobody's problem; "waiting for a human" is theirs, right now. The runner could already tell them apart — detectAuthFailure reads the transcript for a 401 or a /login notice — but it only ever asked ONCE, inside an 8-second window at inject time. That run passed the check and then went quiet, and nothing looked again. The heartbeat is the thing that watches the terminal for the whole run, so it is where the question belongs. After 90 seconds of no output the runner asks, and the answer rides the next beat; the route stamps payload.blocked and emits one `blocked` event per stretch; the row reads "Needs you to sign in" with Watch opening the terminal where you answer it. 90 s is chosen so the reason is ready BEFORE the ten-minute mark forces the row to say something. One subtlety worth the test that pins it: a blocked agent prints nothing, so the "no output, no beat" rule would have suppressed exactly the beat carrying the reason. Silence WITH a reason is now the message — still one beat per window. detectAuthFailure moved to desktop/src/main/agent-auth.ts: the poller starts the heartbeat, so importing it back would have been a cycle. 163/163 unit files, lint, check:desktop, prettier green. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * chore(desktop): 0.8.23 — the runner says why a quiet agent is quiet Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
81d86a2869 |
feat(feedback): a fix ledger, and a page grouped by who is blocked (#639)
* feat(feedback): a fix ledger — where the change actually is, instead of a Check live that lies "Check live" appeared the moment a run closed with success, and it opened whatever URL the visitor had reported. Both halves were wrong. The agent's job ends at a pull request (SHIP_INSTRUCTION says so). At close the change is a PR nobody merged, on a site nobody redeployed — so "check live" showed the unchanged page. And the reported URL is where the visitor happened to be: a preview host, a stale domain, or in one of my own test rows a .example fixture that resolves to nothing. The fix ledger (src/lib/feedback/fix-shipping.ts) answers one question — where is this change on its way to the live product? It reads the PR the agent named in its handoff (or the reaper's evidence), asks GitHub with the user's own token, and caches the answer on the run (payload.fix), refreshing at most once a minute while the state can still change and never once it is terminal. States: nothing shipped · pushed, no PR · PR #N open · closed · merged · deploying · deploy failed · Live. The row now says which of those it is, shows the agent's own one-line account, and offers the button that matches: Review PR while it is open, Check live only once a deploy-like workflow succeeded on the merge commit, Retry when nothing shipped. Check live opens the PROJECT's live URL plus the reported path, never the visitor's host. Confirm resolves; the undo arrow reopens it as "not fixed". Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017FU2m6NxPYYFkEdyufcSrX * refactor(feedback): group by who is blocked, and open with the loop's numbers The page asks one question — is anything waiting on me? — and answered it with DB status, which cannot. `dispatched` covers an agent mid-run AND a fix that merged and deployed an hour ago, so the row that needed a person sat under "In progress" next to the one that didn't, and "Stalled" (a person's problem, Retry) was filed as progress. work.waitingOn is now the SSOT: you / machine / nobody, derived in ONE place from the phase and the fix ledger, so a new phase cannot land in the wrong column. Sections become Needs you / Under way ("moving on its own — nothing to do") / Shipped, and the poll runs while anything is machine-side, which now includes a PR waiting to auto-merge. The page also opened with a blank column above three rows. It is the ironing-out loop, so it now leads with the loop: reports, shipped, median report→fix — the metrics the inbox route already computed and only ever showed as a footnote on one section heading. Fifth caller of StatRow/StatCard; no new CSS. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017FU2m6NxPYYFkEdyufcSrX --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
b7b26df120 |
feat(feedback): the row shows the work happening — runner heartbeat, Working · N min, Watch into the terminal (#632)
* feat(feedback): the row shows the work happening — runner heartbeat, Working · N min, Watch into the terminal Between 'submitted' and 'closed' a run wrote nothing anywhere, so Feedback read a busy agent as Queued and, from minute ten, as Not running. The box runner owns the agent's PTY and sees every byte; it now beats PATCH /api/control/runs/:id/progress (at most every 45 s, only when the PTY printed) and the cloud stamps payload.lastProgressAt + a 'progress' event. deriveFeedbackWork reads the heartbeat: fresh = 'Working · 47 min' for as long as the run takes; gone quiet = 'Stalled' with how long it worked and how long it has been silent; never any = 'Not running' after 10 min measured from delivery. Every delivered phase is watchable, so the row's button is 'Watch' into /terminal?project=… whenever a PTY exists, and 'Open on Control' only while Queued. A project with no repository and no folder gets 'Connect a repository' instead of Implement, and the dispatch route refuses the same case with a 422 that says what to do — the Annushka failure class, closed at the source. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017FU2m6NxPYYFkEdyufcSrX * fix(control): Watch follows the same watchable rule as the Feedback row Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017FU2m6NxPYYFkEdyufcSrX * chore(desktop): 0.8.21 — Fleet Runner reports run progress while the agent prints Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017FU2m6NxPYYFkEdyufcSrX * docs(changelog): Fleet Runner 0.8.21 — run progress heartbeat Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017FU2m6NxPYYFkEdyufcSrX --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
a1aed85daa |
fix(cold-start): a brief becomes a repo and a live site through the normal path (#569)
* fix(cold-start): the starter ships a lockfile, so its first Deploy can install selfhost-deploy.yml refuses to install without a lockfile and installs with --frozen-lockfile; the Next starter declared pnpm and shipped no lock, so every fresh site failed before building. The lock is resolved once by scripts/templates/refresh-starter-lock.ts into a generated asset and seeded with the starter (one Git tree call, no pnpm on the app box). scripts/test/starter-lock.ts fails on drift, missing standalone output, a missing packageManager, or starter docs that point at npm. Seeding failures are recoverable: provision on a linked but bare repo re-seeds it instead of refusing with 409. The starter embeds the project-scoped feedback widget from its first commit. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w * fix(cold-start): liveUrl means a Deploy on the current commit and a public 200 Registration persisted liveUrl because register-site.sh exited 0 with --no-deploy. Now: strict setup, then a workflow dispatch; GET reports pending/failed/live and the UI polls it. describeSiteDeployment (pure, tested) treats a queued run or a just-sent dispatch as starting, closing the race where the first poll after dispatch read as "no deployment exists". A status the client cannot read is shown as a failure, not swallowed. The deploy workflow resolves a freshly registered slug from the box register and proves the checkout belongs to the caller; deploy.sh builds with the same package manager that installed; register-site.sh runs release siblings, locks the register, fails without a deploy secret, and seeds a runtime env. check:deploy-ready no longer reads a box-registered checkout as laptop drift. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w * fix(feedback): Implement addresses the project id, never a same-named tab Feedback and kickoff dispatch resolve user_projects by stable entity id; a renamed project or a same-named sibling can no longer redirect a run, and the hosted fallback is off for actions tied to a tracked run. Batch Implement only advances when a run was accepted. Fix prompts require the normal ship path and live evidence; Resolve stays with the operator. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w * docs: FleetCrown builds independently; tab names are transport, not identity Product copy and agent docs describe FleetCrown as an independent product with optional OrangeCat linking that is not publication consent. Control drops the Focus terminal chip (Open terminal stays). Adds the cold-start handoff. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0118cLNxoB3dt2w74vU1PH6w --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
03141d39c1 |
fix(cold-start): close GPT audit gaps for kickoff, feedback, OC, docs (#550)
Stop kickoff after a failed repo step; keep the operator's exact brief; mark feedback Queued only with a real run id; link Check live to the reported page; never backfill OC wall history from before publish consent; document eligible-only cloud builder and the new-site vs provision starter split. Co-authored-by: Cato <catomean@users.noreply.github.com> |
||
|
|
8504d9abbf |
fix(feedback): Done only after live proof, not inject/run SUCCESS (#549)
* fix(feedback): Done only after live proof, not inject/run SUCCESS
Done meant "agent run closed SUCCESS" (and auto-resolved + emailed
visitors), which claimed the live product shipped when only a prompt
was delivered and a session ended.
- SUCCESS/PARTIAL closed runs → NEEDS_VERIFY ("Check live")
- Done only when status is RESOLVED (operator Resolve today)
- Stop auto-resolve on SUCCESS; visitor shipped mail rides Resolve
- Keep resolveFeedbackForRun for a future merged-PR / live-stamp closer
* style(feedback): prettier close-loop excerpt line
|
||
|
|
caa0e41c3b |
chore: add a formatter (#449)
* chore: add a formatter, matching the style this repo already writes singleQuote=false was chosen by counting this repo's own imports, not by fleet decree. The fleet is genuinely split and the two repos that already had a .prettierrc disagreed with each other, so there was no standard to restore. Quote style does not cross repo boundaries; having a gate does. Markdown is ignored for now — prettier rewraps prose, which would bury the real diff. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * style: format with prettier (1062 files) Mechanical. No behaviour change. This SHA is listed in .git-blame-ignore-revs so `git blame` skips it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: teach git blame to skip the reformat Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(lint): reattach two guards the reformat detached Both effects were one-liners, so a trailing eslint-disable-line covered the setState call: useEffect(() => { setSelected(new Set()); }, [q.length]); // eslint-disable-line ... prettier expanded the block. The comment stayed on the closing line while the call moved above it, so the guard protected nothing and the rule its author had deliberately silenced failed the build. This is the second shape of the same defect — hirnli had the eslint-disable-NEXT-line variant. Both come from the same fact: an eslint directive binds to a line number, so reformatting can silently unbind it, which makes 'mechanical, no behaviour change' false for any bulk reformat. * chore(desktop): bump the runner version the reformat requires desktop-release-drift enforces that anything built into Fleet Runner which differs from the last released tag must carry a version ahead of that tag — main read 0.8.15 and fleet-runner-v0.8.15 already shipped. A whole-repo reformat changes bytes under desktop/, so the gate fires. The alternative was adding desktop/ to .prettierignore, which would buy a quiet PR by carving a permanent hole in the formatter's coverage — the precise shape of silent drift this test was written to catch. Bumping is what the rule asks for and costs one patch release whose only content is whitespace. * chore: merge main and re-format A whole-repo reformat conflicts with any concurrent commit, and a conflicting PR runs no checks at all while reporting nothing. Conflicts resolved to main, which is correct because this branch changes formatting and nothing else. * chore: leave desktop/ out of this reformat desktop-release-drift is right to refuse this. Everything under desktop/ is built into Fleet Runner, so changing it means shipping: bump the version AND add a FLEET_RUNNER_RELEASES entry, whose stated audience is 'person who installed Fleet Runner and wants to know what changed'. For a whitespace-only build the honest answer is 'nothing', so that release should not exist — and I should not write release notes claiming otherwise. I had bumped to 0.8.16 to get the gate green. That was the wrong direction: publishing a build to three OS runners to keep a formatting PR quiet. Reverted. desktop/ is excluded in .prettierignore with the reasoning recorded there, to be formatted alongside the next real runner change, where the bump and the notes are true anyway. --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
e6aa407c1c |
fix(feedback): a run's raw error is a diagnostic, not advice to the user (#376)
/control printed this on a feedback card, verbatim, twice:
"Corrected 2026-08-24: repo evidence in the run window belonged to a
sibling run; this run was acked verified:false and never started"
That is an engineer's note to another engineer, addressed to whoever
filed the feedback. It tells that person nothing they can act on, and it
is the kind of text that makes a surface read as debug output someone
forgot to remove.
The cause is one line, not one bad string: deriveFeedbackWork set
detail: run.error?.slice(0, 160) || "The run ended without a successful
fix. Retry or Watch Terminal."
so whatever an executor happened to write went onto the card AS the
advice line, and the sentence actually written for a human was only the
fallback for when no error existed. Every other phase's detail is
curated copy; this one was a coin toss.
detail is now always the curated sentence. The raw error moves to
`diagnostic`, rendered behind a "Technical details" disclosure the reader
opens on purpose. Kept rather than deleted: when a run genuinely failed
for a legible reason, that reason is the most useful text on the row —
the fix is where it renders, not whether.
Note this is a rendering fix, not a data edit. The two rows that showed
the sentence still hold it in the DB; they now show "The run ended
without a successful fix. Retry or Watch Terminal." with the note one
click away. Nothing was deleted from anyone's records.
Deliberately does not touch FleetFeedbackStrip: #372 replaces it with
ControlInbox. Fixing this at the derivation layer means whatever renders
work.detail inherits the curated copy, including that new component,
without a conflicting edit to a file being deleted.
npm run verify green.
Co-authored-by: t <t@t.t>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
|
||
|
|
9d97e98d66 |
refactor(control): put what needs a human above what merely reports (#367)
Control ran its sections in the order 1 -> 3 -> 2 -> 4 -> 3: the runner
banner, then a status panel of version strings and sync ages, then the
count of projects actually waiting on the captain, then two chore strips,
and only then the projects themselves. The one number the page exists to
deliver arrived fourth, and a backlog of "these sites could have the
widget" sat between it and the fleet.
There is now one ordering rule, written at the top of the return, and
every child belongs to exactly one of its four tiers:
1. Can I operate at all? runner banner, missing CLIs
2. What is waiting on me? attention bar, agent escalations
3. What is the fleet doing? fleet status, project operations
4. What could I do with slack? widget coverage, visitor feedback,
workspaces, activity log, defaults
Tiers 1-2 are about a human being blocked, 3-4 are reporting, and
reporting never renders above blocking. Nothing is hidden or removed —
the two strips still render in full, just after the work rather than in
front of it. The empty state is unaffected: AttentionBar returns null
with no items, so a zero-project Control looks exactly as before.
Also drops one line of copy that never earned its row. "No agent has
been asked to fix this yet." said nothing the "Not started" badge and
the "Implement" button had not already said, and the fleet strip printed
it once per row — five identical sentences on a strip of five new items.
Every other work-phase detail carries an error string, a retry
instruction or somewhere to watch; this one carried the absence of news.
Not generalised into a gate on purpose: "this sentence adds information"
is a judgement about meaning, and both mechanical proxies tried here
(must contain an imperative; must not prefix-match its label) either
missed this sentence or failed honest copy like "Starting — waiting for
the agent to pick it up." The test is a single pin that says so, rather
than a green check proving nothing.
npm run verify green.
Co-authored-by: t <t@t.t>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
|
||
|
|
418a353ce2 |
fix(feedback): close the ultra-review findings on the shipped overhaul (#336)
* fix(orchestration): FIFO releases on close, not ack; outcome constants move to the client-safe contract - fifoEligibilitySql: an open run stops blocking its project only when NO pending command row exists for it at all (true orphan — never enqueued or deleted). Releasing on executed_at reintroduced the documented regression: dispatch B typed into A's still-working PTY, two dispatches merged into one session. The started_at staleness floor keeps the wedge bounded. Subquery is now user-scoped. - ORCHESTRATION_OUTCOME/S + OrchestrationOutcome live in @/lib/orchestration/contract (client-safe); the drizzle schema re-exports them, so client components (work-phase → FeedbackWorkBadge, strips) no longer drag pg-core into the browser bundle. Ultra-review findings #1 and #10 on #334, fixed forward. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(feedback): close the ultra-review findings on the shipped overhaul - Summary counts OPEN rows (new + dispatched): the Control strip's chip no longer vanishes the moment the last NEW item is implemented; leads with 'N new', falls back to 'N open' while fixes are in flight. - Dispatched row with no run record derives STUCK (was perpetual QUEUED with no Retry and an endless 8s poll) — the run row is created before the status flips, so absence always means failed-create or pruned. Unit-tested. - Dispatch route's duplicate-guard now uses deriveFeedbackWork — one source of truth with the badges (isActivelyWorking and its private threshold copies deleted); run-less/stuck/failed rows are retryable, queued/working 409. - Batch buttons gate on what the routes accept (NEW, non-synthesizer) in both the project section and the Control strip — no more buttons whose every click 400s. - Install flow: site probe runs BEFORE any token mint/mutation, and the origin allowlist is MERGED (union) instead of replaced — the vercel-regex overwrite could silently break a live widget's ingest; unguarded new URL() on legacy origins removed with it. - Coverage strip gates Enable&install on canInstall (gitUrl OR runner dirPath) exactly like the route, instead of hard-requiring a git URL. - Pre-push smoke: identity-check the health payload before smoking — a foreign app on :3000 (OrangeCat answered once) skips like a missing server instead of failing 41/46 routes. - Copy/href SSOT: notification sentence from EXECUTOR_COPY.honesty in work-phase + install route; fleetSurfaceHref in FleetFeedbackStrip and AttentionBar; dead projectOverrideCount prop dropped. Deferred (needs the staleness audit's verdict on Fleet Runner): the desktop poller's unverified-inject hard-fail / double-inject finding. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: t <t@t.t> Co-authored-by: Claude Fable 5 <noreply@anthropic.com> |