Skip to content

feat(pi): charly_status tool for bed/image/vm status + don't-pile-up guidance - #82

Merged
atrawog merged 5 commits into
mainfrom
feat/charly-status-tool
Aug 31, 2026
Merged

atrawog merged 5 commits into
mainfrom
feat/charly-status-tool

Conversation

@atrawog

@atrawog atrawog commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

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.json REMOVES npm:[email protected]. Reason: the package's own manifest declares pi.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.ts with check/watch modes for bed / 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); watch polls 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:

$ pi -p "Call extensions.charly_status target=bed name=check-sway-browser-vnc-pod mode=check"
bed: check-sway-browser-vnc-pod
state: RUNNING
latest run dir: /home/atrawog/Sync/Atrapub/coder/pi/opencharly/charly/box/fedora/.check/check-sway-browser-vnc-pod/2026.243.0735
steps: 188 steps: 148 passed, 0 failed, 40 skipped
verdict: in-progress
logs: .../2026.243.0735/

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

  • R3: one sanctioned status surface; no duplication (backend reuses charly's own artifacts).
  • R4: replaces ad-hoc ps/tail/podman/virsh shell — the audit's own diagnosis pain point.
  • R6: read-only tool; never mutates a bed/image/VM.
  • R10: live pi-CLI output pasted above (the changed path executed).

Change classification

  • Change class: pi tooling + system-prompt discipline (config/tooling).
  • Verification gate: syntax + live pi-CLI functional test (pasted).
  • Attribution tier: analysed on a live system (the tool ran against the real bed; the harness layers it configures load on the next session start).

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)

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).
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 9c46c915799c (branch: feat/pi-charly-status)

Change class: pi tooling + system-prompt config (config/tooling)

Security screen

T3 — scope mismatch. .pi/settings.json removes "npm:[email protected]" from the packages list, but the body's Summary never mentions this removal. The body accounts for the file but not the full change within it. This is an undocumented change (dependency removal) that must be disclosed and justified.

