Skip to content

Capture emission reliability for ref/claim/klass #350

Closed

Description

@abogartz

Part of #349.

Context (measured)

Arm F, real path, local quantized capture model (results-conflict-real ×2 + results-conflict-real2 ×3): the capture model emitted ref/claim/klass on the guided row 5/6 times. The one miss degraded gracefully — the plain guided row still carried the spec and pass 2 passed the task anyway (results-conflict-real2 run 2.3). So the feature never breaks on a miss, but a miss silently downgrades a code-checked verdict to the coin-flip framing (#345 arm D: 2 harms in 5).

Change

  1. Add ONE worked example of a guided conflict candidate to buildCapturePrompt (src/capture/prompt.ts) — models follow an example object better than a rule sentence. Example: user says the tax constant must be 0.0825 → {"type":"context","scope":"pricing","content":"The constant TAX_RATE in src/pricing.ts must be 0.0825.","kw":[...],"guided":true,"ref":"TAX_RATE","claim":"0.0825","klass":"spec"}. Keep the existing contract lines; the example must not reintroduce the forbidden authority claim ("the suite encodes that" stays banned).
  2. Evidence: extend the capture-promoted evidence line with conflict=full|partial|absent for the guided rows so emission rate is auditable without reading the store.
  3. Do NOT build a deterministic fallback extractor for ref/claim from user text: without klass there is no verdict, and auto-assigning the class is exactly the undecidable decision this epic refuses to make silently. If emission stays below 5/6 after the example, reopen this ticket with the numbers.

Acceptance

  • buildCapturePrompt contains the worked example; capture tests assert it and assert the suite-authority ban is still present.
  • A promoted guided row's evidence line carries conflict=full|partial|absent; tests cover all three shapes.
  • Bench: over a fresh 6-run arm F window on the seat model, field emission ≥5/6; the per-run table is posted here.
  • Junk in any field still drops THAT field, never the row (existing candidates.ts tests keep passing).

Footguns

  • The example is also a template for junk: keep the parse strict (identifier regex for ref, ≤32-char flattened claim, enum klass) — the example must not tempt a prose claim.
  • Emission is measured on evo/Qwen3.8-Flash-Next-UD-Q4_K_XL; a different capture model needs its own window, do not quote 5/6 for it.

Activity

  1. added
    retrieval
    agent:ready
    on Nov 8, 2026
  2. abogartz commented on Nov 8, 2026

    @abogartz
    OwnerAuthor

    Code portion landed on main @ 0.20.0 (via the #343 split + #357): worked example present in buildCapturePrompt; promoted guided rows carry conflict=full|partial|absent on the evidence line. NOT closed — the bench acceptance remains: a fresh 6-run arm F window on the seat model, field emission >=5/6, per-run table posted here. No such window exists in the bench folder as of 2026-11-08 (latest arm F data is the pre-example results-conflict-real2, 5/6). Related: branch retrieval-fix-20261107 adds captureGuidedRules (deterministic guided+quote emission, default OFF); its A/B (results-rules-t3x5, t3 x5) measures guided/orig emission, not ref/claim/klass — it does not satisfy this ticket's window.

  3. abogartz commented on Nov 8, 2026

    @abogartz
    OwnerAuthor

    Window stopped early by maintainer decision (2 iterations of 6, seat released for the port). Data (results-f-main-x6, plugin main @ d0929a6, bench @ 4a6f316, seat evo/Qwen3.8-Flash-Next):

    iter F1 pass1 F2 ref/claim/klass F3 CONFLICT rode F4 obeyed F5 task
    1 PASS FAIL — tax row stored plain decision/pricing, no user-guided tag, no fields FAIL (no fields -> no code check) PASS (plain row still fixed it) PASS
    2 PASS PASS — guided row ref=TAX_RATE claim=0.0825 klass=spec PASS PASS PASS

    Emission 1/2 — the coin flip, as predicted from the pre-example 5/6. Maintainer call: the >=5/6 gate is replaced by shipping the deterministic fix. The branch's captureGuidedRules pre-pass measured 5/5 guided+quote emission with 50/50 links and one validator refusal caught live (FINDINGS-2026-11-08-rules-ab.md, bench@2911482). Port PR to follow; this ticket closes when the port lands with the deterministic path on.

  4. abogartz-opencode-self-improvement commented on Nov 9, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.21.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  5. abogartz commented on Nov 9, 2026

    @abogartz
    OwnerAuthor

    Landed on main in aac3fe9 (PR #364, approved at d0e1ee6; merged after resolving a conflict against #367/#373, gates green at fe73e64).

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

    agent:readyreleasedretrieval

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions