@bonesofspring/ai-rules 0.2.40 → 0.2.41
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 +342 -329
- package/package.json +1 -1
- package/presets/claude/android-kotlin/commands/task.md +1 -0
- package/presets/claude/go/commands/task.md +1 -0
- package/presets/claude/ios-swift/commands/task.md +1 -0
- package/presets/claude/java/commands/task.md +1 -0
- package/presets/claude/mcp-ts/commands/task.md +1 -0
- package/presets/claude/next/commands/task.md +2 -0
- package/presets/claude/nuxt/commands/task.md +1 -0
- package/presets/claude/php-hexagonal/commands/task.md +1 -0
- package/presets/claude/php-laravel/commands/task.md +1 -0
- package/presets/claude/svelte/commands/task.md +1 -0
- package/presets/cursor/android-kotlin/commands/task.md +1 -0
- package/presets/cursor/go/commands/task.md +1 -0
- package/presets/cursor/ios-swift/commands/task.md +1 -0
- package/presets/cursor/java/commands/task.md +1 -0
- package/presets/cursor/mcp-ts/commands/task.md +1 -0
- package/presets/cursor/next/commands/task.md +1 -0
- package/presets/cursor/nuxt/commands/task.md +1 -0
- package/presets/cursor/php-hexagonal/commands/task.md +1 -0
- package/presets/cursor/php-laravel/commands/task.md +1 -0
- package/presets/cursor/svelte/commands/task.md +1 -0
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/commands/task.md +1 -0
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/commands/task.md +1 -0
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/commands/task.md +1 -0
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/commands/task.md +1 -0
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/commands/task.md +1 -0
- package/presets/mavis/next/adapter-map.json +1 -1
- package/presets/mavis/next/commands/task.md +1 -0
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/commands/task.md +1 -0
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/commands/task.md +1 -0
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/commands/task.md +1 -0
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/commands/task.md +1 -0
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/commands/task.md +1 -0
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/commands/task.md +1 -0
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/commands/task.md +1 -0
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/commands/task.md +1 -0
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/commands/task.md +1 -0
- package/presets/opencode/next/adapter-map.json +1 -1
- package/presets/opencode/next/commands/task.md +1 -0
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/commands/task.md +1 -0
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/commands/task.md +1 -0
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/commands/task.md +1 -0
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/commands/task.md +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,101 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
No unpublished changes.
|
|
6
|
+
|
|
7
|
+
## 0.2.41
|
|
8
|
+
|
|
9
|
+
### `/task` slash menu shows the command description
|
|
10
|
+
|
|
11
|
+
- **Menu text.** Cursor shows the first line of `commands/task.md` after the frontmatter, not the YAML `description`. The anti-hallucination load-line marker was that line, so `/task` appeared as `<!-- shared-core: quality/anti-hallucination-load-line.md -->`.
|
|
12
|
+
- **Lead sentence.** Cursor, Claude, and Mavis now open the command body with `Route a natural-language task through the agent-team pipeline: task-router, pipeline.json, and the first planned specialist.` The shared-core marker and the load sentence stay in the file, after that line. OpenCode keeps the `$ARGUMENTS` block first, then the same sentence.
|
|
13
|
+
- **Gate.** `check-anti-hallucination-coverage.mjs` fails when the first body line of `commands/task.md` is an HTML comment.
|
|
14
|
+
|
|
15
|
+
### Upgrade
|
|
16
|
+
|
|
17
|
+
- `npx @bonesofspring/ai-rules update` replaces `commands/task.md`. Reload the editor if the slash menu still shows the HTML comment.
|
|
18
|
+
|
|
19
|
+
## 0.2.40
|
|
20
|
+
|
|
21
|
+
### `/task` records a goal, an outcome, and a review ledger
|
|
22
|
+
|
|
23
|
+
- **Before specialists.** Slug bootstrap writes `goal.md` (formulated outcome: Goal, User value, Success criteria, Non-goals). `prompt.md` stays the verbatim request. Copying the prompt into the goal is invalid. The plan stop shows `goal.md` and waits for confirmation of those fields. The analyst echoes `goal.md` and does not replace it. Bounded, spike, and `light` tasks still write the thin frame.
|
|
24
|
+
- **After the terminal state.** The orchestrator writes `outcome.md` (`goalAchieved`, `value`, per-criterion evidence, `reviewCounts`) before the closing message. `unsatisfactory` does not reopen the task.
|
|
25
|
+
- **Review ledger.** Self-review defects that change the output, `code-reviewer` findings, and user or other-agent objections append to `review-ledger.md`. A `fair: yes` row at close appends one signal per distinct signature and runs `node .ai.local/scripts/run.mjs` once. Preset-prose targets stay staged for `/technical-retro`.
|
|
26
|
+
- **Contract.** `agent-artifact-contracts`, `task-framing`, `self-review-and-context-hygiene`, and the orchestrator. `check-plan-contract.sh` requires `goal.md`, `outcome.md`, and `review-ledger.md` on `commands/task.md` and the orchestrator. `check-preset-self-review-contract.sh` requires `review-ledger.md` on the producer agents and on `commands/task.md`.
|
|
27
|
+
|
|
28
|
+
### Always-on budget raised to 10 files and 4000 lines
|
|
29
|
+
|
|
30
|
+
- **File cap.** Cursor `alwaysApply`, Claude session-start (README excluded), and Mavis/OpenCode `loadMode: root-entry` are **3–10** (was 3–5). The minimum stays 3. A count above 3 still includes `ai-local-overlay`. `next` keeps exactly four always-on stems.
|
|
31
|
+
- **Line cap.** The Cursor/Claude session-start body sum and the combined Mavis/OpenCode root `AGENTS.md` + platform entry are **≤4000** nonempty lines (was 200, stretch 170). The stretch target is the same 4000. The separate next glob-attached fixture caps stay UI 420, store 400, and API 400.
|
|
32
|
+
- **Enforcement.** `check-preset-token-budget.sh` (`MAX_ALWAYS_ON=10`, `BODY_CAP=4000`), `check-{mavis,opencode}-token-budget.mjs` (root-entry cap 10), and `test-{mavis,opencode}-context-budget.mjs` (entry cap 4000). Policy text is in `preset-token-budget`, `preset-pr-checklist`, `preset-layering`, each stack `README.md` / `CLAUDE.md`, and `docs/PRESET-CONTRIBUTION.md`.
|
|
33
|
+
- **Consumers.** The installed always-on set is unchanged. Re-init picks up the new policy text (see Upgrade).
|
|
34
|
+
|
|
35
|
+
### CSS declaration hygiene on web layout rules
|
|
36
|
+
|
|
37
|
+
- **No initial or no-op declarations.** `css-property-order-stylelint` on `next`, `nuxt`, and `svelte` tells agents to omit a property at its initial value (`min-width: 0` on a block). `min-width: 0` stays on a flex or grid item, where it overrides the automatic minimum `auto`.
|
|
38
|
+
- **Integer pixels.** A fractional `px` literal rounds to the nearest integer (`334.667px` → `335px`). A tie rounds away from zero.
|
|
39
|
+
- **Necessity check.** After the initial-value pass, delete any declaration whose removal does not change the used value. Stylelint order auto-fix does not do this.
|
|
40
|
+
- **Where it loads.** The checks live in `css-property-order-stylelint`. `next` loads it on `styles.ts(x)` and `app/**/*.css`, and `react-ui` restates them. `nuxt` loads it on `*.css`, `*.scss`, and `*.vue`; `vue-ui` points at it. `svelte` loads it on `*.css`, `*.scss`, and `*.svelte`; `svelte-ui` points at it. `code-review-mr` on those three stacks applies the same checks to a UI diff.
|
|
41
|
+
|
|
42
|
+
### Preset-update notice stands apart from the task answer
|
|
43
|
+
|
|
44
|
+
- **Version notice.** When the installed preset is older than npm `latest`, the reply opens with a level-2 heading and a blockquote in the user's language. Both versions are bold. The notice names the installed version, the latest version, and `/update`. It is not a sentence inside the task answer.
|
|
45
|
+
- **`/update` result.** The command reports that the update finished successfully, or that it did not. A failure quotes stderr and stops. It does not quote the numeric exit code.
|
|
46
|
+
|
|
47
|
+
### Agents load an anti-hallucination contract
|
|
48
|
+
|
|
49
|
+
- **Requestable contract.** `anti-hallucination-contract` is on every role and is not always-on. Writer roles — implementer, unit-test, e2e, qa, and `code-reviewer` — also load that stack's floor. Read-only roles stop at the contract. `next`, `nuxt`, and `svelte` keep their dense banlists and point at the contract. `go`, `java`, `php-hexagonal`, `php-laravel`, `ios-swift`, `android-kotlin`, and `mcp-ts` ship a thin floor.
|
|
50
|
+
- **Coverage gate.** `yarn check:preset-structure` runs `check-anti-hallucination-coverage.mjs`. The fixture fails when `anti-hallucination-contract` is removed from `next.reviewer`. The gate does not scan consumer application source and does not call Context7.
|
|
51
|
+
- **Skill classes.** A new `skills/<family>` must be registered in `SKILL_CONTRACT_CLASS`. `writer` (including `code-review`) carries the stack floor sentence. `reader` carries the contract load line only.
|
|
52
|
+
|
|
53
|
+
### Nested `.ai.local` is resolved from the paths a step touches
|
|
54
|
+
|
|
55
|
+
- **`list-ai-local.mjs`** lists the ancestor chain for each path: the root overlay applies everywhere, a nested overlay applies only under its directory, and the same rule file name on one chain resolves to the deeper file. With no paths it prints every overlay prefix and does not merge siblings. `team/**` and `rules-library/**` are not rules.
|
|
56
|
+
- **Scope growth.** When `.ai.local/team/tasks/<slug>/` already exists, `--record <slug>` writes `overlay-scope.json` and appends one `.memlog.md` `event:` per newly entered overlay. Files newly in that recorded scope are printed under `new:`. A missing task directory skips the write.
|
|
57
|
+
- **Task language.** The tag already stored in `prompt.md` stays for the task. A nested `conventions.md` entered later does not switch it. With no stored tag, the nearest `conventions.md` on the chain applies.
|
|
58
|
+
- **Mid-session pickup.** A new `.ai.local`, or a file under an overlay the task has already entered, is picked up the next time the script runs with a path on that chain.
|
|
59
|
+
- **All four hosts** ship the same script under `hooks/`. Cursor `sessionStart` and Claude `SessionStart` print the prefix index. That index is not the apply set. Mavis and OpenCode run the script from the overlay rule; they have no session hook. If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
|
|
60
|
+
|
|
61
|
+
### Upgrade
|
|
62
|
+
|
|
63
|
+
- `npx @bonesofspring/ai-rules update` (or `init <tool|multi> --preset <stack>`) replaces managed hooks and rules. Re-init picks up `list-ai-local.mjs`, the version-notice shape, `anti-hallucination-contract`, the CSS declaration checks, the `goal.md` / `outcome.md` / `review-ledger.md` instructions, and the 3–10 / 4000 budget text.
|
|
64
|
+
- Cursor `sessionStart` and Claude `SessionStart` run `list-ai-local.mjs` next to the existing preset-update check.
|
|
65
|
+
- The budget change raises the cap. It does not add an always-on rule.
|
|
66
|
+
|
|
67
|
+
## 0.2.39
|
|
68
|
+
|
|
69
|
+
### A `null` journal line no longer stops the self-learning loop
|
|
70
|
+
|
|
71
|
+
- `JSON.parse("null")` is valid JSON and returns `null`. Reading `.slug` / `.at` on it threw, and one such line aborted derivation, `run.mjs`, and the efficacy oracle.
|
|
72
|
+
- Those readers now require a non-null object that is not an array. A `null`, primitive, or array line is skipped and left in the file. `--status` counts it as malformed. Objects that are missing fields were already skipped.
|
|
73
|
+
|
|
74
|
+
### `task_completed` is written only after `requireArtifacts` passes
|
|
75
|
+
|
|
76
|
+
- `chain-team-phases.sh` used to record `task_completed` and then call completion, which can still write `state: blocked` when `.ai.local/pipeline-gates.json` lists a receipt that is not completed. Metrics then showed a finished task that had failed the last check.
|
|
77
|
+
- The metric is written only on the success branch, after the receipt check, on every platform and stack. A missing receipt still blocks and writes no `task_completed`. A pipeline that completes because no step remains now records the metric too.
|
|
78
|
+
|
|
79
|
+
### Derived signals are deduped inside the lock
|
|
80
|
+
|
|
81
|
+
- Two overlapping `run.mjs` runs could both derive the same `(slug, id, kind)` and both append it. The check now re-reads the journal under the lock before appending. The report's `appended` count includes only the row that was written.
|
|
82
|
+
|
|
83
|
+
### The engine lock is `flock`, and the lock file stays
|
|
84
|
+
|
|
85
|
+
- Reclaiming a stale `.ai.local/scripts` lock by `unlink` could delete a lock a second process had just taken. Ownership is now a POSIX `flock` held by a short-lived `perl` helper (`Fcntl`, `Time::HiRes`). The helper drops the lock when its parent exits, including after a crash. The lock file is not removed: a file on disk does not mean the lock is held. `staleMs` is accepted and ignored.
|
|
86
|
+
- `perl` with those two modules is required. If it is missing, acquire fails with `lock helper unavailable: perl with Fcntl and Time::HiRes`.
|
|
87
|
+
- The metrics lock inside `chain-team-phases.sh` is unchanged (token file plus `unlink`).
|
|
88
|
+
|
|
89
|
+
### Preset-update notice refreshes after one hour
|
|
90
|
+
|
|
91
|
+
- `hooks/check-preset-update.mjs` caches the npm `latest` lookup for 1 hour. `0.2.38` cached it for 12 hours.
|
|
92
|
+
|
|
93
|
+
### Upgrade
|
|
94
|
+
|
|
95
|
+
- `npx @bonesofspring/ai-rules update` replaces the managed hooks, so the `task_completed` order and the one-hour cache land on re-init.
|
|
96
|
+
- `init` / `update` does not overwrite an existing `.ai.local/scripts/*.mjs`. The journal, dedup, and `flock` fixes ship in `run.mjs`, `signals.mjs`, `lock.mjs`, `rule-improver.mjs`, `derive-gate-signals.mjs`, and `efficacy-oracle.mjs`. If those files are still the copies from an older install, replace them with the package copies (a local edit is kept on purpose).
|
|
97
|
+
|
|
98
|
+
## 0.2.38
|
|
99
|
+
|
|
5
100
|
### `update` reinstalls the tools and presets already recorded
|
|
6
101
|
|
|
7
102
|
- **CLI `update`.** Reads `platform` and `preset` from each existing `<tool>/.ai-rules-install.json` (`.cursor`, `.claude`, `.mavis`, `.opencode`) and re-runs `init` for those tools only. A tool without a manifest stays uninstalled. The recorded preset is kept; `--preset` and a tool name are rejected. The plan is validated before the first write, so a bad manifest does not partially update.
|
|
@@ -26,14 +121,29 @@
|
|
|
26
121
|
- **The chain hook runs the loop after every producer receipt** (`chain-team-phases.sh` template tail): one run per completed stop, the child's stdout forwarded to stderr so the hook's own JSON stdout contract is untouched, a 15 s cap, `|| true`, and exactly one `WARNING:` line when the engine is absent. The `light` profile and `spike` intent skip silently.
|
|
27
122
|
- **One loop paragraph.** The stale `rule-improver.mjs` / raw-JSONL / "skip silently" instructions are gone from every carrier (agents, orchestrator rule, commands, retro skill); `check-preset-self-review-contract.sh` now fails on reintroduction and `test-preset-self-review-contract-fixtures.mjs` proves the negative.
|
|
28
123
|
|
|
29
|
-
###
|
|
124
|
+
### Presets report a newer package and name the latest version
|
|
30
125
|
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
126
|
+
- Cursor `sessionStart` and Claude `SessionStart` run `hooks/check-preset-update.mjs`. Mavis and OpenCode run the same script on the first reply (`## Preset version` in root `AGENTS.md`).
|
|
127
|
+
- When `packageVersion` in `<tool>/.ai-rules-install.json` is older than the npm latest for `@bonesofspring/ai-rules`, the agent tells the user the installed version, the latest version, and to run `/update`. A registry failure stays silent. The registry lookup is cached for 12 hours.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Added
|
|
131
|
+
|
|
132
|
+
- Maintainer coverage: `scripts/test-preset-update-check.mjs` for the preset-update hook. (6023272d)
|
|
133
|
+
|
|
134
|
+
## 0.2.37
|
|
135
|
+
|
|
136
|
+
### Added
|
|
137
|
+
|
|
138
|
+
- Hook body parity and shared-core drift lineage fixture tests (`test-hook-body-parity-fixtures.mjs`, `test-shared-core-drift-lineage-fixtures.mjs`). (e9aea2d6)
|
|
139
|
+
|
|
140
|
+
## 0.2.36
|
|
141
|
+
|
|
142
|
+
### Changed
|
|
143
|
+
|
|
144
|
+
- OpenCode adapter generation and `scripts/lib/stack-platform-profiles.mjs`; extended `test-cli-mcp-merge.mjs`. (29897447)
|
|
145
|
+
|
|
146
|
+
## 0.2.35
|
|
37
147
|
|
|
38
148
|
### Presets: prompt-persistence reachability, core classification, reachability gate, `preset-*` authoring-only
|
|
39
149
|
|
|
@@ -43,22 +153,11 @@
|
|
|
43
153
|
- **`preset-*` meta rules are documented as preset-authoring-only** (installed but intentionally never consumer-loaded) and exempted by the gate; `docs/PRESET-CONTRIBUTION.md` + `presets/_shared/README.md` updated.
|
|
44
154
|
- Generated Mavis/OpenCode trees regenerated and CLI goldens recaptured (root `AGENTS.md` + `ai-local-overlay` newline normalization).
|
|
45
155
|
|
|
46
|
-
###
|
|
47
|
-
|
|
48
|
-
- **No more `*.bak.<stamp>` files.** An existing `mcp.json` / `.mcp.json` / `opencode.json` / `.claude/settings.json` that is not a valid JSON object now fails `init` with exit 1 and leaves the tree untouched (previously backed up and replaced). Edited managed files are overwritten without a side copy.
|
|
49
|
-
- **`clean` keeps user content.** Cursor/Claude manifests (`schemaVersion: 2`) list only files `init` copied; v1 manifests fall back to files the recorded preset ships. Merged configs are recorded under `mergedConfigs` and only the entries `init` added are stripped; the file is removed only when `init` created it and it ends up empty.
|
|
50
|
-
- **Rollback** of a failed `init` restores overwritten files from a transient `<toolRoot>/.rollback/<runId>/` snapshot and removes only paths that did not exist before.
|
|
51
|
-
- **Path safety:** every destination goes through `assertSafeDest` (symlinked `AGENTS.md`, `.cursor/rules`, `.mavis/rules` … are refused); empty-dir cleanup never follows symlinks; `..foo` directory names no longer misdetected as traversal.
|
|
52
|
-
- **`.claude/settings.json` is merged** on re-init (permission arrays unioned, preset hooks added by command) instead of overwritten.
|
|
53
|
-
- Shared installer helpers extracted to `bin/lib/fs-utils.js` and `bin/lib/merged-config.js`.
|
|
156
|
+
### Added
|
|
54
157
|
|
|
55
|
-
|
|
158
|
+
- Generated-tree test fixtures (`test-generate-claude-fixtures.mjs`, `test-generated-drift-fixtures.mjs`, `test-generated-drift-claude-fixtures.mjs`). (26f438de)
|
|
56
159
|
|
|
57
|
-
|
|
58
|
-
- Removed project-specific names from shipped prose and the forced Russian locale for test titles / JSDoc (project locale per repo lint, default English); `types-jsdoc` documents only non-obvious meaning.
|
|
59
|
-
- Maintainer gates (`check:preset-structure`, `packages/ai-rules/scripts/**`) removed from consumer `build-verifier` / `ci-investigator` / hooks; moved into `preset-pr-checklist`.
|
|
60
|
-
- `figma-fidelity` is the single gate procedure: default scope = changed nodes at mobile + desktop; full matrix + fluid sweep on `fidelity: full` or new screens. `AC-n` labels dropped from shipped prose; duplicated gate prose replaced with pointers. `check-figma-contract-presence.sh` updated.
|
|
61
|
-
- Router guidance is detect-first everywhere (`navigation-router-*`, `react-performance`); brace globs expanded to YAML lists; `language-policy` (Cursor) globs fixed.
|
|
160
|
+
## 0.2.34
|
|
62
161
|
|
|
63
162
|
### Repo / tooling
|
|
64
163
|
|
|
@@ -68,6 +167,20 @@
|
|
|
68
167
|
- npm `files` ships only the consumer scripts (`check-product-specs.sh`, `aggregate-agent-task-metrics.mjs`, `close-agent-task-human-gate.mjs`).
|
|
69
168
|
- Root `package.json` / `lerna.json` version aligned to the package (`0.2.34`); commitlint rejects generic subjects (`presets update`) and subjects shorter than 10 chars.
|
|
70
169
|
|
|
170
|
+
### Added
|
|
171
|
+
|
|
172
|
+
- Chain hook coverage extensions (`test-chain-team-phases-coverage.mjs`, `test-parallel-plan-fixtures.mjs`). (057f6646)
|
|
173
|
+
|
|
174
|
+
## 0.2.33
|
|
175
|
+
|
|
176
|
+
### Presets: consumer hygiene and proportional Figma gate
|
|
177
|
+
|
|
178
|
+
- `preset-*` authoring rules attach only to `packages/ai-rules/{presets,scripts,docs}/**` — they no longer load during consumer `/task` work.
|
|
179
|
+
- Removed project-specific names from shipped prose and the forced Russian locale for test titles / JSDoc (project locale per repo lint, default English); `types-jsdoc` documents only non-obvious meaning.
|
|
180
|
+
- Maintainer gates (`check:preset-structure`, `packages/ai-rules/scripts/**`) removed from consumer `build-verifier` / `ci-investigator` / hooks; moved into `preset-pr-checklist`.
|
|
181
|
+
- `figma-fidelity` is the single gate procedure: default scope = changed nodes at mobile + desktop; full matrix + fluid sweep on `fidelity: full` or new screens. `AC-n` labels dropped from shipped prose; duplicated gate prose replaced with pointers. `check-figma-contract-presence.sh` updated.
|
|
182
|
+
- Router guidance is detect-first everywhere (`navigation-router-*`, `react-performance`); brace globs expanded to YAML lists; `language-policy` (Cursor) globs fixed.
|
|
183
|
+
|
|
71
184
|
### Preset brevity & comment discipline
|
|
72
185
|
|
|
73
186
|
- **New requestable shared-core meta rule `meta/preset-writing-style.md`** — preset prose: state the rule, cut the demagogy (no filler, hedging, emphasis inflation, restated rules, storytelling), one testable rule per line, link instead of duplicate. EMBED: 10 Cursor `preset-writing-style.mdc` + 10 Claude twins + regenerated `mavis/**` / `opencode/**`; referenced from `preset-goals` and `preset-pr-checklist`.
|
|
@@ -99,6 +212,12 @@
|
|
|
99
212
|
- **Next rules/agents/skills extended:** `mockup-review` + `code-review-mr` + `feature-delivery-workflow` Stack notes carry the MCP matrix (Figma / chrome-devtools / Playwright / Storybook) + degradation; `design-tokens-binding` carries the QA baseline + value/geometry diff; `mockup-reviewer`/`feature-developer`/`code-reviewer` prompts gain the contract precondition, parity/value diff, and `mockup-change-requested` verdict; 4 next `.ai.local` seeds reference the contract.
|
|
100
213
|
- **New hard gate `scripts/check-figma-contract-presence.sh`** wired into `check-preset-structure.sh` (+ `yarn check:figma-contract`) — asserts the contract headings / keys / markers / skill steps are present. **Deliberate non-change:** core `review/code-review-mr.md` untouched (anti-fan-out); lineage propagation for `feature-delivery-workflow` / `agent-team-orchestrator` (core + next adapters only).
|
|
101
214
|
|
|
215
|
+
### Added
|
|
216
|
+
|
|
217
|
+
- Preset contract fixture suites (`test-preset-language-policy-fixtures.mjs`, `test-preset-prompt-persistence-fixtures.mjs`, `test-preset-self-review-contract-fixtures.mjs`). (5d214e58)
|
|
218
|
+
|
|
219
|
+
## 0.2.32
|
|
220
|
+
|
|
102
221
|
### Next: runtime-model, catalog, seeds, and generated-tree correctness
|
|
103
222
|
|
|
104
223
|
- **Generated trees no longer ship dangling `.mdc` pointers.** `generate-mavis` / `generate-opencode` rewrite in-body `.mdc` cross-references to sibling rule `.md` stems (embed-mode bodies previously kept Cursor `## Stack notes` verbatim); author `preset-*` meta-rules keep their intentional Cursor `.mdc` references. `check-generated-drift.mjs` now fails on a dangling sibling-stem `.mdc` in any generated rule tree.
|
|
@@ -110,6 +229,18 @@
|
|
|
110
229
|
- **Pipeline/agent wiring:** `task-router` and `feature-delivery-workflow` require `mockup-reviewer` for UI scope **without** a Figma URL; `build-verifier` runs the catalog suite; `code-review-mr` adds a spec/docs sync gate; `task-analyst`/`openspec-author` templates gain `## Hard rules applied` and `## Compliance impact`; `feature-developer`/`code-reviewer` return a `## Human commits` plan.
|
|
111
230
|
- **`init` overwrite contract documented** (managed vs preserved) in `ai-local-overlay`, root `AGENTS.md`, and `docs/LOCAL-OVERLAY.md`; `post-change-lint`/`tests-unit` prefer package scripts and cover secondary packages.
|
|
112
231
|
|
|
232
|
+
### Changed
|
|
233
|
+
|
|
234
|
+
- Mavis/OpenCode adapter generators (`scripts/lib/generate-adapter-common.mjs`, `generate-mavis-adapter.mjs`, `generate-opencode-adapter.mjs`). (879ec753)
|
|
235
|
+
|
|
236
|
+
## 0.2.30
|
|
237
|
+
|
|
238
|
+
### Changed
|
|
239
|
+
|
|
240
|
+
- Refreshed Mavis/OpenCode CLI goldens (`scripts/fixtures/cli-golden/mavis/next.json`, `opencode/next.json`). (997c45f8)
|
|
241
|
+
|
|
242
|
+
## 0.2.29
|
|
243
|
+
|
|
113
244
|
### Claude session-start overlay, settings hooks, and dogfood sync
|
|
114
245
|
|
|
115
246
|
- Claude `ai-local-overlay` is session-start (no `paths:`) on all 10 stacks, inside the 3–10 always-on budget, with entry-file probe text in `CLAUDE.md` and root `AGENTS.md`.
|
|
@@ -117,11 +248,41 @@
|
|
|
117
248
|
- Mavis and OpenCode keep prompt-contract overlay loading (`nativeProjectRules` unknown / no-equivalent). `projectHooks` and the unverified Mavis workspace discovery fields are `manual`. Mavis `freshInit` stays `unknown`; MCP import stays `fallback-manual-import`.
|
|
118
249
|
- Maintainers: `scripts/sync-dogfood-claude.sh` copies `presets/claude/<stack>` to `.claude/`.
|
|
119
250
|
|
|
251
|
+
### Added
|
|
252
|
+
|
|
253
|
+
- `scripts/sync-dogfood-claude.sh` for Claude dogfood sync from presets. (e22c5b7f)
|
|
254
|
+
|
|
255
|
+
## 0.2.28
|
|
256
|
+
|
|
257
|
+
### OpenCode config: only the schema OpenCode reads (breaking for existing `opencode.json`)
|
|
258
|
+
|
|
259
|
+
- **The deny map is `permission.bash`.** `opencode.ai/docs/permissions` (re-read 2026-10-26) keys the v1 `permission` object by tool name, and the shell-command tool is `bash`. `permission.shell` is not that key. v2 is a separate schema (`permissions[]` with `action: "shell"`); this preset does not emit it. Rules resolve by pattern match with the **last** match winning, so `'*': 'allow'` stays first and the `git commit` / `git push` `deny` rows after it bind.
|
|
260
|
+
- **The top-level `policies` array is removed, not renamed.** `opencode.ai/docs/policies` configures policies at `experimental.policies` and supports exactly one action, `provider.use`, so a `tool.use` hard-deny cannot be expressed at all. A consumer-authored `policies` array is left untouched.
|
|
261
|
+
- **Bare `git commit` / `git push` are denied too.** `git commit *` does not match the argument-less form — the invocation that opens the editor. The rows live in the stack profile, so Claude Code's `settings.json` deny lists gain `Bash(git commit)` and `Bash(git push)`; `scripts/sync-claude-settings.mjs` now runs inside `fix:generated`, which is what stops the two platforms drifting.
|
|
262
|
+
- **The guard rows are sticky.** A pre-existing `"git push *": "allow"` in a consumer's `permission.bash` is re-applied to `deny` on re-init. Every other key keeps consumer-wins, so this is not a global precedence inversion; the guard list is asserted set-equal to the profile by `check:opencode-platform-contract`.
|
|
263
|
+
- **The claim prose is corrected.** `.opencode/AGENTS.md` no longer says the guard is "non-overridable". It states what the deny does guarantee (it survives the `'*': 'allow'` catch-all and `--auto`) and what it does not: an agent-level `permission` block takes precedence over the global map, a command whose parsed form does not match the pattern is not covered, and a user editing their own `opencode.json` can widen it. `commit-hygiene` plus the human commit step remains the control.
|
|
264
|
+
- **Migration.** A file that only has `permission.shell` (the unbound key this package briefly emitted) is folded into `permission.bash` on re-init, and `shell` is removed. A consumer `policies` array is left untouched. `clean` still strips a block recorded under either `added.bash` or `added.shell`. Re-run `init opencode` to pick up `permission.bash`.
|
|
265
|
+
|
|
120
266
|
### OpenCode re-init picks up preset rules; Claude ships `settings.json`
|
|
121
267
|
|
|
122
268
|
- `init opencode` merges `opencode.json` by **unioning** preset `instructions` paths and **filling missing** `permission.bash` keys. Consumer extra paths and same-key overrides stay, including on re-init. An empty `instructions` array no longer blocks the preset list.
|
|
123
269
|
- Claude presets now include `presets/claude/<stack>/settings.json` (harness `permissions.deny` / `ask`). `init claude` copies it to `.claude/settings.json` and overwrites that file on re-init.
|
|
124
270
|
|
|
271
|
+
### Added
|
|
272
|
+
|
|
273
|
+
- `scripts/sync-claude-settings.mjs`; additional `test-cli-mcp-merge.mjs` cases. (cc5ea6a9)
|
|
274
|
+
|
|
275
|
+
## 0.2.27
|
|
276
|
+
|
|
277
|
+
### CLI: no `*.bak.*`, safe `clean`, real rollback (breaking for invalid configs)
|
|
278
|
+
|
|
279
|
+
- **No more `*.bak.<stamp>` files.** An existing `mcp.json` / `.mcp.json` / `opencode.json` / `.claude/settings.json` that is not a valid JSON object now fails `init` with exit 1 and leaves the tree untouched (previously backed up and replaced). Edited managed files are overwritten without a side copy.
|
|
280
|
+
- **`clean` keeps user content.** Cursor/Claude manifests (`schemaVersion: 2`) list only files `init` copied; v1 manifests fall back to files the recorded preset ships. Merged configs are recorded under `mergedConfigs` and only the entries `init` added are stripped; the file is removed only when `init` created it and it ends up empty.
|
|
281
|
+
- **Rollback** of a failed `init` restores overwritten files from a transient `<toolRoot>/.rollback/<runId>/` snapshot and removes only paths that did not exist before.
|
|
282
|
+
- **Path safety:** every destination goes through `assertSafeDest` (symlinked `AGENTS.md`, `.cursor/rules`, `.mavis/rules` … are refused); empty-dir cleanup never follows symlinks; `..foo` directory names no longer misdetected as traversal.
|
|
283
|
+
- **`.claude/settings.json` is merged** on re-init (permission arrays unioned, preset hooks added by command) instead of overwritten.
|
|
284
|
+
- Shared installer helpers extracted to `bin/lib/fs-utils.js` and `bin/lib/merged-config.js`.
|
|
285
|
+
|
|
125
286
|
### Over-abstraction guardrails + aligned always-on budget
|
|
126
287
|
|
|
127
288
|
- **Shared core** `quality/code-quality-and-refactoring` gains an **Over-abstraction guardrails** section: no unnecessary constants, no invented one-off utilities (Rule of Three), decompose over conditionals. Propagated to all 10 stacks (Cursor + Claude; Mavis / OpenCode regenerated).
|
|
@@ -129,6 +290,12 @@
|
|
|
129
290
|
- **Token budget raised and aligned** across platforms: Cursor / Claude / Mavis / OpenCode always-on count moved to **3–5** (was Cursor ≤4, Claude exactly 3, Mavis/OpenCode ≤4); session-start body cap moved to **200** lines (stretch **170**) and the combined Mavis/OpenCode entry cap to **200** nonempty lines (was 140/170). The current cap is **3–10** files and **4000** lines (see 0.2.40). Enforced by `check-preset-token-budget.sh`, `check-{mavis,opencode}-token-budget.mjs`, `test-{mavis,opencode}-context-budget.mjs`; policy in `preset-token-budget` / `preset-pr-checklist`, `docs/PRESET-CONTRIBUTION.md`, and every `build-verifier` / `rules/README.md`.
|
|
130
291
|
- Consumers: re-run `npx @bonesofspring/ai-rules init <tool|multi> --preset <stack>` to pick up the new rule bodies and policy text.
|
|
131
292
|
|
|
293
|
+
### Changed
|
|
294
|
+
|
|
295
|
+
- Large preset tree refresh under `packages/ai-rules/presets/**` (Mavis/OpenCode/Cursor twins). (f293ba6f)
|
|
296
|
+
|
|
297
|
+
## 0.2.26
|
|
298
|
+
|
|
132
299
|
### Shared `.ai.local/team/` pipelines (breaking)
|
|
133
300
|
|
|
134
301
|
- `/task` artifacts (`pipeline.json`, `status.json`, `metrics.json`, receipts) now live at **`.ai.local/team/tasks/<slug>/`**, shared across Cursor, Claude, Mavis, and OpenCode (including `init multi`).
|
|
@@ -138,6 +305,12 @@
|
|
|
138
305
|
- Living gotchas stay in **`.ai.local/conventions.md`**. Overlay does not load `team/**` as rules. `init` seeds that file from the preset template `presets/<platform>/<stack>/ai-local/conventions.md` (moved out of `team/`) and **never** overwrites an existing consumer file.
|
|
139
306
|
- Consumers: re-run `npx @bonesofspring/ai-rules init <tool|multi> --preset <stack>` to seed/migrate. Commit `.ai.local/team/` if you want tasks to survive clones.
|
|
140
307
|
|
|
308
|
+
### Changed
|
|
309
|
+
|
|
310
|
+
- Mass regeneration of Mavis/OpenCode install trees and related preset sources (`presets/mavis/**`, `presets/opencode/**`). (42bc7e13)
|
|
311
|
+
|
|
312
|
+
## 0.2.25
|
|
313
|
+
|
|
141
314
|
### WP-F: Mavis / OpenCode / multi for all 10 stacks
|
|
142
315
|
|
|
143
316
|
- `init mavis|opencode|multi --preset <stack>` now covers every installable stack: `next`, `nuxt`, `svelte`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`.
|
|
@@ -157,20 +330,44 @@
|
|
|
157
330
|
### OpenCode platform (experimental Next-only)
|
|
158
331
|
|
|
159
332
|
- New platform **`opencode`**: `npx @bonesofspring/ai-rules init opencode --preset next` installs **`.opencode/**`** plus root `AGENTS.md` and merges MCP into **`opencode.json`**. `clean opencode` is manifest/hash-safe. The CLI never writes `~/.config/opencode/**`.
|
|
160
|
-
- Source: `presets/opencode/<stack>/` derived from `presets/cursor/<stack>` (`adapter-map.json`, `generate-opencode.mjs --stack`). Next-pilot `releasedStacks: ["next"]` expanded in
|
|
333
|
+
- Source: `presets/opencode/<stack>/` derived from `presets/cursor/<stack>` (`adapter-map.json`, `generate-opencode.mjs --stack`). Next-pilot `releasedStacks: ["next"]` expanded in 0.2.25.
|
|
161
334
|
- Native OpenCode discovery for agents, skills, and slash commands. Rules under `.opencode/rules/` are lazy-loaded from `AGENTS.md` (no `alwaysApply`/`globs` engine). Pipeline hook is manual `chain-team-phases.sh` (no `hooks.json` plugin in v1).
|
|
162
335
|
- Docs: [`docs/OPENCODE.md`](docs/OPENCODE.md) (consumer), [`docs/OPENCODE-COMPATIBILITY.md`](docs/OPENCODE-COMPATIBILITY.md) (docs-floor evidence). Gates: `check-opencode-*`, `test-opencode-context-budget` wired into `check:preset-structure`.
|
|
163
336
|
- Review follow-up: team-agent write-scope lead-in is role-specific; consumer `OPENCODE.md` no longer uses broken relative doc links; orchestrator uses OpenCode `mode`/`permission` wording; `build-verifier` preset-structure lists OpenCode/Mavis derive gates; Cursor/Claude `REPO_AGENTS.md` keep OpenCode/Mavis pointers so mixed-tool `init` does not drop them.
|
|
164
337
|
- Consumers: re-run `npx @bonesofspring/ai-rules init opencode --preset next` after publish. Cursor/Claude/Mavis installs unchanged.
|
|
165
338
|
|
|
339
|
+
### Added
|
|
340
|
+
|
|
341
|
+
- **OpenCode** platform preset (`presets/opencode/**`) and `scripts/test-opencode-context-budget.mjs`. (1a05fffd)
|
|
342
|
+
|
|
343
|
+
## 0.2.24
|
|
344
|
+
|
|
345
|
+
### Changed
|
|
346
|
+
|
|
347
|
+
- Mavis preset review follow-up: `scripts/sync-dogfood-mavis.sh`, CLI golden tweaks. (df44f6f4)
|
|
348
|
+
|
|
349
|
+
## 0.2.23
|
|
350
|
+
|
|
166
351
|
### Mavis platform (MiniMax Code, experimental Next-only)
|
|
167
352
|
|
|
168
353
|
- New platform **`mavis`** (`mcode` runtime): `npx @bonesofspring/ai-rules init mavis --preset next` installs **`.mavis/**`** plus root `AGENTS.md`. `clean mavis` is manifest/hash-safe. MCP merges to **`.mavis/mcp.json`** only — the CLI never writes `~/.minimax/**`.
|
|
169
|
-
- Source: `presets/mavis/<stack>/` derived from `presets/cursor/<stack>` (`adapter-map.json`, `generate-mavis.mjs --stack`). Next-pilot `releasedStacks: ["next"]` expanded in
|
|
170
|
-
- Semi-auto orchestration: `chain-team-phases.sh` on `.mavis/team` *(superseded by the shared `.ai.local/team/` runtime
|
|
354
|
+
- Source: `presets/mavis/<stack>/` derived from `presets/cursor/<stack>` (`adapter-map.json`, `generate-mavis.mjs --stack`). Next-pilot `releasedStacks: ["next"]` expanded in 0.2.25.
|
|
355
|
+
- Semi-auto orchestration: `chain-team-phases.sh` on `.mavis/team` *(superseded by the shared `.ai.local/team/` runtime in 0.2.26)*; no shipped `hooks.json`. Human gates via `task-continue` → hook `end_human_gate`. Agents upsert `artifact-manifest.json` only — hook owns `status.json` / `metrics.json`.
|
|
171
356
|
- Docs: [`docs/MAVIS.md`](docs/MAVIS.md) (consumer), [`docs/MAVIS-COMPATIBILITY.md`](docs/MAVIS-COMPATIBILITY.md) (probe evidence). Gates: `check-mavis-*`, `test-mavis-*` wired into `check:preset-structure`.
|
|
172
357
|
- Consumers: re-run `npx @bonesofspring/ai-rules init mavis --preset next` after publish. Cursor/Claude installs unchanged.
|
|
173
358
|
|
|
359
|
+
### Added
|
|
360
|
+
|
|
361
|
+
- **Mavis** platform preset (`presets/mavis/**`) with `scripts/test-mavis-orchestration.mjs` and capability probes. (2f4880da)
|
|
362
|
+
|
|
363
|
+
## 0.2.22
|
|
364
|
+
|
|
365
|
+
### Added
|
|
366
|
+
|
|
367
|
+
- `scripts/test-task-router-intents-fixtures.mjs`; extended chain-hook coverage tests. (f7251cef)
|
|
368
|
+
|
|
369
|
+
## 0.2.21
|
|
370
|
+
|
|
174
371
|
### Chain-team-phases hook coverage + pipeline race fixes
|
|
175
372
|
|
|
176
373
|
- `chain-team-phases.sh` (all 20 stack × platform hooks) now covers every agent that ships in its stack's `agents/` directory:
|
|
@@ -199,6 +396,12 @@
|
|
|
199
396
|
- 40 preset command files deleted from this monorepo (`packages/ai-rules/presets/{claude,cursor}/<stack>/commands/{feature-start,feature-continue}.md`, 10 stacks × 2 platforms × 2 commands). The equivalent deletions in three sub-repo dogfood mirrors (`dogfood/go-hexagonal`, `dogfood/java-spring-hexagonal`, `dogfood/mcp-ts-sample`) are part of the same change set but live in separate git trees. Cross-references in `commands/README.md`, `agents/README.md`, `team/README.md`, `rules/README.md`, `AGENTS.md` / `CLAUDE.md`, `agent-team-orchestrator`, and `commands/{task,task-continue,technical-retro}.md` updated.
|
|
200
397
|
- Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <stack>` after publish; both legacy commands are no longer installed.
|
|
201
398
|
|
|
399
|
+
### Added
|
|
400
|
+
|
|
401
|
+
- `scripts/test-chain-team-phases-coverage.mjs` for hook/agent handoff coverage. (73c2d788)
|
|
402
|
+
|
|
403
|
+
## 0.2.20
|
|
404
|
+
|
|
202
405
|
### Superpowers B1–B5 (all installable stacks)
|
|
203
406
|
|
|
204
407
|
- All 10 stacks (Cursor + Claude): **verification-before-completion** lineage snippet on `build-verifier` / `feature-developer` only. `debugger` keeps inline 3-fix + `fixApplied` re-run (skill cross-ref) — not the verification stem. **receiving-code-review** embed on `code-review` skill; implementer one-liner on `feature-developer`, `debugger`, and `ci-investigator` (where those agents exist). Debug skill 4-phase + 3-fix architecture gate; task-analyst/router classify spike / bounded / architectural onto **existing** pipeline profiles.
|
|
@@ -207,14 +410,18 @@
|
|
|
207
410
|
- No 4th always-on rule; `anti-sycophancy-discipline` core body unchanged (promote receiving-CR there in a later 10-stack PR).
|
|
208
411
|
- Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <stack>` after publish.
|
|
209
412
|
|
|
210
|
-
Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P0/P1, hook-only lifecycle, and the review follow-up below; **(B)** sections after MCP (UX, mockup reviewer, product-specs, android-kotlin, nuxt/svelte/php-laravel, …) were already Unreleased **on the `v0.2.18` tag** and were never versioned.
|
|
211
|
-
|
|
212
413
|
### Follow-up: Superpowers B1–B5 review alignment
|
|
213
414
|
|
|
214
415
|
- CHANGELOG/SoT match PRESET-CONTRIBUTION: verification lineage is `build-verifier` + `feature-developer`; debugger 3-fix stays inline (no verification marker).
|
|
215
416
|
- receiving-CR implementer one-liner extended to `debugger` and `ci-investigator` (9 stacks × 2; mcp-ts has neither).
|
|
216
417
|
- Backend `debugger` agents (`go` / `java` / `php-hexagonal` / `php-laravel`, Cursor + Claude) now load `debug-investigation` at the top, matching UI/mobile.
|
|
217
418
|
|
|
419
|
+
### Changed
|
|
420
|
+
|
|
421
|
+
- Preset cleanup and shared-core drift checks across stacks (`check-shared-core-drift.sh` updates). (0cebd54b)
|
|
422
|
+
|
|
423
|
+
## 0.2.19
|
|
424
|
+
|
|
218
425
|
### Follow-up: review fixes (lifecycle, MCP merge, docs)
|
|
219
426
|
|
|
220
427
|
- Hook-only lifecycle sweep: 22 ios-swift agents, 8 next/nuxt/svelte/ios `code-review` skills, 5 Claude `feature-continue` commands, Claude Playwright generators, and backend `code-review` skills upsert `artifact-manifest.json` receipts and must not mutate `status.json`. New hard gate `check:hook-only-lifecycle` (wired into `check:preset-structure`).
|
|
@@ -234,9 +441,9 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
234
441
|
- **`specMode`** (`consume` | `generate` | `none`) on `brief.md` / optional `pipeline.json`. Spike/research uses `none` — no dummy INDEX row.
|
|
235
442
|
- **`applyReadiness`:** YAML frontmatter on developer `implementation.md`; JSON-shaped `{ state: blocked|ready|all_done, contextFiles[] }` on the analyst receipt (analyst may emit `blocked` before the authoring gate).
|
|
236
443
|
- Requestable skill **`spec-discovery`** (11 methods, mandatory claim ledger). Analyst loads it only for research-before-spec — not default `/task` consume. Cursor + Claude ×10 stacks.
|
|
237
|
-
- **Memlog** `.cursor/team/tasks/<slug>/.memlog.md` (Claude: `.claude/…`) *(path superseded by `.ai.local/team/`
|
|
444
|
+
- **Memlog** `.cursor/team/tasks/<slug>/.memlog.md` (Claude: `.claude/…`) *(path superseded by `.ai.local/team/` in 0.2.26)* — append-only agent notes; hook does not parse it.
|
|
238
445
|
- **Code Map** (3–8 annotated paths) + **Suggested Review Order** when a WP spans more than one layer.
|
|
239
|
-
- Skills README catalogs include **`spec-authoring`** (was missing beside `spec-discovery`). Claude nuxt `task-router` writes `.claude/team` (not `.cursor/team`) *(both paths superseded by `.ai.local/team/`
|
|
446
|
+
- Skills README catalogs include **`spec-authoring`** (was missing beside `spec-discovery`). Claude nuxt `task-router` writes `.claude/team` (not `.cursor/team`) *(both paths superseded by `.ai.local/team/` in 0.2.26)*.
|
|
240
447
|
- Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <stack>` after publish.
|
|
241
448
|
|
|
242
449
|
### Spec workflow P0 hygiene
|
|
@@ -258,6 +465,12 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
258
465
|
- Leakage: `storybook-reviewer` forbidden as an agent stem on backend/mobile; Storybook/Chrome DevTools must not be required handoffs there.
|
|
259
466
|
- Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <stack>` after publish. Overlay servers in project `mcp.json` survive re-init **when the existing file is valid JSON**.
|
|
260
467
|
|
|
468
|
+
### Added
|
|
469
|
+
|
|
470
|
+
- CLI MCP merge tests in `scripts/test-cli-mcp-merge.mjs`. (9208ab39)
|
|
471
|
+
|
|
472
|
+
## 0.2.18
|
|
473
|
+
|
|
261
474
|
### UX design skill (UI stacks)
|
|
262
475
|
|
|
263
476
|
- New requestable skill/rule **`ux-design`** on **`next`**, **`nuxt`**, **`svelte`**, **`ios-swift`**, **`android-kotlin`** (Cursor + Claude twins). Shared-core checklist: `presets/_shared/core/review/ux-design.md`. Invoked by **`task-analyst`** — **no** `ux-designer` agent, **no** FAIL-only hook, **no** Figma MCP in the skill/rule.
|
|
@@ -276,11 +489,17 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
276
489
|
- Backend stacks (`go`, `java`, `mcp-ts`, `php-*`) never schedule `mockup-reviewer`; leakage checker forbids agent stem on backend.
|
|
277
490
|
- Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <ui-stack>` after publish.
|
|
278
491
|
|
|
279
|
-
###
|
|
492
|
+
### Added
|
|
280
493
|
|
|
281
|
-
-
|
|
282
|
-
|
|
283
|
-
|
|
494
|
+
- UX / mockup-review preset stems and routing updates (`feat: ux changes` diff under `presets/**/rules` and agents). (7e9a9040)
|
|
495
|
+
|
|
496
|
+
## 0.2.17
|
|
497
|
+
|
|
498
|
+
### Product specs authoring (Phases A–E)
|
|
499
|
+
|
|
500
|
+
- **Generation modes** (shared-core): **Consume** (default discovery, soft-fail on miss) · **Generate** (explicit intent / AC / `/spec-start` with existing tree) · **Bootstrap** (same triggers when `docs/specs/` absent). Greenfield policy: no INDEX/spec invention without explicit intent; conflict precedence human > brief AC > approved spec > code.
|
|
501
|
+
- Split requestable stems: lean `architecture/product-specs.md` (Consume) + `architecture/product-specs-authoring.md` (Generate / Bootstrap, INDEX + frontmatter v1, body checklist). Both ×20 Cursor + Claude adapters (`alwaysApply: false` / Claude `paths: docs/specs/**/*`); Stack notes map `routes` / `ui` / `store` / `e2e` per stack class (mcp-ts: tool names; empty `ui`/`store`).
|
|
502
|
+
- **Assets SoT:** `presets/_shared/assets/docs-specs/` — INDEX stub, `_templates/page.md` / `feature.md`, optional `schemas/frontmatter-v1.schema.json`.
|
|
284
503
|
- **CLI seed policy:** on `init`, when consumer `docs/specs/` directory is **absent**, copy INDEX stub + `_templates/*` from assets (idempotent; **never overwrite** existing INDEX). If the directory already exists (even empty), seed is skipped — remove the folder or copy templates manually if you created an empty tree before first `init`.
|
|
285
504
|
- **Author surface:** extend **task-analyst** (primary author; **mcp-ts analyst-only** — no tech-writer) + **tech-writer** post-delivery sync (9 stacks); requestable skill **`spec-authoring`**; **feature-developer** / **feature-delivery** treat approved specs as behavior SoT.
|
|
286
505
|
- **Pipeline:** optional `/spec-start` (spec-gen → analyst author mode → human gate); task-router `spec-gen` / bootstrap signals; orchestrator passes spec paths + INDEX diff (no dedicated `spec-author` agent).
|
|
@@ -298,6 +517,11 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
298
517
|
- Consumers: after publish, re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <stack>` to pick up the stem.
|
|
299
518
|
- Follow-up polish: android-kotlin Stack notes use `features/**` (not iOS `Features/**`); Claude next/nuxt/ios/android feature-delivery INDEX step numbering aligned with Cursor; next `code-reviewer` checks `docs/specs/**` drift via `product-specs`.
|
|
300
519
|
|
|
520
|
+
### Added
|
|
521
|
+
|
|
522
|
+
- Product specs checker `scripts/check-product-specs.sh` and related preset authoring assets. (97dd9696)
|
|
523
|
+
|
|
524
|
+
## 0.2.16
|
|
301
525
|
|
|
302
526
|
### Android Kotlin preset (`android-kotlin`)
|
|
303
527
|
|
|
@@ -307,6 +531,12 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
307
531
|
- Install: `npx @bonesofspring/ai-rules init cursor|claude --preset android-kotlin`.
|
|
308
532
|
- Dogfood default remains **`next`** (no switch to android-kotlin).
|
|
309
533
|
|
|
534
|
+
### Added
|
|
535
|
+
|
|
536
|
+
- **android-kotlin** installable preset (`presets/cursor/android-kotlin/**`, `presets/claude/android-kotlin/**`). (1271e4bb)
|
|
537
|
+
|
|
538
|
+
## 0.2.15
|
|
539
|
+
|
|
310
540
|
### Preset EN translation polish (patch)
|
|
311
541
|
|
|
312
542
|
- Hardened `check-preset-i18n.sh`: ±3-line keep-marker window (matches style guide), scans `.md`/`.mdc` plus hook/script suffixes; wired as hard gate via `check:preset-i18n` and `check-preset-structure` / CI.
|
|
@@ -322,24 +552,11 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
322
552
|
- Consumers: optional `npx @bonesofspring/ai-rules init …` to refresh local wording; no required re-init for path/automation compatibility.
|
|
323
553
|
- Dogfood: re-run `scripts/sync-dogfood-cursor.sh` after next (or `AI_RULES_DOGFOOD_PRESET=…`) preset edits.
|
|
324
554
|
|
|
325
|
-
###
|
|
326
|
-
|
|
327
|
-
- New shared-core schema SoT: `presets/_shared/core/agent-team/agent-artifact-contracts.md` — per-slug `artifact-manifest.json` (schema v1) as context index + completion receipts; markdown remains narrative evidence.
|
|
328
|
-
- Agents upsert only owned manifest entries/receipts; the orchestration runtime/hook is the sole writer of `status.json` lifecycle fields and `metrics.json`.
|
|
329
|
-
- All seven Cursor/Claude stack team docs and existing task-router, task-analyst, feature-developer, build-verifier, and code-reviewer prompts declare authoritative inputs, owned outputs, and terminal receipt outcomes (orchestration runtime/hook remains the sole writer of `status.json` / `metrics.json`; hook instrumentation for metrics and receipt reconciliation is covered below).
|
|
330
|
-
- Added mirrored Next `artifact-manifest.example.json` fixtures and the `apply-agent-team-p0` dogfood pilot. Existing tasks without a manifest fall back to `brief.md`, `decomposition.md`, and `pipeline.json` and report the gap.
|
|
331
|
-
|
|
332
|
-
### Agent-team routing rubric
|
|
333
|
-
|
|
334
|
-
- New agent-team pipelines retain top-level `profile` and emit a structured `routingDecision` with `complexity`, `riskFlags`, auditable `routingReasons`, `estimatedWorkPackages`, and `openDecisionCount`.
|
|
335
|
-
- Updated all seven Cursor routers and seven Claude twins with shared low/moderate/high heuristics and concrete risk signals. Next light/standard/full fixtures demonstrate the contract; existing pipelines without the optional block remain valid.
|
|
555
|
+
### Changed
|
|
336
556
|
|
|
337
|
-
|
|
557
|
+
- Preset English translation pass; `scripts/sync-shared-core-embeds.sh` and `check-preset-i18n` wiring. (260f29ca)
|
|
338
558
|
|
|
339
|
-
|
|
340
|
-
- Instrumented all Cursor/Claude `chain-team-phases.sh` forks with lock-safe temp-and-rename ledger/status writes, `status.json` `activeAttempts` / `lastCompletedAttempt` bridge, and conservative parallel attribution (payload `attemptId`, sole active attempt, or `.metrics-receipts.json` fallback—never guess from `currentAgent`). Repeated work-package retries now target the nearest preceding developer and return to the requesting verifier/reviewer; stale duplicate stops are ignored.
|
|
341
|
-
- Human-gate resume is a hook action: `{"status":"completed","action":"end_human_gate","activateNext":true}` on the installed `hooks/chain-team-phases.sh` (`/task-continue`); optional wrapper `scripts/close-agent-task-human-gate.mjs`.
|
|
342
|
-
- Added `aggregate-agent-task-metrics.mjs` (role/count/duration, gate wait, attribution confidence, and separate missing-ledger, malformed-JSON, duplicate-ID, unterminated, unmatched, and duplicate-terminal completeness categories), Next fixtures under `presets/cursor/next/team/fixtures/`, and a 14-fork lifecycle harness covering retry, concurrent parallel completion, skip, gate, and invalid-ledger scenarios. Technical-retro commands include a Metrics evidence section.
|
|
559
|
+
## 0.2.14
|
|
343
560
|
|
|
344
561
|
### Nuxt preset (`nuxt`)
|
|
345
562
|
|
|
@@ -361,6 +578,37 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
361
578
|
- Install: `npx @bonesofspring/ai-rules init cursor|claude --preset svelte`.
|
|
362
579
|
- No dogfood switch from `next` in this monorepo.
|
|
363
580
|
|
|
581
|
+
### Added
|
|
582
|
+
|
|
583
|
+
- **nuxt** and **svelte** installable presets (`presets/cursor/nuxt/**`, `presets/cursor/svelte/**`, Claude twins). (342200c1, 142e3650)
|
|
584
|
+
|
|
585
|
+
## 0.2.13
|
|
586
|
+
|
|
587
|
+
### Agent artifact contracts
|
|
588
|
+
|
|
589
|
+
- New shared-core schema SoT: `presets/_shared/core/agent-team/agent-artifact-contracts.md` — per-slug `artifact-manifest.json` (schema v1) as context index + completion receipts; markdown remains narrative evidence.
|
|
590
|
+
- Agents upsert only owned manifest entries/receipts; the orchestration runtime/hook is the sole writer of `status.json` lifecycle fields and `metrics.json`.
|
|
591
|
+
- All seven Cursor/Claude stack team docs and existing task-router, task-analyst, feature-developer, build-verifier, and code-reviewer prompts declare authoritative inputs, owned outputs, and terminal receipt outcomes (orchestration runtime/hook remains the sole writer of `status.json` / `metrics.json`; hook instrumentation for metrics and receipt reconciliation is covered below).
|
|
592
|
+
- Added mirrored Next `artifact-manifest.example.json` fixtures and the `apply-agent-team-p0` dogfood pilot. Existing tasks without a manifest fall back to `brief.md`, `decomposition.md`, and `pipeline.json` and report the gap.
|
|
593
|
+
|
|
594
|
+
### Agent-team routing rubric
|
|
595
|
+
|
|
596
|
+
- New agent-team pipelines retain top-level `profile` and emit a structured `routingDecision` with `complexity`, `riskFlags`, auditable `routingReasons`, `estimatedWorkPackages`, and `openDecisionCount`.
|
|
597
|
+
- Updated all seven Cursor routers and seven Claude twins with shared low/moderate/high heuristics and concrete risk signals. Next light/standard/full fixtures demonstrate the contract; existing pipelines without the optional block remain valid.
|
|
598
|
+
|
|
599
|
+
### Changed
|
|
600
|
+
|
|
601
|
+
- **php-laravel** preset follow-up; `scripts/aggregate-agent-task-metrics.mjs` and metrics hook tests extended. (f1da4526)
|
|
602
|
+
|
|
603
|
+
## 0.2.12
|
|
604
|
+
|
|
605
|
+
### Agent-task metrics
|
|
606
|
+
|
|
607
|
+
- Added local schema-v1 `metrics.json` ledgers for agent-team pipelines: append-only task, attempt, retry, skip, completion, and human-gate lifecycle events. Allowlisted identifiers/timestamps/outcomes only (no prompts, secrets, file paths/contents, or remote telemetry). Shared-core policy: `presets/_shared/core/agent-team/agent-task-metrics.md` (requestable via orchestrator; no new always-on rule).
|
|
608
|
+
- Instrumented all Cursor/Claude `chain-team-phases.sh` forks with lock-safe temp-and-rename ledger/status writes, `status.json` `activeAttempts` / `lastCompletedAttempt` bridge, and conservative parallel attribution (payload `attemptId`, sole active attempt, or `.metrics-receipts.json` fallback—never guess from `currentAgent`). Repeated work-package retries now target the nearest preceding developer and return to the requesting verifier/reviewer; stale duplicate stops are ignored.
|
|
609
|
+
- Human-gate resume is a hook action: `{"status":"completed","action":"end_human_gate","activateNext":true}` on the installed `hooks/chain-team-phases.sh` (`/task-continue`); optional wrapper `scripts/close-agent-task-human-gate.mjs`.
|
|
610
|
+
- Added `aggregate-agent-task-metrics.mjs` (role/count/duration, gate wait, attribution confidence, and separate missing-ledger, malformed-JSON, duplicate-ID, unterminated, unmatched, and duplicate-terminal completeness categories), Next fixtures under `presets/cursor/next/team/fixtures/`, and a 14-fork lifecycle harness covering retry, concurrent parallel completion, skip, gate, and invalid-ledger scenarios. Technical-retro commands include a Metrics evidence section.
|
|
611
|
+
|
|
364
612
|
### PHP Laravel preset (`php-laravel`)
|
|
365
613
|
|
|
366
614
|
- New installable preset **`php-laravel`** (Cursor + Claude twins): Laravel backend/API projects — flat `app/` layout, Eloquent, Form Requests, Policies, Actions/Services, Service Providers, Jobs/Queues/Events; thin controllers with clean-architecture leanings (repositories only when justified).
|
|
@@ -384,6 +632,12 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
384
632
|
- Dogfood: `dogfood/php-hexagonal` (domain → ports → HTTP/persistence/messaging adapters → composition → PHPUnit unit + integration).
|
|
385
633
|
- Review follow-ups: README titles use install name `php-hexagonal`; dogfood twin-sync paths synced; leakage checker scans `team/fixtures` (`steps[]` FAIL / `skipped[]` anti-pattern OK); composition-root HTTP integration test; AB.md PHP sample note; `check:rule-eval` documented as next-only.
|
|
386
634
|
|
|
635
|
+
### Added
|
|
636
|
+
|
|
637
|
+
- **php-hexagonal** and **php-laravel** presets; `scripts/close-agent-task-human-gate.mjs` and `test-agent-task-metrics-hooks.mjs`. (d5057bfc)
|
|
638
|
+
|
|
639
|
+
## 0.2.11
|
|
640
|
+
|
|
387
641
|
### MCP TypeScript preset (`mcp-ts`)
|
|
388
642
|
|
|
389
643
|
- New installable preset **`mcp-ts`** (Cursor + Claude twins): TypeScript MCP server authoring with `@modelcontextprotocol/sdk`, stdio-first transport, Context7-only MCP, package-manager–discovered typecheck/test via `mcp-ts-tooling` / `post-change-test`.
|
|
@@ -394,6 +648,12 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
394
648
|
- Dogfood: `dogfood/mcp-ts-sample` (scenarios M1–M3 in `reference-features`).
|
|
395
649
|
- Platform asymmetry: `BUGBOT.md` + `hooks.json` Cursor-only; `CLAUDE.md` Claude-only.
|
|
396
650
|
|
|
651
|
+
### Added
|
|
652
|
+
|
|
653
|
+
- **mcp-ts** installable preset (`presets/cursor/mcp-ts/**`, `presets/claude/mcp-ts/**`). (175c8096)
|
|
654
|
+
|
|
655
|
+
## 0.2.10
|
|
656
|
+
|
|
397
657
|
### Go/Java stub thicken + session-start budget raise (`go-java-rules-thicken-dogfood`)
|
|
398
658
|
|
|
399
659
|
- **Session-start body cap:** **120 → 140** (stretch **≤120**); `alwaysApply` / Claude session-start count stays **exactly 3**. Checker `BODY_CAP=140`; policy core + embed adapters + build-verifier copy updated.
|
|
@@ -402,6 +662,20 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
402
662
|
- **Java:** `messaging-adapters` expanded to **full** (J3); `api-grpc` remains documented stub.
|
|
403
663
|
- **Dogfood hosts:** dedicated samples under `dogfood/go-hexagonal` and `dogfood/java-spring-hexagonal` (A/B runs follow-up).
|
|
404
664
|
|
|
665
|
+
### Review follow-ups (core sharing / structure)
|
|
666
|
+
|
|
667
|
+
- **Shared-core drift is a hard gate** in `check:preset-structure` / CI (`AI_RULES_DRIFT_FAIL=1`).
|
|
668
|
+
- **build-verifier** agents (next/ios-swift/go/java × Cursor+Claude): twin / REPO_AGENTS / react-performance gates list all four stacks.
|
|
669
|
+
- **Leakage core DRY:** merged go+java forbidden blocks in `meta/preset-no-cross-stack-leakage` (+8 embed adapters).
|
|
670
|
+
- **ios-swift session-start:** trimmed `ios-app-core` toward stretch ≤100 body sum (at ship; stretch target now ≤120 with hard cap 140).
|
|
671
|
+
- **Docs:** leakage soft-WARN baseline + drift hardgate in `PRESET-CONTRIBUTION.md`; go/java `feature-full` fixtures drop Playwright/XCUITest skipped noise.
|
|
672
|
+
|
|
673
|
+
### Changed
|
|
674
|
+
|
|
675
|
+
- Shared-core embed and token-budget script updates across stacks. (edb4f7eb)
|
|
676
|
+
|
|
677
|
+
## 0.2.9
|
|
678
|
+
|
|
405
679
|
### React/Next anti-hallucination (P0-B / `preset-react-next-anti-hallucination`)
|
|
406
680
|
|
|
407
681
|
- New **requestable** next-only rule `react-next-anti-hallucination` (Cursor `.mdc` + Claude twin under `anti-hallucination/`) — ≥15 ❌/✅ banlist rows for phantom Next/React/RTK imports, RSC boundaries, navigation, version drift.
|
|
@@ -413,15 +687,13 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
413
687
|
- Slimmed always-on `quality/code-quality-and-refactoring` (Principles + condensed Agent discipline essentials + pointer).
|
|
414
688
|
- New requestable shared-core `quality/anti-sycophancy-discipline` (~17 procedural rules) + Cursor/Claude adapters ×4 stacks (`alwaysApply: false` / `paths:`).
|
|
415
689
|
- Wired `feature-developer` / `debugger` / `ci-investigator` (Cursor + Claude ×4) to load `anti-sycophancy-discipline` when writing/changing code.
|
|
416
|
-
- Session-start alwaysApply trio body sum target was ≤120 (prefer ≤110) at ship time; **superseded** by
|
|
690
|
+
- Session-start alwaysApply trio body sum target was ≤120 (prefer ≤110) at ship time; **superseded** by the 140-line cap in 0.2.10, then by the 4000-line cap in 0.2.40.
|
|
417
691
|
|
|
418
|
-
###
|
|
692
|
+
### Added
|
|
419
693
|
|
|
420
|
-
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
- **ios-swift session-start:** trimmed `ios-app-core` toward stretch ≤100 body sum (at ship; stretch target now ≤120 with hard cap 140).
|
|
424
|
-
- **Docs:** leakage soft-WARN baseline + drift hardgate in `PRESET-CONTRIBUTION.md`; go/java `feature-full` fixtures drop Playwright/XCUITest skipped noise.
|
|
694
|
+
- Requestable `react-next-anti-hallucination` rule (`presets/cursor/next/rules/react-next-anti-hallucination.mdc`). (ec27c49e)
|
|
695
|
+
|
|
696
|
+
## 0.2.8
|
|
425
697
|
|
|
426
698
|
### Java preset
|
|
427
699
|
|
|
@@ -432,6 +704,12 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
|
|
|
432
704
|
- Install: `npx @bonesofspring/ai-rules init cursor|claude --preset java`.
|
|
433
705
|
- Platform asymmetry: `BUGBOT.md` + `hooks.json` Cursor-only; `CLAUDE.md` Claude-only.
|
|
434
706
|
|
|
707
|
+
### Changed
|
|
708
|
+
|
|
709
|
+
- Preset structure/leakage gate scripts (`check-preset-leakage.sh`, `check-preset-structure.sh`). (59157110)
|
|
710
|
+
|
|
711
|
+
## 0.2.7
|
|
712
|
+
|
|
435
713
|
### Claude Code handbook agent discipline
|
|
436
714
|
|
|
437
715
|
Borrowed workflow patterns from [claude-code-rules](https://github.com/nikiforovall/claude-code-rules) (methodology marketplace — not coding standards). Additive on top of structure-change / preset-rules-improvements work.
|
|
@@ -453,11 +731,17 @@ Borrowed workflow patterns from [claude-code-rules](https://github.com/nikiforov
|
|
|
453
731
|
- **iOS:** `swiftui-ui` lifecycle/ownership (`.task`, DI vs `@StateObject`, hit testing).
|
|
454
732
|
- **Shared quality:** Agent discipline (anti-sycophancy) section in `quality/code-quality-and-refactoring` (+6 adapters).
|
|
455
733
|
|
|
734
|
+
### Added
|
|
735
|
+
|
|
736
|
+
- Opt-in rule eval harness `scripts/check-rule-eval.mjs`; team `conventions.md` template under cursor next. (03b4088b)
|
|
737
|
+
|
|
738
|
+
## 0.2.6
|
|
739
|
+
|
|
456
740
|
### Preset rules improvements (9 items)
|
|
457
741
|
|
|
458
742
|
Cross-cutting preset packaging work (all six presets unless noted **next-only**). Hard gates unchanged: twin sync, ≤3 always-on, no cross-stack leakage.
|
|
459
743
|
|
|
460
|
-
| # | Item |
|
|
744
|
+
| # | Item | Note |
|
|
461
745
|
|---|------|-----------------|
|
|
462
746
|
| 1 | Root `AGENTS.md` + **CLI** | `repoRootFiles`: `REPO_AGENTS.md` → `<cwd>/AGENTS.md` on cursor **and** claude `init` (overwrite policy A); removed on `clean` either tool |
|
|
463
747
|
| 2 | Incorrect/Correct samples | **next only** — 9 domain rules with emedcard-grounded pairs |
|
|
@@ -494,6 +778,8 @@ Cross-cutting preset packaging work (all six presets unless noted **next-only**)
|
|
|
494
778
|
|
|
495
779
|
### Changed
|
|
496
780
|
|
|
781
|
+
State at the 0.2.6 cut. Later releases replace `.cursor` / `.claude` team paths with `.ai.local/team` (0.2.26), remove `/feature-start` (0.2.21), and raise the always-on cap (0.2.40).
|
|
782
|
+
|
|
497
783
|
- **Style delegate:** next `arrow-functions` trimmed → ESLint/Stylelint + `post-change-lint`; ios/go Stack notes point to SwiftLint / golangci; abstract style sentence in shared code-quality core (no tool names in core body).
|
|
498
784
|
- **Leakage scan:** `hooks/**/*.sh` recursive (includes cookbook examples).
|
|
499
785
|
- **Meta twin policy (three stacks):** `preset-twin-sync` / `preset-pr-checklist` / `preset-layering` core + embeds name **next, ios-swift, and go**; twin FAIL applies to all three (`check-preset-twin-map.sh`).
|
|
@@ -520,279 +806,6 @@ Cross-cutting preset packaging work (all six presets unless noted **next-only**)
|
|
|
520
806
|
|
|
521
807
|
- **P2 optional (ios-swift):** Remaining polish: feature-delivery matrix enrichment, swift-conventions body cap. (`BUGBOT.md` shipped.)
|
|
522
808
|
|
|
523
|
-
## 0.2.40
|
|
524
|
-
|
|
525
|
-
### `/task` records a goal, an outcome, and a review ledger
|
|
526
|
-
|
|
527
|
-
- **Before specialists.** Slug bootstrap writes `goal.md` (formulated outcome: Goal, User value, Success criteria, Non-goals). `prompt.md` stays the verbatim request. Copying the prompt into the goal is invalid. The plan stop shows `goal.md` and waits for confirmation of those fields. The analyst echoes `goal.md` and does not replace it. Bounded, spike, and `light` tasks still write the thin frame.
|
|
528
|
-
- **After the terminal state.** The orchestrator writes `outcome.md` (`goalAchieved`, `value`, per-criterion evidence, `reviewCounts`) before the closing message. `unsatisfactory` does not reopen the task.
|
|
529
|
-
- **Review ledger.** Self-review defects that change the output, `code-reviewer` findings, and user or other-agent objections append to `review-ledger.md`. A `fair: yes` row at close appends one signal per distinct signature and runs `node .ai.local/scripts/run.mjs` once. Preset-prose targets stay staged for `/technical-retro`.
|
|
530
|
-
- **Contract.** `agent-artifact-contracts`, `task-framing`, `self-review-and-context-hygiene`, and the orchestrator. `check-plan-contract.sh` requires `goal.md`, `outcome.md`, and `review-ledger.md` on `commands/task.md` and the orchestrator. `check-preset-self-review-contract.sh` requires `review-ledger.md` on the producer agents and on `commands/task.md`.
|
|
531
|
-
|
|
532
|
-
### Always-on budget raised to 10 files and 4000 lines
|
|
533
|
-
|
|
534
|
-
- **File cap.** Cursor `alwaysApply`, Claude session-start (README excluded), and Mavis/OpenCode `loadMode: root-entry` are **3–10** (was 3–5). The minimum stays 3. A count above 3 still includes `ai-local-overlay`. `next` keeps exactly four always-on stems.
|
|
535
|
-
- **Line cap.** The Cursor/Claude session-start body sum and the combined Mavis/OpenCode root `AGENTS.md` + platform entry are **≤4000** nonempty lines (was 200, stretch 170). The stretch target is the same 4000. The separate next glob-attached fixture caps stay UI 420, store 400, and API 400.
|
|
536
|
-
- **Enforcement.** `check-preset-token-budget.sh` (`MAX_ALWAYS_ON=10`, `BODY_CAP=4000`), `check-{mavis,opencode}-token-budget.mjs` (root-entry cap 10), and `test-{mavis,opencode}-context-budget.mjs` (entry cap 4000). Policy text is in `preset-token-budget`, `preset-pr-checklist`, `preset-layering`, each stack `README.md` / `CLAUDE.md`, and `docs/PRESET-CONTRIBUTION.md`.
|
|
537
|
-
- **Consumers.** The installed always-on set is unchanged. Re-init picks up the new policy text (see Upgrade).
|
|
538
|
-
|
|
539
|
-
### CSS declaration hygiene on web layout rules
|
|
540
|
-
|
|
541
|
-
- **No initial or no-op declarations.** `css-property-order-stylelint` on `next`, `nuxt`, and `svelte` tells agents to omit a property at its initial value (`min-width: 0` on a block). `min-width: 0` stays on a flex or grid item, where it overrides the automatic minimum `auto`.
|
|
542
|
-
- **Integer pixels.** A fractional `px` literal rounds to the nearest integer (`334.667px` → `335px`). A tie rounds away from zero.
|
|
543
|
-
- **Necessity check.** After the initial-value pass, delete any declaration whose removal does not change the used value. Stylelint order auto-fix does not do this.
|
|
544
|
-
- **Where it loads.** The checks live in `css-property-order-stylelint`. `next` loads it on `styles.ts(x)` and `app/**/*.css`, and `react-ui` restates them. `nuxt` loads it on `*.css`, `*.scss`, and `*.vue`; `vue-ui` points at it. `svelte` loads it on `*.css`, `*.scss`, and `*.svelte`; `svelte-ui` points at it. `code-review-mr` on those three stacks applies the same checks to a UI diff.
|
|
545
|
-
|
|
546
|
-
### Preset-update notice stands apart from the task answer
|
|
547
|
-
|
|
548
|
-
- **Version notice.** When the installed preset is older than npm `latest`, the reply opens with a level-2 heading and a blockquote in the user's language. Both versions are bold. The notice names the installed version, the latest version, and `/update`. It is not a sentence inside the task answer.
|
|
549
|
-
- **`/update` result.** The command reports that the update finished successfully, or that it did not. A failure quotes stderr and stops. It does not quote the numeric exit code.
|
|
550
|
-
|
|
551
|
-
### Agents load an anti-hallucination contract
|
|
552
|
-
|
|
553
|
-
- **Requestable contract.** `anti-hallucination-contract` is on every role and is not always-on. Writer roles — implementer, unit-test, e2e, qa, and `code-reviewer` — also load that stack's floor. Read-only roles stop at the contract. `next`, `nuxt`, and `svelte` keep their dense banlists and point at the contract. `go`, `java`, `php-hexagonal`, `php-laravel`, `ios-swift`, `android-kotlin`, and `mcp-ts` ship a thin floor.
|
|
554
|
-
- **Coverage gate.** `yarn check:preset-structure` runs `check-anti-hallucination-coverage.mjs`. The fixture fails when `anti-hallucination-contract` is removed from `next.reviewer`. The gate does not scan consumer application source and does not call Context7.
|
|
555
|
-
- **Skill classes.** A new `skills/<family>` must be registered in `SKILL_CONTRACT_CLASS`. `writer` (including `code-review`) carries the stack floor sentence. `reader` carries the contract load line only.
|
|
556
|
-
|
|
557
|
-
### Nested `.ai.local` is resolved from the paths a step touches
|
|
558
|
-
|
|
559
|
-
- **`list-ai-local.mjs`** lists the ancestor chain for each path: the root overlay applies everywhere, a nested overlay applies only under its directory, and the same rule file name on one chain resolves to the deeper file. With no paths it prints every overlay prefix and does not merge siblings. `team/**` and `rules-library/**` are not rules.
|
|
560
|
-
- **Scope growth.** When `.ai.local/team/tasks/<slug>/` already exists, `--record <slug>` writes `overlay-scope.json` and appends one `.memlog.md` `event:` per newly entered overlay. Files newly in that recorded scope are printed under `new:`. A missing task directory skips the write.
|
|
561
|
-
- **Task language.** The tag already stored in `prompt.md` stays for the task. A nested `conventions.md` entered later does not switch it. With no stored tag, the nearest `conventions.md` on the chain applies.
|
|
562
|
-
- **Mid-session pickup.** A new `.ai.local`, or a file under an overlay the task has already entered, is picked up the next time the script runs with a path on that chain.
|
|
563
|
-
- **All four hosts** ship the same script under `hooks/`. Cursor `sessionStart` and Claude `SessionStart` print the prefix index. That index is not the apply set. Mavis and OpenCode run the script from the overlay rule; they have no session hook. If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
|
|
564
|
-
|
|
565
|
-
### Upgrade
|
|
566
|
-
|
|
567
|
-
- `npx @bonesofspring/ai-rules update` (or `init <tool|multi> --preset <stack>`) replaces managed hooks and rules. Re-init picks up `list-ai-local.mjs`, the version-notice shape, `anti-hallucination-contract`, the CSS declaration checks, the `goal.md` / `outcome.md` / `review-ledger.md` instructions, and the 3–10 / 4000 budget text.
|
|
568
|
-
- Cursor `sessionStart` and Claude `SessionStart` run `list-ai-local.mjs` next to the existing preset-update check.
|
|
569
|
-
- The budget change raises the cap. It does not add an always-on rule.
|
|
570
|
-
|
|
571
|
-
## 0.2.39
|
|
572
|
-
|
|
573
|
-
### A `null` journal line no longer stops the self-learning loop
|
|
574
|
-
|
|
575
|
-
- `JSON.parse("null")` is valid JSON and returns `null`. Reading `.slug` / `.at` on it threw, and one such line aborted derivation, `run.mjs`, and the efficacy oracle.
|
|
576
|
-
- Those readers now require a non-null object that is not an array. A `null`, primitive, or array line is skipped and left in the file. `--status` counts it as malformed. Objects that are missing fields were already skipped.
|
|
577
|
-
|
|
578
|
-
### `task_completed` is written only after `requireArtifacts` passes
|
|
579
|
-
|
|
580
|
-
- `chain-team-phases.sh` used to record `task_completed` and then call completion, which can still write `state: blocked` when `.ai.local/pipeline-gates.json` lists a receipt that is not completed. Metrics then showed a finished task that had failed the last check.
|
|
581
|
-
- The metric is written only on the success branch, after the receipt check, on every platform and stack. A missing receipt still blocks and writes no `task_completed`. A pipeline that completes because no step remains now records the metric too.
|
|
582
|
-
|
|
583
|
-
### Derived signals are deduped inside the lock
|
|
584
|
-
|
|
585
|
-
- Two overlapping `run.mjs` runs could both derive the same `(slug, id, kind)` and both append it. The check now re-reads the journal under the lock before appending. The report's `appended` count includes only the row that was written.
|
|
586
|
-
|
|
587
|
-
### The engine lock is `flock`, and the lock file stays
|
|
588
|
-
|
|
589
|
-
- Reclaiming a stale `.ai.local/scripts` lock by `unlink` could delete a lock a second process had just taken. Ownership is now a POSIX `flock` held by a short-lived `perl` helper (`Fcntl`, `Time::HiRes`). The helper drops the lock when its parent exits, including after a crash. The lock file is not removed: a file on disk does not mean the lock is held. `staleMs` is accepted and ignored.
|
|
590
|
-
- `perl` with those two modules is required. If it is missing, acquire fails with `lock helper unavailable: perl with Fcntl and Time::HiRes`.
|
|
591
|
-
- The metrics lock inside `chain-team-phases.sh` is unchanged (token file plus `unlink`).
|
|
592
|
-
|
|
593
|
-
### Preset-update notice refreshes after one hour
|
|
594
|
-
|
|
595
|
-
- `hooks/check-preset-update.mjs` caches the npm `latest` lookup for 1 hour. `0.2.38` cached it for 12 hours.
|
|
596
|
-
|
|
597
|
-
### Upgrade
|
|
598
|
-
|
|
599
|
-
- `npx @bonesofspring/ai-rules update` replaces the managed hooks, so the `task_completed` order and the one-hour cache land on re-init.
|
|
600
|
-
- `init` / `update` does not overwrite an existing `.ai.local/scripts/*.mjs`. The journal, dedup, and `flock` fixes ship in `run.mjs`, `signals.mjs`, `lock.mjs`, `rule-improver.mjs`, `derive-gate-signals.mjs`, and `efficacy-oracle.mjs`. If those files are still the copies from an older install, replace them with the package copies (a local edit is kept on purpose).
|
|
601
|
-
|
|
602
|
-
## 0.2.38
|
|
603
|
-
|
|
604
|
-
### Presets report a newer package and name the latest version
|
|
605
|
-
|
|
606
|
-
- Cursor `sessionStart` and Claude `SessionStart` run `hooks/check-preset-update.mjs`. Mavis and OpenCode run the same script on the first reply (`## Preset version` in root `AGENTS.md`).
|
|
607
|
-
- When `packageVersion` in `<tool>/.ai-rules-install.json` is older than the npm latest for `@bonesofspring/ai-rules`, the agent tells the user the installed version, the latest version, and to run `/update`. A registry failure stays silent. The registry lookup is cached for 12 hours.
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
### Added
|
|
611
|
-
|
|
612
|
-
- Maintainer coverage: `scripts/test-preset-update-check.mjs` for the preset-update hook. (6023272d)
|
|
613
|
-
|
|
614
|
-
## 0.2.37
|
|
615
|
-
|
|
616
|
-
### Added
|
|
617
|
-
|
|
618
|
-
- Hook body parity and shared-core drift lineage fixture tests (`test-hook-body-parity-fixtures.mjs`, `test-shared-core-drift-lineage-fixtures.mjs`). (e9aea2d6)
|
|
619
|
-
|
|
620
|
-
## 0.2.36
|
|
621
|
-
|
|
622
|
-
### Changed
|
|
623
|
-
|
|
624
|
-
- OpenCode adapter generation and `scripts/lib/stack-platform-profiles.mjs`; extended `test-cli-mcp-merge.mjs`. (29897447)
|
|
625
|
-
|
|
626
|
-
## 0.2.35
|
|
627
|
-
|
|
628
|
-
### Added
|
|
629
|
-
|
|
630
|
-
- Generated-tree test fixtures (`test-generate-claude-fixtures.mjs`, `test-generated-drift-fixtures.mjs`, `test-generated-drift-claude-fixtures.mjs`). (26f438de)
|
|
631
|
-
|
|
632
|
-
## 0.2.34
|
|
633
|
-
|
|
634
|
-
### Added
|
|
635
|
-
|
|
636
|
-
- Chain hook coverage extensions (`test-chain-team-phases-coverage.mjs`, `test-parallel-plan-fixtures.mjs`). (057f6646)
|
|
637
|
-
|
|
638
|
-
## 0.2.33
|
|
639
|
-
|
|
640
|
-
### Added
|
|
641
|
-
|
|
642
|
-
- Preset contract fixture suites (`test-preset-language-policy-fixtures.mjs`, `test-preset-prompt-persistence-fixtures.mjs`, `test-preset-self-review-contract-fixtures.mjs`). (5d214e58)
|
|
643
|
-
|
|
644
|
-
## 0.2.32
|
|
645
|
-
|
|
646
|
-
### Changed
|
|
647
|
-
|
|
648
|
-
- Mavis/OpenCode adapter generators (`scripts/lib/generate-adapter-common.mjs`, `generate-mavis-adapter.mjs`, `generate-opencode-adapter.mjs`). (879ec753)
|
|
649
|
-
|
|
650
|
-
## 0.2.30
|
|
651
|
-
|
|
652
|
-
### Changed
|
|
653
|
-
|
|
654
|
-
- Refreshed Mavis/OpenCode CLI goldens (`scripts/fixtures/cli-golden/mavis/next.json`, `opencode/next.json`). (997c45f8)
|
|
655
|
-
|
|
656
|
-
## 0.2.29
|
|
657
|
-
|
|
658
|
-
### Added
|
|
659
|
-
|
|
660
|
-
- `scripts/sync-dogfood-claude.sh` for Claude dogfood sync from presets. (e22c5b7f)
|
|
661
|
-
|
|
662
|
-
## 0.2.28
|
|
663
|
-
|
|
664
|
-
### Added
|
|
665
|
-
|
|
666
|
-
- `scripts/sync-claude-settings.mjs`; additional `test-cli-mcp-merge.mjs` cases. (cc5ea6a9)
|
|
667
|
-
|
|
668
|
-
## 0.2.27
|
|
669
|
-
|
|
670
|
-
### Changed
|
|
671
|
-
|
|
672
|
-
- Large preset tree refresh under `packages/ai-rules/presets/**` (Mavis/OpenCode/Cursor twins). (f293ba6f)
|
|
673
|
-
|
|
674
|
-
## 0.2.26
|
|
675
|
-
|
|
676
|
-
### Changed
|
|
677
|
-
|
|
678
|
-
- Mass regeneration of Mavis/OpenCode install trees and related preset sources (`presets/mavis/**`, `presets/opencode/**`). (42bc7e13)
|
|
679
|
-
|
|
680
|
-
## 0.2.25
|
|
681
|
-
|
|
682
|
-
### Added
|
|
683
|
-
|
|
684
|
-
- **OpenCode** platform preset (`presets/opencode/**`) and `scripts/test-opencode-context-budget.mjs`. (1a05fffd)
|
|
685
|
-
|
|
686
|
-
## 0.2.24
|
|
687
|
-
|
|
688
|
-
### Changed
|
|
689
|
-
|
|
690
|
-
- Mavis preset review follow-up: `scripts/sync-dogfood-mavis.sh`, CLI golden tweaks. (df44f6f4)
|
|
691
|
-
|
|
692
|
-
## 0.2.23
|
|
693
|
-
|
|
694
|
-
### Added
|
|
695
|
-
|
|
696
|
-
- **Mavis** platform preset (`presets/mavis/**`) with `scripts/test-mavis-orchestration.mjs` and capability probes. (2f4880da)
|
|
697
|
-
|
|
698
|
-
## 0.2.22
|
|
699
|
-
|
|
700
|
-
### Added
|
|
701
|
-
|
|
702
|
-
- `scripts/test-task-router-intents-fixtures.mjs`; extended chain-hook coverage tests. (f7251cef)
|
|
703
|
-
|
|
704
|
-
## 0.2.21
|
|
705
|
-
|
|
706
|
-
### Added
|
|
707
|
-
|
|
708
|
-
- `scripts/test-chain-team-phases-coverage.mjs` for hook/agent handoff coverage. (73c2d788)
|
|
709
|
-
|
|
710
|
-
## 0.2.20
|
|
711
|
-
|
|
712
|
-
### Changed
|
|
713
|
-
|
|
714
|
-
- Preset cleanup and shared-core drift checks across stacks (`check-shared-core-drift.sh` updates). (0cebd54b)
|
|
715
|
-
|
|
716
|
-
## 0.2.19
|
|
717
|
-
|
|
718
|
-
### Added
|
|
719
|
-
|
|
720
|
-
- CLI MCP merge tests in `scripts/test-cli-mcp-merge.mjs`. (9208ab39)
|
|
721
|
-
|
|
722
|
-
## 0.2.18
|
|
723
|
-
|
|
724
|
-
### Added
|
|
725
|
-
|
|
726
|
-
- UX / mockup-review preset stems and routing updates (`feat: ux changes` diff under `presets/**/rules` and agents). (7e9a9040)
|
|
727
|
-
|
|
728
|
-
## 0.2.17
|
|
729
|
-
|
|
730
|
-
### Added
|
|
731
|
-
|
|
732
|
-
- Product specs checker `scripts/check-product-specs.sh` and related preset authoring assets. (97dd9696)
|
|
733
|
-
|
|
734
|
-
## 0.2.16
|
|
735
|
-
|
|
736
|
-
### Added
|
|
737
|
-
|
|
738
|
-
- **android-kotlin** installable preset (`presets/cursor/android-kotlin/**`, `presets/claude/android-kotlin/**`). (1271e4bb)
|
|
739
|
-
|
|
740
|
-
## 0.2.15
|
|
741
|
-
|
|
742
|
-
### Changed
|
|
743
|
-
|
|
744
|
-
- Preset English translation pass; `scripts/sync-shared-core-embeds.sh` and `check-preset-i18n` wiring. (260f29ca)
|
|
745
|
-
|
|
746
|
-
## 0.2.14
|
|
747
|
-
|
|
748
|
-
### Added
|
|
749
|
-
|
|
750
|
-
- **nuxt** and **svelte** installable presets (`presets/cursor/nuxt/**`, `presets/cursor/svelte/**`, Claude twins). (342200c1, 142e3650)
|
|
751
|
-
|
|
752
|
-
## 0.2.13
|
|
753
|
-
|
|
754
|
-
### Changed
|
|
755
|
-
|
|
756
|
-
- **php-laravel** preset follow-up; `scripts/aggregate-agent-task-metrics.mjs` and metrics hook tests extended. (f1da4526)
|
|
757
|
-
|
|
758
|
-
## 0.2.12
|
|
759
|
-
|
|
760
|
-
### Added
|
|
761
|
-
|
|
762
|
-
- **php-hexagonal** and **php-laravel** presets; `scripts/close-agent-task-human-gate.mjs` and `test-agent-task-metrics-hooks.mjs`. (d5057bfc)
|
|
763
|
-
|
|
764
|
-
## 0.2.11
|
|
765
|
-
|
|
766
|
-
### Added
|
|
767
|
-
|
|
768
|
-
- **mcp-ts** installable preset (`presets/cursor/mcp-ts/**`, `presets/claude/mcp-ts/**`). (175c8096)
|
|
769
|
-
|
|
770
|
-
## 0.2.10
|
|
771
|
-
|
|
772
|
-
### Changed
|
|
773
|
-
|
|
774
|
-
- Shared-core embed and token-budget script updates across stacks. (edb4f7eb)
|
|
775
|
-
|
|
776
|
-
## 0.2.9
|
|
777
|
-
|
|
778
|
-
### Added
|
|
779
|
-
|
|
780
|
-
- Requestable `react-next-anti-hallucination` rule (`presets/cursor/next/rules/react-next-anti-hallucination.mdc`). (ec27c49e)
|
|
781
|
-
|
|
782
|
-
## 0.2.8
|
|
783
|
-
|
|
784
|
-
### Changed
|
|
785
|
-
|
|
786
|
-
- Preset structure/leakage gate scripts (`check-preset-leakage.sh`, `check-preset-structure.sh`). (59157110)
|
|
787
|
-
|
|
788
|
-
## 0.2.7
|
|
789
|
-
|
|
790
|
-
### Added
|
|
791
|
-
|
|
792
|
-
- Opt-in rule eval harness `scripts/check-rule-eval.mjs`; team `conventions.md` template under cursor next. (03b4088b)
|
|
793
|
-
|
|
794
|
-
## 0.2.6
|
|
795
|
-
|
|
796
809
|
### Added
|
|
797
810
|
|
|
798
811
|
- Preset CI gates: `check-preset-twin-map.sh`, `check-preset-token-budget.sh`, `check-shared-core-drift.sh`, `sync-dogfood-cursor.sh`; `_shared/core/**` expansion. (5067c91e)
|