Skip to content

fix(spec-driven): findings from the candidate's proof sweep (on development) - #878

Merged
ArmenSl merged 19 commits into
developmentfrom
fix/candidate-findings-dev
Dec 4, 2026
Merged

ArmenSl merged 19 commits into
developmentfrom
fix/candidate-findings-dev

Conversation

@ArmenSl

@ArmenSl ArmenSl commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

The same 19 commits as #876, applied on development (after #874) instead of on integration/8.12-candidate, so this merges without #873, #875 and the editor pointer of the candidate. They applied with no conflict. Local suite on this tree: 7,914 passed, 86 skipped, the 2 known macOS failures; ruff clean.

Original description from #876:

Mistakes the candidate introduced

  • Counterexample check accepted a route the app does not have. A "partial" verdict that named a method and path counted as shown when the same sentence also named an existing file. A named route must now be one the app declares, or one a page really calls (so a page calling a missing route still blocks).
  • A limit of the program's kind read as a server setting. For a command-line tool, Django or Flask app with no runnable check, the run record now says kind_limit and the done event carries the reason in notCheckable. checksOff keeps runtime until the editor renders the new field.
  • The repair round worked on "not confirmed" items. Inside a fix attempt validate_app lists blockers only and says to end the attempt when none remains.

Fixes that had not fully held

  • A blocked checklist item closes only when a file it names was deleted, with delete_file, after the block. An edit by another item no longer closes it.
  • Workflows on the route of a file this run's checklist deleted are retired, not reported as regressions. A file that merely went missing still reports.
  • An edit run's replayed, passing workflows count as workflows that ran; the "no API workflow was run" line follows that count.
  • Files a shell command created, renamed or deleted are in changedFiles.
  • An edit run installs the frontend's dependencies before its checks, and says why when it could not.

Checklist and ledger

  • An open item whose checklist item this run dropped is recorded as dropped, not closed.
  • Checklist items closed with no check and no evidence get one "not confirmed" line.
  • The frontend item closes only when a component renders a screen for the class, checked again on the final tree.

Not done

  • Django scaffold findings re-checked against the delivered code (still listed, downgraded). The model reader lives in the editor backend, which the agent layer may not import; moving it down is a refactor that needs a decision.
  • Three minor findings of the independent check: a dropped item's text is matched as a substring; the grouped "closed with no check" line can be recorded as closed in the next run's ledger; a test file named for a class counts as its screen.
  • A deletion made with shell rm neither closes a blocked item nor retires a workflow (errs toward reporting).

Tests

  • Every fix has a test that fails on the code before it; the independent check re-verified this and found four problems, each repaired with its own failing test.
  • Replay of the 61 stored recipes of the three sweeps through the changed rules: no report line changed except the intended ones (4 runs keep runtime in checksOff with the reason added; c-remove now shows the agent's objection to its deletion).
  • Full Spec-Driven suite, one process, macOS: 7,942 passed, 86 skipped, 2 failed (the two known macOS-only failures).
  • ruff check besser: clean. Prompt budget test passes with no pin raised.
  • No real run yet on this branch.

…e app declares it

A counterexample that named a route the app does not serve was accepted as
soon as it also mentioned any file the app has, so an unobserved gap blocked
the run and started a needless fix attempt. A named route must now be one the
app declares; a file name alone shows the gap only when no route is named.
… kind

A command-line tool, or a server no check can start, was recorded like a check
the server has switched off, so the editor said "Not checked on this server",
and the report counted requirements "confirmed by running the app's API" for a
program that has none. The run record now marks such an entry `kind_limit`
(with `configured_off` false), the done event carries its reason as
`notCheckable` instead of listing it in `checksOff`, the end log line names it
apart, and BESSER_GENERATION.md drops the "no test workflow ran" line for it
and, for a program, the API count.
After its one blocker cleared, a repair round went on to chase requirement
citations that were only not confirmed, because validate_app still listed
them and asked to verify the remaining requirements, and the setup-only fix
prompt asked to resolve missing evidence. Inside a fix attempt validate_app
now lists blockers only and, once none remains, says to end the attempt; the
fix prompt says to act only on the listed blockers and no longer asks a
setup-only round for citations. Phase 2 sees validate_app as before.
…ritten

An item the agent recorded as blocked stayed "not done" after the repair phase
finished its work (for example deleted the file it names), so the run ended
"not verified complete" with nothing left to do. A blocked item without a
check now closes, as done and not verified, once every file it names has been
written, one of them first after it was blocked. delete_file records the
deleted path on the items that name it, as the other file tools do.
…n's checklist removed

When an edit removed a class without changing the model, the run deleted the
class's router as planned, yet the previous version's workflows that first
fail on that route were reported as regressions. A file the run removed now
also retires such a workflow when a checklist item of this run names it and
was not dropped, as a file cited by a replaced requirement already did.
…t ran

An edit that replayed the previous version's passing workflows on the
delivered tree reported "Not run: no test workflow ran" and "runtime behaviour
not confirmed", and listed as not tested the creates those workflows had just
made and read back. The run record's workflows_run now counts the replayed
workflows that passed, the report's runtime line follows it, and a create the
startup check could not try is settled when a replayed workflow created and
read back a record on its route.
…ete among the changes

A file a shell command created (a rename's new name, a generated migration)
or deleted (a rename's old name) was missing from the done event's
changedFiles and the run's history entry: only files a command modified were
recorded. Such files are now recorded as the recipe's
shell_added_or_removed_files and listed among the changed files; a file a
command created and removed again is not.
…its checks

An edit run starts in a fresh sandbox home and installed only the backend's
requirements, so the first build check of a UI edit found no node_modules and
a repair round was spent on "npm install". An edit run now installs each
frontend's declared packages as well, inside the sandbox only, and a frontend
left unbuilt because that install could not run is reported with the same
"its dependencies could not be installed" reason as the backend. The scaffold
install of a create run now logs a failed npm exit as well.
…d as dropped

An edit that dropped the checklist item of an item the previous run left
open recorded that item as closed in its run, although nothing was done or
checked. Such an item is now recorded as dropped, with the reason the agent
gave, and stays so in later runs; an item a run no longer has for any other
reason is closed as before.
…t confirmed

A planner item the agent closed on its word alone, including work it had
deliberately left undone, was reported as done: only the seeded rule and
derived items were listed when no check confirmed them. Every other item
closed with no check and no evidence is now listed once, with the count and
ids of those items, as not confirmed. It is never a blocker.
…d at the run's end

The frontend checklist item closed as verified once any frontend file named a
class and the app had a home route, so an API client and an App linking to
each class's route closed it before any page existed, and the item stopped
holding the agent to the screens. A class now counts only when a component
named for it, or a generic component whose entity metadata names it, renders
it. Phase 3 also checks every closed item that has a check again on the tree
the run ends with, instead of keeping the verdict from when it closed.
…the merged count

The one line that lists the checklist items closed with no check was merged,
once a report had many findings, with single items not confirmed into "N
planned changes could not be confirmed as done", counting as one change and
hiding the single item's own line. It is now never merged.
…names was deleted

A blocked item closed as done once every file it names had been written, one
of them first after the block. Any edit made for another item satisfied that,
so an item blocked for a real reason (no mail server) closed, its reason
disappeared into the anonymous count of items closed with no check, and the
run completed with its work missing. It now closes only when a file it names,
written after the block, is gone (the requested deletion is done), and its
report line keeps the agent's reason.
…cklist item deleted it

Any checklist item that merely named a file counted as the request removing
it, so when an edit item's router was gone by mistake, the replayed workflow
that failed on its route was retired as "removed by this run's request"
instead of reported as a regression. delete_file now records the path under
the item's `deleted`, and only a closed item that deleted the file retires the
workflow.
…e calls

Requiring a counterexample's named route to be declared turned the most
common partial, a page calling a route no backend serves, into "not
confirmed", so a missing endpoint was never repaired. A named route that the
app does not declare now still shows the gap when a frontend file calls it
with that method. A file token beside an undeclared route that no page calls
still shows nothing.
…only that list

The done event moved a program no check can run from `checksOff` to the new
`notCheckable`, which the editor does not render or store yet, so a CLI,
Django or Flask run lost its only hint that nothing ran it and read as plainly
ready. `runtime` stays in `checksOff` beside `notCheckable` until the editor
shows the new field, and the run_summary telemetry records `not_checkable`.
… its block

The blocked-item close looked for the deleted file among the paths first
written after the block, and the written list holds each path once, so an
item that had edited a file before it was blocked never closed when that file
was then deleted. The close now reads the deletions recorded on the item
after the block.
…vouching for a route

Agent-written pages call the backend through an object of fetch wrappers
(`api.post("/order/1/cancel/")`), which the axios and fetch call scan does not
see: on the sweep apps it found no call at all in most of them, so a page
calling an undeclared route still did not show the gap. A method-named call on
any client with a literal path now counts too.
@ArmenSl
ArmenSl marked this pull request as ready for review December 4, 2026 08:44
@ArmenSl
ArmenSl merged commit 771e6e1 into development Dec 4, 2026
12 checks passed
@ArmenSl
ArmenSl deleted the fix/candidate-findings-dev branch December 4, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant