Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/architecture/08-crosscutting-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ elements, and deprecate one by naming its replacement.

| Element | What is frozen | Source |
|---------|----------------|--------|
| Template paths | The file path of every shipped template | ADR-051 |
| Template IDs | The `id` of every manifest entry | ADR-051 |
| Section IDs | Every `[ID:]`, in the file that holds it, and the headings its section holds. A section does not move to another file, and a minor adds an ID only on new content, never in front of lines a shipped section holds. SYS-24 checks it against the newest 3.x tag | ADR-051 |
| Template paths | The file path of every shipped template. SYS-29 checks it against the newest 3.x tag | ADR-051 |
| Template IDs | The `id` of every manifest entry. SYS-29 checks it against the newest 3.x tag | ADR-051 |
| Section IDs | Every `[ID:]`, in the file that holds it, and the headings its section holds. A section does not move to another file, and a minor adds an ID only on new content, never in front of lines a shipped section holds. SYS-29 checks that each stays in its file, and SYS-24 that no new ID splits a section, against the newest 3.x tag | ADR-051 |
| Manifest schema | The fields the header comment of `templates/manifest.yaml` lists, and their meaning; a minor adds only optional fields | ADR-051 |
| Core-tier membership | The IDs under `core:`; a new template is reached by declaring it, never by joining the core | ADR-051 |
| Core-tier membership | The IDs under `core:`; a new template is reached by declaring it, never by joining the core. SYS-29 checks it | ADR-051 |
| Check exit codes | 0 passes, 1 fails, 3 does not apply | ADR-051 |
| Task kinds | The kinds under the manifest's `tasks:`, which a load directive names | ADR-058 |
| Task kinds | The kinds under the manifest's `tasks:`, which a load directive names. SYS-29 checks them | ADR-058 |
| Hooks | A shipped hook ID, its direct exit codes, its `not applicable` line and its violation codes | ADR-055 |
| Hook arguments | The name and default of each argument a consumer writes into its config, such as `--path`, `--forbid` and `--base`; a minor adds only arguments whose default keeps the hook's behaviour | ADR-051, applied to hooks |
| Fork entry points | The fork-owned module names (8.6), and the names upstream reads from them, `bind`, `CHECKS`, `TEMPLATE_DIRS`, `CORE_DIRS` and `QUALITY_GATES_EXEMPT_LAYERS` from `fork_checks.py`; `CHECKS` and `SKIP_BUDGET` from `fork_dispositions.py`; `SPEC_CHAIN_EXAMPLES` and `CHAIN_EXAMPLES_DOC` from `fork_examples.py`. The disposition words `tests/conformance` defines for a fork to import | ADR-051, applied to forks |
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/10-quality-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ goal is a gap, not a pass.
| Functional suitability | Functional appropriateness | Representative tasks complete correctly | The efficacy benchmark, which runs in `solid-ai-dev/solid-ai-benchmark` | Measured each benchmark round | QG-01-02 |
| Functional suitability | Functional appropriateness | Selected policy fits the project and task | Each root's resolved chain; the adoption boundary in `core/agents.md` | Not measured | - |
| Performance efficiency | Time behaviour, resource utilization | Context, time, retries and adoption effort relative to outcomes | Chain size per stack category; benchmark tokens, turns, time and cost; latency | Cost measured each benchmark round; latency and adoption effort not measured | QG-02-02 |
| Flexibility | Replaceability | Changes and overrides have explainable effects and manageable migration | The 3.x frozen surface (chapter 8.7); `tools/check_release.py`; SYS-22; SYS-24, for section splitting only | Not measured, since 3.0.0 is the first frozen release | QG-03-02, FR-09-01 |
| Flexibility | Replaceability | Changes and overrides have explainable effects and manageable migration | The 3.x frozen surface (chapter 8.7); `tools/check_release.py`; SYS-22; SYS-24, for section splitting; SYS-29, for removed or renamed IDs and paths | Not measured, since 3.0.0 is the first frozen release | QG-03-02, FR-09-01 |
| Flexibility | Adaptability | The shared rules survive a change of stack or agent | None yet | Not measured | - |
| Maintainability | Modifiability | Fewer recurring defects and less policy-induced work | `tools/score_templates.py` and its ratchet; the intake dispositions in `CONTRIBUTING.md`; the share of `changelog:none` pull requests in each release proposal | Measured on every pull request by the ratchet; the share reported from 3.1.0 | QG-04-02, QG-04-03 |

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Status: skeleton. Each cluster holds a few requirements until its fill

| ID | Requirement | Source | Checked by |
|----|-------------|--------|------------|
| FR-09-01 | The system shall not remove, rename or change the meaning of a frozen element in a 3.x release, except for a security fix. | Chapter 8.7, ADR-051 | SYS-24, partial, for section splitting only |
| FR-09-01 | The system shall not remove, rename or change the meaning of a frozen element in a 3.x release, except for a security fix. | Chapter 8.7, ADR-051 | SYS-24, for section splitting; SYS-29, for template IDs and paths, section IDs, the core tier and task kinds |
| FR-09-02 | The system shall keep a deprecated template resolving until the next major, naming a live replacement. | Chapter 8.8 | SYS-22, partial, for a live replacement |
| FR-09-03 | The system shall change nothing in an existing context file when a project moves its pin. | Chapter 6.5 | - |
| FR-09-04 | The system shall write each release's changelog entries from the labels of the pull requests merged since the previous tag. | Chapter 6.6 | changelog-label gate, `cut_changelog.py --self-test`, partial: the tag range is untested |
Expand Down
1 change: 1 addition & 0 deletions docs/tests/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ restated in each.
| `SAIT-SMK-SYS-25-001A` | SMK | P1 | A load directive names a listed task, in its heading's tags |
| `SAIT-SMK-SYS-26-001A` | SMK | P1 | The emitter places each section by its load, the same every run |
| `SAIT-SMK-SYS-27-001A` | SMK | P1 | An emitted file names no template file |
| `SAIT-SMK-SYS-29-001A` | SMK | P1 | No frozen ID or path leaves the tree inside the major |
| `SAIT-SMK-TPL-04-001A` | SMK | P1 | All EXTEND and OVERRIDE directives reference existing IDs |
| `SAIT-INT-TPL-01-001A` | INT | P0 | DEPENDS ON chain assembles a complete rule set |
| `SAIT-INT-TPL-02-001A` | INT | P1 | EXTEND adds rules without removing base rules |
Expand Down
93 changes: 93 additions & 0 deletions docs/tests/specs/SAIT-SMK-SYS-29-001A.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
id: SAIT-SMK-SYS-29-001A
title: No frozen ID or path leaves the tree inside the major
product: sait
type: smoke
area: SYS
priority: p1
status: ready
environment: [local, ci]
automatable: yes
created: 2026-11-16
author: Branimir Georgiev
product-version: "3.x"
tags: [templates, compatibility, fork, frozen-surface]
---

## Short description

> **Given** the newest 3.x release tag reachable from HEAD
> **When** the manifest and every template are compared with their state
> at that tag
> **Then** every template ID, template path, section ID, core-tier member
> and task kind present there is still present, because a fork extending
> a renamed ID fails only after it merges

## Results

| Result | Condition |
|--------|-----------|
| PASSED | Every planted case yields exactly its owed findings, and no frozen element present at the baseline is missing from the tree |
| FAILED | A template ID, a template's path, a section ID in its file, the core tier or a task kind differs from the baseline |
| FAILED | A planted case or the planted repository yields findings or a refusal other than those it owes |
| FAILED | The clone is shallow, or no tag at all is reachable from HEAD |
| FAILED | No planted case was run |
| SKIPPED | — |
| BLOCKED | — |
| ERROR | — |

## Steps

### Prerequisites

- Repository cloned with its full history and tags
- Python 3 and git

### Setup

— (operates on the working tree and the newest `v3.*` tag reachable from
HEAD, the baseline SYS-24 reads)

### Execution

1. Compare each later side in `FROZEN_CASES` with the planted frozen
manifest and texts, and compare the findings with those the case owes
2. Build a throwaway repository whose base commit, tagged `v3.0.0`, holds
the planted manifest and texts, and whose HEAD renames a section ID;
run the comparison the real run uses
3. Take the baseline: the newest tag matching `v3.<minor>.<patch>` that
HEAD contains. With none, nothing is frozen yet
4. Read the manifest and each entry's file at the baseline and in the
working tree, and leave out the baseline's fixture entries
5. Report each entry ID missing, each entry whose file changed, each
`[ID:]` missing from the file that held it, a changed `core:` list and
each task kind missing

### Assertions

1. Assert no change, an added section, template and task kind, a
deprecated template and a renamed fixture yield no finding -- the
controls that what chapter 8.7 allows passes
2. Assert a renamed section ID, a section moved to another file, a
renamed template ID, a renamed template file, a template joining the
core and a removed task kind each yield one finding naming it
3. Assert, through git, that a section ID renamed behind a `v3.0.0` tag is
found
4. Assert no real element is missing from the tree
5. Assert the planted case count is non-zero, per ADR-034

### Negative controls

1. **The defect that motivated the check.** Renaming a section ID that
only a fork extends passed upstream smoke and fork sync; the fork failed
only after merging. Renaming `base-git` in `core/git.md` now fails here
2. **A deprecation.** An entry marked `deprecated` keeps its ID and file,
so it passes; a check that read deprecation as removal would block
what chapter 8.8 prescribes

## Related

- The spec, chapter 8.7, "Frozen surface"
- The spec, chapter 8.8, "Deprecation"
- ADR-051 -- IDs and paths are frozen inside a major
- SYS-24, which checks that a new ID splits no frozen section
7 changes: 7 additions & 0 deletions tests/smoke/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
check_sys_25,
check_sys_26,
check_sys_27,
check_sys_29,
)
from .templates import (
check_tpl_01,
Expand Down Expand Up @@ -290,4 +291,10 @@ class Check(TypedDict):
"title": "An emitted file names no template file",
"fn": check_sys_27,
},
{
"id": "SYS-29",
"spec": "SAIT-SMK-SYS-29-001A",
"title": "No frozen ID or path leaves the tree inside the major",
"fn": check_sys_29,
},
]
Loading
Loading