Skip to content

mark Remaining Work path provenance so restore does not treat assumed steps as verified - #3019

Closed
mvanhorn wants to merge 1 commit into
garrytan:mainfrom
mvanhorn:fix/3004-context-save-remaining-work-provenance
Closed

mvanhorn wants to merge 1 commit into
garrytan:mainfrom
mvanhorn:fix/3004-context-save-remaining-work-provenance

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

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


# what you ran + what it produced

Scope

  • Changed:
  • Verified live by:
  • Did NOT test:

Liveness proof (required for external contributors)

Not applicable to this change.

Checklist

  • Liveness screenshot attached (GSTACK PR typed live into a real surface) or PR author is @garrytan (owner exemption)
    Not verified: this needs a person on the named hardware or environment.
  • This is not a generated-file-only diff (I edited the source/template and regenerated)
  • No ETHOS.md edits, and no changes to voice / founder perspective / YC references
  • New public command / external service / host adapter has an accepted issue linked (or N/A)
  • Linked issue or reproduction: #

AI was used for assistance.

@trunk-io

trunk-io Bot commented Oct 3, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

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
@capy-ai

capy-ai Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

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 (Open. plus (path run), (path read), (path assumed), (code read), (target state checked)) and the Next steps / Verify first split. Changed: the save rules are one ordered decision table (writing step, then concrete path, then nothing); restore's option A now walks saved order, so an unverified first item gets verified before a later runnable step; restore prints a banner for pre-marker checkpoints; the test pins only the marker wire format rather than whole sentences; and a 3-trial paid behavior eval covers the restore ordering (3/3 pass). I'll close this PR when #3022 merges.

@capy-ai

capy-ai Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Landed in #3022 (v1.91.17.0) with you as co-author. Closing this in favor of that. Thanks @mvanhorn!

@capy-ai capy-ai Bot closed this Oct 3, 2026
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.

context-save: mark whether each Remaining Work step was run, read or assumed — restore reads assumed steps as verified

1 participant