@saasontools/strauss-kb 0.1.22 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ARCHITECTURE.md CHANGED
@@ -72,6 +72,18 @@ bundle would drop the record instead of naming it. Tolerant read, strict write:
72
72
  `kb_impact` reports a superseded or rejected record and stops there. A withdrawn
73
73
  record's declared dependencies are not obligations anyone still owes.
74
74
 
75
+ An edge is `strauss_links` and nothing else. A markdown link in a body renders
76
+ the same claim for a reader that knows only OKF, and `compose` writes both at
77
+ once, so a consumer that walked prose would count the edge twice and disagree
78
+ the moment the two drifted.
79
+
80
+ Two representations is what the package had, and it cost data: `sweep` read
81
+ frontmatter only and deleted records still cited in prose, while `doctor` read
82
+ prose only and missed a `related_to` at a superseded target. The repair was one
83
+ representation, not two readers: `compose` writes the link wherever it writes
84
+ the sentence, and `validate` is the only body read left, reporting that a
85
+ record's prose and its links have come apart.
86
+
75
87
  ## Rejected: a format that needs a parser
76
88
 
77
89
  A hand-rolled frontmatter reader could not express nested maps, misreading every
package/README.md CHANGED
@@ -227,7 +227,7 @@ against the working tree (`--repo-root` when the base is not inside it) and
227
227
  never writes `verified[]`; `--check` writes nothing at all. Per anchor:
228
228
 
229
229
  - **stamped** — no hash yet; hash, line count, and timestamp are written
230
- (`unstamped` under `--check`, which writes none).
230
+ (`unstamped` until one lands, so `--check` and a refused write say so).
231
231
  - **match** — unchanged; nothing written. `--restamp` re-dates on purpose.
232
232
  - **drifted** — hash changed. Baseline kept unless `--rebaseline`.
233
233
  - **unresolved** — not comparable, with a reason. A finding, not an error.
@@ -250,8 +250,9 @@ finding, not a command.
250
250
  An anchor must not read outside the repository it describes, checked lexically
251
251
  and again on the real path after symlinks.
252
252
 
253
- Exit code is non-zero on **drifted**, or on **unresolved** for an anchor that
254
- carries a hash; unstamped anchors and unreachable remotes never fail.
253
+ A write the run asked for carries its own `outcome`, and the exit code follows
254
+ it:
255
+ [cli-reference](https://saasontools.github.io/strauss-agent-tools/cli-reference#anchor-resolve).
255
256
 
256
257
  Symbols resolve tree-sitter first — the 20 language packs that have both a
257
258
  grammar and a definitions query, pinned together by `pnpm grammars pin` from
@@ -473,6 +474,7 @@ caveats: <https://saasontools.github.io/strauss-agent-tools/mcp-reference>.
473
474
  and `unchecked`. All nine groups are reported even when empty; `--strict` gates
474
475
  on expiry alone, not on drift. Pass `--repo-root PATH` when the base does not sit
475
476
  inside the tree it describes.
477
+
476
478
  Windows and judgments:
477
479
  [cli-reference](https://saasontools.github.io/strauss-agent-tools/cli-reference).
478
480
 
@@ -4,7 +4,7 @@ import {
4
4
  KB_DIR,
5
5
  KbStore,
6
6
  VERSION
7
- } from "./chunk-AEO5U42S.js";
7
+ } from "./chunk-HNPHL6I4.js";
8
8
 
9
9
  // src/cli.ts
10
10
  import { join } from "path";
@@ -121,4 +121,4 @@ function usage() {
121
121
  export {
122
122
  runKbCli
123
123
  };
124
- //# sourceMappingURL=chunk-DVSPHL4B.js.map
124
+ //# sourceMappingURL=chunk-7J2BBP67.js.map
@@ -2,7 +2,7 @@ import {
2
2
  KB_COMMANDS,
3
3
  KbStore,
4
4
  VERSION
5
- } from "./chunk-AEO5U42S.js";
5
+ } from "./chunk-HNPHL6I4.js";
6
6
 
7
7
  // src/mcp.ts
8
8
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -46,4 +46,4 @@ export {
46
46
  createKbMcpServer,
47
47
  runKbMcpServer
48
48
  };
49
- //# sourceMappingURL=chunk-TSE4YQEG.js.map
49
+ //# sourceMappingURL=chunk-GMZDXWWU.js.map