Repository navigation
status reads a pushed: that is neither true nor false as unreadable rather than as pushed, so a hand-edited record no longer draws "the record says it was pushed" and is no longer offered the one exit resume refuses it for - #19
Conversation
…adable rather than as pushed, so a hand-edited record no longer draws "the record says it was pushed" and is no longer offered the one exit `resume` refuses it for The second independent review of #18 recorded this on 2026-09-11, and it is taken here as that reviewer's note — nobody has ruled on it: "(d) a hand-edited record whose `pushed:` is valueless is neither `false` nor `true`, and `status`'s missing-commit arms then say 'the record says it was pushed' (pre-existing from 2a488b4)". Against 628b1be every arm of the record layer tested `[ "$pushed" = false ]` and read everything else as `true`, so a bare `pushed:`, `pushed: ""` and `pushed: yes` alike drew "its parked commit … is not here — the record says it was pushed, so this repository has never fetched it", a claim the record does not make; and with no worktree here the same fall-through offered "`resume <Name>` brings it back", which is the exit the extension's `resume.sh` refuses such a leg for — its RR6 is `[ "$pushed" != true ]`, so an unreadable value is refused there exactly as `--no-push` is. The field now has three readings. A value that is neither word is named for what it is — "its `pushed:` has no value, which is neither true nor false", "its `pushed:` says 'yes', …" — in a finding of its own, as `--no-push` has one; the no-worktree line names the exit that works (park it again from the workstation that parked it, which writes the record afresh) instead of one that does not; and the missing-commit line names every reason still standing rather than the one the record would have to be read as `true` to support, dropping "never fetched it" after a fetch that worked, as the `pushed: true` arm already did. `resume` is untouched: it reads no `pushed:` at all and hands the record to `make resume`, and `resume.sh` settles it before anything is fetched — proved by loading a record with `pushed:` valueless and `pushed: yes` through the extension's own `workspace_load_project`, which yields "" and "yes", each failing its `!= true`. `status --help`, AGENTS.md rule 4 and the README promised the recovery the new findings rule out and now carry the second exception, one line each, with the two hygiene caps raised in dated entries. Four regression tests beside the record-layer ones they belong with; the suite is 282 green. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…`#` comment stripped — so `pushed: true # note` is not told that `resume` refuses it, and `status --help` lists the unreadable-`pushed:` finding beside `--no-push` The independent review of this follow-up (2026-09-11), REPORT ONLY, two should-fixes and three nits, every one taken; its 22-pair regression guard (11 record-layer scenarios × `pushed: true` / `false`, main's `status` against this branch's) found no byte of difference, and all four new tests fail against a2c8521. The should-fix that mattered: `workspace_load_project` strips a `#` comment from EVERY line (`content="${raw%%#*}"`) before it reads a value, so `resume.sh` sees `pushed: true # note` as `true` and RECREATES the leg, while `record_rows` read the line whole and the new arms called it "neither true nor false" — a clean estate turned into exit 1 with a finding that named a refusal `resume` would not make and withheld the exit that works. `pushed:` is the one field this layer JUDGES rather than matches or prints, so it alone loses the comment here too, the way the shape-pin `path:` already does; `false # note` therefore reads as the `--no-push` record it is, where against a2c8521 it read as `true`. The second: `status --help`'s parenthetical carried the new exception but its LIST of findings did not, while the README's did, so the list names it now and the help test pins both sentences. The nits: the help's shared clause said "the workstation that has the WIP commit", a fact the unreadable findings decline to assert, and says "the workstation that parked it" as the README does; and two comments said `park.sh` writes `true` or `false` "and nothing else", where `emit_recorded_feature` carries an existing entry forward untouched for a feature it REFUSES — the conclusion stands, the premise is now stated as narrowly as it is true. One test with both comment cases, biting against the first commit of this branch. Two notes from the same review are recorded for later, not taken here: a leg whose `pushed:` KEY is absent is dropped by `record_rows` while `resume.sh` defaults it to `false` and refuses — `status` says nothing about a record `resume` refuses; and `resume.sh`'s own refusal line says "was parked with --no-push" for any value that is not `true`, the guess this branch removes from `status`, in another repository. Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 3 days by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuideThe PR makes Sequence diagram for status versus resume with an unreadable pushed valuesequenceDiagram
participant Record as Workspace record
participant Status
participant Resume
participant Make as make resume
participant ResumeSh as resume.sh
Status->>Record: workspace_load_project
Record-->>Status: pushed: valueless or yes
Status->>Status: Report unreadable pushed value
Status-->>Record: Recommend re-parking
Resume->>Record: Load record
Resume->>Make: resume
Make->>ResumeSh: Execute resume.sh
ResumeSh->>ResumeSh: Check pushed != true
ResumeSh-->>Resume: Refuse the leg
Flow diagram for status handling of pushed valuesflowchart TD
Record["workspace record"] --> Parse["workspace_load_project"]
Parse --> Valid{"pushed is true or false?"}
Valid -->|true| Pushed["Treat as pushed"]
Valid -->|false| NoPush["Treat as --no-push"]
Valid -->|neither| Unreadable["Report unreadable pushed value"]
Unreadable --> Repark["Re-park from the workstation that parked it"]
NoPush --> Repark
Pushed --> Resume["Offer resume when the worktree is absent"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
…that carries it, this repository's #19, beside the review note it answers Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved blocking issues were identified, and the changes include regression coverage.
Pull request overview
Updates status to handle unreadable pushed: metadata consistently with resume.
Changes:
- Reports invalid pushed states and provides valid recovery guidance.
- Corrects missing-commit diagnostics.
- Adds regression tests and updates documentation.
File summaries
| File | Summary |
|---|---|
tests/test_status_command.py |
Adds regression coverage. |
tests/test_repo_hygiene.py |
Adjusts documentation line-count caps. |
status |
Handles unreadable metadata and diagnostics. |
README.md |
Documents recovery behavior. |
AGENTS.md |
Updates operational guidance. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟢 Approval recommended
Only a minor documentation-contract nit remains; no blocking issues were identified.
Review details
Suppressed comments (1)
status:149
- The user-facing summary is updated here, but the earlier fifth-layer contract comment in this same file (lines 82-87) still says a missing worktree is resumable unless the record says
--no-push; it omits the newly supported unreadable-pushed:state and therefore gives maintainers an incomplete recovery contract. Please update that in-file summary as part of this change so the two descriptions stay consistent.
brings it back — unless the record says `--no-push`, or its `pushed:` is
neither true nor false, which `resume` refuses the same way: then only the
workstation that parked it can park it again; and where `git
- Files reviewed: 5/5 changed files
- Comments generated: 0 new
- Review effort level: Lite
…hich `resume` refuses in the `--no-push` words — instead of dropping the leg and saying nothing The follow-up to the note the independent review of #19 recorded there as out of scope (2026-09-11), taken on the reviewer's note alone — nobody has ruled on it: a record leg with no `pushed:` KEY at all drew nothing from `status`. `record_rows` emitted a leg's row AT its `pushed:` line, so a leg without one had no row and vanished from the record layer — no finding, exit 0, for every state of such a record (no worktree here, a worktree in sync, the parked commit missing with and without `--fetch`) — while the extension's `workspace_load_project` seeds every leg's pushed with `false` at the `- role:` line and overwrites it only where a `pushed:` follows, so `resume.sh`'s RR6 (`[ "$pushed" != true ]`) refuses that leg: run against such a record, the extension answered "Error: 001-a-thing (repo leg) was parked with --no-push; that feature was NOT recreated", exit 2. The same family as note (d), which #19 answers, and worse — a wrong line can be argued with, a missing one cannot. And it is reachable without a hand-edit: `workspace_write_manifest` drops a key whose value is empty, so one `park` that REFUSES a feature whose record had a bare `pushed:` rewrites it without the key, and the next refused park writes `pushed: false`, a `--no-push` claim nobody made. The row now goes out where the LEG ENDS — the next `- role:`, the next feature's `- branch:`, the next key at any shallower indent, or the end of the file — and carries a sixth field written by `record_rows` and never from the record, which is what tells an ABSENT `pushed:` from the bare one that is present and valueless; `check_parked_leg` reads absent as a fourth state of the field, in findings shaped like the other three: what the record does not say, that `resume` reads a missing one as not pushed and refuses it, and the exit that works — park it again from the workstation that parked it. With no worktree here no arm names `resume <Name>`, a stale registration still has its prune named first, and the missing-commit arms rule out no more than an unreadable value does, `fetched_ok_at` split included. `status --help`, AGENTS.md rule 4 and the README gain "missing or" rather than a sentence of their own, so both line caps hold where they are. A second commit, from the review of this branch: a full-line `#` comment at column 0 inside a leg is no leg-ender — the loader strips `#` from every line, so `pushed: true` below such a note is `true` to `resume.sh` and now here too — plus the review's three comment nits. Proved by seven tests beside note (d)'s, each failing against main (8e7c37b), and by the independent review's guard: 162 comparisons of main's `status` against this branch's across 18 record-layer scenarios and 9 spellings of `pushed:` (`true`, `false`, bare, `""`, `maybe`, `true # note`, `false # note`, `TRUE`, ` true `), byte-identical in exit code, stdout and stderr; the only outputs that change are for a leg the record says nothing about, and for a hand-shuffled leg, which is now read as the loader reads it. Recorded for later, not taken here: a record with `pushed: true` and NO `parked_commit:` still draws "`resume <Name>` brings it back" while `resume.sh` refuses it ("has moved since it was parked"); and an empty `- role:` value is dropped here while the loader creates the leg and `resume` refuses the whole feature. PR #20 Co-Authored-By: Claude Fable 5.1 <[email protected]>
… loader reads it — a `#` comment stripped first — so `- role: # note` is a leg with no role here as it is to `resume`, and not a role this root does not mount Copilot's review of #21 (2026-09-11): `role:` was read with `trim_unquote` alone, so a YAML-empty role written as `- role: # note` or `- role: "" # note` was not empty here — it was `# note` — while `workspace_load_project` takes `#` and everything after it off EVERY line before it splits key from value, and so treats that leg as roleless and refuses the whole feature; here the leg went on to `leg_repo_for_role` and drew "the record names a leg this root does not mount here", the mounting arm's true words about a record `resume` refuses for a different reason entirely. #19 had closed this gap for `pushed:` alone, the one value the layer then judged; `role:` and `parked_commit:` are judged now too, and a `parked_commit: <sha> # note` read whole would have failed `cat-file -e` its way into "not here" for a commit that is here. So one helper, `record_scalar`, cuts a `#` comment and then unquotes, and every value `record_rows` reads goes through it — `id:`, `root:`, the project keys, `branch:`, `role:`, `parked_commit:`, `wip_depth:`, `pushed:` — because the parity is per LINE, as the loader's is: this layer reads the record the way `resume.sh` will judge it, not the way YAML would. One test with the three shapes Copilot named plus the commented parked commit, biting against 83a0f15 (there: "does not mount here" for both roleless spellings, and the commented sha read as no commit at all). Co-Authored-By: Claude Fable 5.1 <[email protected]>



The follow-up to note (d) of the second independent review of #18 (2026-09-11), taken as that reviewer's note — nobody has ruled on it: "a hand-edited record whose
pushed:is valueless is neitherfalsenortrue, andstatus's missing-commit arms then say 'the record says it was pushed' (pre-existing from 2a488b4)". Every arm of the record layer tested[ "$pushed" = false ]and read everything else astrue, so a barepushed:,pushed: ""andpushed: yesalike drew "the record says it was pushed" — a claim the record does not make — and, with no worktree here, were offered "resume <Name>brings it back", the exit the extension's ownresume.shrefuses such a leg for (its RR6 is[ "$pushed" != true ], so an unreadable value is refused exactly as--no-pushis). The field now has three readings: a value that is neither word is named for what it is, in a finding of its own as--no-pushhas one; the no-worktree line names the exit that works (park it again from the workstation that parked it, which writes the record afresh); and the missing-commit line names every reason still standing rather than the one the record would have to be read astrueto support, dropping "never fetched it" after a fetch that worked, as thepushed: truearm already did.resumeis untouched: it reads nopushed:and hands the record tomake resume, andresume.shsettles it before anything is fetched — proved by loading a record withpushed:valueless andpushed: yesthrough the extension's ownworkspace_load_project, which yields "" and "yes", each failing its!= true.park.shwritestrueorfalsefor every leg it parks and carries an existing entry forward untouched for one it refuses (workspace_write_manifestdrops a key whose value is empty, so it never writespushed:bare), so such a record is a hand-edit or a bad merge. And becauseworkspace_load_projectstrips a#comment from every line before it reads a value,pushed:— the one field this layer judges rather than matches or prints — loses one here too, sopushed: true # notereads astruehere as it does inresume.sh, andfalse # noteas the--no-pushrecord it is.status --help, AGENTS.md rule 4 and the README carry the second exception, one line each; hygiene caps AGENTS.md 149→150, README 245→246 in dated entries. Five regression tests beside the record-layer tests they belong with, each failing against main. The independent review's 22-pair guard (11 record-layer scenarios ×pushed: true/false, main'sstatusagainst this branch's) found no byte of difference for a well-formed record. Recorded for later, not taken here: a leg whosepushed:KEY is absent is dropped byrecord_rowswhileresume.shdefaults it tofalseand refuses, sostatussays nothing about a recordresumerefuses; andresume.sh's own refusal line says "was parked with --no-push" for any value that is nottrue, in another repository.🤖 Generated with Claude Code
Summary by Sourcery
Make
statusidentify unreadablepushed:values accurately and direct users to re-park them instead of attemptingresume.New Features:
pushed:values other thantrueorfalseas an explicit unreadable record state instatus.resume.pushed:values.Bug Fixes:
statusfrom incorrectly claiming that unreadable records were pushed or offering aresumepath that refuses them.pushed:values while still excluding reasons ruled out by a successful fetch.Enhancements:
pushed:values.Documentation:
pushed:values.Tests: