@saasontools/strauss-kb 0.1.20 → 0.1.22

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/README.md CHANGED
@@ -222,15 +222,23 @@ end of it. Six optional fields extend it:
222
222
  them; `repo` and `ref` are **author-owned identity** and a resolution pass
223
223
  never writes them.
224
224
 
225
- `anchor-resolve <concept-id>` (`kb_anchor_resolve`) is `verify`'s mechanical
226
- counterpart: it checks the anchored code against the working tree
227
- (`--repo-root` when the base is not inside it). Per anchor:
225
+ `anchor-resolve <concept-id>` (`kb_anchor_resolve`) checks the anchored code
226
+ against the working tree (`--repo-root` when the base is not inside it) and
227
+ never writes `verified[]`; `--check` writes nothing at all. Per anchor:
228
228
 
229
- - **stamped** — no hash yet; hash, line count, and timestamp are written.
229
+ - **stamped** — no hash yet; hash, line count, and timestamp are written
230
+ (`unstamped` under `--check`, which writes none).
230
231
  - **match** — unchanged; nothing written. `--restamp` re-dates on purpose.
231
232
  - **drifted** — hash changed. Baseline kept unless `--rebaseline`.
232
233
  - **unresolved** — not comparable, with a reason. A finding, not an error.
233
234
 
235
+ `anchor-set <concept-id>` (`kb_anchor_set`) sets those pointers when a refactor
236
+ renamed or extracted the code: the complete new anchor set, plus a required
237
+ reason that lands in the log. Carry an anchor's `hash` forward and the code
238
+ behind a moved pointer still reports drift until it is read and
239
+ accepted with `--rebaseline`; `--resolve` stamps the set in the same call.
240
+ It never verifies or moves standing. [Full rules](https://saasontools.github.io/strauss-agent-tools/cli-reference#anchor-set).
241
+
234
242
  An anchor naming another `repo` is read from that repository's **remote**,
235
243
  through a bare cache under `~/.strauss/repo-cache` — a local checkout is one
236
244
  person's possibly stale view of the same file. With a `ref` it has three
@@ -245,9 +253,6 @@ and again on the real path after symlinks.
245
253
  Exit code is non-zero on **drifted**, or on **unresolved** for an anchor that
246
254
  carries a hash; unstamped anchors and unreachable remotes never fail.
247
255
 
248
- A fully clean run — every anchor checked and `match`, none stamped this run —
249
- appends a `verified[]` event.
250
-
251
256
  Symbols resolve tree-sitter first — the 20 language packs that have both a
252
257
  grammar and a definitions query, pinned together by `pnpm grammars pin` from
253
258
  `grammars/packs.json` and proved at pin time — then the regex heuristic for
@@ -309,6 +314,8 @@ strauss-kb [--bundle PATH] <command> [args]
309
314
  verify <concept-id> --note <text> Append a verified[] event — who checked, when, and what the check found.
310
315
  anchor-resolve <concept-id> [--repo-root <path>] [--rebaseline] [--restamp]
311
316
  Resolve anchors against the working tree: stamp, or report drift.
317
+ anchor-set <concept-id> [--resolve] < anchors.json
318
+ Set anchors after a refactor you read, with a reason; --resolve stamps them.
312
319
  reassess <concept-id> [--repo-root <path>] [--with-diff]
313
320
  One drifted record as something to judge: claim, classes, diff, impact.
314
321
  promote <concept-id...> --to <bundle> [--source <url>] [--force] | --list
@@ -385,7 +392,7 @@ strauss-kb validate || echo "errors above" # warnings alone still exit 0
385
392
  ```
386
393
 
387
394
  Every CLI verb is a tool: `kb_write`, `kb_write_decision`, `kb_no_decision`,
388
- `kb_status`, `kb_supersede`, `kb_answer`, `kb_verify`, `kb_anchor_resolve`, `kb_reassess`,
395
+ `kb_status`, `kb_supersede`, `kb_answer`, `kb_verify`, `kb_anchor_resolve`, `kb_anchor_set`, `kb_reassess`,
389
396
  `kb_promote`,
390
397
  `kb_load`, `kb_catalog`,
391
398
  `kb_pack`, `kb_export`,