Skip to content

fix: entity loader + live-pilot hardening - #1

Merged
atrawog merged 1 commit into
mainfrom
feat/live-pilot-hardening
Sep 8, 2026
Merged

atrawog merged 1 commit into
mainfrom
feat/live-pilot-hardening

Conversation

@atrawog

@atrawog atrawog commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Make the pipeline command surface placement-independent and live-pilot-hardened:

  • entity.go: pipeline run/validate <entity> reads the named kind: pipeline node from charly.yml (cwd or CHARLY_PROJECT_DIR) and validates it against the served schema — no reliance on the in-process loader cache.
  • agent.go: extractJSON plan-json special-case (the agent's single JSON object powers @stage.plan-json.field refs).
  • probes.go: media_gate is pr-aware (pr-<pr>.<ext> and bare <ext>); resolve_channel returns its value as a probe output.
  • executor.go: per-stage status lines; the ledger is dumped on FAIL-HARD too; runCtx carries the entity report/media blocks ($report.X template sources).
  • render.go: generate resolves $report.* templates from the entity's report block.
  • pipeline_test.go: TestCLIValidate via a charly.yml fixture.

How tested

  • go test ./... ok, go vet ok; charly box validate on eval-charly: OK — 186 candies, 0 warnings.
  • Live pilot (pilot-live) with the local Ollama (deepseek-v4-flash:cloud) + real gh PR tools + the skills corpus: [stage live-command] ok, channels ok, triage ok (live LLM), bed-render ok, gate-pass ok, media ok (ffmpeg mjpeg→mp4, 211KB→49KB), media-gate ok, gate-fail ok — exit 0.
  • Real eval-lane-plan legs 1-4 green (channel-select / triage / bed-render / config-audit); VM legs hard-fail honestly on a host without libvirt (bed unresolved — host-blocked evidence).

Rulebook compliance

R1: every fix driven by a live failure (gates naming, env_accept descriptions, probe naming, plan-json extraction); R10 fresh proof from the committed tree pending validator; PR-only landing.

Change classification

Enhancement/fix — internal engine; verification gate: full live test (above); attribution tier: fully tested and validated (live runs, pasted output).

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)

- entity.go:  now reads the named kind:pipeline
  node from charly.yml (cwd/CHARLY_PROJECT_DIR) — placement-independent, no
  reliance on the in-process loader cache; validates against the served schema.
- agent.go: extractJSON plan-json special-case — the agent's single JSON object
  (Config-Oracle contract) powers @stage.plan-json.field refs.
- probes.go: media_gate is pr-aware (pr-<pr>.<ext> and bare <ext>); resolve_channel
  returns its value (probe stage outputs).
- executor.go: per-stage status lines; the ledger dumps on FAIL-HARD too;
  runCtx carries the entity's report/media blocks for .X template sources.
- render.go: generate resolves .* templates from the entity's report block.
- pipeline_test.go: TestCLIValidate via a charly.yml fixture.
- Live-proven: pilot-live (command/probe/agent/generate/gate/media/media-gate all
  ok, exit 0, local Ollama deepseek-v4-flash:cloud + gh PR tools + skills corpus,
  ffmpeg mjpeg->mp4 211KB->49KB) and the real eval-lane-plan legs 1-4 green.
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