implementation-workflow: re-run the format check itself instead of trusting the implementer's summary #460
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#460
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From MEDECA-378 triage.
The Phase 2 implementer reported 'scalafmtCheckAll - clean' in its completion summary. The style review disputed it, and a direct check confirmed the reviewer: scalafmt --config .scalafmt.conf --test over the 18 changed .scala files exited 'error: --test failed', with unformatted hunks in five files, all on lines Phase 2 itself had added.
Root cause is mundane: the agent ran the check, then kept editing. A formatting check reported by an agent that also edited code afterwards proves nothing about the final tree.
Proposal: the verification step should re-run the format check itself against the final tree, the same way it already re-derives the changed-file list from git status, rather than reading the claim out of the implementer's summary.
Second-order finding from the same issue, worth knowing when implementing the above: in this project the root scalafmtAll / scalafmtCheckAll tasks do not aggregate every module's sources, so their success is not evidence that a given changed file is formatted. A per-file check over the changed-file list is the reliable form. (The aggregation gap itself is filed project-side as MEDECA-442.)
Type: bug
Filed from:
/home/mph/Devel/projects/medeca-modul-poptavky-MEDECA-378on branchMEDECA-378Intake: needs-input
1. Which repository should own the change: dev-docs, or iw-cli with a new command?
The issue asks the workflow's verification step to run the format check again on the final tree. That step is in
skills/ag-implementation-workflow/SKILL.mdand in its dx- and wf- copies. These files are in dev-docs, not in iw-cli. In iw-cli the only format check is the check of iw-cli's own code (core/model/ScalafmtGate.scala). No iw-cli command does a per-file format check of a consumer project.Recommended: a): The issue names only the skill's verification step, and that step is all in dev-docs.
Answer in a comment on this issue, per number, for example "1: a", or in your own words; intake reads it on its next iteration.