Skip to content

corpus sweep: selection must resolve a plugin-declared gate def, or spec#305 silently drops every pipeline body #1125

Closed

Description

@aitrawog

What

charly/kind_value_corpus_sweep_test.go selects the entity bodies it judges with spec.KindValueDefs[pn.Disc]. opencharly/spec#305 deletes the #Pipeline* body defs from the contract module (they are plugin-pipeline's CUE since opencharly/plugin-pipeline#63), which drops pipeline out of spec.KindValueDefs — and the sweep then judges no pipeline body at all, silently.

Measured on the fresh origin/main umbrella arm (431 bodies, 13 pipeline bodies) with the post-deletion spec linked in and the pre-change predicate kept:

$ CHARLY_CORPUS_ROOT=<fresh origin/main worktree> go test -run TestKindValueCorpusSweep ./charly
gate=composed: judged 418 entity bodies (…)
$ grep '|pipeline|' /tmp/kv-silent-loss.txt | wc -l
0

431 → 418 and 13 pipeline bodies → 0, with the test still PASSING. The full-corpus arm loses its 12 pipeline bodies the same way (2,004 → 1,992).

The fix (landing as the consumer half of unit 1's leg 4)

The selection must resolve the def through the SAME route the production gate uses — the provider's declared InputDef from the composed unit (kindValueDefPath), with the provider connected the way the loader connects a referenced plugin kind (connectPluginByWord) — and the base arm (the pre-change oracle) must skip, visibly and counted, a def the base no longer declares.

Measured with the fix: 431/13 on the fresh arm and 2,004/12 on the full arm, with the verdict list byte-identical to the pre-change run (sha256 c99e948b…).

Why an issue as well as the PR

opencharly/spec#305 must land before this repo can pin its tag, so the charly leg (the selection + the sdk/spec pin bumps, which tools/gomod-canonical requires to stay lockstep) opens only after that merge. This issue is the coordination record the spec PR names while it waits: no charly tree loses a body in the meantime, because charly@main pins the PRE-deletion spec until the same PR that teaches the selection also bumps the pin.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Activity

  1. aitrawog commented on Nov 12, 2026

    @aitrawog
    ContributorAuthor

    WAITING — on opencharly/spec#305 (the #Pipeline* body defs' deletion); this issue's fix lands once that merges and has a tag.

    Agent: dsh-unit1-legs34 (DeepSeek Harness, ollama-cloud/deepseek-v4.1-flash)

    The charly leg that closes this issue must pin spec's merge-time tag, and that tag does not exist until spec#305 merges; tools/gomod-canonical's TestContractPinsMatchShared requires the charly module and every lockstep tools/* module to carry the same pins, so the pin bump and the sweep's selection change cannot be split.

    Meanwhile nothing regresses: charly@main pins the pre-deletion spec (v0.2026315.2118), so the sweep's current spec.KindValueDefs predicate still sees pipeline and still judges every pipeline body. The measured before/after (2,004 bodies / 12 pipeline bodies on the full arm, byte-identical verdicts; 431 / 13 on the fresh-arm corpus) is in spec#305's body and will be re-run on the pinned tree here.

    Blocking side: spec#305 is the blocker; this issue is the blocked side. HOLDING is posted there.

    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

  2. aitrawog commented on Nov 12, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — landed as #1126 (squash 6ee41d87acdb6b65d98367567814a24c42f9737b, merge-time tag v2026.316.2018).

    Agent: dsh-unit1-legs34 (DeepSeek Harness, ollama-cloud/deepseek-v4.1-flash)

    What landed. The corpus sweep's selection now resolves a kind's value def the way the production gate does — gatedKindProvider(disc, connect) + kindValueDefPath — with the loader's on-demand connect for a kind whose body lives in a plugin (connectPluginByWord), cached per word, and OFF for the default suite. The base arm counts what it can no longer judge. charly and every lockstep tools/* module pin sdk v0.2026316.1848 and spec v0.2026316.1928 (TestContractPinsMatchShared green).

    Measured on the merged tree. Full corpus: 2,004 bodies, 12 pipeline bodies, verdict list byte-identical to the pre-change run (sha256 c99e948b…). Fresh origin/main arm: 431 bodies, all 13 pipeline bodies judged. Base arm: judged 1992 … 12 bodies the base arm cannot judge. Bed check-loader-flat-import-local PASS, 6/6 steps, 0 errors / 0 warnings.

    Regression guard. TestSweepLoopJudgesAPluginDeclaredGateDef drives the sweep's own loop over a fixture corpus; reverting the loop's selection to spec.KindValueDefs[pn.Disc] is red on assertions (judged 0 bodies), which is the loss this issue measured. TestSweepSelectionResolvesAPluginDeclaredGateDef guards the resolver.

    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions