Skip to content

Commit e545d8e

Browse files
committed
update
1 parent 048f917 commit e545d8e

4 files changed

Lines changed: 48 additions & 26 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
<!-- markdownlint-disable MD024 -->
4+
35
All notable changes to this project will be documented in this file.
46

57
The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/)**

reports/stress_report.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
## Rule matrix
66

7-
_Declared responses from `data/regimes.toml`. Populated from registry regardless of case coverage._
7+
_Declared responses from the regime registry (se-regimes): theory-level assertions, not empirically validated._
8+
_Populated from registry regardless of case coverage._
89

910
| regime | BF | decomposition | nor_reorg |
10-
|---|---|---|---|
11+
| --- | --- | --- | --- |
1112
| `OBL` | INH | INH | INH |
1213
| `OCC` | INH | INH | INH |
1314
| `REC` | INH | INH | INH |
@@ -18,24 +19,32 @@ _Declared responses from `data/regimes.toml`. Populated from registry regardless
1819
| `NOR-C` | INH | INH | PRS |
1920
| `NOR-S` | INH | INH | BRK |
2021

22+
Legend for rule matrix:
23+
24+
- PRS = Preserves identity. The transformation does not change identity under the regime.
25+
- BRK = Breaks identity. The transformation produces a distinct identity under the regime.
26+
- INH = Inherits identity.
27+
The transformation does not operate on the identity criteria tracked by the regime;
28+
identity is carried forward without a PRS/BRK determination at this layer.
29+
2130
## Case coverage matrix
2231

23-
_Which regime × family pairs have at least one stress-test case._
32+
_Which regime x family pairs have at least one stress-test case._
2433

2534
| regime | BF | decomposition | nor_reorg |
26-
|---|---|---|---|
27-
| `OBL` | | | |
28-
| `OCC` | | | |
29-
| `REC` | | | |
30-
| `ENR-L` | | | |
31-
| `ENR-I` | | | |
32-
| `CTX-E` | | | |
33-
| `CTX-S` | | | |
34-
| `NOR-C` | | | |
35-
| `NOR-S` | | | |
35+
| --- | --- | --- | --- |
36+
| `OBL` | - | - | - |
37+
| `OCC` | - | - | - |
38+
| `REC` | - | - | - |
39+
| `ENR-L` | - | - | - |
40+
| `ENR-I` | - | - | - |
41+
| `CTX-E` | - | - | - |
42+
| `CTX-S` | - | - | - |
43+
| `NOR-C` | - | - | - |
44+
| `NOR-S` | - | - | - |
3645

3746
## All cases
3847

3948
| id | domain | regime | expected | source | result |
40-
|---|---|---|---|---|---|
41-
| | | | | | |
49+
| -- | --- | --- | --- | --- | --- |
50+
| - | - | - | - | - | - |

src/se_regimes/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def build_coverage(
146146
) -> dict[str, dict[str, list[str]]]:
147147
"""Return regime_id -> family_id -> list of case ids exercising that cell.
148148
149-
Empty list means no coverage for that regime × family combination.
149+
Empty list means no coverage for that regime x family combination.
150150
"""
151151
matrix: dict[str, dict[str, list[str]]] = {
152152
rid: {fid: [] for fid in registry.families} for rid in registry.regimes

src/se_regimes/report.py

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,45 @@ def write_report(
4242
lines += [
4343
"## Rule matrix",
4444
"",
45-
"_Declared responses from `data/regimes.toml`. "
46-
"Populated from registry regardless of case coverage._",
45+
"_Declared responses from the regime registry (se-regimes): theory-level assertions, not empirically validated._\n"
46+
"_Populated from registry regardless of case coverage._",
4747
"",
4848
]
4949
header = "| regime |" + "".join(f" {fid} |" for fid in family_ids)
50-
sep = "|---|" + "".join("---|" for _ in family_ids)
50+
sep = "| --- |" + "".join(" --- |" for _ in family_ids)
5151
lines += [header, sep]
5252
for rid, regime in registry.regimes.items():
5353
row = f"| `{rid}` |"
5454
for fid in family_ids:
55-
val = regime.transform_response.get(fid, "")
55+
val = regime.transform_response.get(fid, "-")
5656
row += f" {val} |"
5757
lines.append(row)
5858
lines.append("")
5959

60-
# --- Case coverage matrix (✓ / – per cell) ---
60+
lines += [
61+
"Legend for rule matrix:",
62+
"",
63+
"- PRS = Preserves identity. The transformation does not change identity under the regime.",
64+
"- BRK = Breaks identity. The transformation produces a distinct identity under the regime.",
65+
"- INH = Inherits identity.",
66+
" The transformation does not operate on the identity criteria tracked by the regime;",
67+
" identity is carried forward without a PRS/BRK determination at this layer.",
68+
"",
69+
]
70+
71+
# --- Case coverage matrix (✓ / - per cell) ---
6172
lines += [
6273
"## Case coverage matrix",
6374
"",
64-
"_Which regime × family pairs have at least one stress-test case._",
75+
"_Which regime x family pairs have at least one stress-test case._",
6576
"",
6677
]
6778
lines += [header, sep]
6879
for rid in registry.regimes:
6980
row = f"| `{rid}` |"
7081
for fid in family_ids:
7182
cell = coverage[rid][fid]
72-
row += f" {'✓' if cell else ''} |"
83+
row += f" {'✓' if cell else '-'} |"
7384
lines.append(row)
7485
lines.append("")
7586

@@ -89,16 +100,16 @@ def write_report(
89100
# --- All cases ---
90101
lines += ["## All cases", ""]
91102
lines.append("| id | domain | regime | expected | source | result |")
92-
lines.append("|---|---|---|---|---|---|")
103+
lines.append("| -- | --- | --- | --- | --- | --- |")
93104
for r in results:
94105
status = "✓" if r.passed else "✗"
95106
expected_str = ", ".join(f"`{s.after}:{s.outcome}`" for s in r.case.expected)
96-
source_str = f"`{r.case.source}`" if r.case.source else ""
107+
source_str = f"`{r.case.source}`" if r.case.source else "-"
97108
lines.append(
98109
f"| `{r.case.id}` | `{r.case.domain}` "
99110
f"| `{r.case.candidate_regime}` | {expected_str} | {source_str} | {status} |"
100111
)
101112
if not results:
102-
lines.append("| | | | | | |")
113+
lines.append("| - | - | - | - | - | - |")
103114

104115
path.write_text("\n".join(lines) + "\n")

0 commit comments

Comments
 (0)