Skip to content

Disambiguate IL-N Import Layers from L-N Orchestration Levels#2181

Merged
Trecek merged 4 commits into
developfrom
disambiguate-il-n-import-layers-from-l-n-orchestration-level/2043
May 7, 2026
Merged

Disambiguate IL-N Import Layers from L-N Orchestration Levels#2181
Trecek merged 4 commits into
developfrom
disambiguate-il-n-import-layers-from-l-n-orchestration-level/2043

Conversation

@Trecek
Copy link
Copy Markdown
Collaborator

@Trecek Trecek commented May 7, 2026

Summary

Rename all bare L0/L1/L2/L3 references in tests/arch/ files to use the IL-N prefix when they refer to import layers (not orchestration levels). Update CLAUDE.md with a three-row disambiguation table. Add a header comment to pyproject.toml's [tool.importlinter] section clarifying that IL-NNN are contract serial numbers. Add a regression guard test to prevent future bare L-number import-layer labels from appearing in arch tests.

Seven files are modified; no new files are created except for test additions within existing files.

Closes #2043

Implementation Plan

Plan file: /home/talon/projects/autoskillit-runs/impl-20260507-111319-470360/.autoskillit/temp/make-plan/disambiguate_il_n_from_l_n_plan_2026-05-07_111900.md

🤖 Generated with Claude Code via AutoSkillit

Token Usage Summary

Step Model count uncached output cache_read peak_ctx turns cache_write time
plan claude-opus-4-6 1 78 16.4k 1.3M 77.0k 78 69.3k 7m 4s
verify claude-opus-4-6 1 48 14.0k 1.6M 70.8k 116 58.0k 7m 50s
implement* MiniMax-M2.7-highspeed 1 3.7M 18.7k 2.4M 29.8k 200 192.2k 17m 34s
prepare_pr* MiniMax-M2.7-highspeed 1 74.0k 3.9k 178.6k 29.8k 19 42.2k 1m 17s
compose_pr* MiniMax-M2.7-highspeed 1 107.4k 2.0k 294.7k 29.8k 22 15.1k 58s
Total 3.9M 54.9k 5.7M 77.0k 376.9k 34m 45s

* 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 817 2947.8 235.3 22.9
prepare_pr 0
compose_pr 0
Total 817 7016.1 461.3 67.3

Model Usage Breakdown

Model steps uncached output cache_read cache_write time
claude-opus-4-6 2 126 30.3k 2.9M 127.3k 14m 54s
MiniMax-M2.7-highspeed 3 3.9M 24.6k 2.9M 249.6k 19m 50s

Trecek and others added 4 commits May 7, 2026 11:44
Rename all bare L0/L1/L2/L3 references in tests/arch/ files to use the
IL-N prefix when they refer to import layers (not orchestration levels).

Changes:
- test_layer_enforcement.py: ~25 L→IL renames (comments, docstrings,
  assertion messages, RuleDescriptor fields, function names)
- test_subpackage_isolation.py: ~10 L→IL renames (section headers,
  docstring exemption rationale strings)
- test_gfm_rendering_guard.py: 2 L→IL renames (assertion messages)
- test_python_no_hardcoded_temp.py: 3 L→IL renames (whitelist comments)
- test_cli_decomposition.py: 1 L→IL rename (CD1 comment)
- test_import_layer_labels.py: add test_no_bare_import_layer_labels_in_arch_tests
  regression guard (fails if bare L-numbers appear in other arch tests)
- CLAUDE.md: replace single-line paragraph with three-row disambiguation
  table (IL-N / IL-NNN / L-N)
- pyproject.toml: add contract ID header comment above IL-001
- test_orchestration_levels.py: update test_claude_md_has_il_disambiguation
  to verify table format

Closes #1574.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The prior commit removed optional_context_refs from generate_report,
generate_report_inconclusive, and re_generate_report but added new
context variable references (verdict, disambiguation_rule_applied,
tier_c_lens, classification_timestamp) that are produced by skippable
steps (review_design, plan_visualization). Restore the declarations
with the full set of optional refs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The disambiguation table test combined three row-presence checks in a
single assert with one shared message. Split into three separate
asserts so failures identify which specific row is missing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Trecek Trecek added this pull request to the merge queue May 7, 2026
Merged via the queue into develop with commit 2188ae8 May 7, 2026
2 checks passed
@Trecek Trecek deleted the disambiguate-il-n-import-layers-from-l-n-orchestration-level/2043 branch May 7, 2026 19:46
Trecek added a commit that referenced this pull request May 8, 2026
## Summary

Rename all bare `L0`/`L1`/`L2`/`L3` references in `tests/arch/` files to
use the `IL-N` prefix when they refer to import layers (not
orchestration levels). Update CLAUDE.md with a three-row disambiguation
table. Add a header comment to pyproject.toml's `[tool.importlinter]`
section clarifying that IL-NNN are contract serial numbers. Add a
regression guard test to prevent future bare L-number import-layer
labels from appearing in arch tests.

Seven files are modified; no new files are created except for test
additions within existing files.

Closes #2043

## Implementation Plan

Plan file:
`/home/talon/projects/autoskillit-runs/impl-20260507-111319-470360/.autoskillit/temp/make-plan/disambiguate_il_n_from_l_n_plan_2026-05-07_111900.md`

🤖 Generated with [Claude Code](https://claude.com/claude-code) via
AutoSkillit
<!-- autoskillit:pipeline-signature
steps=prepare_pr,run_arch_lenses,compose_pr,annotate_pr_diff,review_pr
-->

## Token Usage Summary

| Step | Model | count | uncached | output | cache_read | peak_ctx |
turns | cache_write | time |

|------|-------|-------|----------|--------|------------|----------|-------|-------------|------|
| plan | claude-opus-4-6 | 1 | 78 | 16.4k | 1.3M | 77.0k | 78 | 69.3k |
7m 4s |
| verify | claude-opus-4-6 | 1 | 48 | 14.0k | 1.6M | 70.8k | 116 | 58.0k
| 7m 50s |
| implement* | MiniMax-M2.7-highspeed | 1 | 3.7M | 18.7k | 2.4M | 29.8k
| 200 | 192.2k | 17m 34s |
| prepare_pr* | MiniMax-M2.7-highspeed | 1 | 74.0k | 3.9k | 178.6k |
29.8k | 19 | 42.2k | 1m 17s |
| compose_pr* | MiniMax-M2.7-highspeed | 1 | 107.4k | 2.0k | 294.7k |
29.8k | 22 | 15.1k | 58s |
| **Total** | | | 3.9M | 54.9k | 5.7M | 77.0k | | 376.9k | 34m 45s |

\* *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 | 817 | 2947.8 | 235.3 | 22.9 |
| prepare_pr | 0 | — | — | — |
| compose_pr | 0 | — | — | — |
| **Total** | **817** | 7016.1 | 461.3 | 67.3 |

## Model Usage Breakdown

| Model | steps | uncached | output | cache_read | cache_write | time |
|-------|-------|----------|--------|------------|-------------|------|
| claude-opus-4-6 | 2 | 126 | 30.3k | 2.9M | 127.3k | 14m 54s |
| MiniMax-M2.7-highspeed | 3 | 3.9M | 24.6k | 2.9M | 249.6k | 19m 50s |

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
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