Skip to content

Commit 1eb0f01

Browse files
Trecekclaude
andcommitted
fix: update arch guard baselines for capability admission control
- Add server/test_capability_admission_e2e.py to recipe cascade entry - Update pyright suppression allowlist line number (276→279) in _api.py - Bump tools_kitchen.py line limit 1200→1250 for infeasible response helper - Update _type_constants symbol count 91→93 for new capability constants - Sync _LEGACY_JSON_WRITES line numbers after tools_kitchen.py insertion Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 968d1e8 commit 1eb0f01

5 files changed

Lines changed: 12 additions & 10 deletions

File tree

tests/_test_filter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ class ImportContext(enum.StrEnum):
756756
"server/test_tools_kitchen_visibility.py",
757757
"server/test_tools_execution_step_resolution.py",
758758
"server/test_tools_execution_input_gates.py",
759+
"server/test_capability_admission_e2e.py",
759760
# CLI file-level entries (6 of 38 import autoskillit.recipe):
760761
"cli/test_cli_prompts.py",
761762
"cli/test_l3_orchestrator_prompt.py",

tests/arch/test_pyright_suppression_allowlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"recipe/__init__.py",
2323
262,
2424
): "lazy-registry: method added by _register_rule_module() side effects",
25-
("recipe/_api.py", 276): "lazy-registry: RULE_REGISTRY_HASH set by _finalize_registry()",
25+
("recipe/_api.py", 279): "lazy-registry: RULE_REGISTRY_HASH set by _finalize_registry()",
2626
}
2727

2828
TEST_ALLOWLIST: dict[tuple[str, int], str] = {

tests/arch/test_subpackage_isolation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,14 +962,15 @@ def test_data_directories_are_not_python_packages() -> None:
962962
"co-located with the execution engine that calls them",
963963
),
964964
"tools_kitchen.py": (
965-
1200,
965+
1250,
966966
"REQ-CNST-010-E7: kitchen tool handlers — open_kitchen and lock_ingredients require "
967967
"inline validation helpers (_check_override_keys, _build_ingredient_key_suggestions) "
968968
"for ingredient key validation; splitting would cross import-layer boundaries; "
969969
"backend capability promotion delegated to _promote_capability_keys in _auto_overrides; "
970970
"fail-closed validity gate on both deferred-recall and normal paths adds structural "
971971
"error propagation from LoadRecipeResult; get_recipe validity guard adds 9 lines; "
972-
"dispatch-feasibility preflight wiring on both paths with gate-close on failure",
972+
"dispatch-feasibility preflight wiring on both paths with gate-close on failure; "
973+
"_dispatch_infeasible_response helper for DOA pipeline refusal",
973974
),
974975
"tools_execution.py": (
975976
1130,

tests/arch/test_subpackage_structure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def test_type_constants_split_completeness(self):
5959
assert len(combined) == len(remaining) + len(env) + len(features) + len(registries), (
6060
"Duplicate symbols across split modules"
6161
)
62-
assert len(combined) == 91, (
63-
f"Expected 91 symbols total, got {len(combined)} "
62+
assert len(combined) == 93, (
63+
f"Expected 93 symbols total, got {len(combined)} "
6464
f"(remaining={len(remaining)}, env={len(env)}, "
6565
f"features={len(features)}, registries={len(registries)})"
6666
)

tests/infra/test_schema_version_convention.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ def _is_yaml_dump(node: ast.expr) -> bool:
119119
# _lifespan.py — hooks.json self-heal on startup drift (co-owned with Claude plugin system)
120120
("src/autoskillit/server/_lifespan.py", 89),
121121
# tools_kitchen.py — hook config, quota guard, git_ops_policy, ingredient locks overlay
122-
("src/autoskillit/server/tools/tools_kitchen.py", 171),
123-
("src/autoskillit/server/tools/tools_kitchen.py", 190),
124-
("src/autoskillit/server/tools/tools_kitchen.py", 224),
125-
("src/autoskillit/server/tools/tools_kitchen.py", 918),
126-
("src/autoskillit/server/tools/tools_kitchen.py", 978),
122+
("src/autoskillit/server/tools/tools_kitchen.py", 201),
123+
("src/autoskillit/server/tools/tools_kitchen.py", 220),
124+
("src/autoskillit/server/tools/tools_kitchen.py", 254),
125+
("src/autoskillit/server/tools/tools_kitchen.py", 965),
126+
("src/autoskillit/server/tools/tools_kitchen.py", 1025),
127127
# tools_pipeline_tracker.py — tracker_data dict
128128
("src/autoskillit/server/tools/tools_pipeline_tracker.py", 166),
129129
# tools_status.py — mcp_data dict

0 commit comments

Comments
 (0)