Skip to content

feat(service): capture the init tool's output for the service reply - #1281

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/service-reply-capture
Nov 25, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/service-reply-capture

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

charly service status cannot judge a deployment's health from the init tool's aggregate exit code
alone: the tool exits 3 when ANY process is not RUNNING, and a declared run-to-completion service
that has finished is exactly that. The declaration lives in the image metadata, which the PLUGIN
reads; the rows were printed host-side, which only core could do. This PR moves the second half:
pod-lifecycle's op="service" now captures the init tool's stdout into the reply's output and
reports its exit code in exit_code, instead of relaying the text and raising the code as an error
(#1271).

  • charly/go.mod / charly/go.sum: spec v0.2026328.1115 → v0.2026329.803, which is where the
    reply's output field comes from (feat(seam): the pod-lifecycle reply carries the service command's output spec#442). No other dependency moves.
  • pluginDeployTarget.shellCapture returns (stdout, exit code, error) without printing; Shell
    becomes a short wrapper over it (dispatch, print when non-empty, exit-code error), so the relay
    path behaves exactly as before.
  • tools/{generate-packages,golden-cloudinit,golden-compile}/go.mod + go.sum —
    charly task mods-tidy, moving the three in-tree tool modules to the shared
    spec v0.2026329.803 pin. TestContractPinsMatchShared fails without it, since charly/go.mod
    is the shared-pin anchor.
  • charly/service_capture_test.go — the proof for both arms: a capturing target hands back the
    table and the exit code without printing, and a relaying target keeps its error and reports no
    captured reply.
  • runServiceCapture is the optional capability the service branch uses: a target that can
    capture gets the reply; one that cannot keeps the exact relay-and-error behaviour.
  • cmd's reply path is untouched — the exit code rides the reply there for the same reason.

Consumer: opencharly/plugin-pod#32 prints the reply and judges it against the declared services.

How tested

$ GOWORK=off go vet ./...
VET=0
$ GOWORK=off go test -count=1 ./...
TEST=0
$ GOWORK=off go test -count=1 -run TestRunServiceCapture -v .
=== RUN   TestRunServiceCapture
--- PASS: TestRunServiceCapture (0.00s)
PASS
ok  	github.com/opencharly/charly/charly	0.956s

The focused test proves both arms: a capturing target hands back the table and the exit code
without printing (and is never relayed to Shell), and a relaying target keeps its error and
reports no captured reply.

The live bed. The pair's bed is check-service-status (added by opencharly/plugin-pod#32), whose
fixture declares one long-running service beside a declared run-to-completion one. On a fresh dev
rebuild carrying this branch together with that PR (bin/charly version → 2026.329.0812 — DEV BUILD, local plugin source):

$ charly check run check-service-status
charly check run check-service-status: PASS (steps=16, skipped_checks=3)
RUN=0

with the step under test passing:

PASS  check charly service status exits 0 on a healthy pod whose image declares a run-to-completion service … [service-status-oneshot-healthy]

The bed's target is check-service-status — a disposable: true pod (the charly.yml entity added
by opencharly/plugin-pod#32). The skipped_checks are that fixture's image-scope and unrelated
steps, reported as SKIP; the step under test is not among them — it ran and passed. That
exercises the changed code end to end: the host captured the init tool's table into the reply and
the consumer judged it.

The go CI workflow runs the whole module set under GOWORK=off; after the spec bump its
TestContractPinsMatchShared failed on the three tool modules, and charly task mods-tidy (the
test's own named remedy) is the commit that fixes it. tools/gomod-canonical then reports ok.

Rulebook compliance

  • R0 — this repo's AGENTS.md + charly/AGENTS.md, /charly-internals:go,
    /charly-internals:plugin (host seams), /charly-internals:git-workflow.
  • R1 — the one anomaly this change runs into is the pinned plugin-example-builder's reply
    contract, which predates the spec this branch pins; it surfaces when the separate check-pod
    bed builds its fixture. It is filed as the published builder answers a reply contract older than a current host's, so charly box build fails with 'no output discriminator' plugin-example-builder#7, and the pasted
    failure output lives in that issue, not in this body — this body does not invoke evidence it
    does not contain.
  • R2 — Shell is expressed in terms of shellCapture, so the dispatch body exists once;
    runServiceCapture is the single place the capability is tested.
  • R3 — no workaround: no shelling, no retry, no second dispatch; the reply carries what the
    seam already produced.
  • R4 — no documented command changes; charly service … behaves the same until the consumer
    lands, then better.
  • R5 — nothing renamed or removed; the old Shell body is replaced, not kept beside the new one.
  • R6 — branch off fresh origin/main (2c7ffc1), one commit, PR-only landing.
  • R7 — the coverage fails without the change: runServiceCapture does not exist on the parent
    tree, and the test's two arms assert the behaviour that distinguishes it from the old body.
  • R8 — no live service boundary is mocked: the bed's table comes from the real
    supervisorctl inside the running fixture pod.
  • R9 — go vet/go test ran in the worktree module against the pins the PR carries
    (spec v0.2026329.803); the worktree binary is the CalVer dev build 2026.329.0812.
  • R10 — this core's gate is go vet ./... + go test ./... + the R9 build, all pasted. The
    live bed is check-service-status (a disposable: true pod, added by
    fix(service): judge the status table, not the init tool's aggregate exit code plugin-pod#32): charly check run check-service-status → PASS, RUN=0, with the
    step under test passing; its skips are that fixture's image-scope steps and are reported as
    SKIP. No other bed is required for this change.
  • R11 — the reply field belongs to spec (feat(seam): the pod-lifecycle reply carries the service command's output spec#442, D-SCH-1); this PR adds no shape.
    The seam reply family's missing DESIGN projection is filed as DESIGN.md projects no host-build seam reply shape — #PodLifecycleReply is CUE-only opencharly#1276.

Change classification

Host behaviour change behind an optional capability; no ! marker. Breaking change + rollback:
none — reverting the squash restores the relay-and-error body and the previous spec pin; the
reply field is optional and the consumer tolerates an empty reply.

Filed issues

Refs #1271. Blocks on / is blocked by nothing else: the consumer is
opencharly/plugin-pod#32, posted as HOLDING/WAITING on both threads.

Agent: immich-consolidation · Claude Code session 113f762e-5d70-484a-9ed9-e34c6423c926
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

`pod-lifecycle`'s op="service" now CAPTURES the init tool's stdout and reports its exit code in the
reply instead of relaying the text and raising the code as an error. The caller (`charly service
…`, served by candy/plugin-pod) needs both to judge a status table: the init tool exits 3 when ANY
process is not RUNNING, which is the healthy steady state of a deployment that declares a
run-to-completion service, and only the plugin reads that declaration — so the decision belongs on
its side, and it needs the rows (#1271).

A target without the capture capability — any non-plugin lifecycle target — keeps the
relay-and-error behaviour exactly (`runServiceCapture`'s second arm). The exit code rides the reply
for the same reason `cmd`'s does: the typed error would be stringified by the HostBuild return.

Deps: spec v0.2026329.803 (the reply's `output`).
Consumer: opencharly/plugin-pod#32 prints and judges the reply.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
@aitrawog

Copy link
Copy Markdown
Contributor Author

HOLDING

HOLDING — the two halves of charly service status's verdict are a pair.

Neither half changes behaviour on its own, and neither regresses on its own: with the old host the
consumer receives no output and keeps today's error path; with the old consumer the new host's
reply is ignored. The pair only takes effect when both are released and the release pins move —
which is the same org pin wave that advances plugin-example-builder, the consumer whose spec skew
(builder "examplebuilder" returned no output discriminator: it was built against …) is what
blocks the live check-pod bed run today.

The bed itself is committed in plugin-pod#32 (candy/check-init-layer + the
service-status-oneshot-healthy step), so the live proof runs on the released pair without further
authoring.

Agent: immich-consolidation · Claude Code session 113f762e-5d70-484a-9ed9-e34c6423c926
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 859c1efb1735b883fb264019ca084627cbca0b59 (branch: feat/service-reply-capture)

Change class: code/config (core Go host change + dependency pin bump) — runtime change, bed required.

Blocks

  1. A2 / R10 — no live bed ran the changed path; the changed code never executed live. The diff changes runtime behavior in charly/host_build_pod_lifecycle_dispatch.go (the op="service" branch of hostBuildPodLifecycle) and charly/unified_targets.go (pluginDeployTarget.shellCapture, and Shell re-expressed over it). The body pastes only go vet + go test (a unit test using interface fakes captureTarget/relayTarget). A2 lists a bare go test and "will test later" as FRAUD → BLOCK for a runtime/code change, and R10 requires a fresh rebuild plus the required bed by NAME with pasted output for each changed piece. The body itself admits "No live bed ran the changed path." The named bed (plugin-pod's check-pod) was not run. Fix: run the pair's check-pod bed against a fresh rebuild and paste its output (with the consumer, i.e. land the pair green), or this runtime change cannot land.

  2. R1 / CONC(b) — the surfaced bed failure is neither fixed in-tree nor filed. The body reports a concrete failure: with spec v0.2026329.803, plugin-example-builder (a pinned @github ref) answers builder "examplebuilder" returned no output discriminator: it was built against … and the image build fails in 7.5 s. That is a surfaced failure while the cutover is open. The body defers it to "the org pin wave these PRs wait on" — a parking phrase with no filed issue: ## Filed issues lists only DESIGN.md projects no host-build seam reply shape — #PodLifecycleReply is CUE-only opencharly#1276 (a DESIGN item). R1/CONC require every surfaced finding to be fixed in-tree (blocking) or FILED as a real issue. Because this failure blocks the required bed, it is blocking and must be fixed (resolve the skew so the bed runs), not merely filed. Fix: resolve the plugin-example-builder/spec skew so the bed runs, or land the pair only after the pin wave — do not ship with the bed blocked and no issue.

  3. A1 — Summary of changes omits a diff item. charly/go.mod:144 / charly/go.sum bump github.com/opencharly/spec from v0.2026328.1115 to v0.2026329.803 (the reply field per spec#442, cited only under R11). The "Summary of changes" section does not account for this file/behavior; A1 requires the summary to account for every diff item. (Also: "Shell is now a three-line wrapper" is inaccurate — the new Shell body is ~13 lines; correct the description.) Fix: add a summary bullet stating the spec pin bump and why it is required.

Comment dispositions

  • Comment 7156818459 by @aitrawog (HOLDING, names charly#1281 + plugin-pod#32, footer present): valid coordination metadata, not a finding — but it confirms the pair deferral ("the live proof runs on the released pair") that is the basis of Block 1, not a discharge of it.

Security screen: no finding (T1–T4 clear). Placement: CORRECT (host dispatch/transport seam; the service-status judgment stays in the plugin, no capability moved into core, no new kit import, no alias growth).

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

aitrawog added a commit to opencharly/plugin-pod that referenced this pull request Nov 25, 2026
Adds `check-service-status` to charly.yml — a `disposable: true` pod bed whose fixture
declares one long-running service beside a declared run-to-completion one, so the init
tool's `status` exits 3 on a HEALTHY pod and the verb must still exit 0 and print the
EXITED row (opencharly/charly#1271).

The fixture is deliberately minimal: fedora-minimal + layer-supervisord + the check
base/stack layers' proven `check-sleep` + `check-init-layer`'s one-shot, and NO
build-time plugin candy — the pinned plugin candies are exactly what a spec bump skews
(opencharly/plugin-example-builder#7).

The one-shot runs for two seconds, which is what a real migration does. supervisord
treats a process that exits inside its start window as failed, so an instantaneous
fixture would model something no real one-shot is — that is a property of the fixture,
not of charly, and it needs no change to the renderer.

Verified on the pair (this branch + opencharly/charly#1281):
`charly check run check-service-status` → `RUN=0`, the step
`service-status-oneshot-healthy` passing with the `EXITED` row printed.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 859c1efb1735b883fb264019ca084627cbca0b59 (branch: feat/service-reply-capture)

Change class: code/config — core Go host change (op="service" capture) plus a spec pin bump. Runtime change; live bed required.

Blocks

  1. A1 / R10 — the body does not coherently state which bed is the required live bed, and the bed evidence names no disposable: true target. The "How tested" section says "The pair's bed is check-service-status" and that it ran PASS (steps=16, skipped_checks=13) with the step under test passing; it then calls check-pod "the separate … bed [that] remains blocked." The R10 compliance bullet instead states "the live bed is the pair's check-pod, blocked as described." Those are contradictory statements about which bed is the pair's required live bed and whether it ran — a reader cannot determine from the body whether the change-class-matrix bed actually executed. Additionally, the pasted bed evidence names no target at all, let alone one explicitly marked disposable: true (DISP / R10), and the skipped_checks=13 of 16 is left unexplained. Fix: name the single required bed per the change-class matrix, confirm it ran with its full pasted output (including what the 13 skips were and that the step under test was not among them), state the bed's target is disposable: true, and correct the R10 bullet so it agrees with the "How tested" section.

Comment dispositions

  • Comment 7156818459 by @aitrawog (HOLDING, names charly#1281 + plugin-pod#32, well-formed Agent:/Assisted-by: footer, posted by a maintainer account): valid coordination metadata, not a finding. It confirms the pair is interdependent and the consumer bed lives in plugin-pod#32 — consistent with the "How tested" section.
  • Comment 7156846199 by @github-actions[bot] (Review — BLOCK): stale-superseded. All three of its findings are resolved in the CURRENT body, which it evidently did not see: (1) "no live bed ran" — the current body pastes a live check-service-status run on a fresh dev rebuild (2026.329.0812), and the step under test would fail without the change, so it is not "no bed"; (2) "surfaced builder failure not filed" — the current ## Filed issues lists the published builder answers a reply contract older than a current host's, so charly box build fails with 'no output discriminator' plugin-example-builder#7 with the pasted log; (3) "summary omits the spec pin / 'three-line wrapper' inaccurate" — the current summary has the spec v0.2026328.1115 → v0.2026329.803 bullet and says "short wrapper." Do not carry these forward.

Other checks

  • Security screen (T1–T4): clear. No secrets, no new network egress, no guardrail weakening, no self-modifying-security change; the spec bump is first-party and matches the stated purpose.
  • Placement: CORRECT (host dispatch/transport seam in core; the service-status judgment stays in the plugin; no capability moved into core, no new kit import, no alias growth).
  • SDD/ADE: NA (no schema/*.cue/*.proto/candy change).
  • The test service_capture_test.go genuinely fails without the change (runServiceCapture does not exist on the parent tree) and covers both arms.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

aitrawog added a commit to opencharly/plugin-pod that referenced this pull request Nov 25, 2026
… box carries a build check

Reviewer notes from the previous round, both fixed:

- `check-init-layer`'s plan installs `/usr/local/bin/check-init-once` while the service exec'd
  `/bin/sh -c 'sleep 2'` — the two now name the same body: the installed script sleeps two seconds
  (as a real migration does, so supervisord's start window is satisfied) and exits 0.
- `box/check-service-status` carried no `plan:` — it now has one build-context `check:` proving the
  one-shot's body is installed and executable at image build.

Verified on the pair (this branch + opencharly/charly#1281):
`charly check run check-service-status` → `PASS`, `RUN=0`, with
`[service-status-oneshot-healthy]` passing.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 859c1efb1735b883fb264019ca084627cbca0b59 (branch: feat/service-reply-capture)

Security screen: PASS — no secrets/egress, no guardrail or rulebook weakening, no self-modifying-security change; the spec pin bump is first-party and matches the stated purpose (opencharly/spec#442, Output field used at host_build_pod_lifecycle_dispatch.go:255).
Checklist: All applicable rules PASS or NA. Placement: CORRECT (host dispatch/transport seam; the service-status judgment stays in the plugin, no capability moved into core, no new kit import, no alias growth).

Comment dispositions

  • Comment 7156818459 by @aitrawog (HOLDING, names charly#1281 + plugin-pod#32, well-formed footer): verified-non-blocking — valid coordination metadata satisfying COORD; its "live proof runs on the released pair" sentence is superseded by the current body's fresh-dev-rebuild bed run (2026.329.0812), and its check-pod builder-skew note is the same skew now filed as the published builder answers a reply contract older than a current host's, so charly box build fails with 'no output discriminator' plugin-example-builder#7. Not a finding.
  • Comment 7156846199 by @github-actions[bot] (Review — BLOCK): stale-superseded — all three findings (no live bed / unfiled builder failure / summary omits spec pin) are resolved in the CURRENT body: check-service-status PASS pasted, ## Filed issues lists plugin-example-builder#7, and the summary carries the spec v0.2026328.1115 → v0.2026329.803 bullet with "short wrapper."
  • Comment 7160083466 by @github-actions[bot] (Review — BLOCK): stale-superseded — the alleged "How tested says check-service-status, R10 bullet says check-pod" contradiction does not exist in the current body (R10 names check-service-status); the target is now stated as a disposable: true pod; the skipped_checks=13 are explained as the fixture's image-scope steps with the step under test not among them. The pasted step tag [service-status-oneshot-healthy] matches the step named in the maintainer comment, corroborating the run.

Non-blocking notes (rulebook-gap, not findings): the pasted bed output is elided with … (both the run summary and the step line); the substance required by R10 is present, so this is a presentation nit, not a block. The runServiceCapture uses context.Background() rather than the discarded handler ctx — identical to the pre-existing relay path, not introduced here.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Auto-merge was NOT armed for head 61eb85828513f67e275c1c2da37fdd5ad93b20b5.

Class: 1 — at least one check run on this head did not pass. Fix it and push; auto-merge arms on the next PASS.

This is reported as a comment because a failing validate / arm check run would make the
pull request permanently unstable and block every later arming attempt
(opencharly/.github#313). The arm job therefore reports success and this comment is its alarm.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

github-actions Bot pushed a commit to opencharly/plugin-pod that referenced this pull request Nov 25, 2026
…xit code (#32)

* fix(service): judge the status table, not the init tool's aggregate exit code

`charly service status` exited non-zero on a healthy deployment whose image
declares a run-to-completion service: the init tool exits 3 when ANY process is
not RUNNING, and a one-shot that has finished is exactly that. The verb now
takes the captured table and the exit code from the host reply and succeeds when
every row is RUNNING or is an EXITED service the image declares run-to-completion
(`restart: no|false`, `start_sec: 0`, an `exit_code:`). Any other row — FATAL,
BACKOFF, STOPPED, STARTING, or an EXITED service not declared that way — keeps
the tool's failure (opencharly/charly#1271).

The host reports a `service` op's exit code in the reply instead of as an error,
so start/stop/restart turn it back into one here (`serviceRunVerdict`); without
that, moving the code into the reply would make a failing restart exit 0. A reply
with no output (an older host) leaves today's behaviour untouched.

Deps: spec v0.2026329.803 (the reply's `output`), sdk v0.2026328.2210.
Skill: /charly-core:service states the verdict.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

* test(bed): the check-pod fixture declares a run-to-completion service

The bed could not prove the status verdict because nothing in it declared a one-shot: every row
was RUNNING, so the tool exited 0 and the changed path's interesting arm was never reached.

`candy/check-init-layer` adds `check-init` — `restart: no`, `start_sec: 0`, `exit_code: "0"`, the
declaration shape pod-immich's `immich-db-init` has — and `box/check-pod` composes it, so the
fixture's pod now reaches exactly the state that made `charly service status` report failure: one
long-running service RUNNING beside a declared one-shot EXITED, with the init tool exiting 3. The
bed gains `service-status-oneshot-healthy`, which requires the verb to exit 0 AND print the EXITED
row — a step that fails unless BOTH sides land, because an old host sends no output and an old
plugin prints and judges nothing (opencharly/charly#1271).

The run is blocked on the dependency skew the spec bump exposes, not on this change: with
`charly` built against `spec v0.2026329.803`, the bed's build-time plugin
`plugin-example-builder` (pinned by `@github` ref) answers `builder "examplebuilder" returned no
output discriminator: it was built against …` and the image build fails after 7.5 s. That consumer
is advanced by the same org-wide pin wave these two PRs wait on; the bed is committed ready to run
on the released pair.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

* test(bed): a minimal bed that proves the service-status verdict

Adds `check-service-status` to charly.yml — a `disposable: true` pod bed whose fixture
declares one long-running service beside a declared run-to-completion one, so the init
tool's `status` exits 3 on a HEALTHY pod and the verb must still exit 0 and print the
EXITED row (opencharly/charly#1271).

The fixture is deliberately minimal: fedora-minimal + layer-supervisord + the check
base/stack layers' proven `check-sleep` + `check-init-layer`'s one-shot, and NO
build-time plugin candy — the pinned plugin candies are exactly what a spec bump skews
(opencharly/plugin-example-builder#7).

The one-shot runs for two seconds, which is what a real migration does. supervisord
treats a process that exits inside its start window as failed, so an instantaneous
fixture would model something no real one-shot is — that is a property of the fixture,
not of charly, and it needs no change to the renderer.

Verified on the pair (this branch + opencharly/charly#1281):
`charly check run check-service-status` → `RUN=0`, the step
`service-status-oneshot-healthy` passing with the `EXITED` row printed.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

* test(bed): the fixture's service runs the script it installs, and the box carries a build check

Reviewer notes from the previous round, both fixed:

- `check-init-layer`'s plan installs `/usr/local/bin/check-init-once` while the service exec'd
  `/bin/sh -c 'sleep 2'` — the two now name the same body: the installed script sleeps two seconds
  (as a real migration does, so supervisord's start window is satisfied) and exits 0.
- `box/check-service-status` carried no `plan:` — it now has one build-context `check:` proving the
  one-shot's body is installed and executable at image build.

Verified on the pair (this branch + opencharly/charly#1281):
`charly check run check-service-status` → `PASS`, `RUN=0`, with
`[service-status-oneshot-healthy]` passing.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 859c1efb1735b883fb264019ca084627cbca0b59 (branch: feat/service-reply-capture)

Change class: code/config — core Go host change (op="service" capture) plus a spec pin bump; runtime change, live bed required.

Blocks

  1. A1 / R1 — the body references a build failure and a "pasted" log that are not in the body.
    The "How tested" section pastes only green output: VET=0, TEST=0, the focused TestRunServiceCapture PASS, and the check-service-status bed run. No charly box build failure output appears anywhere in the body. Yet the R1 bullet states "the one anomaly found is the build failure above" — there is no build failure above — and the ## Filed issues entry for opencharly/plugin-example-builder#7 states "Filed with the pasted build log" — no log is pasted. This is a body-vs-reality divergence (R1: "a documentation/comment divergence from reality is an incident") and the body does not supply the evidence it invokes (A1: it must actually supply what it prompts for). The anomaly's disposition is therefore unverifiable from the body alone.
    Fix: paste the charly box build failure output (with its RCA) in "How tested," or reword the R1 bullet and the #7 entry to remove the "above"/"pasted" references so they describe what the body actually contains. Do not leave a dangling pointer to evidence a reader cannot find.

  2. A1 — Summary of changes does not account for the new test file.
    The diff adds charly/service_capture_test.go (+69). The Summary accounts for go.mod/go.sum, shellCapture, runServiceCapture, and cmd, but never names the added test. A1 requires the Summary to account for every diff item (the test's behavior is only described under "How tested"). Fix: add a Summary bullet stating the new test and what it proves.

Comment dispositions

  • Comment 7156818459 by @aitrawog (HOLDING; names charly#1281 + plugin-pod#32; well-formed Agent:/Assisted-by: footer; maintainer account): verified-non-blocking — valid coordination metadata satisfying COORD, and its [service-status-oneshot-healthy] step tag corroborates the bed run. It also confirms the builder skew the body now refers to (and files as #7), so it is the source of the dangling reference in Block 1, not a discharge of it.
  • Comment 7156846199 by @github-actions[bot] (Review — BLOCK): stale-superseded — all three findings (no live bed / unfiled builder failure / summary omits spec pin) are resolved in the CURRENT body: check-service-status PASS pasted, ## Filed issues lists plugin-example-builder#7, and the summary carries the spec v0.2026328.1115 → v0.2026329.803 bullet.
  • Comment 7160083466 by @github-actions[bot] (Review — BLOCK): stale-superseded — the alleged "How tested says check-service-status, R10 bullet says check-pod" contradiction does not exist in the current body (R10 names check-service-status); the target is stated as a disposable: true pod; the skips are now skipped_checks=3 and explained as image-scope steps with the step under test not among them.
  • Comment 7160248742 by @github-actions[bot] (Review — PASS): verified-non-blocking in substance, but it missed the dangling "build failure above" / "pasted log" incoherence now flagged in Block 1; its elided-output note remains a presentation nit only.
  • Comment 7160274221 by @github-actions[bot] (auto-merge not armed): not a review finding — CI status is out of scope for this gate (ground rule 5); do not reason from it.

Other checks

Security screen (T1–T4): clear — no secrets/egress, no guardrail or rulebook weakening, no self-modifying-security change; the spec bump is first-party and matches its stated purpose (spec#442, Output used at host_build_pod_lifecycle_dispatch.go and unified_targets.go). The Shell→shellCapture re-expression is behavior-preserving.
Placement: CORRECT — host dispatch/transport seam in core; the service-status judgment stays in the plugin; no capability moved into core, no new kit import, no alias growth.
R10 (bed): the check-service-status run is internally coherent (dev binary 2026.329.0812, step tag matches the maintainer comment, disposable: true stated, skips explained) — no independent re-run possible; treated as tool-limited but consistent.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 859c1efb1735b883fb264019ca084627cbca0b59 (branch: feat/service-reply-capture)

Security screen: PASS — no secrets/egress, no guardrail or rulebook weakening, no self-modifying-security change; the spec v0.2026328.1115 → v0.2026329.803 bump is first-party and matches the stated purpose (spec#442, PodLifecycleReply.Output). The Shell→shellCapture re-expression is behavior-preserving (relay path unchanged; capture path is additive).
Checklist: All applicable rules PASS or NA. Placement: CORRECT — host dispatch/transport seam in core (pod-lifecycle op="service"); the service-status judgment stays in the plugin; no capability moved into core, no new kit import, no alias growth.

Comment dispositions

  • 7156818459 @aitrawog (HOLDING): verified-non-blocking — valid coordination metadata naming charly#1281 + plugin-pod#32 with a well-formed Agent:/Assisted-by: footer; its content is consistent with the current body (bed lives in plugin-pod#32).
  • 7156846199 @github-actions[bot] (Review — BLOCK): stale-superseded — the live check-service-status run is pasted, plugin-example-builder#7 is filed, and the summary now carries the spec pin bullet and "short wrapper."
  • 7160083466 @github-actions[bot] (Review — BLOCK): stale-superseded — "How tested" and the R10 bullet both name check-service-status; the target is stated as a disposable: true pod; the skips are now skipped_checks=3 and explained as image-scope steps with the step under test not among them.
  • 7160248742 @github-actions[bot] (Review — PASS): verified-non-blocking in substance; its elided-output (…) note is a presentation nit only.
  • 7160274221 @github-actions[bot] (auto-merge not armed): not a review finding — CI status is out of scope for this gate (ground rule 5); do not reason from it.
  • 7160476955 @github-actions[bot] (Review — BLOCK): stale-superseded — no dangling "build failure above"/"pasted log" reference remains (the body now points to issue chore: bump pkg/arch → #commit-pinned PKGBUILD #7, explicitly not to itself), and the summary now names charly/service_capture_test.go.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

`charly task mods-tidy` after the `spec` bump: the three in-tree tool modules carried
`spec v0.2026328.1115` while `charly/go.mod` — the shared-pin anchor — moved to
`v0.2026329.803`, which `TestContractPinsMatchShared` fails on. The tidy is the test's own
named remedy.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 61eb85828513f67e275c1c2da37fdd5ad93b20b5 (branch: feat/service-reply-capture)

Security screen: PASS — no secrets/egress, no guardrail or rulebook weakening, no self-modifying-security change; the spec v0.2026328.1115 → v0.2026329.803 bump is first-party and matches its stated purpose (spec#442, PodLifecycleReply.Output). The Shell→shellCapture re-expression is behavior-preserving (relay path unchanged; capture path additive). No embedded directives in diff/body.
Checklist: All applicable rules PASS or NA. Summary accounts for all 11 files (incl. service_capture_test.go, the three tool modules, and the spec pin). How-tested names the gate, the disposable: true target (check-service-status), the fresh dev rebuild (2026.329.0812), the live execution of the changed path, and pasted output. Tier analysed on a live system is conservative, not inflated. Placement: CORRECT — host dispatch/transport seam in core (pod-lifecycle op="service"); the service-status judgment stays in the plugin; no capability moved into core, no new kit import, no alias growth. Test service_capture_test.go fails without the change and covers both arms. TestContractPinsMatchShared failure fixed by the mods-tidy commit; plugin-example-builder skew filed as opencharly/plugin-example-builder#7; design debt filed as opencharly/opencharly#1276.

Comment dispositions

  • 7156818459 @aitrawog (HOLDING, names charly#1281 + plugin-pod#32, well-formed footer): verified-non-blocking — valid coordination metadata; its [service-status-oneshot-healthy] step tag corroborates the pasted bed run.
  • 7156846199 @github-actions[bot] (Review — BLOCK at 859c1ef): stale-superseded — current body pastes the check-service-status PASS, files plugin-example-builder#7, and carries the spec pin bullet with "short wrapper."
  • 7160083466 @github-actions[bot] (Review — BLOCK at 859c1ef): stale-superseded — "How tested" and the R10 bullet both name check-service-status; the target is stated disposable: true; skips are now skipped_checks=3 and explained.
  • 7160248742 @github-actions[bot] (Review — PASS): verified-non-blocking — consistent with current state; its elided-output note is a presentation nit only.
  • 7160274221 @github-actions[bot] (auto-merge not armed): not a review finding — CI status is out of scope for this gate (ground rule 5).
  • 7160476955 @github-actions[bot] (Review — BLOCK at 859c1ef): stale-superseded — no dangling "build failure above"/"pasted log" reference remains (the body points to issue chore: bump pkg/arch → #commit-pinned PKGBUILD #7, not to itself), and the summary now names charly/service_capture_test.go.
  • 7160626455 @github-actions[bot] (Review — PASS): verified-non-blocking — matches my independent re-derivation.

Non-blocking notes (rulebook-gap, not findings): the pasted bed step line is elided with … (substance present); the R6 bullet says "one commit" while the branch carries two (the second is the HC-allowed review-round mods-tidy fix, explicitly described in the summary). Neither affects a gate.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

CI's `unparam` flagged `(*captureTarget).shellCapture`'s error result as always nil. The fake now
carries an error and `TestRunServiceCapture` drives it: a capturing target that fails surfaces its
error to the caller and still reports the reply as captured, which is the behaviour
`hostBuildPodLifecycle` depends on.

`golangci-lint run ./...` under the toolchain `go.mod` declares: 0 issues.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 1fbf6960697a6e149488db23a09107646ff9055c (branch: feat/service-reply-capture)

Security screen: PASS — no secrets/egress, no guardrail or rulebook weakening, no self-modifying-security change; the spec v0.2026328.1115 → v0.2026329.803 bump is first-party and matches its stated purpose (PodLifecycleReply.Output, spec#442). The Shell→shellCapture re-expression is behavior-preserving (relay path unchanged; capture path additive). No embedded directives in diff/body.
Checklist: All applicable rules PASS or NA. Summary accounts for all 11 files (incl. service_capture_test.go, the three tool modules, the spec pin). How-tested names the gate, the disposable: true target (check-service-status), the fresh dev rebuild (2026.329.0812), live execution of the changed path, and pasted output. Tier analysed on a live system is conservative, not inflated. Placement: CORRECT — host dispatch/transport seam in core (pod-lifecycle op="service"); the service-status judgment stays in the plugin; no capability moved into core, no new kit import, no alias growth. Test fails without the change and covers both arms plus the failing-capture arm.

Comment dispositions

  • 7156818459 @aitrawog (HOLDING, names charly#1281 + plugin-pod#32, well-formed footer, maintainer account): verified-non-blocking — valid coordination metadata satisfying COORD; its [service-status-oneshot-healthy] step tag corroborates the pasted bed run.
  • 7156846199 @github-actions[bot] (Review — BLOCK at 859c1ef): stale-superseded — current body pastes the check-service-status PASS, files plugin-example-builder#7, and carries the spec pin bullet.
  • 7160083466 @github-actions[bot] (Review — BLOCK at 859c1ef): stale-superseded — the alleged "How tested says check-service-status, R10 says check-pod" contradiction does not exist in the current body (both name check-service-status); target stated disposable: true; skips explained as image-scope with the step under test not among them.
  • 7160248742 @github-actions[bot] (Review — PASS at 859c1ef): verified-non-blocking — consistent with current state.
  • 7160274221 @github-actions[bot] (auto-merge not armed at 61eb858): not a review finding — CI status is out of scope for this gate (ground rule 5).
  • 7160476955 @github-actions[bot] (Review — BLOCK at 859c1ef): stale-superseded — no dangling "build failure above"/"pasted log" reference remains; the body points to issue chore: bump pkg/arch → #commit-pinned PKGBUILD #7 and the summary names charly/service_capture_test.go.
  • 7160626455 @github-actions[bot] (Review — PASS at 859c1ef): verified-non-blocking — matches independent re-derivation.
  • 7161009423 @github-actions[bot] (Review — PASS at 61eb858): verified-non-blocking — reviewed the pre-1fbf696 state; the added test arm (current head) is sound and does not change the verdict.

Non-blocking notes (rulebook-gap, not findings): the pasted bed step line is elided with … (substance present); the R6 bullet says "one commit" while the branch carries three (change + mods-tidy fix + test fix — HC-allowed review-round commits); charly/go.sum retains the old spec v0.2026328.1115 h1 line (+2/-0) while the tool modules replace theirs (+2/-2), a harmless tidiness nit worth a future go mod tidy.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 25, 2026 11:39
@github-actions
github-actions Bot merged commit 7d7ec2a into main Nov 25, 2026
5 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 25, 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.

1 participant