Repository navigation
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
… steps as verified Save now starts every remaining-work item with Open. An item that names a command, switch, config value, or file ends with exactly one of (path run), (path read), (path assumed), (code read), or (target state checked). A write is (target state checked) only after this session inspected the target schema or state; reading only the writer is (code read); inferring the write is (path assumed). Open items must not be prefixed with [done], [executed], or any other completion token, and an item with no concrete path stays Open. with no parenthesis. Restore keeps each item's original text and, in saved order, splits the section into Next steps and Verify first. Next steps holds (path run), (path read), (target state checked), and an Open. item that names no concrete path. Verify first holds (path assumed), (code read), and any concrete-path item that has no suffix, so an older unsuffixed line is still shown and is not offered as the next action. Choosing to continue names the first Next steps item, such as the saved CONFIG=X run; if Next steps is empty, the first action is to verify the first Verify-first item rather than execute it. The same instructions are in the save and restore skill templates and skill docs, and a prompt-byte test locks the suffixes, the split, and the option-A start. Fixes garrytan#3004
f26e03d to
af9109a
Compare
|
Thanks @mvanhorn. This is rebuilt in #3022 together with your other two PRs, with you as co-author on that commit. Kept: your marker vocabulary ( |
Why (in your own words)
Save now starts every remaining-work item with Open. An item that names a command, switch, config value, or file ends with exactly one of (path run), (path read), (path assumed), (code read), or (target state checked). A write is (target state checked) only after this session inspected the target schema or state; reading only the writer is (code read); inferring the write is (path assumed). Open items must not be prefixed with [done], [executed], or any other completion token, and an item with no concrete path stays Open. with no parenthesis. Restore keeps each item's original text and, in saved order, splits the section into Next steps and Verify first. Next steps holds (path run), (path read), (target state checked), and an Open. item that names no concrete path. Verify first holds (path assumed), (code read), and any concrete-path item that has no suffix, so an older unsuffixed line is still shown and is not offered as the next action. Choosing to continue names the first Next steps item, such as the saved CONFIG=X run; if Next steps is empty, the first action is to verify the first Verify-first item rather than execute it. The same instructions are in the save and restore skill templates and skill docs, and a prompt-byte test locks the suffixes, the split, and the option-A start.
A later session restoring a checkpoint treats every Remaining Work line as something already checked. A step that was only inferred, such as running a suite through one config value, is written in the same section and tone as a step that was actually run, so the session follows it, switches config, and hits the wrong target. A writing step has the same trap: the writer can look settled while the target schema was never inspected, and acting on it can repeat rows. context-save told the checkpoint to list Remaining Work only as concrete next steps in priority order, with no marker for whether a command, switch, config value, or file was executed, read, or merely inferred. context-restore then printed that list as one block and, when the user chose to continue, summarized the first item and suggested starting there.
Fixes #3004
Live evidence
Scope
Liveness proof (required for external contributors)
Not applicable to this change.
Checklist
GSTACK PRtyped live into a real surface) or PR author is @garrytan (owner exemption)Not verified: this needs a person on the named hardware or environment.
AI was used for assistance.