Skip to content

Epic: Operator-mode quality hardening — real-pattern retrieval + actionability #307

Open

Description

@hurttlocker

Epic Goal

Turn the March 8 real-pattern benchmark from a one-off diagnostic into a sustained root-fix lane for Cortex.

This epic is not about making the benchmark look greener by watering it down.
It is about using the cleaner real-pattern harness to drive the actual product fixes that matter for operator-style prompts.

Why Now

The final live Gemini rerun on March 8, 2026 gave us the cleanest read so far:

  • Gemini 3 Flash Preview is working correctly enough to remain the cheap eval lane
  • the harness is materially less distorted by prompt-shape noise
  • the remaining failures are now useful product signal, not just benchmark noise

Final live read

  • Retrieval: 5/12 passed, avg precision@k 0.4167, noisy top-3 hits 0
  • Reason: 3/5 gated passed, 5 report-only cases, avg overall 0.6367
  • Remaining gate failures:
    • pass_rate
    • actionability
    • hard_failure_rate

Root Problem Statement

Cortex is still weak on long operator-style prompts in two places:

  1. retrieval quality — the wrong doc/section is still ranked too high too often
  2. reason actionability — answers are often grounded enough but not operationally decisive enough

Scope

This epic tracks the product-side fixes that should come after the benchmark truth-hardening pass already landed in repo docs/tests.

It is parallel to feature epics like #267 / #274 / #275, not a replacement for them.

Ordered Child Issues

Operating Rules

  • Keep slices bounded and PR-reviewable.
  • Do not hide real failures by loosening expectations without justification.
  • Preserve the benchmark as a truth surface.
  • Every slice must end with:
    • targeted tests
    • updated benchmark/docs if interpretation changes
    • a clear before/after explanation

Success Criteria

We should be able to say all of this honestly:

  • real-pattern retrieval got materially better on top-1 relevance
  • reason outputs became more actionable without fake scoring inflation
  • fewer cases need report_only
  • agents can keep using the GitHub queue as a real operating lane instead of a dead note pile

Activity

  1. added
    epic
    benchmark
    hardening
    on Mar 8, 2026
  2. hurttlocker commented on Mar 8, 2026

    @hurttlocker
    OwnerAuthor

    Locking this epic in as the operating lane for benchmark-root-fix work.

    Execution order

    Current safe sequence:

    1. Finish current bounded Belief lifecycle policies — auto-promote, auto-retire, conviction scoring #274 slice A
      • keep it truly read-only / operator-facing
      • no lifecycle writes
      • no auto-promote / auto-retire drift
    2. search: operator-intent query shaping for long workflow prompts #303 — operator-intent query shaping
    3. search: top-1 ranking hardening for operator-style retrieval #304 — top-1 ranking hardening
    4. reason: actionability hardening for operator-style prompts #305 — actionability hardening
    5. benchmark: rehydrate clipped telemetry prompts and keep the real-pattern pack fresh #306 — telemetry rehydration / report-only reduction

    PR slicing rules

    Acceptance criteria by lane

    #303 — query shaping

    • product-side shaping for long operator prompts exists
    • deterministic tests cover shaped vs raw behavior
    • at least one currently red operator-style retrieval case becomes a real top-1 product win

    #304 — ranking hardening

    • section/file/phrase relevance improves top-1 behavior on real-pattern prompts
    • no reintroduction of noisy top-3 results
    • ranking/debug evidence is inspectable enough to explain why the winner won

    #305 — actionability hardening

    • reason outputs become more operationally decisive on operator prompts
    • actionability improves without regressing grounding / contradiction handling
    • hard-failure behavior improves for the right reasons, not because the bar was lowered

    #306 — telemetry / fixture quality

    • fewer cases remain report_only because prompt retention / rehydration improved
    • no fabricated prompt detail
    • reason pack stays trustworthy enough for future gates

    Hawk gate expectations

    Every PR from this epic should get:

    1. gh pr checks
    2. touched-surface deterministic tests
    3. go test ./... when scope warrants
    4. concise PASS/FAIL verdict with exact fix list on fail
    5. explicit note on whether the PR changed:
      • product behavior
      • benchmark interpretation
      • both

    Non-negotiable rule

    This epic exists to fix the real product gaps the cleaned March 8 benchmark exposed:

    • retrieval weakness on operator-style prompts
    • actionability / hard-failure weakness in the reason lane
    • telemetry quality limits that hide real operator signal

    If a change makes the benchmark look prettier without making Cortex better, it is the wrong change.

  3. hurttlocker commented on Mar 8, 2026

    @hurttlocker
    OwnerAuthor

    Opened #309 to add the repo-level agent operating contract:

    Purpose:

    • make the root AGENTS.md the durable repo-wide contract for all agent work
    • keep issue / epic comments as lane-specific execution overlays
    • reduce drift as Niot / Hawk responsibilities evolve
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

    benchmarkepichardening

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions