daftari 1.20.0 → 1.22.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.
Files changed (100) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/README.md +4 -1
  3. package/dist/access/rbac.d.ts +1 -0
  4. package/dist/access/rbac.d.ts.map +1 -1
  5. package/dist/access/rbac.js +7 -0
  6. package/dist/access/rbac.js.map +1 -1
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +10 -0
  9. package/dist/cli.js.map +1 -1
  10. package/dist/consolidate/birth.d.ts +74 -0
  11. package/dist/consolidate/birth.d.ts.map +1 -0
  12. package/dist/consolidate/birth.js +253 -0
  13. package/dist/consolidate/birth.js.map +1 -0
  14. package/dist/consolidate/clocks.d.ts +15 -0
  15. package/dist/consolidate/clocks.d.ts.map +1 -0
  16. package/dist/consolidate/clocks.js +127 -0
  17. package/dist/consolidate/clocks.js.map +1 -0
  18. package/dist/consolidate/constants.d.ts +26 -0
  19. package/dist/consolidate/constants.d.ts.map +1 -0
  20. package/dist/consolidate/constants.js +83 -0
  21. package/dist/consolidate/constants.js.map +1 -0
  22. package/dist/consolidate/decorrelation.d.ts +69 -0
  23. package/dist/consolidate/decorrelation.d.ts.map +1 -0
  24. package/dist/consolidate/decorrelation.js +287 -0
  25. package/dist/consolidate/decorrelation.js.map +1 -0
  26. package/dist/consolidate/derivation-prompt.d.ts +28 -0
  27. package/dist/consolidate/derivation-prompt.d.ts.map +1 -0
  28. package/dist/consolidate/derivation-prompt.js +72 -0
  29. package/dist/consolidate/derivation-prompt.js.map +1 -0
  30. package/dist/consolidate/edge-write.d.ts +10 -0
  31. package/dist/consolidate/edge-write.d.ts.map +1 -0
  32. package/dist/consolidate/edge-write.js +76 -0
  33. package/dist/consolidate/edge-write.js.map +1 -0
  34. package/dist/consolidate/index.d.ts +2 -0
  35. package/dist/consolidate/index.d.ts.map +1 -0
  36. package/dist/consolidate/index.js +477 -0
  37. package/dist/consolidate/index.js.map +1 -0
  38. package/dist/consolidate/priority.d.ts +25 -0
  39. package/dist/consolidate/priority.d.ts.map +1 -0
  40. package/dist/consolidate/priority.js +103 -0
  41. package/dist/consolidate/priority.js.map +1 -0
  42. package/dist/consolidate/revision.d.ts +75 -0
  43. package/dist/consolidate/revision.d.ts.map +1 -0
  44. package/dist/consolidate/revision.js +232 -0
  45. package/dist/consolidate/revision.js.map +1 -0
  46. package/dist/consolidate/state.d.ts +10 -0
  47. package/dist/consolidate/state.d.ts.map +1 -0
  48. package/dist/consolidate/state.js +54 -0
  49. package/dist/consolidate/state.js.map +1 -0
  50. package/dist/curation/edges.d.ts +5 -0
  51. package/dist/curation/edges.d.ts.map +1 -1
  52. package/dist/curation/edges.js +82 -9
  53. package/dist/curation/edges.js.map +1 -1
  54. package/dist/curation/lint.d.ts +2 -0
  55. package/dist/curation/lint.d.ts.map +1 -1
  56. package/dist/curation/lint.js +5 -0
  57. package/dist/curation/lint.js.map +1 -1
  58. package/dist/curation/provenance.d.ts +1 -0
  59. package/dist/curation/provenance.d.ts.map +1 -1
  60. package/dist/curation/provenance.js +1 -0
  61. package/dist/curation/provenance.js.map +1 -1
  62. package/dist/curation/shadow.d.ts +58 -0
  63. package/dist/curation/shadow.d.ts.map +1 -0
  64. package/dist/curation/shadow.js +221 -0
  65. package/dist/curation/shadow.js.map +1 -0
  66. package/dist/eval/llm.d.ts +3 -1
  67. package/dist/eval/llm.d.ts.map +1 -1
  68. package/dist/eval/llm.js +6 -2
  69. package/dist/eval/llm.js.map +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/storage/index-db.d.ts +1 -0
  72. package/dist/storage/index-db.d.ts.map +1 -1
  73. package/dist/storage/index-db.js +14 -9
  74. package/dist/storage/index-db.js.map +1 -1
  75. package/dist/tools/curation.d.ts +2 -0
  76. package/dist/tools/curation.d.ts.map +1 -1
  77. package/dist/tools/curation.js +5 -1
  78. package/dist/tools/curation.js.map +1 -1
  79. package/dist/tools/edges.d.ts.map +1 -1
  80. package/dist/tools/edges.js +14 -10
  81. package/dist/tools/edges.js.map +1 -1
  82. package/dist/tools/staged-actions.d.ts +1 -0
  83. package/dist/tools/staged-actions.d.ts.map +1 -1
  84. package/dist/tools/staged-actions.js +18 -5
  85. package/dist/tools/staged-actions.js.map +1 -1
  86. package/dist/tools/write.d.ts +1 -0
  87. package/dist/tools/write.d.ts.map +1 -1
  88. package/dist/tools/write.js +93 -7
  89. package/dist/tools/write.js.map +1 -1
  90. package/dist/utils/config.d.ts +2 -0
  91. package/dist/utils/config.d.ts.map +1 -1
  92. package/dist/utils/config.js +17 -1
  93. package/dist/utils/config.js.map +1 -1
  94. package/dist/utils/git.d.ts +1 -0
  95. package/dist/utils/git.d.ts.map +1 -1
  96. package/dist/utils/git.js +19 -0
  97. package/dist/utils/git.js.map +1 -1
  98. package/package.json +1 -1
  99. package/templates/config.yaml +3 -0
  100. package/templates/reviewer-vault/.daftari/config.yaml +3 -0
@@ -0,0 +1,28 @@
1
+ import { type Result } from "../frontmatter/types.js";
2
+ export type PremiseSide = "A" | "B" | "symmetric";
3
+ export interface DerivationVerdict {
4
+ related: boolean;
5
+ premise: PremiseSide | null;
6
+ reason: string;
7
+ }
8
+ export declare const DERIVATION_VERDICT_SCHEMA: {
9
+ readonly type: "object";
10
+ readonly required: readonly ["related", "premise", "reason"];
11
+ readonly properties: {
12
+ readonly related: {
13
+ readonly type: "boolean";
14
+ };
15
+ readonly premise: {
16
+ readonly enum: readonly ["A", "B", "symmetric"];
17
+ readonly description: "which doc is the load-bearing premise; ignored when related is false";
18
+ };
19
+ readonly reason: {
20
+ readonly type: "string";
21
+ readonly minLength: 1;
22
+ };
23
+ };
24
+ };
25
+ export declare const DERIVATION_SYSTEM: string;
26
+ export declare function derivationUserBody(aPath: string, aContent: string, bPath: string, bContent: string): string;
27
+ export declare function parseDerivationVerdict(raw: unknown): Result<DerivationVerdict, Error>;
28
+ //# sourceMappingURL=derivation-prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"derivation-prompt.d.ts","sourceRoot":"","sources":["../../src/consolidate/derivation-prompt.ts"],"names":[],"mappings":"AAeA,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,WAAW,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;CAChB;AAMD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAW5B,CAAC;AAEX,eAAO,MAAM,iBAAiB,QAKmC,CAAC;AAKlE,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GACf,MAAM,CAYR;AAKD,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAwBrF"}
@@ -0,0 +1,72 @@
1
+ // Shared foundational-ordering derivation elicitation (spec §3.1).
2
+ //
3
+ // Replaces birth.ts's private derives/depends/neither token and decorrelation's
4
+ // duplicate. The judgment is two-part:
5
+ // - related: is there a load-bearing derivation at all? (the reliable signal —
6
+ // detection + promiscuity rejection; related=false ⇒ no edge)
7
+ // - premise: foundational ordering — which doc is the load-bearing premise, the
8
+ // one that must be established first for the other to make sense. "symmetric"
9
+ // when each conditions the other; null only on parse failure.
10
+ //
11
+ // The prompt is presentation-order-agnostic by construction: it asks for a content
12
+ // role ("which is the premise"), never "does A derive from B", so it carries no
13
+ // position/token bias (validated ~50% DOC1-bias at temp 0). Direction is elicited
14
+ // at temperature 0 — a factual, deterministic judgment, not a creative one.
15
+ import { err, ok } from "../frontmatter/types.js";
16
+ const PREMISE_SIDES = new Set(["A", "B", "symmetric"]);
17
+ // Embedded in the system prompt as a hint to the LLM (completeJson does not do
18
+ // strict JSON-Schema validation; parseDerivationVerdict is the real gate).
19
+ export const DERIVATION_VERDICT_SCHEMA = {
20
+ type: "object",
21
+ required: ["related", "premise", "reason"],
22
+ properties: {
23
+ related: { type: "boolean" },
24
+ premise: {
25
+ enum: ["A", "B", "symmetric"],
26
+ description: "which doc is the load-bearing premise; ignored when related is false",
27
+ },
28
+ reason: { type: "string", minLength: 1 },
29
+ },
30
+ };
31
+ export const DERIVATION_SYSTEM = "You assess whether one document's central claim is a load-bearing derivation of " +
32
+ "another's, and if so which is the foundational premise. A load-bearing dependency " +
33
+ "means one claim rests on the other as a premise it could not stand without — not a " +
34
+ "passing reference, a citation, or mere co-occurrence. Be conservative: when the " +
35
+ "dependency is shallow or ambiguous, judge that there is none.";
36
+ // Foundational-ordering question. By contract this body contains no "derive"
37
+ // token and no "[template:" tag — it asks for a content role, not a directional
38
+ // verb, so it is presentation-order-agnostic.
39
+ export function derivationUserBody(aPath, aContent, bPath, bContent) {
40
+ return (`DOC A (path: ${aPath}):\n${aContent}\n\n` +
41
+ `DOC B (path: ${bPath}):\n${bContent}\n\n` +
42
+ "First: is there a load-bearing dependency between these two central claims — does " +
43
+ "one rest on the other as a foundational premise (not a passing mention, a citation, " +
44
+ "or mere co-occurrence)? If there is no such dependency, set related to false.\n\n" +
45
+ "If there is a dependency: which of DOC A or DOC B is the load-bearing premise — the " +
46
+ 'one that would have to be established first for the other to make sense? Answer "A" ' +
47
+ 'or "B". If each claim conditions the other so that neither could be established first, ' +
48
+ 'answer "symmetric".\n\nReturn JSON.');
49
+ }
50
+ // Mirrors birth's reject-and-continue parser, in the {related, premise} space.
51
+ // A false `related` discards any premise (-> null); a true `related` requires a
52
+ // valid premise side. `reason` is always required.
53
+ export function parseDerivationVerdict(raw) {
54
+ if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
55
+ return err(new Error("verdict: expected object"));
56
+ }
57
+ const obj = raw;
58
+ if (typeof obj.related !== "boolean") {
59
+ return err(new Error(`verdict: 'related' must be a boolean, got ${JSON.stringify(obj.related)}`));
60
+ }
61
+ if (typeof obj.reason !== "string" || obj.reason.trim().length === 0) {
62
+ return err(new Error("verdict: 'reason' is required (and non-empty)"));
63
+ }
64
+ if (obj.related === false) {
65
+ return ok({ related: false, premise: null, reason: obj.reason });
66
+ }
67
+ if (typeof obj.premise !== "string" || !PREMISE_SIDES.has(obj.premise)) {
68
+ return err(new Error(`verdict: 'premise' must be one of A|B|symmetric, got ${JSON.stringify(obj.premise)}`));
69
+ }
70
+ return ok({ related: true, premise: obj.premise, reason: obj.reason });
71
+ }
72
+ //# sourceMappingURL=derivation-prompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"derivation-prompt.js","sourceRoot":"","sources":["../../src/consolidate/derivation-prompt.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,EAAE;AACF,gFAAgF;AAChF,uCAAuC;AACvC,iFAAiF;AACjF,kEAAkE;AAClE,kFAAkF;AAClF,kFAAkF;AAClF,kEAAkE;AAClE,EAAE;AACF,mFAAmF;AACnF,gFAAgF;AAChF,kFAAkF;AAClF,4EAA4E;AAE5E,OAAO,EAAE,GAAG,EAAE,EAAE,EAAe,MAAM,yBAAyB,CAAC;AAU/D,MAAM,aAAa,GAAwB,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC;AAE5E,+EAA+E;AAC/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;IAC1C,UAAU,EAAE;QACV,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC5B,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,CAAC;YAC7B,WAAW,EAAE,sEAAsE;SACpF;QACD,MAAM,EAAE,EAAE,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;IACD,IAAI,GAAG,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IACD,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QACvE,OAAO,GAAG,CACR,IAAI,KAAK,CACP,wDAAwD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CACtF,CACF,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,OAAsB,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;AACxF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type ContestEdgeInput, type DerivesFromEdge, type ObserveEdgeInput } from "../curation/edges.js";
2
+ import { type Result } from "../frontmatter/types.js";
3
+ export interface EdgeWriteConfig {
4
+ vaultRoot: string;
5
+ shadowMode: boolean;
6
+ principal?: string;
7
+ }
8
+ export declare function makeObserve(config: EdgeWriteConfig): (input: ObserveEdgeInput) => Promise<Result<DerivesFromEdge, Error>>;
9
+ export declare function makeContest(config: EdgeWriteConfig): (input: ContestEdgeInput) => Promise<Result<DerivesFromEdge, Error>>;
10
+ //# sourceMappingURL=edge-write.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edge-write.d.ts","sourceRoot":"","sources":["../../src/consolidate/edge-write.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAM,KAAK,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IAIpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2BD,wBAAgB,WAAW,CACzB,MAAM,EAAE,eAAe,GACtB,CAAC,KAAK,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CAuBtE;AAED,wBAAgB,WAAW,CACzB,MAAM,EAAE,eAAe,GACtB,CAAC,KAAK,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CAiBtE"}
@@ -0,0 +1,76 @@
1
+ // Shadow-aware wrappers around observeEdge / contestEdge for the consolidation
2
+ // loop (spec §5.3, brief item 5). When the vault runs `shadow_mode: true`,
3
+ // these factories route edge writes through `recordShadowAction` so the
4
+ // calibration log gains records but `.daftari/edges.jsonl` is untouched.
5
+ // When shadow is off, they fall through to the live store.
6
+ //
7
+ // The CLI (chunk 5) is the ONLY caller — birth.ts and revision.ts receive
8
+ // `observe` / `contest` via dependency injection and don't know which path
9
+ // they're on. That keeps the unit tests for those modules hermetic (no fs,
10
+ // no shadow config), and concentrates the live-vs-shadow branch here.
11
+ import { contestEdge, observeEdge, } from "../curation/edges.js";
12
+ import { recordShadowAction } from "../curation/shadow.js";
13
+ import { ok } from "../frontmatter/types.js";
14
+ // In shadow mode we return a synthetic DerivesFromEdge so the caller's
15
+ // success/error branch (which only checks `ok` + counts) works the same.
16
+ // The fields are deliberately neutral: no real state advanced.
17
+ function stubEdge(fromPath, toPath, at, status, contestReason) {
18
+ return {
19
+ fromPath,
20
+ toPath,
21
+ strength: 0,
22
+ kSurvived: 0,
23
+ firstObserved: at,
24
+ lastRederived: at,
25
+ status,
26
+ directionVerdict: "directed",
27
+ observations: 0,
28
+ contestedAt: status === "revoked" ? at : null,
29
+ contestReason,
30
+ };
31
+ }
32
+ export function makeObserve(config) {
33
+ return async (input) => {
34
+ if (!config.shadowMode) {
35
+ return observeEdge(config.vaultRoot, input);
36
+ }
37
+ const shadowRes = await recordShadowAction(config.vaultRoot, {
38
+ tool: "vault_edge_observe",
39
+ action: "edge-observe",
40
+ // targetPath drives the blast computation (downstream reach via reverse
41
+ // link/source maps). The FROM doc is the right seed: strengthening
42
+ // from→to could re-trigger anything downstream of `from`.
43
+ targetPath: input.fromPath,
44
+ touchedPaths: [input.fromPath, input.toPath],
45
+ agent: input.observedBy,
46
+ ...(config.principal ? { principal: config.principal } : {}),
47
+ // Carry premiseVote in the message so the calibration journal can
48
+ // reconstruct direction (directed-to vs symmetric/pending) — shadow mode
49
+ // is where this feature is calibrated, so the signal must not be erased.
50
+ commitMessage: `[shadow] edge_observe ${input.fromPath} ← ${input.toPath} [premise:${input.premiseVote ?? "n/a"}]${input.note ? ` (${input.note})` : ""}`,
51
+ });
52
+ if (!shadowRes.ok)
53
+ return shadowRes;
54
+ return ok(stubEdge(input.fromPath, input.toPath, shadowRes.value.at, "candidate", null));
55
+ };
56
+ }
57
+ export function makeContest(config) {
58
+ return async (input) => {
59
+ if (!config.shadowMode) {
60
+ return contestEdge(config.vaultRoot, input);
61
+ }
62
+ const shadowRes = await recordShadowAction(config.vaultRoot, {
63
+ tool: "vault_edge_contest",
64
+ action: "edge-contest",
65
+ targetPath: input.fromPath,
66
+ touchedPaths: [input.fromPath, input.toPath],
67
+ agent: input.contestedBy,
68
+ ...(config.principal ? { principal: config.principal } : {}),
69
+ commitMessage: `[shadow] edge_contest ${input.fromPath} ← ${input.toPath}: ${input.reason}`,
70
+ });
71
+ if (!shadowRes.ok)
72
+ return shadowRes;
73
+ return ok(stubEdge(input.fromPath, input.toPath, shadowRes.value.at, "revoked", input.reason));
74
+ };
75
+ }
76
+ //# sourceMappingURL=edge-write.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edge-write.js","sourceRoot":"","sources":["../../src/consolidate/edge-write.ts"],"names":[],"mappings":"AAAA,+EAA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AAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5D,aAAa,EAAE,yBAAyB,KAAK,CAAC,QAAQ,MAAM,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE;SAC5F,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,CAAC,EAAE;YAAE,OAAO,SAAS,CAAC;QACpC,OAAO,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACjG,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function runConsolidate(argv: string[]): Promise<number>;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consolidate/index.ts"],"names":[],"mappings":"AA0HA,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CA0PpE"}