@sublang/spex 2.1.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,31 +9,22 @@ Pending
9
9
 
10
10
  ## Intent
11
11
 
12
- Apply [[licensing-1](../packages/licensing.md#licensing-1)], [[licensing-2](../packages/licensing.md#licensing-2)], [[licensing-5](../packages/licensing.md#licensing-5)] to in-scope files and pin the project's header format.
12
+ Apply [[licensing-1](../packages/licensing.md#licensing-1)], [[licensing-2](../packages/licensing.md#licensing-2)], [[licensing-5](../packages/licensing.md#licensing-5)] to in-scope files, using the project's own header format [[licensing-9](../packages/licensing.md#licensing-9)].
13
13
 
14
14
  ## Deliverables
15
15
 
16
+ - [ ] `licensing-9` of [`packages/licensing.md`](../packages/licensing.md) names the project's license and copyright holder, with no `<...>` placeholder left
16
17
  - [ ] Add SPDX headers to in-scope files missing them
17
- - [ ] Add `licensing-9` to the External Behavior of [`packages/licensing.md`](../packages/licensing.md) with the project's actual header format, license, and copyright
18
18
 
19
19
  ## Tasks
20
20
 
21
- 1. Resolve scope: detect a project-root license file per [[licensing-7](../packages/licensing.md#licensing-7)]; enumerate in-scope files per [[licensing-6](../packages/licensing.md#licensing-6)].
21
+ 1. Confirm the header format: the scaffold pinned `licensing-9` from the project's `LICENSE` and `git config user.name`; replace any `<license>` or `<holder>` placeholder it left with the project's SPDX license identifier and copyright holder.
22
22
 
23
- 2. Insert SPDX lines in each file's first comment block (after any shebang), using the file's native comment syntax.
23
+ 2. Resolve scope: detect a project-root license file per [[licensing-7](../packages/licensing.md#licensing-7)]; enumerate in-scope files per [[licensing-6](../packages/licensing.md#licensing-6)].
24
24
 
25
- 3. Add `licensing-9` to the `## External Behavior` section of [`packages/licensing.md`](../packages/licensing.md), showing the concrete header per comment style. Example for a single Apache-2.0 `LICENSE`:
26
-
27
- ```markdown
28
- <!-- SPDX-License-Identifier: Apache-2.0 -->
29
- <!-- SPDX-FileCopyrightText: <year> <holder> -->
30
- ```
31
-
32
- ```typescript
33
- // SPDX-License-Identifier: Apache-2.0
34
- // SPDX-FileCopyrightText: <year> <holder>
35
- ```
25
+ 3. Insert SPDX lines in each file's first comment block (after any shebang), in the file's native comment syntax as `licensing-9` shows.
36
26
 
37
27
  ## Verification
38
28
 
29
+ - `licensing-9` carries no `<...>` placeholder.
39
30
  - [[licensing-3](../packages/licensing.md#licensing-3)], [[licensing-4](../packages/licensing.md#licensing-4)] pass on all in-scope files.
@@ -3,7 +3,7 @@
3
3
 
4
4
  # Spec Map
5
5
 
6
- Quick-reference index for locating spec files.
6
+ Quick-reference index for locating decisions and spec packages.
7
7
  Spec items are the source of truth.
8
8
  Code can be inconsistent with specs during development.
9
9
 
@@ -27,12 +27,6 @@ meta.md The spec of specs
27
27
  | --- | --- | --- |
28
28
  | [DR-000](decisions/000-spec-structure-format.md) | 000-spec-structure-format.md | Spec structure, format, and naming conventions |
29
29
 
30
- ## Intents
31
-
32
- | ID | File | Intent |
33
- | --- | --- | --- |
34
- | [IR-000](intents/000-spdx-headers.md) | 000-spdx-headers.md | Add SPDX headers to applicable files |
35
-
36
30
  ## Packages
37
31
 
38
32
  | File | Summary |
@@ -36,7 +36,7 @@ A spec file shall keep one sentence per line — with lists, tables, and diagram
36
36
 
37
37
  ### meta-4
38
38
 
39
- Each DR shall follow the ADR format [[2]], with sections Status, Context, Decision, Consequences, and References.
39
+ Each DR shall follow the ADR format [[2]], with sections Status, Context, Decision, and Consequences, plus References where it cites an external source [[meta-19](#meta-19)].
40
40
 
41
41
  ### meta-5
42
42
 
@@ -50,6 +50,13 @@ A record's ID shall join its kind prefix to its filename's leading number — `D
50
50
 
51
51
  A DR shall record design decisions and constraints, not implementation details, sufficient to provide context for or to audit the corresponding spec items.
52
52
 
53
+ ### meta-35
54
+
55
+ When a substantive change to an accepted decision is accepted, the specs shall record it in a new DR, preserving the earlier decision and rationale and linking both records' status sections with the affected scope [[meta-4](#meta-4)] [[meta-16](#meta-16)]:
56
+
57
+ - Whole replacement: the earlier DR is superseded.
58
+ - Partial replacement: the earlier DR remains accepted with a scoped amendment.
59
+
53
60
  ### meta-28
54
61
 
55
62
  An IR shall be disposable: it contains nothing a DR or a spec item should cover, and its deletion loses no design or behavior record.
@@ -181,16 +188,16 @@ Each package's `Verification` section shall verify every behavior in that packag
181
188
 
182
189
  ### meta-16
183
190
 
184
- A citation of a spec item or record shall be an inline relative link with the cited ID as its link text:
191
+ A citation of a spec item or DR shall be an inline relative link with the cited ID as its link text:
185
192
 
186
193
  | Cited | Form |
187
194
  | --- | --- |
188
195
  | Spec item | its heading anchor, in an outer pair of square brackets (e.g., `[[meta-1](meta.md#meta-1)]`) |
189
- | Record | its file, with no outer brackets (e.g., `[DR-000](decisions/000-spec-structure-format.md)`) |
196
+ | DR | its file, with no outer brackets (e.g., `[DR-000](decisions/000-spec-structure-format.md)`) |
190
197
 
191
198
  ### meta-18
192
199
 
193
- No DR or spec item shall cite an IR or name it in prose.
200
+ No spec shall cite an IR or name it in prose, except that IR itself.
194
201
 
195
202
  ### meta-19
196
203
 
@@ -25,9 +25,12 @@ Where a commit message includes a body, when writing the body, the commit body s
25
25
 
26
26
  ### git-4
27
27
 
28
- When AI assists in coding or authoring, the commit message shall include a `Co-authored-by` trailer in the format `<model> (<role>) <email>`, where `<role>` is one of `coder|reviewer|maintainer` and `<email>` is `cligent@sublang.ai`:
28
+ When AI assists in coding or authoring, the commit message shall include one or more `Co-authored-by` trailers in the final contiguous trailer block recognized by Git, with no blank lines between trailers and each trailer using the format `<model> (<role>) <email>`, where `<role>` is one of `coder|reviewer|maintainer` and `<email>` is `cligent@sublang.ai`:
29
29
 
30
- Example: `Co-authored-by: GPT-5.2-Codex (coder) <cligent@sublang.ai>`
30
+ ```text
31
+ Co-authored-by: GPT-6 Sol (coder) <cligent@sublang.ai>
32
+ Co-authored-by: Claude Opus 5.5 (reviewer) <cligent@sublang.ai>
33
+ ```
31
34
 
32
35
  ### git-5
33
36
 
@@ -42,5 +45,5 @@ When a prepared commit is audited, the audit shall assert the commit follows thi
42
45
  - the commit records the configured `user.name` and `user.email` [[git-1](#git-1)];
43
46
  - the subject line follows the `<type>(<scope>)<!>: <subject>` format [[git-2](#git-2)];
44
47
  - any body explains what and why, wrapped at 72 chars [[git-3](#git-3)];
45
- - an AI-assisted commit carries the `Co-authored-by` attribution trailer [[git-4](#git-4)];
48
+ - an AI-assisted commit's required `Co-authored-by` trailer or trailers appear in Git's parsed trailer block and use the prescribed format [[git-4](#git-4)];
46
49
  - a commit realizing a recorded intent references the intent record's ID [[git-5](#git-5)].
@@ -41,6 +41,23 @@ Where the file has comment syntax, is not excluded by the licensing scope [[lice
41
41
 
42
42
  Where a file's first comment block already contains `SPDX-FileCopyrightText` or `SPDX-License-Identifier` from an upstream source (e.g., a template or vendored file copied from another project), when preparing the file for inclusion in the repo, those existing SPDX lines shall be preserved unmodified, even when the project root carries a different license — each preserved upstream line satisfying its respective copyright-header requirement [[licensing-1](#licensing-1)] or license-header requirement [[licensing-2](#licensing-2)], with any missing required line supplied from upstream, not the project license.
43
43
 
44
+ ### licensing-9
45
+
46
+ Where a file carries no upstream SPDX lines [[licensing-5](#licensing-5)], when its SPDX lines are written for the copyright-header requirement [[licensing-1](#licensing-1)] and the license-header requirement [[licensing-2](#licensing-2)], they shall name the project's own license and copyright holder in the file's native comment syntax:
47
+
48
+ ```markdown
49
+ <!-- SPDX-License-Identifier: <license> -->
50
+ <!-- SPDX-FileCopyrightText: <year> <holder> -->
51
+ ```
52
+
53
+ ```typescript
54
+ // SPDX-License-Identifier: <license>
55
+ // SPDX-FileCopyrightText: <year> <holder>
56
+ ```
57
+
58
+ - The copyright holder is `<holder>` and the license `<license>`; the year is that of the file's first inclusion.
59
+ - A value still reading as a `<...>` placeholder is unresolved: it is replaced with the project's own, never with a holder copied from a template file.
60
+
44
61
  ## Verification
45
62
 
46
63
  ### licensing-3
@@ -6,7 +6,7 @@ Review Git diffs under @specs/ and perform a spec update merge:
6
6
  - If @specs/decisions/000-spec-structure-format.md or @specs/meta.md changed, update existing @specs/ files to conform while preserving local content that still applies.
7
7
  - Preserve every item ID and normative concern that appeared in a prior release; provisional IDs may be compacted before publication.
8
8
  - Classify behavior relative to each package: outcomes and guarantees the package's users may rely on belong in `## External Behavior`; behavior hidden from them belongs in `## Internal Behavior`.
9
- - Convert every item citation to the enclosed ID-text form, e.g. `[[pack-3](pack.md#pack-3)]`, and every record citation to a plain ID-text link, e.g. `[DR-000](decisions/000-example.md)`; place a behavior binding citation at the phrase it makes specific and confine test behavior citations to the containing package.
9
+ - Convert every item citation to the enclosed ID-text form, e.g. `[[pack-3](pack.md#pack-3)]`, and every DR citation to a plain ID-text link, e.g. `[DR-000](decisions/000-example.md)`; place a behavior binding citation at the phrase it makes specific and confine test behavior citations to the containing package.
10
10
  - Place every attachment after the final colon of its governing GEARS statement.
11
11
  - Remove relationship-metadata lines (`Verifies:`, `Binds:`, `Composes:`, `Clients:`, `Suppliers:`, `Scope:`) and detached `Verifies ...` sentences: move each binding citation to the behavior phrase it makes specific and each test citation to the assertion it verifies, then delete the line.
12
12
  - Keep each package's `## Intent` a self-contained statement of purpose whose meaning no supporting citation carries, and check each file's title still fits.