@agent-ix/quoin 0.21.2 → 0.21.8

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.
Files changed (107) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/bin/quoin.js +9 -2
  4. package/default-modules.yaml +4 -4
  5. package/dist/advisor/advise.d.ts +91 -5
  6. package/dist/advisor/advise.d.ts.map +1 -1
  7. package/dist/advisor/index.d.ts +1 -1
  8. package/dist/advisor/index.d.ts.map +1 -1
  9. package/dist/{advisor-x8vSvzWl.js → advisor-COB2SuIj.js} +1 -1
  10. package/dist/assurance/graph.d.ts +8 -0
  11. package/dist/assurance/graph.d.ts.map +1 -1
  12. package/dist/auditor/audit.d.ts +51 -17
  13. package/dist/auditor/audit.d.ts.map +1 -1
  14. package/dist/auditor/index.d.ts +1 -1
  15. package/dist/auditor/index.d.ts.map +1 -1
  16. package/dist/{auditor-B6Hs00oH.js → auditor-ww0MC62a.js} +127 -73
  17. package/dist/{base-DVl7skpc.js → base-DNieRzIg.js} +1 -1
  18. package/dist/cli.d.ts +28 -0
  19. package/dist/cli.d.ts.map +1 -1
  20. package/dist/cli.js +20 -10
  21. package/dist/commands/advise.d.ts.map +1 -1
  22. package/dist/commands/advise.js +65 -42
  23. package/dist/commands/assurance.d.ts.map +1 -1
  24. package/dist/commands/assurance.js +21 -19
  25. package/dist/commands/catalog/list.js +2 -2
  26. package/dist/commands/catalog/methods.js +3 -3
  27. package/dist/commands/catalog/show.js +2 -2
  28. package/dist/commands/catalog/validate.js +2 -2
  29. package/dist/commands/completeness.js +2 -2
  30. package/dist/commands/config/doctor.js +1 -1
  31. package/dist/commands/config/edit.js +1 -1
  32. package/dist/commands/config/get.js +1 -1
  33. package/dist/commands/config/set.js +1 -1
  34. package/dist/commands/evidence/affirm.d.ts.map +1 -1
  35. package/dist/commands/evidence/affirm.js +4 -7
  36. package/dist/commands/evidence/audit.d.ts +8 -0
  37. package/dist/commands/evidence/audit.d.ts.map +1 -1
  38. package/dist/commands/evidence/audit.js +39 -36
  39. package/dist/commands/evidence/baseline.js +5 -5
  40. package/dist/commands/evidence/gc.d.ts.map +1 -1
  41. package/dist/commands/evidence/gc.js +3 -3
  42. package/dist/commands/evidence/index.js +1 -1
  43. package/dist/commands/evidence/record.js +3 -3
  44. package/dist/commands/matrix.js +1 -1
  45. package/dist/commands/module/ensure-defaults.js +3 -3
  46. package/dist/commands/module/install.js +2 -2
  47. package/dist/commands/module/list.js +2 -2
  48. package/dist/commands/module/remove.js +2 -2
  49. package/dist/commands/review.js +1 -1
  50. package/dist/commands/to-plan.js +1 -1
  51. package/dist/commands/update.js +2 -2
  52. package/dist/commands/write.js +3 -3
  53. package/dist/{completeness-Bl40nk02.js → completeness-F657dxMp.js} +1 -1
  54. package/dist/evidence/adapters/cargo-mutants.d.ts.map +1 -1
  55. package/dist/evidence/index.d.ts +1 -1
  56. package/dist/evidence/index.d.ts.map +1 -1
  57. package/dist/evidence/record.d.ts.map +1 -1
  58. package/dist/evidence/types.d.ts +23 -0
  59. package/dist/evidence/types.d.ts.map +1 -1
  60. package/dist/{evidence-DopNnj0E.js → evidence-BA5vyZJk.js} +134 -136
  61. package/dist/{flow-command-zfisQlK7.js → flow-command-D1vJU-7a.js} +14 -14
  62. package/dist/index.js +6 -6
  63. package/dist/modules-BWyZ7kVN.js +23 -0
  64. package/dist/{plugins-7DX6rIfX.js → plugins-Czi2OyDB.js} +1 -1
  65. package/dist/quire/contract.d.ts +8 -2
  66. package/dist/quire/contract.d.ts.map +1 -1
  67. package/dist/quire/exec.d.ts +12 -0
  68. package/dist/quire/exec.d.ts.map +1 -1
  69. package/dist/quire/index.d.ts +2 -2
  70. package/dist/quire/index.d.ts.map +1 -1
  71. package/dist/quire/types.d.ts +131 -0
  72. package/dist/quire/types.d.ts.map +1 -1
  73. package/dist/{quire-VZjWaHph.js → quire-UzoK3Azf.js} +281 -273
  74. package/dist/schemas/coverage-v1.schema.json +89 -5
  75. package/dist/{version-DxqfsO8n.js → version-G_RI6TD4.js} +5 -5
  76. package/dist/{write-Dkpd6XwW.js → write-BJ9rTVAS.js} +1 -1
  77. package/package.json +6 -4
  78. package/skills/gap-analysis/references/step-3-matrix-verification.md +1 -1
  79. package/skills/spec-dependency-analysis/SKILL.md +15 -0
  80. package/skills/spec-failure-domain-analysis/SKILL.md +15 -0
  81. package/skills/spec-fuzz/SKILL.md +8 -0
  82. package/skills/spec-integrity-analysis/SKILL.md +15 -0
  83. package/skills/spec-matrix/SKILL.md +9 -4
  84. package/skills/spec-matrix/assets/test-matrix-example.md +2 -2
  85. package/skills/spec-matrix/assets/test-matrix-template.md +3 -3
  86. package/skills/spec-matrix/workflow-assets/dist/index.d.ts +146 -0
  87. package/skills/spec-matrix/workflow-assets/dist/index.d.ts.map +1 -0
  88. package/skills/spec-matrix/workflow-assets/dist/index.js +7525 -0
  89. package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts +6 -0
  90. package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts.map +1 -0
  91. package/skills/spec-review/SKILL.md +8 -0
  92. package/skills/spec-review/workflow-assets/dist/index.d.ts +146 -0
  93. package/skills/spec-review/workflow-assets/dist/index.d.ts.map +1 -0
  94. package/skills/spec-review/workflow-assets/dist/index.js +7525 -0
  95. package/skills/spec-review/workflow-assets/dist/invariants.d.ts +6 -0
  96. package/skills/spec-review/workflow-assets/dist/invariants.d.ts.map +1 -0
  97. package/skills/spec-review/workflow-assets/skills/review/SKILL.md +4 -4
  98. package/skills/spec-review/workflow-assets/skills/review/scripts/invariants.js +3 -2
  99. package/skills/spec-review/workflow-assets/skills/review/workflows/review/def.yaml +3 -3
  100. package/skills/spec-risk-complexity-analysis/SKILL.md +15 -0
  101. package/skills/spec-scope-boundary-analysis/SKILL.md +15 -0
  102. package/skills/spec-to-plan/workflow-assets/dist/index.d.ts +146 -0
  103. package/skills/spec-to-plan/workflow-assets/dist/index.d.ts.map +1 -0
  104. package/skills/spec-to-plan/workflow-assets/dist/index.js +7525 -0
  105. package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts +6 -0
  106. package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts.map +1 -0
  107. package/dist/modules-BEWi5WeN.js +0 -23
@@ -0,0 +1,6 @@
1
+ import { InvariantEvaluator } from '@agent-ix/workflow-core';
2
+ export declare const artifactFrontmatterValid: InvariantEvaluator;
3
+ export declare const artifactRelationshipsResolve: InvariantEvaluator;
4
+ export declare function clearProjectRegistryCache(): void;
5
+ export declare const specInvariants: Record<string, InvariantEvaluator>;
6
+ //# sourceMappingURL=invariants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invariants.d.ts","sourceRoot":"","sources":["../src/invariants.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAC;AAqDjC,eAAO,MAAM,wBAAwB,EAAE,kBAqHtC,CAAC;AAIF,eAAO,MAAM,4BAA4B,EAAE,kBAiG1C,CAAC;AA4DF,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAG7D,CAAC"}
@@ -24,9 +24,9 @@ document per analysis** under `spec/reviews/`, rather than a single freeform rep
24
24
  record it in the `request` interview as `review_set` plus `selected_analyses`:
25
25
  - `base` — the skill checklist only (ID formats, US/FR/TC quality, the six coverage
26
26
  rules). No analysis skills. `selected_analyses` is empty.
27
- - `all` — `base` plus all six analyses: `failure-domain`, `integrity`, `dependency`,
28
- `evidence`, `risk-complexity`, `scope-boundary`.
29
- - `subset` — `base` plus the analyses the user picks from those six.
27
+ - `all` — `base` plus all seven analyses: `failure-domain`, `integrity`, `dependency`,
28
+ `evidence`, `risk-complexity`, `scope-boundary`, `ears-conformance`.
29
+ - `subset` — `base` plus the analyses the user picks from those seven.
30
30
  - **analyses_run — run the selected set, one SpecReview doc each.** Run each selected
31
31
  analysis (the matching `spec-*-analysis` skill). Prefer running them **in parallel** —
32
32
  each writes its own file, so there is no contention.
@@ -55,7 +55,7 @@ hand-copy). The structure below is a reference for what that skeleton contains
55
55
  id: SR-001
56
56
  title: "<analysis> review of <scope>"
57
57
  type: SpecReview
58
- analysis: <failure-domain|integrity|dependency|evidence|risk-complexity|scope-boundary|base>
58
+ analysis: <failure-domain|integrity|dependency|evidence|risk-complexity|scope-boundary|ears-conformance|base>
59
59
  scope: <spec paths / ids>
60
60
  review_set: <base|all|subset>
61
61
  ---
@@ -1,6 +1,6 @@
1
1
  import { specInvariants } from "../../../dist/index.js";
2
2
 
3
- // Canonical "all" set — the six analyses named in the spec-review skill.
3
+ // Canonical "all" set — the seven analyses named in the spec-review skill.
4
4
  const ALL_ANALYSES = [
5
5
  "failure-domain",
6
6
  "integrity",
@@ -8,6 +8,7 @@ const ALL_ANALYSES = [
8
8
  "evidence",
9
9
  "risk-complexity",
10
10
  "scope-boundary",
11
+ "ears-conformance",
11
12
  ];
12
13
 
13
14
  const norm = (value) =>
@@ -27,7 +28,7 @@ function findRequest(instance) {
27
28
  // Hard check (final gate): every selected analysis must have a recorded
28
29
  // `review_doc` (a rendered + quire-validated SpecReview doc on disk) before
29
30
  // the run can be accepted. 'base' selects nothing, so it passes trivially;
30
- // 'all' expands to the canonical six when the agent did not echo the list.
31
+ // 'all' expands to the canonical seven when the agent did not echo the list.
31
32
  const selectedAnalysesCovered = ({ instance }) => {
32
33
  const request = findRequest(instance);
33
34
  const reviewSet = norm(request?.review_set);
@@ -1,5 +1,5 @@
1
1
  name: review
2
- version: 0.2.0
2
+ version: 0.2.1
3
3
  description: Run a composite specification review producing validated SpecReview docs.
4
4
  initialPhase: intake
5
5
  phases:
@@ -46,12 +46,12 @@ interviews:
46
46
  type: text
47
47
  required: true
48
48
  - key: review_set
49
- prompt: "Review set: 'base' (skill checklist only), 'all' (the six analyses), or 'subset'."
49
+ prompt: "Review set: 'base' (skill checklist only), 'all' (the seven analyses), or 'subset'."
50
50
  type: enum
51
51
  options: [base, all, subset]
52
52
  required: true
53
53
  - key: selected_analyses
54
- prompt: "Analyses to run as a list, drawn from: failure-domain, integrity, dependency, evidence, risk-complexity, scope-boundary. Use all six for 'all'; the chosen ones for 'subset'; leave empty for 'base'."
54
+ prompt: "Analyses to run as a list, drawn from: failure-domain, integrity, dependency, evidence, risk-complexity, scope-boundary, ears-conformance. Use all seven for 'all'; the chosen ones for 'subset'; leave empty for 'base'."
55
55
  type: list<text>
56
56
  required: false
57
57
  recipes:
@@ -75,3 +75,18 @@ See `spec-failure-domain-analysis` deliverable. Open gaps: none / list FR IDs.
75
75
  - Every High on either axis has a named mitigation.
76
76
  - The "Top hazards" section names the 3–5 items the team should review live before plan generation.
77
77
  - Cross-reference to `spec-failure-domain-analysis` deliverable is present and current.
78
+
79
+ ## Output contract
80
+
81
+ This skill emits one **`SpecReview`** under `reviews/YY-MM-DD-<slug>.md` with
82
+ `analysis: risk-complexity` in its frontmatter.
83
+
84
+ Stated here because nothing checked it. The module declares an `analysis`
85
+ vocabulary of eleven values; five of them named a skill that never said it
86
+ emitted under them, so a skill and its declared output were unlinked and drift
87
+ between the two was invisible. `tests/skill-contracts.test.ts` now asserts the
88
+ pairing in both directions.
89
+
90
+ The document must carry a `## Summary` and a `## Findings` table — the two
91
+ sections `SpecReview`'s `body_extraction` requires — and must pass
92
+ `quire validate`.
@@ -84,3 +84,18 @@ flowchart LR
84
84
  - Every external dependency is marked `assumed` or `guaranteed` with a named contract.
85
85
  - The system context diagram shows every external actor named in the spec.
86
86
  - No "TBD" entries in the allocation table.
87
+
88
+ ## Output contract
89
+
90
+ This skill emits one **`SpecReview`** under `reviews/YY-MM-DD-<slug>.md` with
91
+ `analysis: scope-boundary` in its frontmatter.
92
+
93
+ Stated here because nothing checked it. The module declares an `analysis`
94
+ vocabulary of eleven values; five of them named a skill that never said it
95
+ emitted under them, so a skill and its declared output were unlinked and drift
96
+ between the two was invisible. `tests/skill-contracts.test.ts` now asserts the
97
+ pairing in both directions.
98
+
99
+ The document must carry a `## Summary` and a `## Findings` table — the two
100
+ sections `SpecReview`'s `body_extraction` requires — and must pass
101
+ `quire validate`.
@@ -0,0 +1,146 @@
1
+ export interface SpecSkill {
2
+ readonly id: string;
3
+ readonly path: string;
4
+ readonly workflows: readonly string[];
5
+ readonly category: "create-edit" | "write" | "derive" | "review" | "analysis" | "planning" | "graph";
6
+ }
7
+ export declare const specSkills: readonly [{
8
+ readonly id: "spec-create";
9
+ readonly path: "skills/create";
10
+ readonly workflows: readonly ["spec-create", "spec-edit", "spec-batch"];
11
+ readonly category: "create-edit";
12
+ }, {
13
+ readonly id: "spec-write-str";
14
+ readonly path: "skills/write-str";
15
+ readonly workflows: readonly ["write-str"];
16
+ readonly category: "write";
17
+ }, {
18
+ readonly id: "spec-write-us";
19
+ readonly path: "skills/write-us";
20
+ readonly workflows: readonly ["write-us"];
21
+ readonly category: "write";
22
+ }, {
23
+ readonly id: "spec-write-fr";
24
+ readonly path: "skills/write-fr";
25
+ readonly workflows: readonly ["write-fr"];
26
+ readonly category: "write";
27
+ }, {
28
+ readonly id: "spec-write-nfr";
29
+ readonly path: "skills/write-nfr";
30
+ readonly workflows: readonly ["write-nfr"];
31
+ readonly category: "write";
32
+ }, {
33
+ readonly id: "spec-write-it";
34
+ readonly path: "skills/write-it";
35
+ readonly workflows: readonly ["write-it"];
36
+ readonly category: "write";
37
+ }, {
38
+ readonly id: "spec-us-to-fr";
39
+ readonly path: "skills/us-to-fr";
40
+ readonly workflows: readonly ["us-to-fr"];
41
+ readonly category: "derive";
42
+ }, {
43
+ readonly id: "spec-convert-objects";
44
+ readonly path: "skills/convert-objects";
45
+ readonly workflows: readonly ["convert-objects"];
46
+ readonly category: "derive";
47
+ }, {
48
+ readonly id: "spec-matrix";
49
+ readonly path: "skills/matrix";
50
+ readonly workflows: readonly ["matrix"];
51
+ readonly category: "review";
52
+ }, {
53
+ readonly id: "spec-review";
54
+ readonly path: "skills/review";
55
+ readonly workflows: readonly ["review"];
56
+ readonly category: "review";
57
+ }, {
58
+ readonly id: "spec-analysis-integrity";
59
+ readonly path: "skills/analysis-integrity";
60
+ readonly workflows: readonly ["analysis-integrity"];
61
+ readonly category: "analysis";
62
+ }, {
63
+ readonly id: "spec-analysis-failure-domain";
64
+ readonly path: "skills/analysis-failure-domain";
65
+ readonly workflows: readonly ["analysis-failure-domain"];
66
+ readonly category: "analysis";
67
+ }, {
68
+ readonly id: "spec-analysis-dependency";
69
+ readonly path: "skills/analysis-dependency";
70
+ readonly workflows: readonly ["analysis-dependency"];
71
+ readonly category: "analysis";
72
+ }, {
73
+ readonly id: "spec-analysis-evidence";
74
+ readonly path: "skills/analysis-evidence";
75
+ readonly workflows: readonly ["analysis-evidence"];
76
+ readonly category: "analysis";
77
+ }, {
78
+ readonly id: "spec-analysis-risk-complexity";
79
+ readonly path: "skills/analysis-risk-complexity";
80
+ readonly workflows: readonly ["analysis-risk-complexity"];
81
+ readonly category: "analysis";
82
+ }, {
83
+ readonly id: "spec-analysis-scope-boundary";
84
+ readonly path: "skills/analysis-scope-boundary";
85
+ readonly workflows: readonly ["analysis-scope-boundary"];
86
+ readonly category: "analysis";
87
+ }, {
88
+ readonly id: "spec-object-review";
89
+ readonly path: "skills/object-review";
90
+ readonly workflows: readonly ["object-review"];
91
+ readonly category: "review";
92
+ }, {
93
+ readonly id: "spec-app-review";
94
+ readonly path: "skills/app-review";
95
+ readonly workflows: readonly ["app-review"];
96
+ readonly category: "review";
97
+ }, {
98
+ readonly id: "spec-security-analysis";
99
+ readonly path: "skills/security-analysis";
100
+ readonly workflows: readonly ["security-analysis"];
101
+ readonly category: "analysis";
102
+ }, {
103
+ readonly id: "spec-blueprint";
104
+ readonly path: "skills/blueprint";
105
+ readonly workflows: readonly ["blueprint"];
106
+ readonly category: "planning";
107
+ }, {
108
+ readonly id: "spec-task-generation-readiness";
109
+ readonly path: "skills/task-generation-readiness";
110
+ readonly workflows: readonly ["task-generation-readiness"];
111
+ readonly category: "planning";
112
+ }, {
113
+ readonly id: "spec-to-plan";
114
+ readonly path: "skills/to-plan";
115
+ readonly workflows: readonly ["to-plan"];
116
+ readonly category: "planning";
117
+ }, {
118
+ readonly id: "spec-implementation-gap-analysis";
119
+ readonly path: "skills/implementation-gap-analysis";
120
+ readonly workflows: readonly ["implementation-gap-analysis"];
121
+ readonly category: "analysis";
122
+ }, {
123
+ readonly id: "spec-core-search";
124
+ readonly path: "skills/core-search";
125
+ readonly workflows: readonly ["core-search"];
126
+ readonly category: "graph";
127
+ }, {
128
+ readonly id: "spec-core-explore-objects";
129
+ readonly path: "skills/core-explore-objects";
130
+ readonly workflows: readonly ["core-explore-objects"];
131
+ readonly category: "graph";
132
+ }, {
133
+ readonly id: "spec-core-trace-analysis";
134
+ readonly path: "skills/core-trace-analysis";
135
+ readonly workflows: readonly ["core-trace-analysis"];
136
+ readonly category: "graph";
137
+ }, {
138
+ readonly id: "spec-core-review";
139
+ readonly path: "skills/core-review";
140
+ readonly workflows: readonly ["core-review"];
141
+ readonly category: "graph";
142
+ }];
143
+ export declare function skillById(id: string): SpecSkill | undefined;
144
+ export declare function workflowSkillPath(workflowName: string): string | undefined;
145
+ export { artifactFrontmatterValid, artifactRelationshipsResolve, clearProjectRegistryCache, specInvariants, } from './invariants.js';
146
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,QAAQ,EACb,aAAa,GACb,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,UAAU,GACV,OAAO,CAAC;CACb;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmKkB,CAAC;AAE1C,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAE3D;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAI1E;AAED,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,cAAc,GACf,MAAM,iBAAiB,CAAC"}