You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7ab343c
Browse filesBrowse the repository at this point in the historyBrowse files
test: fix fallback chain and stale library snapshot drift in the test suite (#322)
Eight tests failed on main, all from drift rather than a code regression
(verified: the same failures reproduced on a clean HEAD worktree before this
change). Three independent causes:
1. Model fallback chain missed Fable
------------------------------------
langgraph_engine/model_fallback.py encoded
TIER_CHAIN = ("haiku", "sonnet", "opus"), but the authored rule
(~/.claude/rules/model-fallback.md) and the library now declare
haiku -> sonnet -> opus -> fable -> escalate to user (Fable is the tier
above Opus). test_the_encoded_chain_matches_the_rule_document failed.
- TIER_CHAIN gains "fable". next_tier/decide/format_fallback_log are
chain-driven, so opus now retries at fable and fable is the top tier that
escalates to the user; no other logic change was needed.
- tests/test_model_fallback.py: the inline copy of the documented chain block
now mirrors the rule (four lines, fable top tier) and the parsed length
assertion is 4. The mutated-chain negative controls still fail as intended.
2. kg_selection snapshot constants stale vs claude-global-library
-----------------------------------------------------------------
tests/test_kg_selection.py pins counts measured against library 29.73.0;
the live library is 29.97.4. Re-measured with the same catalogue/adapter:
EXPECTED_DOMAIN_COUNT 100 -> 104
EXPECTED_TOTAL_EDGES 7266 -> 7527
EXPECTED_AGENT_COUNT 508 -> 528
EXPECTED_SKILL_COUNT 996 -> 1034
NAIVE_READER_BLIND_SPOT_EDGES 486 -> 490 (domains unchanged at 7)
MEASURED_CONTAINER_CENSUS[("bare","type")] 58 -> 62 (others unchanged;
total still equals the domain count)
Docstrings that quoted the old figures/version were updated to match.
tests/test_kg_selection_fallback.py: MEASURED_REAL_MAX_CONFIDENCE
0.864 -> 0.865 (real-task maximum is now 0.8643; minimum 0.685 unchanged,
still well clear of the floor).
3. Advertised file counts one behind the tree
---------------------------------------------
test_doc_counts_match_the_tree: docs said 105 test files / 96 unit /
493 .py repo-wide / 126 files under tests/; the tree has 106 / 97 / 494 / 127.
Updated CLAUDE.md Quick Info and README.md (tests badge, directory tree,
Testing section).
Verification
------------
Full suite, run in four shards (pytest.ini already sets -q, so progress-line
counts were used): 2757 passed, 48 skipped, 0 failed, 0 errors, including
tests/integration and tests/e2e. The four previously failing files alone:
104 passed.
Closes#322
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013u46KPovSoGvJBAxyJiFoX
Copy file name to clipboardExpand all lines: CLAUDE.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,8 @@ Claude Workflow Engine is a 3-level LangGraph-based orchestration pipeline for a
20
20
|**Status**| Active Development |
21
21
|**Primary Location**| langgraph_engine/ |
22
22
|**MCP Servers**| 13 servers -- all in separate repos under [techdeveloper-org](https://github.com/orgs/techdeveloper-org/repositories); 1 also keeps an in-engine copy in `src/mcp/`|
0 commit comments