Skip to content

Implementation Plan: T5-P5-A1-WP1 Establish the Single-Source-of-Truth Invariant Registry#4102

Merged
Trecek merged 7 commits into
developfrom
t5-p5-a1-wp1-establish-the-single-source-of-truth-registry-m/4027
Jun 13, 2026
Merged

Implementation Plan: T5-P5-A1-WP1 Establish the Single-Source-of-Truth Invariant Registry#4102
Trecek merged 7 commits into
developfrom
t5-p5-a1-wp1-establish-the-single-source-of-truth-registry-m/4027

Conversation

@Trecek

@Trecek Trecek commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Create src/autoskillit/core/types/_type_invariant_registry.py defining the InvariantDef frozen dataclass and INVARIANT_REGISTRY mapping 13 prose prohibitions to their runtime gate targets, enforcement layers, and backend coverage. Wire the new module into core/types/__init__.py via the star-import pattern, add re-exports to core/__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.md

Closes #4027

🤖 Generated with Claude Code via AutoSkillit

Token Usage Summary

Step Model count uncached output cache_read peak_ctx turns cache_write time
plan* opus[1m] 1 1.1k 20.7k 1.6M 95.7k 57 102.3k 12m 16s
verify* sonnet 1 102 15.8k 676.5k 74.6k 40 74.6k 6m 34s
implement* MiniMax-M3 1 3.4M 12.8k 0 0 93 0 6m 36s
fix* sonnet 1 166 5.0k 1.0M 66.8k 49 45.8k 7m 26s
audit_impl* sonnet 1 52 11.0k 208.0k 46.9k 15 39.7k 5m 33s
prepare_pr* MiniMax-M3 1 235.8k 2.1k 0 0 15 0 1m 19s
compose_pr* MiniMax-M3 1 177.1k 1.5k 0 0 12 0 45s
review_pr* sonnet 1 134 40.4k 1.0M 94.9k 49 74.9k 9m 25s
resolve_review* sonnet 1 291 22.2k 2.7M 94.0k 82 73.8k 13m 11s
Total 3.8M 131.5k 7.2M 95.7k 411.2k 1h 3m

* Step used a non-Anthropic provider; caching behavior may differ.

Token Efficiency

Step LoC Changed cache_read/LoC cache_write/LoC output/LoC
plan 0
verify 0
implement 354 0.0 0.0 36.1
fix 7 149602.3 6548.4 712.9
audit_impl 0
prepare_pr 0
compose_pr 0
review_pr 0
resolve_review 20 132853.5 3691.8 1109.3
Total 381 18835.7 1079.4 345.1

Model Usage Breakdown

Model steps uncached output cache_read cache_write time
opus[1m] 1 1.1k 20.7k 1.6M 102.3k 12m 16s
sonnet 5 745 94.4k 5.6M 308.9k 42m 12s
MiniMax-M3 3 3.8M 16.4k 0 0 8m 40s

Trecek and others added 7 commits June 12, 2026 22:49
… 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>
@Trecek Trecek added this pull request to the merge queue Jun 13, 2026
Merged via the queue into develop with commit 0de00fd Jun 13, 2026
3 checks passed
@Trecek Trecek deleted the t5-p5-a1-wp1-establish-the-single-source-of-truth-registry-m/4027 branch June 13, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant