@rsaglobaltech/specgate 0.22.1 → 0.22.2
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.
- package/CHANGELOG.md +115 -54
- package/dist/packages/core/src/domain/CapabilitySpecMerge.js +83 -0
- package/dist/packages/core/src/domain/CapabilitySpecMerge.js.map +1 -0
- package/dist/packages/core/test/unit/capability-spec-merge.test.js +104 -0
- package/dist/packages/core/test/unit/capability-spec-merge.test.js.map +1 -0
- package/dist/scripts/agents/detect.js +1 -0
- package/dist/scripts/agents/detect.js.map +1 -1
- package/dist/scripts/agents/init.js +13 -0
- package/dist/scripts/agents/init.js.map +1 -1
- package/dist/scripts/cli/commands/change/ChangeCommand.js +21 -0
- package/dist/scripts/cli/commands/change/ChangeCommand.js.map +1 -1
- package/dist/scripts/cli/commands/change/TicketCommand.js +64 -6
- package/dist/scripts/cli/commands/change/TicketCommand.js.map +1 -1
- package/dist/scripts/cli/commands/quality/CheckCommand.js +15 -5
- package/dist/scripts/cli/commands/quality/CheckCommand.js.map +1 -1
- package/dist/scripts/cli/commands/quality/DoctorCommand.js +22 -8
- package/dist/scripts/cli/commands/quality/DoctorCommand.js.map +1 -1
- package/dist/scripts/draft/drafting-guide.js +4 -0
- package/dist/scripts/draft/drafting-guide.js.map +1 -1
- package/dist/scripts/draft/ticket-guide.js +4 -0
- package/dist/scripts/draft/ticket-guide.js.map +1 -1
- package/dist/scripts/harness/init.js +85 -25
- package/dist/scripts/harness/init.js.map +1 -1
- package/dist/scripts/harness/prompt.js +13 -1
- package/dist/scripts/harness/prompt.js.map +1 -1
- package/dist/scripts/lib/base-ids.js +7 -0
- package/dist/scripts/lib/base-ids.js.map +1 -1
- package/dist/scripts/lib/change-base.js +230 -0
- package/dist/scripts/lib/change-base.js.map +1 -0
- package/dist/scripts/lib/change-overlap.js +234 -0
- package/dist/scripts/lib/change-overlap.js.map +1 -0
- package/dist/scripts/lib/surface.js +6 -0
- package/dist/scripts/lib/surface.js.map +1 -1
- package/dist/scripts/lib/ticket-keys.js +48 -3
- package/dist/scripts/lib/ticket-keys.js.map +1 -1
- package/dist/scripts/merge-capability-spec.js +87 -0
- package/dist/scripts/merge-capability-spec.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<!-- specgate:allow-placeholders — release notes quote the {{VAR}} template syntax. -->
|
|
2
|
+
|
|
2
3
|
# Changelog
|
|
3
4
|
|
|
4
5
|
Notable changes, newest first. Follows [Keep a Changelog](https://keepachangelog.com/)
|
|
@@ -8,6 +9,68 @@ The release process is in [`docs/release-process.md`](docs/release-process.md).
|
|
|
8
9
|
|
|
9
10
|
## [Unreleased]
|
|
10
11
|
|
|
12
|
+
## [0.22.2] — 2026-10-21
|
|
13
|
+
|
|
14
|
+
Parallel tickets that never overwrite each other, rehearsed end to end on a brownfield Maven project with Jira tickets and OpenCode.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **A merge driver that is gone falls back to git's merge** (REQ-169): in a
|
|
19
|
+
project without `node_modules`, the drivers run this machine's copy of
|
|
20
|
+
specgate. With that copy gone, git stopped the merge with only your side in
|
|
21
|
+
the file, no markers, and `git add` dropped the other side's text. The
|
|
22
|
+
driver now says it is missing and merges by lines; `specgate doctor` warns.
|
|
23
|
+
Re-run `specgate harness init` in clones registered before this release.
|
|
24
|
+
- **`id_taken_on_base` only for ids the branch introduced** (REQ-120): a
|
|
25
|
+
requirement the base changed after the branch started was reported as an id
|
|
26
|
+
taken, with the advice to renumber it.
|
|
27
|
+
- **A local `develop` nobody updated is not the base** (REQ-148): `pr.base`
|
|
28
|
+
resolves to `origin/develop` unless the local branch already contains it,
|
|
29
|
+
and a ticket's branch no longer tracks its base. Behind origin, every
|
|
30
|
+
colleague's commit merged from `origin/develop` was reported as missing the
|
|
31
|
+
ticket key.
|
|
32
|
+
- **`check` compares ids with `pr.base`** (REQ-120): ticket keys were
|
|
33
|
+
measured from `develop` and ids from the remote's default, `main`, so an id
|
|
34
|
+
taken on `develop` and not yet released went unseen.
|
|
35
|
+
- **`harness init` keeps a generated matrix on `merge=union`**: it appended
|
|
36
|
+
the row driver after the union line, and git takes the last matching line,
|
|
37
|
+
so the matrix could stop a merge again (ADR-0036).
|
|
38
|
+
- **A ticket's branch starts from `develop` with gitflow** (REQ-148): from
|
|
39
|
+
`pr.base`, else the branch you are on, else the remote's default. A clone
|
|
40
|
+
whose default is `main` cut the branch from `origin/main`, without the
|
|
41
|
+
team's work on `develop`; `ticket_key_missing` measures from the same base.
|
|
42
|
+
- **Readable ids from German summaries** (REQ-161): `ß` → `ss`, `ä` → `ae`…;
|
|
43
|
+
"Groß-/Kleinschreibung" made `gro-kleinschreibung`.
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
|
|
47
|
+
- **`change_base_moved`** (REQ-168): a change records, in `based_on` in its
|
|
48
|
+
`change.yaml`, the text of each requirement it modifies or removes; `check`
|
|
49
|
+
warns and `archive` refuses when that requirement changed since, and `check`
|
|
50
|
+
warns before the branch has even brought the base in.
|
|
51
|
+
`change validate <change> --rebased` records the new text once the delta is
|
|
52
|
+
rewritten. When two tickets rewrote one requirement, the second used to
|
|
53
|
+
archive over the first with a green gate and no conflict.
|
|
54
|
+
- **Capability specs merge requirement by requirement** (REQ-166):
|
|
55
|
+
`harness init` registers a second git merge driver, `specgate-spec`, for
|
|
56
|
+
`docs/specs/capabilities/*/spec.md`, and `doctor` checks it. Two tickets
|
|
57
|
+
archiving into the same capability used to conflict on the whole file; only
|
|
58
|
+
a requirement both rewrote differently conflicts now.
|
|
59
|
+
- **OpenCode in `agents init`** (REQ-162): `/specgate-*` commands in
|
|
60
|
+
`.opencode/commands/`, detected from `.opencode/` or `opencode.json`.
|
|
61
|
+
- **Opening a ticket's change commits and pushes it** (REQ-165), so the ids it
|
|
62
|
+
reserved are visible to every other clone at once; the branch used to be
|
|
63
|
+
pushed empty, with the reservation left uncommitted on one disk.
|
|
64
|
+
- **`change_id_clash`** (REQ-164), and `propose --from-ticket` fetches
|
|
65
|
+
`origin` before reserving ids (REQ-163): two developers who opened tickets a
|
|
66
|
+
minute apart on two clones both reserved REQ-010.
|
|
67
|
+
- **`change_overlap`** (REQ-160): `check`, and the report on a change opened
|
|
68
|
+
from a ticket, warn when a requirement your open change modifies or removes
|
|
69
|
+
is also rewritten by another open change, on this branch or on any local or
|
|
70
|
+
remote-tracking branch not merged yet. Two tickets rewriting REQ-012 on two
|
|
71
|
+
branches used to surface as a git conflict at the second merge, or not at
|
|
72
|
+
all.
|
|
73
|
+
|
|
11
74
|
## [0.22.1] — 2026-10-20
|
|
12
75
|
|
|
13
76
|
Documentation a newcomer can follow, and the CLI's words brought in line with it.
|
|
@@ -18,9 +81,9 @@ Documentation a newcomer can follow, and the CLI's words brought in line with it
|
|
|
18
81
|
CLI and the first real end-to-end run on Jira Cloud and GitHub. Three
|
|
19
82
|
sources of work (a change, a brief, a Jira ticket) into one lifecycle of
|
|
20
83
|
four verbs; the recorded journeys run `propose`, `apply` and `archive`;
|
|
21
|
-
archive comes before the pull request everywhere. New pages:
|
|
22
|
-
|
|
23
|
-
in
|
|
84
|
+
archive comes before the pull request everywhere. New pages: _From a Jira
|
|
85
|
+
ticket_ for a team lead setting it up, and _An existing codebase, with work
|
|
86
|
+
in Jira_ (Maven profiles, a parent POM, Bitbucket and Jenkins).
|
|
24
87
|
- **The `/specgate:draft` agent command runs `propose --from-brief`**, and the
|
|
25
88
|
MCP write guard names `specgate propose <id>`.
|
|
26
89
|
|
|
@@ -66,7 +129,7 @@ ticket to Done, the board moved by its own automation.
|
|
|
66
129
|
### Changed
|
|
67
130
|
|
|
68
131
|
- **A draft is not opened over a broken brief.** `propose --from-brief
|
|
69
|
-
|
|
132
|
+
<module>` refuses with `brief_not_ready` while the brief has an error: an
|
|
70
133
|
empty body, an empty module section, a module without its section once the
|
|
71
134
|
brief uses sections, or rules without examples. A brief with no module
|
|
72
135
|
sections — a pasted email — drafts as before.
|
|
@@ -188,7 +251,7 @@ while it works (ADR-0037).
|
|
|
188
251
|
|
|
189
252
|
- The placeholder rule ignores code spans, and the vague-step rule code spans
|
|
190
253
|
and quoted text: `` `tool verify <module>` `` is a command, not a template.
|
|
191
|
-
- TDD-3 asks a matrix row for a requirement a spec
|
|
254
|
+
- TDD-3 asks a matrix row for a requirement a spec _declares_ (a heading or a
|
|
192
255
|
requirement table row outside fenced code), not for every id it mentions.
|
|
193
256
|
- A generated matrix is declared `merge=union` in `.gitattributes`: parallel
|
|
194
257
|
branches no longer conflict on it, and `check` regenerates it.
|
|
@@ -252,7 +315,7 @@ while it works (ADR-0037).
|
|
|
252
315
|
runtime dependencies; `SPECGATE_FORJA_CMD` points at another forja.
|
|
253
316
|
- **`specgate add usecase|entity|port`** in a forja project: the class where the
|
|
254
317
|
architecture expects it, its test and its wiring, through `forja add`; `add
|
|
255
|
-
|
|
318
|
+
usecase` also creates the requirement and names it in the test. Outside a forja
|
|
256
319
|
project it says to use `new`. In a forja project, `status` suggests it as the
|
|
257
320
|
next step for a requirement with no code.
|
|
258
321
|
- **`arch_cmd`: your architecture check in the gate** ([ADR-0028](docs/specs/adr/0028-architecture-conformance-is-part-of-the-gate.md), points 1–2).
|
|
@@ -388,8 +451,8 @@ while it works (ADR-0037).
|
|
|
388
451
|
`transfers`, `event-registration`, `clinical-record`, `appointment-booking`,
|
|
389
452
|
`shop-orders` and `time-attendance`: 65 requirements and 85 scenarios, each
|
|
390
453
|
implemented and tested by the product it came from (Spring Boot, Quarkus and
|
|
391
|
-
TypeScript stacks). Questions a pilot could not answer ship as
|
|
392
|
-
|
|
454
|
+
TypeScript stacks). Questions a pilot could not answer ship as _Needs
|
|
455
|
+
Clarification_ — drug interaction alerts, shipping costs — instead of an
|
|
393
456
|
invented answer. Separate id ranges, so a project can install all seven.
|
|
394
457
|
Install them with `specops add` into a project made by `specgate init`;
|
|
395
458
|
`init --from-pack` does not handle a requirement with two scenarios yet.
|
|
@@ -554,9 +617,9 @@ while it works (ADR-0037).
|
|
|
554
617
|
|
|
555
618
|
### Documentation
|
|
556
619
|
|
|
557
|
-
- **Two new guides.**
|
|
620
|
+
- **Two new guides.** _From a client brief_ — the brief, a draft per module,
|
|
558
621
|
assumptions and open questions, the D1–D10 checklist, writing in Spanish, and
|
|
559
|
-
what the checklist cannot see.
|
|
622
|
+
what the checklist cannot see. _Already on OpenSpec_ — `verify`, scenario ids,
|
|
560
623
|
V1–V7, adopting with `--since`, the GitHub Action.
|
|
561
624
|
- **The harness** documents when it does not retry, the per-attempt time limit,
|
|
562
625
|
and the build in the gate; **the README** covers drafting from a brief,
|
|
@@ -643,7 +706,7 @@ From a second and third cycle on the same product (reservas_app), on 0.17.1.
|
|
|
643
706
|
- **`plan` and `status` agree with `validate` about untested scenarios.** A
|
|
644
707
|
requirement with two scenarios no test named was "Ready to close — its test
|
|
645
708
|
is in place", and `NEEDS_STATUS_UPDATE` to the harness, while `validate
|
|
646
|
-
|
|
709
|
+
--strict` said "Nothing proves" them. It is now `NEEDS_TEST`.
|
|
647
710
|
- **`draft --check`:** a requirement can say it lives on one surface
|
|
648
711
|
(`surfaces=web` in its trace), so a menu is not asked for an API scenario
|
|
649
712
|
(D3); a value already in the project's specification — reviewed in an
|
|
@@ -669,7 +732,7 @@ Found building a second real product from a client brief (reservas_app,
|
|
|
669
732
|
written in Spanish).
|
|
670
733
|
|
|
671
734
|
- **A draft archives into feature files, in its own language.** `change
|
|
672
|
-
|
|
735
|
+
archive` wrote no `.feature` for a requirement whose trace named none — a
|
|
673
736
|
draft that passed `draft --check` archived with "0 materialised". Each
|
|
674
737
|
requirement with scenarios now gets `features/<capability>/<REQ>.feature`.
|
|
675
738
|
Scenarios written with `DADO / CUANDO / ENTONCES` become Spanish Gherkin
|
|
@@ -693,7 +756,7 @@ written in Spanish).
|
|
|
693
756
|
the one line that turns it on (`specgate harness init`). The first gate after
|
|
694
757
|
adoption still checks the specification only, as documented.
|
|
695
758
|
- **`draft --check`:** an answered question (an `Answer` column, or `Answer
|
|
696
|
-
|
|
759
|
+
(Q1): …` below the table) no longer keeps its requirement waiting; a value
|
|
697
760
|
repeated in a scenario is one finding, not one per mention; "responsive" is
|
|
698
761
|
not read as a promised response time, and `px` is a unit.
|
|
699
762
|
- **`status` shows the title of a requirement archived from a change** instead
|
|
@@ -709,6 +772,7 @@ written in Spanish).
|
|
|
709
772
|
version, commit or variables do.
|
|
710
773
|
|
|
711
774
|
## [0.16.0] — 2026-10-09
|
|
775
|
+
|
|
712
776
|
### Changed
|
|
713
777
|
|
|
714
778
|
- **`AGENTS.md` is the agent contract; `AI_RULES.md` folds into it**
|
|
@@ -784,7 +848,7 @@ written in Spanish).
|
|
|
784
848
|
(`--run`), or after a scenario's text changed since `--record` pinned it.
|
|
785
849
|
`--since <ref>` gates only claims made after the ref, so adopting it never
|
|
786
850
|
fails a project for its past. `--ids` prints the ids to name; `--format
|
|
787
|
-
|
|
851
|
+
github` annotates the spec lines; `actions/verify` runs it on pull requests.
|
|
788
852
|
Read against OpenSpec's own repository: 747 scenarios, 108 claims, including
|
|
789
853
|
its archived history from before the structured format.
|
|
790
854
|
|
|
@@ -874,7 +938,7 @@ published 0.14.1:
|
|
|
874
938
|
|
|
875
939
|
- **A pack keeps a generated matrix generated.** Installing a pack wrote
|
|
876
940
|
matrix rows and turned the project back into a hand-kept matrix; `matrix
|
|
877
|
-
|
|
941
|
+
--migrate` then wrote 47 placeholder sections into `spec.md` titled after
|
|
878
942
|
use cases. Now each requirement's use case, command, aggregate, event and
|
|
879
943
|
context go into the `csda:trace` of its section — the pack's capability
|
|
880
944
|
spec, or a new `spec.md` section carrying the pack's own description — and
|
|
@@ -889,7 +953,7 @@ published 0.14.1:
|
|
|
889
953
|
scenario: a requirement with two scenarios ran two paid agent sessions on
|
|
890
954
|
the same branch.
|
|
891
955
|
- **`setup_cmd`** prepares each fresh worktree before the agent (`harness
|
|
892
|
-
|
|
956
|
+
init` proposes `npm ci` / `pnpm install` / `yarn install` from the
|
|
893
957
|
lockfile), so the agent can run the tests it writes and `check` no longer
|
|
894
958
|
needs `npm ci` in `test_cmd`. The generated prompt prefix teaches linking by
|
|
895
959
|
mention instead of "the test named in the matrix".
|
|
@@ -912,7 +976,7 @@ domain packs in a specops repository:
|
|
|
912
976
|
lines, and the `''` / `\"` escapes inside quotes. A pack generated with
|
|
913
977
|
PyYAML's defaults failed with "Unexpected YAML token".
|
|
914
978
|
- **"tag work" is not a vague step.** The vague-step check matched the bare
|
|
915
|
-
word
|
|
979
|
+
word _work_; it now flags verdicts ("it works", "should work"), not trade
|
|
916
980
|
terms.
|
|
917
981
|
- **A requirement can have several scenarios.** On a generated matrix a
|
|
918
982
|
requirement with two scenarios has two rows, and the gate called it a
|
|
@@ -993,7 +1057,7 @@ Found by following the documentation step by step on the published 0.13.0:
|
|
|
993
1057
|
published.
|
|
994
1058
|
- **Diagrams render on every docs page.** A blank line inside an inlined SVG
|
|
995
1059
|
ended Markdown's HTML block, so the rest of the diagram showed as a block of
|
|
996
|
-
escaped markup on
|
|
1060
|
+
escaped markup on _Domain packs_ and in _Specs that cannot lie_. Blank lines
|
|
997
1061
|
are dropped when a diagram is inlined, and a test fails on any page showing
|
|
998
1062
|
diagram markup as text.
|
|
999
1063
|
- **`mcp install --help` names the clients it supports.** It offered
|
|
@@ -1087,7 +1151,7 @@ Found by following the documentation step by step on the published 0.13.0:
|
|
|
1087
1151
|
`completion`, `studio`, `onboard` — take it from 14 to 34 of 60 commands, and
|
|
1088
1152
|
offline journeys for packs — `specops add/diff/sync/remove` against a local
|
|
1089
1153
|
git remote with tags, `pack bundle` for an air-gapped install, `pack
|
|
1090
|
-
|
|
1154
|
+
init/lint/infer`, `expand` — to 43, and the change cycle (`new` → `archive`
|
|
1091
1155
|
→ delivered with `done`), `change author` reverting an agent's write outside
|
|
1092
1156
|
the change, `harness init/prompt/run/report` and `specops contribute` to 55.
|
|
1093
1157
|
|
|
@@ -1275,13 +1339,13 @@ Agent files generated by earlier versions are named `csda`; run
|
|
|
1275
1339
|
short help and keep working. `adopt`'s next steps now teach `check`, `new`,
|
|
1276
1340
|
`status` and `ci init`.
|
|
1277
1341
|
- **`status` lists the queue itself.** One line per requirement — its title and
|
|
1278
|
-
what it still needs — split into
|
|
1342
|
+
what it still needs — split into _Ready to close_ and _To do_, capped at 12
|
|
1279
1343
|
per group. `Next` names a requirement (`specgate done REQ-003 --strict`)
|
|
1280
1344
|
instead of answering `specgate plan`. `--json` gains a `requirements` array.
|
|
1281
1345
|
`plan` leaves the daily help and keeps the full detail.
|
|
1282
1346
|
- **`plan` no longer says "code & test exist" over a row with no code.** A
|
|
1283
|
-
declared code path is optional; the heading now says
|
|
1284
|
-
code
|
|
1347
|
+
declared code path is optional; the heading now says _its declared test and
|
|
1348
|
+
code exist_.
|
|
1285
1349
|
- **The scenario rules are owed on delivery, like the files.** A Draft row's
|
|
1286
1350
|
feature file is not held to `--strict-scenarios`, so a fresh `specgate new`
|
|
1287
1351
|
does not turn CI red. The three rules that make a suite report a pass it
|
|
@@ -1346,7 +1410,7 @@ Agent files generated by earlier versions are named `csda`; run
|
|
|
1346
1410
|
and `--from` repeats and accepts a directory, so a command shared by three
|
|
1347
1411
|
files is proposed once.
|
|
1348
1412
|
|
|
1349
|
-
`--llm` is
|
|
1413
|
+
`--llm` is _not_ here: ADR-0014 defers it, and reopening that needs an ADR
|
|
1350
1414
|
rather than a flag. Everything above stays a skeleton to review with every
|
|
1351
1415
|
guess carrying its `TODO` — an inference that stops looking like a guess is
|
|
1352
1416
|
the failure mode the ADR names. Closes #32.
|
|
@@ -1390,7 +1454,7 @@ Agent files generated by earlier versions are named `csda`; run
|
|
|
1390
1454
|
runs in its own process and every one creates a worktree in the same
|
|
1391
1455
|
repository; git writes `.git/worktrees/<name>/` incrementally, so a sibling
|
|
1392
1456
|
read an entry that was half there and failed with `failed to read …
|
|
1393
|
-
|
|
1457
|
+
/commondir`. Worse, the failure was _attributed_: the run reported the
|
|
1394
1458
|
requirement as failed with "the agent produced no files", so a race in the
|
|
1395
1459
|
harness read as the agent's fault.
|
|
1396
1460
|
|
|
@@ -1428,7 +1492,7 @@ Agent files generated by earlier versions are named `csda`; run
|
|
|
1428
1492
|
[`spec-gate`](https://www.npmjs.com/package/spec-gate) normalises to exactly
|
|
1429
1493
|
`specgate`, so the registry refuses the name to everyone and reports it as a
|
|
1430
1494
|
credentials error. ADR-0024 had checked availability with `npm view specgate`
|
|
1431
|
-
→ 404, which says
|
|
1495
|
+
→ 404, which says _not published_ and never _creatable_; the
|
|
1432
1496
|
[2026-09-01 addendum](docs/specs/adr/0024-the-tool-is-renamed-the-format-is-not.md)
|
|
1433
1497
|
records both the decision and the bad check that led to it.
|
|
1434
1498
|
|
|
@@ -1470,7 +1534,7 @@ the one that finishes the rename past the layer where it had stopped.
|
|
|
1470
1534
|
**The on-disk format is deliberately unchanged.** `csda:trace`, `csda:value`,
|
|
1471
1535
|
`csda:allow-placeholders` and the `.csda/` directory keep their names. Those
|
|
1472
1536
|
are not branding: they are a parsed format and a config directory that live
|
|
1473
|
-
inside
|
|
1537
|
+
inside _user_ repositories, and renaming them would be a silent breaking
|
|
1474
1538
|
change to every adopted project — surfacing as "requirement not found" rather
|
|
1475
1539
|
than as "your marker prefix changed". Reading both prefixes is a real
|
|
1476
1540
|
migration feature, not a find-and-replace, and it is not built here.
|
|
@@ -1485,7 +1549,7 @@ the one that finishes the rename past the layer where it had stopped.
|
|
|
1485
1549
|
rebuilt in place and keep working.
|
|
1486
1550
|
|
|
1487
1551
|
`docs/release-process.md` gains the one-time cutover: the exact `npm
|
|
1488
|
-
|
|
1552
|
+
deprecate` invocation for `create-spec-driven-app`, why the old package is
|
|
1489
1553
|
deprecated and never unpublished (npm blocks reusing an unpublished name, and
|
|
1490
1554
|
a pinned dependency would break for no gain), and the sequencing constraint —
|
|
1491
1555
|
the rename and the release that publishes `specgate` are one event, because
|
|
@@ -1521,7 +1585,7 @@ The release that starts checking content instead of only paperwork. Every check
|
|
|
1521
1585
|
until now answered "are these documents internally consistent?"; none answered
|
|
1522
1586
|
"does the code say what the spec says?". These do — for the narrow slice where
|
|
1523
1587
|
that question has an honest answer. The reasoning, including what was
|
|
1524
|
-
deliberately
|
|
1588
|
+
deliberately _not_ built, is [ADR-0023](docs/specs/adr/0023-checking-content-gate-or-report.md).
|
|
1525
1589
|
|
|
1526
1590
|
### Added
|
|
1527
1591
|
|
|
@@ -1533,7 +1597,7 @@ deliberately *not* built, is [ADR-0023](docs/specs/adr/0023-checking-content-gat
|
|
|
1533
1597
|
the H13 mistake. These two rules are what a regex can assert honestly.
|
|
1534
1598
|
|
|
1535
1599
|
The point is upstream of any code checking: `- Max 5 failed attempts per hour
|
|
1536
|
-
|
|
1600
|
+
per user` is not something a machine can hold code to. RFC 2119 detection also
|
|
1537
1601
|
stops being duplicated — `DeltaSpec` enforced it for requirements inside a
|
|
1538
1602
|
change while a capability spec at rest was never checked; both now read one
|
|
1539
1603
|
definition.
|
|
@@ -1546,7 +1610,7 @@ deliberately *not* built, is [ADR-0023](docs/specs/adr/0023-checking-content-gat
|
|
|
1546
1610
|
Opt-in, and that was measured rather than assumed: the first version ran
|
|
1547
1611
|
unconditionally on the theory that a missing path has no legitimate reading,
|
|
1548
1612
|
and the test suite disproved it at once — a `Draft` or `In Dev` row routinely
|
|
1549
|
-
names the file a requirement is
|
|
1613
|
+
names the file a requirement is _going to_ land in. Planning ahead is not
|
|
1550
1614
|
documentary drift.
|
|
1551
1615
|
|
|
1552
1616
|
- **Declared-value drift in `csda report`.** Annotate a value on both sides —
|
|
@@ -1570,7 +1634,7 @@ deliberately *not* built, is [ADR-0023](docs/specs/adr/0023-checking-content-gat
|
|
|
1570
1634
|
|
|
1571
1635
|
- **`csda change new <id> --from-value-drift <REQ-ID>:<value_id>`** turns a
|
|
1572
1636
|
diverging value into a reviewable change. It writes a `## MODIFIED
|
|
1573
|
-
|
|
1637
|
+
Requirements` delta carrying the full requirement, with the structured
|
|
1574
1638
|
`value_<id>` rewritten to the value the code declares.
|
|
1575
1639
|
|
|
1576
1640
|
**The prose is left alone.** Turning "expires after 15 minutes" into "after
|
|
@@ -1586,7 +1650,7 @@ deliberately *not* built, is [ADR-0023](docs/specs/adr/0023-checking-content-gat
|
|
|
1586
1650
|
|
|
1587
1651
|
### Fixed
|
|
1588
1652
|
|
|
1589
|
-
- **The gate approved an agent that wrote nothing (H19).** The gate runs
|
|
1653
|
+
- **The gate approved an agent that wrote nothing (H19).** The gate runs _before_
|
|
1590
1654
|
`csda done`, so at gate time the requirement is still `Draft` — and
|
|
1591
1655
|
`--strict-tdd`'s "no `Test Artifact = TBD` past Draft" rule does not apply to a
|
|
1592
1656
|
Draft row. `done` then moved the status to `Implemented` and nothing validated
|
|
@@ -1618,8 +1682,8 @@ deliberately *not* built, is [ADR-0023](docs/specs/adr/0023-checking-content-gat
|
|
|
1618
1682
|
|
|
1619
1683
|
Worse than a red gate on day one: `csda harness run` on a new project **burned
|
|
1620
1684
|
all three agent attempts** failing on something the agent neither caused nor
|
|
1621
|
-
could fix. And it contradicted the README's L2 —
|
|
1622
|
-
test coverage, ~1 hour"
|
|
1685
|
+
could fix. And it contradicted the README's L2 — _"a PR gate enforcing spec and
|
|
1686
|
+
test coverage, ~1 hour"_ — since the gate was red before the hour started.
|
|
1623
1687
|
|
|
1624
1688
|
The placeholder row is gone, replaced by a comment pointing at
|
|
1625
1689
|
`csda req add "<what the requirement does>"`, which writes the row in `spec.md`
|
|
@@ -1675,7 +1739,7 @@ deliberately *not* built, is [ADR-0023](docs/specs/adr/0023-checking-content-gat
|
|
|
1675
1739
|
- **`specgate adopt` did not run at all.** `templates/adopt/spec.md.tpl` asks
|
|
1676
1740
|
for `{{PROPOSED_REQUIREMENTS}}` and nothing supplied it, so the brownfield
|
|
1677
1741
|
entry point died on `Missing variable 'PROPOSED_REQUIREMENTS' required by
|
|
1678
|
-
|
|
1742
|
+
template` for every repository.
|
|
1679
1743
|
|
|
1680
1744
|
Two parallel branches caused it. P6 taught `adopt` to seed one requirement per
|
|
1681
1745
|
capability `onboard` reads off the layout, and added `--monorepo` and
|
|
@@ -1742,7 +1806,7 @@ deliberately *not* built, is [ADR-0023](docs/specs/adr/0023-checking-content-gat
|
|
|
1742
1806
|
- **The landing page claimed 24 commands against a surface of 25.**
|
|
1743
1807
|
|
|
1744
1808
|
- **CI had not run this repository's own gate since the rename.** The rename
|
|
1745
|
-
commit changed the
|
|
1809
|
+
commit changed the _references_ to `bin/specgate.{ts,js}` in `ci.yml`,
|
|
1746
1810
|
`CONTRIBUTING.md` and `AI_RULES.md` without renaming the file, so the step
|
|
1747
1811
|
named "Validate this repository against its own spec gate" ran
|
|
1748
1812
|
`node bin/specgate.js validate .` against a path that did not exist and every
|
|
@@ -1760,7 +1824,6 @@ deliberately *not* built, is [ADR-0023](docs/specs/adr/0023-checking-content-gat
|
|
|
1760
1824
|
masked: the `adopt` regression above failed those files on every platform, so
|
|
1761
1825
|
nothing distinguished "broken everywhere" from "broken on Windows".
|
|
1762
1826
|
|
|
1763
|
-
|
|
1764
1827
|
## [0.7.0] — 2026-08-23
|
|
1765
1828
|
|
|
1766
1829
|
The release that closes the gate on itself. Every item below came from running
|
|
@@ -1777,7 +1840,7 @@ H16, all four measured before anything was written and reproduced after.
|
|
|
1777
1840
|
|
|
1778
1841
|
- **`csda harness run --skip-not-ready`** skips a requirement an agent could not
|
|
1779
1842
|
succeed at — no feature file, unmet dependencies, `Deprecated`, or `Needs
|
|
1780
|
-
|
|
1843
|
+
Clarification`. `csda plan --format json` now carries `ready` and `blockers[]`
|
|
1781
1844
|
per requirement, each blocker with a fix. Default is to warn and run it
|
|
1782
1845
|
anyway; an unrunnable scenario skips regardless, because an empty scenario
|
|
1783
1846
|
passes and a green run over one proves nothing.
|
|
@@ -1785,7 +1848,7 @@ H16, all four measured before anything was written and reproduced after.
|
|
|
1785
1848
|
- **`csda harness run --resume`** continues an interrupted run: it re-attaches to
|
|
1786
1849
|
the branch and, when git still knows of one, to the worktree holding the
|
|
1787
1850
|
agent's uncommitted work. Where it picks up is read from the prompt archive,
|
|
1788
|
-
not the run ledger — the ledger is written when a run
|
|
1851
|
+
not the run ledger — the ledger is written when a run _finishes_, so an
|
|
1789
1852
|
interrupted run leaves none.
|
|
1790
1853
|
|
|
1791
1854
|
- **`csda harness run --budget-seconds` and `--max-requirements`** put a ceiling
|
|
@@ -1810,7 +1873,7 @@ H16, all four measured before anything was written and reproduced after.
|
|
|
1810
1873
|
|
|
1811
1874
|
- **`csda harness report`** gains where attempts end, which requirements spend
|
|
1812
1875
|
every attempt, a series over time, and `--mark-false-failure REQ-NNN --reason
|
|
1813
|
-
|
|
1876
|
+
"…"`. The real-failure rate reads `—` until somebody marks one: nothing
|
|
1814
1877
|
recorded can tell a gate that was wrong from work that was.
|
|
1815
1878
|
|
|
1816
1879
|
- **`depends_on`** on a pack's requirements. The harness cuts a dependent's
|
|
@@ -1860,7 +1923,7 @@ H16, all four measured before anything was written and reproduced after.
|
|
|
1860
1923
|
|
|
1861
1924
|
- **`parseYamlLite` split inline sequences on every comma**, including the ones
|
|
1862
1925
|
inside quotes, so `responsibilities: ["Invoice line items, totals, status,
|
|
1863
|
-
|
|
1926
|
+
aging"]` parsed as four items carrying stray quote characters.
|
|
1864
1927
|
|
|
1865
1928
|
### Security
|
|
1866
1929
|
|
|
@@ -1915,9 +1978,9 @@ date.
|
|
|
1915
1978
|
- **The scenarios shipped in the curated packs were never executed.** 27 of the
|
|
1916
1979
|
28 scenarios under `packs/**` wrote their keywords in upper case —
|
|
1917
1980
|
`GIVEN` / `WHEN` / `THEN` — and Gherkin keywords are case-sensitive. Cucumber
|
|
1918
|
-
read those lines as the scenario's
|
|
1981
|
+
read those lines as the scenario's _description_, so the scenario existed with
|
|
1919
1982
|
**zero steps**, and an empty scenario passes: `1 scenario (1 passed) · 0 steps
|
|
1920
|
-
|
|
1983
|
+
· exit 0`.
|
|
1921
1984
|
|
|
1922
1985
|
Every project seeded with `csda specops add` therefore inherited an acceptance
|
|
1923
1986
|
criterion that approves anything, and a harness run over those requirements
|
|
@@ -1947,7 +2010,7 @@ date.
|
|
|
1947
2010
|
first run already had.
|
|
1948
2011
|
|
|
1949
2012
|
The attempt is now committed on the branch with a `wip(REQ-NNN): FAILED the
|
|
1950
|
-
|
|
2013
|
+
gate — do not merge as is` subject. The requirement stays `Draft`, because
|
|
1951
2014
|
`csda done` never ran, so nothing about the matrix claims the work is good. A
|
|
1952
2015
|
human reads it and decides; git just stops throwing it away. The report says
|
|
1953
2016
|
whether the work was preserved, and distinguishes that from an agent that
|
|
@@ -1958,7 +2021,7 @@ date.
|
|
|
1958
2021
|
a filter silently fails to apply — a runner config pinning its own paths will
|
|
1959
2022
|
override the CLI argument — the gate rejects correct work and the failure is
|
|
1960
2023
|
indistinguishable from broken code. It cost two agent runs to explain the
|
|
1961
|
-
first time. The harness cannot know how many tests
|
|
2024
|
+
first time. The harness cannot know how many tests _should_ run, but it can
|
|
1962
2025
|
notice a command that asked for one feature against output reporting many, and
|
|
1963
2026
|
warn. A hint, not a verdict: a genuine failure must not be explained away.
|
|
1964
2027
|
|
|
@@ -1999,7 +2062,7 @@ date.
|
|
|
1999
2062
|
version and path.
|
|
2000
2063
|
|
|
2001
2064
|
Reported by a user whose `csda -v` kept printing 0.1.2 after installing "the
|
|
2002
|
-
latest". The tool was right — it
|
|
2065
|
+
latest". The tool was right — it _was_ 0.1.2, from a global install made
|
|
2003
2066
|
months earlier. `npx create-spec-driven-app@latest` runs a temporary copy and
|
|
2004
2067
|
never touches a global one, so the two answer different questions and nothing
|
|
2005
2068
|
said so. Three minor versions behind, with no way to notice.
|
|
@@ -2009,8 +2072,7 @@ date.
|
|
|
2009
2072
|
newest is not doctor's business, and a lookup would break the offline and
|
|
2010
2073
|
air-gapped modes the tool promises.
|
|
2011
2074
|
|
|
2012
|
-
- **Doctor's Node check read `>= 20`** for a release after the floor moved to
|
|
2013
|
-
22. It now reads the floor from `package.json` rather than repeating it — the
|
|
2075
|
+
- **Doctor's Node check read `>= 20`** for a release after the floor moved to 22. It now reads the floor from `package.json` rather than repeating it — the
|
|
2014
2076
|
same drift the floor guard exists to prevent, in the one file the guard did
|
|
2015
2077
|
not cover.
|
|
2016
2078
|
|
|
@@ -2019,7 +2081,7 @@ date.
|
|
|
2019
2081
|
### Fixed
|
|
2020
2082
|
|
|
2021
2083
|
- **The gate could not run the scenario it was gating.** `test_cmd` was a fixed
|
|
2022
|
-
string with no substitution, and the gate runs
|
|
2084
|
+
string with no substitution, and the gate runs _before_ `csda done` — so the
|
|
2023
2085
|
requirement is still Draft and `validate --strict-tdd` does not demand its
|
|
2024
2086
|
test either. Between them, `harness run` could mark a requirement Implemented
|
|
2025
2087
|
with its scenario never executed.
|
|
@@ -2034,7 +2096,7 @@ date.
|
|
|
2034
2096
|
With that, the same no-op agent fails at the requirement's own scenario.
|
|
2035
2097
|
|
|
2036
2098
|
- **The harness blocked its own second run.** It archived each prompt into the
|
|
2037
|
-
|
|
2099
|
+
_project_ directory, which left untracked files behind — and the harness
|
|
2038
2100
|
refuses to start on a dirty tree. The archive now goes in the worktree, where
|
|
2039
2101
|
`git add -A` commits it with the work, so the prompt arrives in the branch
|
|
2040
2102
|
under review. That is what an audit copy was for.
|
|
@@ -2130,7 +2192,6 @@ date.
|
|
|
2130
2192
|
migrating is the shape that never worked, and `pack lint` now names exactly
|
|
2131
2193
|
what is wrong with it.
|
|
2132
2194
|
|
|
2133
|
-
|
|
2134
2195
|
- **The CLI is called `csda` in every place it is a command.** The package
|
|
2135
2196
|
ships two binaries — `create-spec-driven-app` and the `csda` alias — and the
|
|
2136
2197
|
two were used interchangeably, so the same command appeared under different
|
|
@@ -2206,7 +2267,7 @@ date.
|
|
|
2206
2267
|
`schema_version` and `.specops.lock`'s `specops_version` were both written by
|
|
2207
2268
|
the CLI and read by nothing, so a file from a newer version was accepted and
|
|
2208
2269
|
then misread field by field. Both now fail up front, naming the versions and
|
|
2209
|
-
the upgrade command. Older files still load — only
|
|
2270
|
+
the upgrade command. Older files still load — only _newer than this CLI_ is
|
|
2210
2271
|
refused.
|
|
2211
2272
|
|
|
2212
2273
|
- **`SECURITY.md`, `MAINTAINERS.md` and `CODEOWNERS`**, with private
|
|
@@ -2310,7 +2371,7 @@ date.
|
|
|
2310
2371
|
runner. The workflow needed QEMU alongside buildx to cross-build.
|
|
2311
2372
|
|
|
2312
2373
|
The 0.2.0 image tag could not be rebuilt in place: re-running a workflow
|
|
2313
|
-
against an old tag checks out the workflow
|
|
2374
|
+
against an old tag checks out the workflow _as it was at that tag_, which did
|
|
2314
2375
|
not yet have the fix. Hence a patch release rather than moving a published
|
|
2315
2376
|
tag.
|
|
2316
2377
|
|
|
@@ -2346,7 +2407,7 @@ and brownfield onboarding have all landed since.
|
|
|
2346
2407
|
### Added
|
|
2347
2408
|
|
|
2348
2409
|
- **Change lifecycle** — `csda change new | list | show | status | validate |
|
|
2349
|
-
|
|
2410
|
+
archive`. Modify a spec that already shipped through a reviewable delta.
|
|
2350
2411
|
Archiving merges it into the spec tree, writes the traceability rows and
|
|
2351
2412
|
materialises the feature files.
|
|
2352
2413
|
- **`csda change instructions <artifact>`** — the single context engine.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Merge a capability spec requirement by requirement (REQ-166).
|
|
4
|
+
*
|
|
5
|
+
* Git merges `docs/specs/capabilities/<x>/spec.md` by lines. Two changes
|
|
6
|
+
* archived on two branches into the same capability — common once work is one
|
|
7
|
+
* change per ticket — meet as a conflict even when they add different
|
|
8
|
+
* requirements, and as an add/add conflict when the capability is new on both.
|
|
9
|
+
* The unit that two branches actually share or not is a requirement: the
|
|
10
|
+
* `### Requirement: REQ-nnn` heading and everything up to the next one.
|
|
11
|
+
*
|
|
12
|
+
* Per requirement, the usual three-way rule: a side that left it as in the
|
|
13
|
+
* base yields to the side that changed it; two equal changes are one; two
|
|
14
|
+
* different changes are a conflict on that requirement alone. Requirements are
|
|
15
|
+
* written in id order. Pure: three texts in, one text out.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.requirementBlocks = requirementBlocks;
|
|
19
|
+
exports.mergeCapabilitySpec = mergeCapabilitySpec;
|
|
20
|
+
const HEADING = /^### Requirement: (REQ-[\w.]+)/m;
|
|
21
|
+
function parse(text) {
|
|
22
|
+
const normal = text.replace(/\r\n/g, "\n");
|
|
23
|
+
const first = normal.search(HEADING);
|
|
24
|
+
if (first === -1)
|
|
25
|
+
return { preamble: normal, blocks: new Map() };
|
|
26
|
+
const blocks = new Map();
|
|
27
|
+
for (const part of normal.slice(first).split(/(?=^### Requirement: )/m)) {
|
|
28
|
+
const id = HEADING.exec(part)?.[1];
|
|
29
|
+
if (id)
|
|
30
|
+
blocks.set(id, part.replace(/\n*$/, "\n"));
|
|
31
|
+
}
|
|
32
|
+
return { preamble: normal.slice(0, first), blocks };
|
|
33
|
+
}
|
|
34
|
+
/** Each `### Requirement:` block of a capability spec, by id (REQ-168 reads them too). */
|
|
35
|
+
function requirementBlocks(text) {
|
|
36
|
+
return parse(text).blocks;
|
|
37
|
+
}
|
|
38
|
+
const numeric = (id) => Number(/(\d+)/.exec(id)?.[1] ?? 0);
|
|
39
|
+
/** Three-way choice for one unit; `null` when both sides changed it differently. */
|
|
40
|
+
function choose(base, ours, theirs) {
|
|
41
|
+
if (ours === theirs)
|
|
42
|
+
return { value: ours };
|
|
43
|
+
if (ours === base)
|
|
44
|
+
return { value: theirs };
|
|
45
|
+
if (theirs === base)
|
|
46
|
+
return { value: ours };
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
const markers = (ours, theirs) => `<<<<<<< ours\n${ours ?? ""}=======\n${theirs ?? ""}>>>>>>> theirs\n`;
|
|
50
|
+
function mergeCapabilitySpec(base, ours, theirs) {
|
|
51
|
+
const [b, o, t] = [parse(base), parse(ours), parse(theirs)];
|
|
52
|
+
if (b.blocks.size + o.blocks.size + t.blocks.size === 0) {
|
|
53
|
+
return { content: ours, conflicts: [], unparsable: true };
|
|
54
|
+
}
|
|
55
|
+
const conflicts = [];
|
|
56
|
+
// A capability new on both sides has no base: its heading is whichever side wrote one.
|
|
57
|
+
const pre = choose(b.preamble || undefined, o.preamble || undefined, t.preamble || undefined);
|
|
58
|
+
let preamble;
|
|
59
|
+
if (pre)
|
|
60
|
+
preamble = pre.value ?? "";
|
|
61
|
+
else if (!b.preamble)
|
|
62
|
+
preamble = o.preamble || t.preamble;
|
|
63
|
+
else {
|
|
64
|
+
preamble = markers(o.preamble, t.preamble);
|
|
65
|
+
conflicts.push("preamble");
|
|
66
|
+
}
|
|
67
|
+
const ids = [...new Set([...b.blocks.keys(), ...o.blocks.keys(), ...t.blocks.keys()])].sort((x, y) => numeric(x) - numeric(y) || x.localeCompare(y));
|
|
68
|
+
const parts = [];
|
|
69
|
+
for (const id of ids) {
|
|
70
|
+
const picked = choose(b.blocks.get(id), o.blocks.get(id), t.blocks.get(id));
|
|
71
|
+
if (picked) {
|
|
72
|
+
if (picked.value !== undefined)
|
|
73
|
+
parts.push(picked.value);
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
parts.push(markers(o.blocks.get(id), t.blocks.get(id)));
|
|
77
|
+
conflicts.push(id);
|
|
78
|
+
}
|
|
79
|
+
const body = parts.map((p) => p.replace(/\n*$/, "\n")).join("\n");
|
|
80
|
+
const head = preamble.replace(/\n*$/, "\n\n");
|
|
81
|
+
return { content: `${head}${body}`, conflicts };
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=CapabilitySpecMerge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CapabilitySpecMerge.js","sourceRoot":"","sources":["../../../../../packages/core/src/domain/CapabilitySpecMerge.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AA8BH,8CAEC;AAmBD,kDAsCC;AA/ED,MAAM,OAAO,GAAG,iCAAiC,CAAC;AAOlD,SAAS,KAAK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