An apply step forgets .osf/test/unit.command: the rule is one conditional clause, 60,000 characters before the end of its brief #144
Loading…
Add table
Add a link
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?
In run 47,
openspec.apply[1]'s first attempt did group 1's work correctly: the edits, the test assertions, the full suite (100 passed) and the tasks ticked. But it never wrote.osf/test/unit.command. The step's completion check (lane-declared:unit, added by #139 so the fix loop's unit lane has a command) failed with "the unit lane has no command". The retry wrote the file in 56 seconds. The recovery worked, but the first attempt should not have missed it.Why the model missed it
room.py.The same section also has stray runs of spaces ("records their exit codes", "not there yet"). Its wrapped string literals keep their indentation when they are joined.
Asked for
.osf/test/unit.commanddoes not exist yet, and this group writes it. When the file exists, the brief names the command it holds.Shipped, deployed and archived.
What changed (
b6df70e; archived inda6efe7).osf/test/unit.commandas it is built. When the file is missing, the brief says so as a fact, and that this step writes it, even when the step's own tasks add no test. When the file is there, the brief names the command it holds and does not ask for it..osf/fix.mdwith its Acceptance section) and, when it was missing,.osf/test/unit.commandwritten. Only then do they ask for the reply. The generic "When the file is written" ending is gone from both.prompts.pyno longer joins into runs of spaces: 234 continuation lines lost their leading space, and a source test fails on any join that makes a run.step-briefsandquick-fix-pipelineare updated, andstep-briefshas a new requirement, "A brief's own text has no stray runs of spaces".Verified
test_prompts.py: a missing, present, empty and scripted command, for a change and for a quick fix; the endings; and the briefs rendered before and after the change match once runs of spaces are collapsed.openspec.apply[1]'s brief said the file did not exist yet and ended by naming it. The step's first attempt wrotepython -m pytest backend/tests && npm --prefix frontend test, read it back, and succeeded in 15 minutes. In run 47, the same step's first attempt had failed its check for want of the file.