Blocks

  1. T3 — undocumented dependency removal. .pi/settings.json drops [email protected] from packages. The body's Summary/How-tested never mention it. Either restore it or add an explicit justification for the removal to the summary.

  2. A1 — incomplete body (no pasted output). The "How tested" section describes a live pi-CLI test ("a fresh session calls extensions.charly_status on the real sway-browser-vnc bed … a check-bed-runner child reports the tool in its surface") but pastes no output — only promises. A1 requires pasted output, not a description. Also the "Rulebook compliance" section addresses only R3/R4; it does not answer every applicable rule with a one-line HOW as A1 requires.

  3. B6/R2 — forbidden follow-up splits. Two parking phrases with no named thematic batch:

    • "mirror PR recorded as follow-up" (parity note for charly's settings.json copy) — vague deferral, no batch/task named.
    • "whose upstream generator is broken; separate finding" (.pi/agents/ wiring) — a "separate finding" deferral with no named exit this PR advances. The claimed agent wiring is local-only, absent from the diff, and unverifiable.
  4. B14(a)/B18 — dead code in a touched file. In .pi/extensions/charly-status.ts, imageStatus declares let ref = image; which is never used. Dead code in the PR's own modified file is a blocking finding (also a golangci-lint/vet-class issue for the TS equivalent). Remove the unused variable.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

…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.
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 9434668fc7a0 (branch: feat/pi-charly-status)

Change class: pi tooling + system-prompt config (config/tooling)

Security screen

T3 — scope mismatch. .pi/settings.json removes "npm:[email protected]" from packages, but the current body's Summary never mentions this removal. Undocumented dependency change.

Blocks

  1. T3 — undocumented dependency removal. .pi/settings.json drops [email protected] from packages. The body's Summary/How-tested never disclose or justify it. Either restore it or add an explicit justification to the summary.

  2. A1 — incomplete body (no pasted output; incomplete rulebook section). The "How tested" section describes a live pi-CLI test ("a fresh session calls extensions.charly_status on the real sway-browser-vnc bed … a check-bed-runner child reports the tool in its surface") but pastes no output — only a description. A1 requires pasted output. The "Rulebook compliance" section answers only R3/R4, not every applicable rule with a one-line HOW. The body also lacks the required *Assisted-by: …* attribution footer for an AI-authored PR.

  3. B6/R2 — forbidden follow-up splits. Two parking phrases with no named thematic batch:

    • "mirror PR recorded as follow-up" (parity note for charly's settings.json copy) — vague deferral, no batch/task named.
    • "whose upstream generator is broken; separate finding" (.pi/agents/ wiring) — a "separate finding" deferral with no named exit this PR advances; the claimed agent wiring is local-only, absent from the diff, and unverifiable.
  4. B14(a)/B18 — dead code in a touched file. In .pi/extensions/charly-status.ts, imageStatus declares let ref = image; which is never used. Remove the unused variable.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 5ba3c8f77800 (branch: feat/pi-charly-status)

Security screen: PASS — no secrets/exfiltration (tool is read-only: .check files, podman images, virsh domstate); no weakened guardrails; the pi-web-ui package removal is now disclosed and root-caused in the body's Summary (manifest declares a directory extension the loader cannot import — a broken, unused package). No embedded directives aimed at the validator.

Checklist: All applicable rules PASS or NA.

Prior-reviewer findings re-derived against the CURRENT state — all resolved:

  • T3 undocumented dependency removal → stale-superseded: body now discloses and justifies the pi-web-ui removal.
  • A1 no pasted output → stale-superseded: body now pastes verbatim live pi-CLI output; attribution footer *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)* present in exact form; tier not inflated (tool ran live against the real bed; harness layers load next session).
  • B6/R2 vague follow-ups → stale-superseded: both follow-ups now name explicit batches (pi-harness-parity-mirror, pi-claude-marketplace-agent-generator).
  • B14(a)/B18 dead code (let ref = image) → stale-superseded: removed in commit 5ba3c8f; current diff has no unused variable.

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 (.pi/ umbrella extension, not core/sdk/candy).

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 50c334be6835 (branch: feat/pi-charly-status)

Security screen: PASS — tool is read-only (.check files, podman images, virsh domstate via execFile with fixed args, no shell injection); no secrets/exfiltration; no weakened guardrails; the pi-web-ui removal is disclosed and root-caused in the body (manifest declares a directory extension the loader cannot import — broken, unused package).

Checklist: All applicable rules PASS or NA.

Prior-reviewer findings re-derived against the CURRENT diff/body — all resolved:

  • T3 undocumented dependency removal → stale-superseded: body's Summary now discloses and justifies the pi-web-ui removal.
  • A1 no pasted output → stale-superseded: body pastes verbatim live pi-CLI output; *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)* footer present in exact form; tier not inflated (tool ran live against the real bed; harness layers load next session).
  • B6/R2 vague follow-ups → stale-superseded: both follow-ups now name explicit batches (pi-harness-parity-mirror, pi-claude-marketplace-agent-generator).
  • B14(a)/B18 dead code (let ref = image) → stale-superseded: removed in commit 5ba3c8f; current diff has no unused variable (all functions/imports in charly-status.ts are used).

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 (.pi/ umbrella extension, not core/sdk/candy). The final "re-trigger dispatcher" commit is a CI/merge stamp, not partial work.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@atrawog
atrawog enabled auto-merge (squash) August 31, 2026 08:55
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 3b826a880ffdf85ab7f77fa85ec933d464362094 (branch: feat/pi-charly-status)

Security screen: PASS — tool is read-only (.check artifacts, podman images, virsh domstate via execFile with fixed args, no shell injection); no secrets/exfiltration/network egress; no weakened guardrails; the [email protected] removal is disclosed and root-caused in the body (manifest declares a directory extension the loader cannot import — broken, unused package). No embedded directives aimed at the validator.

Checklist: All applicable rules PASS or NA.

Prior-reviewer findings re-derived against the CURRENT diff/body — all resolved:

  • T3 undocumented dependency removal → stale-superseded: body's Summary now discloses and justifies the pi-web-ui removal.
  • A1 no pasted output → stale-superseded: body pastes verbatim live pi-CLI output internally consistent with the tool's output format and box-project auto-location; *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)* footer present in exact form; tier not inflated (tool ran live against the real bed; harness layers load next session).
  • B6/R2 vague follow-ups → stale-superseded: both follow-ups name explicit batches (pi-harness-parity-mirror, pi-claude-marketplace-agent-generator).
  • B14(a)/B18 dead code (let ref = image) → stale-superseded: absent from current diff; all functions/imports in charly-status.ts are used.

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 (.pi/ umbrella extension, not core/sdk/candy). The merge/re-trigger commits are merge/CI stamps, not partial work.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@atrawog
atrawog merged commit 965f438 into main Aug 31, 2026
1 check passed
@atrawog
atrawog deleted the feat/charly-status-tool branch August 31, 2026 09:33
charly-auto-merge Bot added a commit that referenced this pull request Aug 31, 2026
github-actions Bot pushed a commit that referenced this pull request Nov 19, 2026
…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)
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.

1 participant