Skip to content

[Task]: Load every routed skill's working context through one bundled call #802

Open

Description

@sumithr

Priority / sequencing

P1 / priority: next. Child of #508. Lands after #512, which ships sumo_qa_load_skill_context(mode="bundle") and wires it into reviewing-before-merge only.

Suggested labels

  • tooling
  • ux

Roadmap fields

Status: In review; Priority: P1; Size: L; Order: 1; Depends on: none

Problem

#512's acceptance criterion "a routed skill obtains its working context in one tool call" is met for sumo-qa-reviewing-before-merge only. The other routed skills still chain separate loader calls (load_standards, load_rules, load_techniques, load_principles, load_skill_context), and #512 measured that chained loader calls are the main session-token multiplier because every extra turn re-sends the whole conversation.

The bundle today carries the body, modules, classification entries and filtered standards and rules. It cannot carry techniques or principles, which most of the remaining skills need.

Expected outcome

Every routed skill gets its working context in one call after routing, so a QA workflow reaches its first real output in fewer turns, with no loss of answer quality.

Scope

Acceptance criteria

  • A per-family before/after measurement decides which skills are wired, and the PR states the result for each family.
  • Bundle mode accepts techniques and principles, and each part is byte-identical to the matching single loader.
  • Each listed skill loads its working context in one call after routing.
  • The audit reports per-loader vs bundled call counts for each wired workflow and fails its configured budgets.
  • One real before/after session per wired skill family with the compare-mcp-versions harness shows equal or fewer turns and total tokens, or the PR states the measured regression and why it is accepted.
  • Promptfoo evals for each changed skill show no material regression (lift, not a loosened rubric).

Test plan

  • Bundle parity tests for techniques and principles.
  • Per-skill promptfoo eval, proportionate to the change.
  • Before/after session measurement with compare-mcp-versions.
  • Full Python suite.

Context

Split from #512 (the review skill and the bundle foundation land there). Related: #798, whose split skills deliver their modules through this bundle.

