Repository navigation
fix(check): gate the compiled-in plugin schemas before authored-input validation; pin spec v0.2026249.2231 (offline-fallback latest-tag) - #551
Conversation
… validation A COMPILED-IN plugin unit registers its PROVIDERS at init() but its SERVED SCHEMA only through the sync.Once loadBuiltinPluginUnits gate. A box-mode check run inside a fresh container (charly check live on a deployed bed) reaches runPluginVerb through an entry path that runs NO project plugin load, so connectBakedPlugin resolves the init-registered builtin provider immediately (registry hit, no connect) and validation ran against an EMPTY input-def registry — every `plugin verb:*` check step failed with "no input def registered (schema not loaded)" while the deploy phase (whose loadDeployPlugins path runs the gate) passed. The kind-class dispatch already gates before validating (runPluginKind); runPluginVerb now runs the SAME idempotent gate before any resolve/validation, and a broken builtin schema fails the verb loudly. The TDD repro test fails pre-fix with the exact production message.
…d migration tail Companion pin set required by spec v0.2026249.2231 (opencharly/spec #108 — the persisted latest_tags cache is an offline fallback, never fresh data; the stale-latest-tag RCA fix): - spec v0.2026249.2030 => v0.2026249.2231 — the staleness fix itself: a fresh process now always re-probes the latest tag instead of serving the 1h-TTL persisted entry (plugin refs resolved STALE v2026.242.0932 minutes after v2026.249.2212 was tagged). - sdk v0.2026249.2036 => v0.2026249.2114 — forced: spec 2231 removed Deploy/FleetNode.IsGroup (spec #105); 2114 is the first sdk tag without the deleted guard (sdk #224). - plugin-check v0.2026249.2119, plugin-fleet v0.2026249.2126, plugin-preempt v0.2026249.2116, plugin-migrate v0.2026249.2144 — forced: the same IsGroup migration in charly's compiled-in plugin candies. Schema-floor tail (the migrate verb's own 2026.249.2125 stamp output, no hand edits): charly/charly.yml version stamp + the hardcoded fixture stamps in six test files the raised floor requires. The broader config conversion (group-node rewrites) is NOT part of this PR.
… + forced migration tail" This reverts commit 39d0bb9.
Review — BLOCKHead SHA: Change class: runtime bugfix (check-verb dispatch ordering) + TDD test. The spec re-pin was reverted on this branch (commit 31e8378), so the current diff is the ordering fix alone — consistent with the body's EDIT. Security screen: PASS — no scope mismatch (diff = ordering fix + test, matching the EDIT's "lands the ordering fix alone"), no secrets/exfiltration, no weakened guardrails, no supply-chain change (go.mod untouched in current diff). Blocks
The code change itself is sound: the Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: runtime bugfix (check-verb dispatch ordering) + TDD test. The spec re-pin commit (39d0bb9) was reverted (31e8378), so the current diff is the ordering fix alone — consistent with the body's EDIT. Security screen: PASS — no scope mismatch (diff = ordering fix + test, matching the EDIT's "lands the ordering fix alone"), no secrets/exfiltration, no weakened guardrails, no supply-chain change (go.mod untouched in current diff). Blocks
Comment intake
The code change itself is sound: the Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — diff is the ordering fix + TDD test only (2 files); no scope mismatch (matches the body's EDIT "lands the ordering fix alone"), no secrets/exfiltration, no weakened guardrails, no supply-chain change (go.mod untouched). Checklist: All applicable rules PASS or NA.
Comment intake:
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
Two fixes:
Box-mode plugin schema-registration ordering gap — a COMPILED-IN plugin unit registers its PROVIDERS at init() but its SERVED SCHEMA only through the sync.Once
loadBuiltinPluginUnitsgate. A box-mode check run inside a fresh container reachesrunPluginVerbthrough an entry path that runs NO project plugin load, soconnectBakedPluginresolves the init-registered builtin provider immediately (registry hit, no connect) and authored-input validation ran against an EMPTY input-def registry — everyplugin verb:*check step failed with"no input def registered (schema not loaded)"while the deploy phase (whoseloadDeployPluginspath runs the gate) passed. Fix:runPluginVerbnow runs the SAME idempotent gate the kind-class dispatch already runs (runPluginKind) before any resolve/validation; a broken builtin schema fails the verb loudly.Spec re-pin v0.2026249.2231 — carries fix(refs): the persisted latest_tags cache is an offline fallback, never fresh data spec#108 (the persisted
latest_tagscache is an OFFLINE FALLBACK, never fresh data — the root fix for the stale-latest-tag anomaly where fresh runs minutes afterv2026.249.2212was tagged still resolved plugin refs tov2026.242.0932). Companion pin bumps forced by compilation against the new spec: sdk 2114, plugin-check 2119, plugin-fleet 2126, plugin-preempt 2116, plugin-migrate 2144 (the IsGroup-migration tags), plus the migrate verb's own 2026.249.2125 schema-stamp output oncharly/charly.yml,testdata/charly.ymland six hardcoded test-fixture stamps. The broader config conversion (group-node rewrites) is NOT part of this PR.How tested
Ordering gap (TDD):
The test clears the process-wide schema set and re-arms the once-gate, simulating the exact fresh-container state; pre-fix it reproduces the production message verbatim.
Full gate on the final committed tree (clean worktree off origin/main + this branch):
Staleness fix proof lives in opencharly/spec#108 (4 new tests incl. the anomaly repro: persisted
v2026.242.0932+ reachable network → freshv2026.249.2212served and persisted).Rulebook compliance
loadBuiltinPluginUnitsOnce; no second gate invented.git statusinspected at every step; feat branch from origin/main; no force-push, no hook bypass, no direct main push. The shared working tree's OTHER in-flight changes were never staged, committed, or reverted.go test -count=1 ./...green pasted above.Change classification
go build/go vet/go test -count=1 ./...green on the final committed tree; changed path executed live via the TDD repro.fully tested and validated.EDIT (2026-09-07, post-CI RCA)
The spec v0.2026249.2231 re-pin commit (39d0bb9) was REVERTED on this branch (31e8378) after CI proved it cannot pass in isolation: the raised 2026.249.2125 schema floor is enforced against box/ SUBMODULE fixtures checked out at their pinned refs, and box/fedora's main is still unmigrated (the in-flight conversion wave's scope). The re-pin work is preserved on branch feat/spec-2231-repin for the wave to cherry-pick after the box migrations merge — the wave's spec pin must be >= v0.2026249.2231 to inherit the offline-fallback latest-tag fix (spec#108). This PR lands the ordering fix alone; CI at spec v0.2026249.2030 is the main-plus-two-files state that was green before.
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)