Implementation Plan: T5-P5-A1-WP1 Establish the Single-Source-of-Truth Invariant Registry#4102
Merged
Trecek merged 7 commits intoJun 13, 2026
Conversation
… prohibitions Create core/types/_type_invariant_registry.py with InvariantDef frozen dataclass and INVARIANT_REGISTRY mapping 13 prose prohibitions (run-in-background, git-amend/force-push/reset-hard/clean-f, recipe-read-headless, write-path-prefix, skill-orchestration-from-L1, interpreter-write-bypass, inline-script-in-cmd, env-key-in-with-args, generated-file-write, bre-grep-pattern) to their runtime gate targets, enforcement_layer (server-side | sandbox-ci | hook-deny | advisory), and backends (claude-code | codex | both). Wire the module into core/types/__init__.py via the star-import pattern, add re-export entries for InvariantDef and INVARIANT_REGISTRY to core/__init__.pyi, and update dependent registries: tests/arch/test_subpackage_structure.py expected set, tests/_test_filter.py MODULE_CASCADE_CORE entry, AGENTS.md file tables for core/types/ and tests/core/, and the new test file tests/core/test_invariant_registry.py exercising frozen-dataclass invariants, Literal enforcement_layer values, registry cardinality, key/id consistency, key shape (kebab-case with L1 exception), backend coverage, and acceptance spot-checks for bre-grep-pattern backends and inline-script/env-key enforcement_layer values. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…st_expected_entry_ids
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Create
src/autoskillit/core/types/_type_invariant_registry.pydefining theInvariantDeffrozen dataclass andINVARIANT_REGISTRYmapping 13 prose prohibitions to their runtime gate targets, enforcement layers, and backend coverage. Wire the new module intocore/types/__init__.pyvia the star-import pattern, add re-exports tocore/__init__.pyi, and update all dependent registries.Implementation Plan
Plan file:
/home/talon/projects/autoskillit-runs/impl-20260612-222450-565754/.autoskillit/temp/make-plan/t5_p5_a1_wp1_invariant_registry_plan_2026-06-12_222700.mdCloses #4027
🤖 Generated with Claude Code via AutoSkillit
Token Usage Summary
* Step used a non-Anthropic provider; caching behavior may differ.
Token Efficiency
Model Usage Breakdown