Repository navigation
feat(pi): charly_status tool for bed/image/vm status + don't-pile-up guidance - #82
Conversation
charly_status exposes check/watch status for charly check beds (from the .check run tree + bed lock), image presence, and VM domain state - the gh_pr_status analogue for charly validation. APPEND_SYSTEM.md gains the binding dont-pile-up-unfinished-work rule and the use-via-subagent guidance for charly_status (no ad-hoc ps/tail/podman/virsh shell).
Review — BLOCKHead SHA: Change class: pi tooling + system-prompt config (config/tooling) Security screenT3 — scope mismatch. Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…ct roots The default cwd never holds the bed run tree (beds run under charly/box/*); search cwd + the umbrella's known box-project roots so callers need no projectDir knowledge (R4). Also dedup duplicate fs/path imports.
Review — BLOCKHead SHA: Change class: pi tooling + system-prompt config (config/tooling) Security screenT3 — scope mismatch. Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration (tool is read-only: Checklist: All applicable rules PASS or NA. Prior-reviewer findings re-derived against the CURRENT state — all resolved:
Change class (config/tooling) gate met: live functional test pasted, internally consistent with the tool's output format and the box-project auto-location. R3/R4/R6/R10 addressed; remaining rules genuinely N/A for this class. Placement correct ( Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — tool is read-only ( Checklist: All applicable rules PASS or NA. Prior-reviewer findings re-derived against the CURRENT diff/body — all resolved:
Change class (config/tooling) gate met: live functional test pasted, internally consistent with the tool's output format and box-project auto-location. R3/R4/R6/R10 addressed; remaining rules genuinely N/A for this class. Placement correct ( Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
…/dont-pile-up sections
Review — PASSHead SHA: Security screen: PASS — tool is read-only ( Checklist: All applicable rules PASS or NA. Prior-reviewer findings re-derived against the CURRENT diff/body — all resolved:
Change class (config/tooling) gate met: live functional test pasted, internally consistent. R3/R4/R6/R10 addressed; remaining rules genuinely N/A for this class. Placement correct ( Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
…ree pin/materialization gotchas (#1189) * docs(skills): the new-repo recipe, the armed-and-silent stall, and three pin/materialization gotchas Four skills changed, each with the measurement that produced it, from the Strata pod extraction (#1174) and the producer fix it needed (plugin-deploy-pod#81 / #82, sdk#591): 1. repo-setup — the new-repo checklist was WRONG about how a repo is created. The org ruleset's `creation` rule makes the first `main` impossible by `git push`, the contents API, `auto_init` and a branch rename; the only actor that can create it is the charly-auto-merge App, which `bootstrap-repo-main.yml` mints a token for. The checklist now spells out the measured order (create EMPTY, push ONE throwaway seed branch, dispatch the bootstrap workflow, then PATCH the three settings the App cannot set), says the bootstrap INSTALLS the tag-on-merge caller (so do NOT commit a copy — it differs by a byte and fights every regeneration), and makes the umbrella leg correct: `git submodule add` writes no `branch =`, so the pin's INTENT must be declared in the same commit or `charly task verify` fails structurally. 2. git-workflow — a new section "The ARMED-AND-SILENT stall": armed, every same-name run `success`, CLEAN, base current, and still no merge. Measured on opencharly/sdk#591 (armed 15:35:21Z, still open past the 7m41s bound) against #1168 (same bot, merged 8s after arming), so the arming identity is not the variable. The one-call diagnostic that separates it from the POISON class, the empty re-trigger commit that cures it (a `synchronize` event is the only type the org workflow acts on), and "do it ONCE, then escalate" — the org's stalled-automerge detector covers three shapes and this is a fourth. 3. git-workflow/references/pin-intent-and-currency — a submodule is BORN `unpinned`: `git submodule add` writes no `branch =`, so the path has no intent and `verify` fails structurally until the same commit declares one. One command, easy to forget because `submodule add` reports success. 4. git-workflow/references/umbrella-mechanics — a linked worktree's pre-push DESIGN gate can only judge what is materialized: `design-cite.sh` FAILS on a pin whose commit the module store does not hold (the worktree materializes the derived working set while the gate judges the whole declared path set), and the message prints the remedy. An unmaterialized checkout is a NOTICE for the currency question and a FAILURE for a citation control — the difference is whether the control must read the pinned bytes. No rule is restated twice: the content-existence/add-before-delete invariant was already correct in cutover-policy, and these edits cite it rather than copy it. Agent: charly (session lead, opencharly umbrella) * docs(skills): move the submodule intent block out of the pin-state TABLE, and cross-link it Review round 1 on the skills PR, two fixes: - the "A submodule is BORN unpinned" block was inserted BETWEEN two rows of the pin-state table, which ends the table in markdown: the three rows after it rendered as literal paragraph text. It now sits AFTER the complete table, where a reader meets it after the state it explains. - the two commands it carries also appear in repo-setup's new-repo checklist. That is a checklist repeating a command, not a rule in two homes: the checklist is read on its own and now CITES the reference as the owner of the rule and the reasoning (R2). Prose only. Agent: charly (session lead, opencharly umbrella) * docs(skills): delete the blank line that still split the pin-state table Round 2: moving the prose block out of the table left the blank line behind it, and a blank line terminates a GFM table — so the rows from no-source-pin through blocked-by still rendered as paragraph text. The table is now contiguous end to end. Checked mechanically this time rather than by eye: a scan for any empty line immediately preceding a table row finds none in the file. Agent: charly (session lead, opencharly umbrella)
Summary
Add
charly_status— the gh_pr_status analogue for charly validation — plus the don't-pile-up system-prompt rule.Dependency change (disclosed):
.pi/settings.jsonREMOVESnpm:[email protected]. Reason: the package's own manifest declarespi.extensions: ["./extensions"], a DIRECTORY the extension loader cannot import as a module (Cannot find module .../pi-web-ui/extensions) — it broke every subagent child startup and nothing in the umbrella uses web-ui tools. Removing a broken, unused package, not a feature change.Tool:
.pi/extensions/charly-status.tswithcheck/watchmodes forbed/image/vm: bed status from charly's OWN .check artifacts + bed lock (auto-locating the tree under the box project roots), image presence (read-only podman), VM domain state (read-only virsh);watchpolls until a bed concludes (completion-is-the-wake, for background subagents).Guidance:
.pi/APPEND_SYSTEM.md— (1) the binding Don't-Pile-Up-Unfinished-Work rule (close every loop; always catch up with upstream main before finalizing a PR), (2) Charly validation status: use charly_status VIA A SUBAGENT; never ad-hoc ps/tail/podman/virsh shell.Follow-ups (named, in this PR's theme): (a) apply the same settings.json extension entry to charly's copy so the 5-file harness-parity check stays green — charly repo, batch: pi-harness-parity-mirror; (b) fix the pi-claude-marketplace agent generator, which emits agent frontmatter with EMPTY descriptions + no extensions wiring (the reason .pi/agents/ wiring is local-only here) — batch: pi-claude-marketplace-agent-generator.
How tested — pasted output
Fresh pi session, command + verbatim result:
The tool auto-located the run tree under the box project (no caller projectDir) and matched the actual .check state byte-for-byte.
Rulebook compliance
Change classification
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)