Activity

  1. added
    enhancement
    ux
    on Oct 2, 2026
  2. added
    priority: next
    on Oct 2, 2026
  3. sumithr commented on Oct 3, 2026

    @sumithr
    OwnerAuthor

    Premise re-check: per-loader vs bundled context, one representative workflow per skill family.

    Setup: compare-mcp-versions --review-mode, haiku, one run per family, an identical non-interactive prompt on both sides. Base is a clean copy of main at 99bf3ad. Candidate is the same tree with the router handing each routed skill one bundled call (body plus catalogues). Fixture: a fresh repo made from tests/fixtures/repo_map/python_project.

    Family (skill) Base: tokens / turns / sumo-qa calls Bundled: tokens / turns / calls Bundle called? Result
    security (security-testing) 330,484 / 8 / 6 261,127 / 4 / 3 yes 21% fewer tokens, equivalent answer: wired
    planning (preparing-for-work) 504,243 / 11 / 8 338,133 / 9 / 6 no cheaper, but not from the bundle: not wired
    test-writing (implementing-with-tdd) 561,598 / 11 / 4 683,660 / 13 / 5 yes 22% more tokens: not wired
    answering (answering-testing-question) 412,521 / 9 / 7 483,528 / 9 / 7 no 17% more tokens: not wired
    strategising 485,528 / 15 / 6 1,721,967 / 25 / 6 no 255% more tokens (extra repo exploration): not wired

    Reading: on haiku, single sessions are dominated by Read/Bash turns, and the router's handoff instruction was ignored in 3 of 5 runs, so one run per family is noisy at the ±20% level. Only the security family showed a saving attributable to the bundle, so only it is wired in the PR for this issue. The acceptance criterion "each listed skill loads its working context in one call" is therefore met for security-testing only, and this issue stays open for the remaining families pending repeat measurements.

  4. sumithr commented on Oct 3, 2026

    @sumithr
    OwnerAuthor

    Verification of PR #829 at head abb46ad9cb0e4390797ca55a2fd3a3221cbb0b5e (merge-base 99bf3ad).

    Acceptance criteria, checked against the branch

    AC Status Evidence
    Per-family measurement decides wiring; PR states each family met measurement comment above (5 families); PR body names the result for each
    Bundle accepts techniques and principles, each part byte-identical met src/sumo_qa/skill_manifest.py _CATALOGUE_LOADERS + _bundle; tests/test_skill_context_bundle.py parity per catalogue; ledger rows 2 to 4 on the real server
    Each listed skill loads its working context in one call met for security-testing only; deferred for the other six skills with the user's sign-off (no saving measured); this issue stays open for them skills/sumo-qa-deciding-approach/SKILL.md handoff line; ledger rows 6 and 7
    Audit reports per-loader vs bundled call counts and fails budgets met scripts/audit_context_budget.py + pyproject.toml workflow; ledger row 8
    Before/after harness session per wired family met security: 330,484 tokens / 8 turns to 261,127 / 4 (comment above); ledger row 9
    Evals show no material regression met ledger row 12

    Verification evidence

    • CI: 28/28 checks green on the head, including pytest on ubuntu py3.10 to 3.14, macOS and Windows (run 37146042790).
    • Local suite: the PR's pre-push hook on this head (5,471 passed, 8 skipped, 1 xfailed, 100% coverage). No push this session.
    • Mutation gate: Linux mutation.yml dispatch on the head, run 37160155382: "All modules: kill counts >= baseline and 0 survivors. Strict gate passed."
    • Per-file sumo-qa-reviewing-before-merge over all 19 files (origin/main...HEAD): SAFE, no high or medium findings. One low: docs/ARCHITECTURE.md:67 and README.md:90 list the bundle parts without catalogues (incomplete, not false).
    • /code-review high: the full diff and every fix delta were reviewed during development (rounds 1 to 3 fixed real defects; the last delta round was clean). No fix was made in this pass.
    • Review threads: 0 unresolved.

    Behaviour ledger (branch wheel in a clean venv, driven by headless haiku through the MCP tools)

    # Expected behaviour (from the issue) Real-surface call + input Observed output Met
    1 A per-family before/after measurement decides which skills are wired, and the PR states the result for each family (AC1) gh pr view 829 --json body + gh api .../issues/802/comments (measurement comment 5970662857, compare-mcp-versions --review-mode, haiku) Comment table: security 330,484/8 turns -> 261,127/4 "wired"; planning cheaper "not from the bundle: not wired"; test-writing +22% "not wired"; answering +17% "not wired"; strategising +255% "not wired". PR body: "security ... so wired. Planning was cheaper but did not call the bundle; test-writing, answering and strategising were more expensive. None of those is wired." yes
    2 Bundle catalogues="techniques" part byte-identical to sumo_qa_load_techniques (AC2) haiku run B (branch wheel, MCP): call 1 load_skill_context(skill_name="sumo-qa-security-testing", mode="bundle", include_body=false, catalogues="techniques"), call 2 sumo_qa_load_techniques(); served texts compared from the stream-json tool_results `catalogues[techniques] len=5926 sha=1fc37ec98f3a load_techniques len=5926 sha=1fc37ec98f3a
    3 Bundle catalogues="principles" part byte-identical to sumo_qa_load_principles (AC2) run B calls 3 and 4 (same shape, catalogues="principles") `catalogues[principles] len=3317 sha=b158d13d9f08 load_principles len=3317 sha=b158d13d9f08
    4 Bundle catalogues="classifications,approaches" parts byte-identical to their single loaders run B calls 5, 6, 7 `catalogues[classifications] len=3353 sha=4b39f2834faf load_classifications ... sha=4b39f2834faf
    5 An unknown catalogue name returns the error envelope listing the valid names run B call 8 load_skill_context(..., mode="bundle", catalogues="techniques,widgets") {"error": "Unknown catalogue(s) ['widgets'].", "available_catalogues": ["approaches","classifications","principles","techniques"]} (159 chars); haiku: "8. Error: "Unknown catalogue(s) ['widgets']." Available catalogues: approaches, classifications, principles, techniques" yes
    6 A security-testing request routes using_sumo_qa -> deciding_approach -> ONE bundle call (body + security standards/rules + techniques), and the answer uses it (AC3, security family) haiku runs A, A2, A3 (branch wheel), prompt "I need to security test the password reset endpoint in our Flask app: POST /password-reset ... What security tests should I write for it?" All 3: using_sumo_qa -> sumo_qa_deciding_approach -> [A2 only: load_classifications, load_approaches] -> sumo_qa_load_skill_context {"skill_name":"sumo-qa-security-testing","mode":"bundle","classification":"security_change","catalogues":"techniques"}; no sumo_qa_security_testing call, no separate standards/rules/techniques loader. Bundle keys: body, classifications (security_change entry), standards, rules (security_change must_consider), catalogues.techniques; 17,910 chars, ~4,449 tokens. Answers use it: "state transition (ISSUED -> CONSUMED -> REVOKED)", "boundary value analysis", "decision table", token replay/expiry/tampering, account enumeration, rate limiting, residual risk (rules + techniques + skill step 3). Turns 4/6/4 vs main (A-main x3) 8/9/9, where main called the skill tool then 3 loaders. yes
    7 AC3 for the other listed skills (preparing-for-work, creating-test-plan, strategising, answering-testing-question, implementing-with-tdd, strengthening-tests) branch SKILL.md catalogue list + existing-flow runs C, C2-C4 Not wired by design: deciding-approach still routes them to their skill tools, which load their own catalogues (C2-pr: answering_testing_question -> load_principles + load_techniques; C3/C4-pr: implementing_with_tdd -> load_techniques). The #802 measurement showed no saving for these families. DEFERRED (user sign-off; #802 stays open for these)
    8 The audit reports per-loader vs bundled call counts for each wired workflow and fails its configured budgets (AC4) uv run --no-sync python scripts/audit_context_budget.py in the PR worktree, then --config copy with the security bundle budget set to 4000 Real config: workflow security testing (per-loader) ... calls 8 re-sent 78101; bundle security testing 17910 chars 4478 tokens budget 4600; workflow security testing (bundled) ... calls 5 re-sent 43331; context budget: OK, exit 0. Tight config: bundle security testing ... 4000 OVER, FAIL bundle security testing: ~4478 est. tokens > budget 4000, context budget: FAILED, exit 1 yes
    9 One real before/after compare-mcp-versions session per wired family shows equal or fewer turns and tokens (AC5) #802 comment 5970662857 (harness run, haiku, security family) plus this session's A x3 branch vs A-main x3 Harness: security 330,484 tokens / 8 turns -> 261,127 / 4 turns, "equivalent answer". This session: branch 4/6/4 turns, main 8/9/9 turns, same route outcome yes
    10 The conformance validator scores a real debug capture of the security route as entry into sumo_qa_security_testing transcript_from_debug_dir(cap-A-pr) + validate_transcript (validator from the installed branch wheel), scenario expected_entry_skill=sumo_qa_security_testing calls=[('using_sumo_qa', None), ('sumo_qa_deciding_approach', None), ('sumo_qa_load_skill_context', False)], passed: True violations: [] (main's skill-tool capture also passes) yes
    11 The conformance validator scores a failed (error) bundle as NOT entered the router captures of run A plus run B's real error capture (catalogues="techniques,widgets", include_body true, output.json "error": true); also all of run B's capture [('using_sumo_qa', None), ('sumo_qa_deciding_approach', None), ('sumo_qa_load_skill_context', True)] passed: False [('wrong_skill_routing', "expected entry skill 'sumo_qa_security_testing' was never invoked"), ('first_hop_violation', "router chain broken: 'sumo_qa_security_testing' does not first fire after using_sumo_qa -> sumo_qa_deciding_approach")]; the same capture with the successful bundle instead passes yes
    12 Promptfoo evals for each changed skill show no material regression (AC6) Claude-pair run-eval.sh on the two changed skills' configs, worktree clean at abb46ad (see evals slot) skill-deciding-approach 5/5; skill-deciding-approach.ab full-skill leg 9/9 (controls 0/9 and 1/9, failing as designed); skill-security-testing 5/5 yes
    Slot Observed
    real_repo Every agent run used cwd /Users/SumithRamsookbhai/Desktop/repos/apo/sumo-qa-pr-829, a worktree of the real sumo-qa clone at the PR head, with its full history. The audit ran on the same worktree. The conformance captures are the real SUMO_QA_DEBUG_DIR output of those runs.
    real_surface Branch wheel sumo_qa-0.71.1-py3-none-any.whl built with uv build --wheel from abb46ad and installed into a clean venv (sumo_qa.__file__ = .../finish-829/venv-pr/lib/python3.14/site-packages/sumo_qa/__init__.py). The server ran via python -m sumo_qa with a temp HOME. Each run: ENABLE_TOOL_SEARCH=false claude -p ... --model haiku --strict-mcp-config --mcp-config <cfg> --allowedTools mcp__sumo-qa --disallowedTools Bash Write Edit NotebookEdit Skill Agent --disable-slash-commands. Init tool lists held no Skill, Bash, Write or Edit.
    existing_flow Same agent and prompt ("I'm adding a discount calculation function ... How should I test it?"), branch wheel vs an origin/main db73841 wheel, 4 reps each. using_sumo_qa, load_classifications and load_approaches outputs: identical. sumo_qa_deciding_approach output: 33 diff lines, only the PR's intended edits (step 2 wording, step 8 "(security testing: via its bundle)", routing-table row, the catalogue-list handoff line, shortened red-flag rows). Routing outcomes: branch {no skill entered x1, answering_testing_question x1, implementing_with_tdd x2}; main {implementing_with_tdd x3, answering_testing_question x1}.
    evals eval-reuse-check.py first: all three RERUN (no stored run of skill-deciding-approach.yaml; .ab: none of 21 stored runs matches HEAD, latest has no results; security-testing: none of 6 matches, cases and vars differ). Reran each once, own PROMPTFOO_CONFIG_DIR, SUMO_EVAL_REPEAT=1: skill-deciding-approach eval-C6a-2026-10-03T23:04:00 5 passed (100%), exit 0; the checker now reports REUSABLE: eval-C6a... 5/5 passed, inputs identical to HEAD. skill-deciding-approach.ab eval-ZWc-2026-10-03T23:04:00 10 passed, 17 failed, exit 3, by leg: B - full skill (current) 9/9, A1 - catalogues only 1/9, A0 - no skill 0/9 (controls are expected to fail). skill-security-testing eval-SRv-2026-10-03T23:04:00 5 passed (100%), exit 0; the known-flaky checklist case passed first time. The checker still says RERUN for .ab and security-testing on these fresh runs: it reads the controls' deliberately missing skill_content, and the classification-filtered rules/standards, as mismatches. Other configs: evals not run, because the diff feeds only these two skills (user rule: proportionate).

    Observations (not blockers):

    • On the security route, the router's own load_classifications + load_approaches calls were skipped in 2 of 3 branch runs, against 0 of 3 on main. The routing was still correct, and the bundle carries the security_change entry.
    • Existing flow, 4 runs per side: 1 of 4 branch runs answered after the router without entering a skill. All 4 main runs entered one. At this sample size a 1-in-4 difference is within haiku variance, so it is not called a regression.
  5. sumithr commented on Oct 5, 2026

    @sumithr
    OwnerAuthor

    Verification of PR #829 at head 602d3fb0de0bb52e65101b4c4960bd7377c65770

    Rebased onto main 36b90d14 (merge-base). The PR head was DIRTY against main: main's capability-profile gate (#826/#836/#845) and this PR both added a parameter to load_skill_context. Resolved by keeping both (profile= is passed by the server and kept out of the conformance capture args; catalogues= from this PR).

    Fixes made during this finish pass

    Commit What Found by
    c2ff77c6 Full-profile tools/list budget 12,100 to 12,200. Rebased, the full list measured 12,161: main's external-skill tools left 5 tokens of headroom and catalogues= adds 66. Core budget unchanged (9,261 of 9,400). the context-budget audit after the rebase
    602d3fb0 Router fallback: on an error from the security bundle, call sumo_qa_security_testing. Wording test on haiku (router SKILL.md as system prompt, a real oversize error envelope): without the clause 0 of 5 fell back (all 5 retried with include_body=False plus load_techniques, so the skill body never arrived); with it 4 of 5 called the skill tool, and the normal handoff still made the bundle call in 5 of 5. Compressed to fit the 3,510-token router budget (now 3,510). per-file review, medium

    Review

    • Per-file sumo-qa-reviewing-before-merge over every changed file's full post-change content vs origin/main...HEAD (generated tests/fixtures/mcp_tools_list_snapshot.json skipped: its regen script leaves the tree clean). Verdict SAFE, no material findings on the final head. src/sumo_qa/conformance.py, server.py, skill_manifest.py, scripts/audit_context_budget.py, scripts/live_first_hop.py, pyproject.toml, skills/sumo-qa-security-testing/SKILL.md, the five docs, the five test modules: SAFE, low findings only. skills/sumo-qa-deciding-approach/SKILL.md: one medium (no fallback when the entry bundle errors), fixed in 602d3fb0, re-reviewed in full: SAFE, lows only.
    • /code-review high, round 1 on the rebase resolution and budget (c2ff77c6): the profile gate holds for bundles (a core-profile bundle for a gated skill returns only the capability error); one low finding. Round 2 on c2ff77c6..602d3fb0: wording-only findings, none blocking; stop rule applied. Open low notes, not fixed here:
      • conformance scores a gated skill's own tool returning "capability unavailable" as entry, while the same refusal through a bundle is not entry. No scenario hits it today.
      • the router fallback line sits next to "never both", and the oversize envelope's own hint suggests retrying with include_body=False; measured at 1 of 5 haiku reps.
      • the router SKILL.md is at exactly its 3,510-token budget.
    • Open review threads: 0.

    Acceptance criteria (#802), checked against the branch

    AC Status Evidence
    Per-family measurement decides wiring; PR states each family met comment 5970662857 table; PR body names each family
    Bundle accepts techniques and principles, each part byte-identical met _CATALOGUE_LOADERS in skill_manifest.py; parity tests in tests/test_skill_context_bundle.py; ledger rows 1-2
    Each listed skill loads its context in one call after routing met for security-testing; deferred for the other six families ledger row 4; the measurement showed no saving for the others; #802 stays open (PR is Refs)
    Audit reports per-loader vs bundled call counts and fails its budgets met scripts/audit_context_budget.py security workflow; tests/test_audit_context_budget.py; ledger row 6
    Real before/after session per wired family met ledger row 9
    Promptfoo evals show no material regression met ledger row 10

    Behaviour ledger (4.7), observed on the real product surface

    # Expected behaviour (from the issue) Real-surface call + input Observed output Met
    1 Bundle mode accepts catalogues= techniques and principles (AC2) branch wheel c2ff77c (clean venv), headless haiku via MCP, run B: load_skill_context(skill_name="sumo-qa-security-testing", mode="bundle", include_body=false, catalogues="techniques"), then catalogues="principles", then catalogues="classifications,approaches" All three returned a catalogues object with the named parts (results 6,327 / 3,664 / 7,266 chars); agent: "1. No error ... 7. No error" yes
    2 Each catalogues= part is byte-identical to its single loader (AC2) run B: each bundle followed by sumo_qa_load_<name>(); served texts compared from the stream-json tool_results catalogues[techniques] len=5926 sha=1fc37ec98f3a = load_techniques; principles len=3317 sha=b158d13d9f08; classifications len=3353 sha=4b39f2834faf; approaches len=3468 sha=343f7bf4b652; identical=True for all 4 yes
    3 An unknown catalogue name returns an error envelope listing valid names (PR scope) run B call 8: load_skill_context(..., mode="bundle", catalogues="techniques,widgets") {"error": "Unknown catalogue(s) ['widgets'].", "available_catalogues": ["approaches","classifications","principles","techniques"]}; agent: "8. Error: "Unknown catalogue(s) ['widgets']." Available catalogues: approaches, classifications, principles, techniques" yes
    4 A security-testing request routes through the router to ONE bundle call carrying body + security standards/rules + techniques, and the answer uses them (AC3, wired family) branch wheel 602d3fb (clean venv), headless haiku via MCP, runs A1, A2, A4, prompt "I need to security test the password reset endpoint in our Flask app: POST /password-reset ... What security tests should I write for it?" All 3: using_sumo_qa -> sumo_qa_deciding_approach -> sumo_qa_load_skill_context {skill_name: sumo-qa-security-testing, mode: bundle, classification: security_change, catalogues: techniques}; no skill tool, no separate loaders. Bundle keys: body, modules, classifications, standards, rules (security_change: must_consider: - Token lifecycle (issue, refresh, rotate, revoke) - Replay protection ...), catalogues; 17,910 chars. Answers: A1 token lifecycle, enumeration, rate limit, expiry, replay (rules; no technique named); A2 boundary value, state transition, decision table, token lifecycle, replay, residual risk; A4 boundary value, state transition, decision table, equivalence, token lifecycle, residual risk. A 4th run (A3) invented tool names (mcp__sumo_qa__using_sumo_qa: "No such tool available"), never read the router and entered via the skill tool; not counted yes
    5 Security-testing entered without the bundle (Skill tool / handoff) still loads standards, rules, techniques via single loaders (fallback, step 2) branch wheel 602d3fb (clean venv), headless haiku via MCP, run D2: "call using_sumo_qa, then sumo_qa_security_testing ... Do NOT call sumo_qa_deciding_approach or sumo_qa_load_skill_context" + the password-reset request using_sumo_qa -> sumo_qa_security_testing -> sumo_qa_load_standards {classification: security_change} -> sumo_qa_load_rules {classification: security_change} -> sumo_qa_load_techniques; answer: token lifecycle, enumeration, rate limit, expiry, replay, residual risk yes
    6 Audit reports per-loader vs bundled call counts for each wired workflow and fails its configured budgets (AC4) worktree at c2ff77c: scripts/audit_context_budget.py; then --config copies with (a) security bundle budget 4000, (b) handoff = "false", (c) loaders = " , " Real: workflow security testing (per-loader) 54217 13555 - 8 78101; bundle security testing 17910 4478 4600; workflow security testing (bundled) 55212 13803 - 5 43331; context budget: OK exit 0. (a) FAIL bundle security testing: ~4478 est. tokens > budget 4000 / context budget: FAILED exit 1. (b) config error: context-budget workflow[3] handoff must be true or false exit 2. (c) config error: context-budget workflow[3] loaders must name at least one loader exit 2 yes
    7 Conformance scores a successful body-carrying bundle as entry, an errored bundle as not entered (PR scope) branch wheel's transcript_from_debug_dir + validate_transcript, scenario expected_entry_skill=sumo_qa_security_testing, on the real SUMO_QA_DEBUG_DIR captures of runs A1/A2/A4 and of main's A1; and the A1 router captures followed by run B's real error bundle capture (include_body: true, catalogues: "techniques,widgets", output "error": true) cap-A1-pr, cap-A2-pr, cap-A4-pr: [('using_sumo_qa', None), ('sumo_qa_deciding_approach', None), ('sumo_qa_load_skill_context', False)] passed: True []; cap-A1-main (skill tool): passed: True []; router + errored bundle: [..., ('sumo_qa_load_skill_context', True)] passed: False [wrong_skill_routing: "expected entry skill 'sumo_qa_security_testing' was never invoked", first_hop_violation: ...] yes
    8 Per-family measurement decides wiring; result stated per family (AC1) gh api repos/sumithr/sumo-qa/issues/comments/5970662857 (compare-mcp-versions --review-mode, haiku, one run per family) + PR body security 330,484/8 turns -> 261,127/4 "21% fewer tokens, equivalent answer: wired"; planning "cheaper, but not from the bundle: not wired"; test-writing "22% more tokens: not wired"; answering "17% more tokens: not wired"; strategising "255% more tokens ... not wired". PR body: "Only the security family is wired, because it is the only family where a real-session measurement showed the bundle saving tokens." yes
    9 Real before/after session per wired family shows equal or fewer turns and tokens (AC5) #802 comment 5970662857 (compare-mcp-versions, haiku, security) + this session's A runs, branch 602d3fb wheel vs origin/main 36b90d1 wheel, same agent and prompt Harness: 330,484 tokens / 8 turns -> 261,127 / 4. This session: branch A1/A2/A4 4/4/4 turns, 194,335 / 256,329 / 256,703 tokens; main A1/A2 7/6 turns, 323,176 / 324,495 tokens (main path: skill tool, then load_standards, load_rules/load_techniques). Fewer turns and fewer tokens in every pairing yes
    10 Promptfoo evals for each changed skill show no material regression (AC6) Claude-pair npm run eval -- <config> (candidate haiku, judge claude-opus-5-5), single pass, own PROMPTFOO_CONFIG_DIR each; see evals slot skill-deciding-approach 5/5 on 602d3fb; skill-deciding-approach.ab full-skill leg 9/9 (controls A1 1/9, A0 0/9, failing as designed); skill-security-testing 5/5 on c2ff77c (its inputs are unchanged at 602d3fb) yes
    11 Non-wired families (preparing-for-work, creating-test-plan, strategising, answering, tdd, strengthening) load context in one call (AC3, rest) branch router SKILL.md catalogue list; existing-flow runs C (see slot) Not wired by design: the router still routes these to their skill tools, which load their own catalogues. The #802 measurement showed no saving for these families. PR is Refs #802, issue stays open for them. DEFERRED (user sign-off recorded by the earlier /finish-pr 829 session; #802 stays open)

    Supporting slots

    Slot Observed Met
    real_repo Every agent run used cwd /Users/SumithRamsookbhai/Desktop/repos/apo/sumo-qa-pr-829, the real sumo-qa worktree at the rebased local head, full history. The audit ran in the same worktree. The conformance captures are the real SUMO_QA_DEBUG_DIR output of those runs. yes
    real_surface Branch wheel sumo_qa-0.75.0-py3-none-any.whl built with uv build --wheel from git archive 602d3fb0 (and from c2ff77c for run B), installed into a clean venv (sumo_qa.__file__ = .../scratchpad/v/venv-pr/lib/python3.14/site-packages/sumo_qa/__init__.py), served via python -m sumo_qa with a temp HOME. Each run: ENABLE_TOOL_SEARCH=false claude -p "<prompt>" --model haiku --strict-mcp-config --mcp-config <cfg> --allowedTools mcp__sumo-qa --disallowedTools Bash Write Edit NotebookEdit Skill Agent --disable-slash-commands --output-format stream-json --verbose; all runs exit 0. yes
    existing_flow Same agent and prompt ("I'm adding a discount calculation function to our pricing module ... How should I test it?"), branch 602d3fb wheel vs origin/main 36b90d1 wheel. Served outputs diffed (C1 pair): using_sumo_qa, load_classifications, load_approaches, implementing_with_tdd identical; sumo_qa_deciding_approach 21 diff lines, only the PR's intended edits (step 2 wording, step 8 "(security testing: via its bundle)", routing-table row, catalogue-responsibilities handoff bullet with the error fallback, the shortened principles line and red-flag rows, the creating-test-plan line). Routing outcomes: main 4/4 entered a skill (implementing_with_tdd x4); branch 5/6 entered a skill (implementing_with_tdd x3, answering_testing_question x2), 1 answered directly after the router without entering a skill (C2 at 602d3fb). The earlier session saw 4/4 on both sides, so across sessions branch 9/10 vs main 8/8: within haiku noise, not identical. yes (one non-entry noted)
    evals eval-reuse-check.py first, against every stored db: all three configs RERUN (the rebase brought main's judge config and changed standards/rules files). Ran each once on the Claude pair with its own PROMPTFOO_CONFIG_DIR. skill-security-testing on c2ff77c: 5 passed (100%), exit 0 (eval-E8i-2026-10-05T10:26:53). skill-deciding-approach first run on c2ff77c 4/5 (case "executable runner package under tests/" chose tdd-scaffold, not verify-existing); stopped the in-flight .ab run when the router fix changed its input; on 602d3fb: 5 passed (100%), exit 0, checker REUSABLE: eval-Vag-2026-10-05T10:38:33 ... 5/5 passed, inputs identical to HEAD. That one case x3 on branch 602d3fb 3/3, on main 36b90d1 2/3: candidate variance, present on main. skill-deciding-approach.ab on 602d3fb: 10 passed (37.04%), by leg B - full skill (current) 9/9, A1 - catalogues only 1/9, A0 - no skill 0/9 (controls fail as designed). The checker still says RERUN on the fresh .ab and security-testing runs for structural reasons (the .ab controls omit skill_content; security-testing's classification-filtered rules/standards vars). yes

    Suite, CI and mutation

    • Local suite (pre-push hook on 602d3fb0): pytest (pre-push)...Passed, 6289 passed, 8 skipped, 1 xfailed, Required test coverage of 100% reached. Total coverage: 100.00%; mutmut (pre-push, scoped ...)...Passed.
    • CI: 31 of 31 checks pass on 602d3fb0 (pytest matrix ubuntu 3.10-3.14, macOS and Windows 3.10/3.14, ruff, mypy, drift-and-schemas, context token budget, pip/uvx installs on 3 OSes, plugin-dir handshake, CodeQL, pip-audit, shellcheck, markdown links, no em-dashes).
    • Mutation gate (Linux mutation.yml dispatch on 602d3fb0, run 37299520097): All modules: kill counts >= baseline and 0 survivors. Strict gate passed.

    mergeStateStatus BEHIND after main gained #840, #841, #846, #850, #851 (action and ruff bumps, release 0.75.1); git merge-tree against main is clean, so it squash-merges directly.

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

    ai-taskenhancementpriority: nexttoolingux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions