@vostride/agent-qa-knowledge-local 0.2.2 → 0.2.4

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/dist/reader.d.cts CHANGED
@@ -1,15 +1,10 @@
1
- export { e as AUTHORING_BRIEF_DEFAULT_BUDGET, f as AUTHORING_DENSE_K, p as AuthoringReaderDependencies, s as CanaryPostureFacts, v as DiffSinceOptions, b0 as HydratedEntry, b1 as IndexRow, J as InspectRecordsOptions, O as KnowledgeMaintenanceScanError, P as KnowledgeMaintenanceScanIssue, S as KnowledgeRecordNotFoundError, W as LowerTrustShare, X as MARK_EVIDENCE_TOKEN_PREFIX, Y as MarkEvidenceEffect, Z as MarkEvidencePlan, _ as MarkEvidenceTarget, a1 as OpenServingKnowledgeReaderConfig, a2 as PlanMarkEvidenceInput, a4 as QUARANTINE_CLASS_DISPOSITIONS, b2 as QUARANTINE_FLOOR_ELIGIBILITY, a8 as QUARANTINE_LEDGER_FILENAME, ac as QuarantineDisposition, b3 as QuarantineFloorEligibility, ad as QuarantineLedgerRead, R as RefusedQuarantineLine, an as ShowRecordOptions, ao as StandingReceiptDigest, ar as canaryPostureFactsFor, au as createAuthoringReader, aw as diffSince, aA as foldQuarantineLedgerState, b4 as hydrateRows, aC as inspectRecords, aF as lowerTrustSharesFor, aG as markEvidenceEvent, aJ as openKnowledgeReader, aK as planMarkEvidence, aM as projectMarkEvidenceOutcome, aN as quarantineLedgerPath, b5 as readIndexRows, aR as readQuarantineLedger, aX as showRecord, aY as standingReceiptDigestsFor } from './mark-evidence-plan-BCkYN07i.cjs';
2
- import { CanaryOutcome, TrustPriorTable, KnowledgeBundleSummary, KnowledgeRecordShowResult, ResolvePromotionPosture, KnowledgeGatesListResult, KnowledgeCandidateInjectionResult } from '@vostride/agent-qa-schema';
1
+ export { e as AUTHORING_BRIEF_DEFAULT_BUDGET, f as AUTHORING_DENSE_K, p as AuthoringReaderDependencies, u as DiffSinceOptions, aW as HydratedEntry, aX as IndexRow, H as InspectRecordsOptions, N as KnowledgeMaintenanceScanError, O as KnowledgeMaintenanceScanIssue, P as KnowledgeRecordNotFoundError, U as MARK_EVIDENCE_TOKEN_PREFIX, W as MarkEvidenceEffect, X as MarkEvidencePlan, Y as MarkEvidenceTarget, $ as OpenServingKnowledgeReaderConfig, a0 as PlanMarkEvidenceInput, a2 as QUARANTINE_CLASS_DISPOSITIONS, aY as QUARANTINE_FLOOR_ELIGIBILITY, a6 as QUARANTINE_LEDGER_FILENAME, aa as QuarantineDisposition, aZ as QuarantineFloorEligibility, ab as QuarantineLedgerRead, R as RefusedQuarantineLine, al as ShowRecordOptions, aq as createAuthoringReader, as as diffSince, aw as foldQuarantineLedgerState, a_ as hydrateRows, ay as inspectRecords, aB as markEvidenceEvent, aE as openKnowledgeReader, aF as planMarkEvidence, aH as projectMarkEvidenceOutcome, aI as quarantineLedgerPath, a$ as readIndexRows, aM as readQuarantineLedger, aS as showRecord } from './mark-evidence-plan-CmOkzw6u.cjs';
2
+ import { CanaryOutcome, KnowledgeBundleSummary, KnowledgeRecordShowResult, KnowledgeGatesListResult } from '@vostride/agent-qa-schema';
3
3
  export { BuildRange, ReadOptions, SearchOptions } from '@vostride/agent-qa-schema';
4
4
  import '@vostride/agent-qa-agent';
5
5
  import '@vostride/agent-qa-runner';
6
6
  import 'node:sqlite';
7
7
 
8
- /**
9
- * D-22: bind one canary observation to the served candidate and attributed step. The schema
10
- * evidence-token recipe adds the exercised anchor and build ordinal; together those fields are
11
- * the complete replay identity required by §7.5.1.
12
- */
13
8
  declare function canaryOutcomeObservationId(outcome: Pick<CanaryOutcome, 'candidateId' | 'runId' | 'testId' | 'testIndex' | 'stepIndex'>): string;
14
9
 
15
10
  /**
@@ -27,7 +22,7 @@ declare function canaryOutcomeObservationId(outcome: Pick<CanaryOutcome, 'candid
27
22
  * Order is total and stable: product, then bundle directory name (which is the record id).
28
23
  * `enumerateBundleDirs` already sorts on exactly those two keys.
29
24
  */
30
- declare function listBundles(knowledgeRoot: string, priors?: TrustPriorTable): KnowledgeBundleSummary[];
25
+ declare function listBundles(knowledgeRoot: string): KnowledgeBundleSummary[];
31
26
 
32
27
  interface ShowRecordsOptions {
33
28
  knowledgeRoot: string;
@@ -58,15 +53,6 @@ interface CanaryAttributionRow {
58
53
  observationId: string;
59
54
  outcome?: CanaryAttributionOutcome;
60
55
  }
61
- /**
62
- * The attribution answer, with the partiality of the walk that produced it.
63
- *
64
- * `skippedBundles > 0` means the answer is PARTIAL — some bundle in the store failed
65
- * `loadMaintenanceBundle` (load or integrity) and was skipped. A caller that renders
66
- * `not attributed` from an absent `outcome` must consult this first: on a partial walk the
67
- * absence means "not found in the part of the store I could read", which is not the same claim
68
- * (REVIEW WR-03; the T-407-11 hazard class is the integrity arm).
69
- */
70
56
  interface CanaryAttributionsResult {
71
57
  rows: CanaryAttributionRow[];
72
58
  skippedBundles: number;
@@ -76,32 +62,12 @@ interface CanaryAttributionsForOptions {
76
62
  runId: string;
77
63
  tuples: readonly CanaryAttributionTuple[];
78
64
  }
79
- /**
80
- * Answer, per served canary tuple, the observation id it would have been attributed under and the
81
- * committed outcome carrying that id — when one survives.
82
- *
83
- * The answer carries `skippedBundles` beside the rows so the caller never has to infer the
84
- * partiality of this walk from some other read (REVIEW WR-03).
85
- *
86
- * An empty tuple list answers no rows and no skips without touching the store: there is nothing to
87
- * look up, and a walk that could fail on an unrelated bundle would turn "you asked about nothing"
88
- * into an error.
89
- */
90
65
  declare function canaryAttributionsFor(options: CanaryAttributionsForOptions): CanaryAttributionsResult;
91
66
 
92
67
  interface GateReceiptsForOptions {
93
68
  knowledgeRoot: string;
94
69
  candidateId: string;
95
- /** Resolved per candidate by the same assembly used by the promotion doors. */
96
- resolvePromotionPosture?: ResolvePromotionPosture;
97
70
  }
98
71
  declare function gateReceiptsFor(options: GateReceiptsForOptions): KnowledgeGatesListResult;
99
72
 
100
- interface CandidateInjectionForOptions {
101
- knowledgeRoot: string;
102
- candidateId: string;
103
- priors?: TrustPriorTable;
104
- }
105
- declare function candidateInjectionFor(options: CandidateInjectionForOptions): KnowledgeCandidateInjectionResult;
106
-
107
- export { type CanaryAttributionOutcome, type CanaryAttributionRow, type CanaryAttributionTuple, type CanaryAttributionsForOptions, type CanaryAttributionsResult, type CandidateInjectionForOptions, type GateReceiptsForOptions, type ShowRecordsOptions, canaryAttributionsFor, canaryOutcomeObservationId, candidateInjectionFor, gateReceiptsFor, listBundles, showRecords };
73
+ export { type CanaryAttributionOutcome, type CanaryAttributionRow, type CanaryAttributionTuple, type CanaryAttributionsForOptions, type CanaryAttributionsResult, type GateReceiptsForOptions, type ShowRecordsOptions, canaryAttributionsFor, canaryOutcomeObservationId, gateReceiptsFor, listBundles, showRecords };
package/dist/reader.d.ts CHANGED
@@ -1,15 +1,10 @@
1
- export { e as AUTHORING_BRIEF_DEFAULT_BUDGET, f as AUTHORING_DENSE_K, p as AuthoringReaderDependencies, s as CanaryPostureFacts, v as DiffSinceOptions, b0 as HydratedEntry, b1 as IndexRow, J as InspectRecordsOptions, O as KnowledgeMaintenanceScanError, P as KnowledgeMaintenanceScanIssue, S as KnowledgeRecordNotFoundError, W as LowerTrustShare, X as MARK_EVIDENCE_TOKEN_PREFIX, Y as MarkEvidenceEffect, Z as MarkEvidencePlan, _ as MarkEvidenceTarget, a1 as OpenServingKnowledgeReaderConfig, a2 as PlanMarkEvidenceInput, a4 as QUARANTINE_CLASS_DISPOSITIONS, b2 as QUARANTINE_FLOOR_ELIGIBILITY, a8 as QUARANTINE_LEDGER_FILENAME, ac as QuarantineDisposition, b3 as QuarantineFloorEligibility, ad as QuarantineLedgerRead, R as RefusedQuarantineLine, an as ShowRecordOptions, ao as StandingReceiptDigest, ar as canaryPostureFactsFor, au as createAuthoringReader, aw as diffSince, aA as foldQuarantineLedgerState, b4 as hydrateRows, aC as inspectRecords, aF as lowerTrustSharesFor, aG as markEvidenceEvent, aJ as openKnowledgeReader, aK as planMarkEvidence, aM as projectMarkEvidenceOutcome, aN as quarantineLedgerPath, b5 as readIndexRows, aR as readQuarantineLedger, aX as showRecord, aY as standingReceiptDigestsFor } from './mark-evidence-plan-BCkYN07i.js';
2
- import { CanaryOutcome, TrustPriorTable, KnowledgeBundleSummary, KnowledgeRecordShowResult, ResolvePromotionPosture, KnowledgeGatesListResult, KnowledgeCandidateInjectionResult } from '@vostride/agent-qa-schema';
1
+ export { e as AUTHORING_BRIEF_DEFAULT_BUDGET, f as AUTHORING_DENSE_K, p as AuthoringReaderDependencies, u as DiffSinceOptions, aW as HydratedEntry, aX as IndexRow, H as InspectRecordsOptions, N as KnowledgeMaintenanceScanError, O as KnowledgeMaintenanceScanIssue, P as KnowledgeRecordNotFoundError, U as MARK_EVIDENCE_TOKEN_PREFIX, W as MarkEvidenceEffect, X as MarkEvidencePlan, Y as MarkEvidenceTarget, $ as OpenServingKnowledgeReaderConfig, a0 as PlanMarkEvidenceInput, a2 as QUARANTINE_CLASS_DISPOSITIONS, aY as QUARANTINE_FLOOR_ELIGIBILITY, a6 as QUARANTINE_LEDGER_FILENAME, aa as QuarantineDisposition, aZ as QuarantineFloorEligibility, ab as QuarantineLedgerRead, R as RefusedQuarantineLine, al as ShowRecordOptions, aq as createAuthoringReader, as as diffSince, aw as foldQuarantineLedgerState, a_ as hydrateRows, ay as inspectRecords, aB as markEvidenceEvent, aE as openKnowledgeReader, aF as planMarkEvidence, aH as projectMarkEvidenceOutcome, aI as quarantineLedgerPath, a$ as readIndexRows, aM as readQuarantineLedger, aS as showRecord } from './mark-evidence-plan-CmOkzw6u.js';
2
+ import { CanaryOutcome, KnowledgeBundleSummary, KnowledgeRecordShowResult, KnowledgeGatesListResult } from '@vostride/agent-qa-schema';
3
3
  export { BuildRange, ReadOptions, SearchOptions } from '@vostride/agent-qa-schema';
4
4
  import '@vostride/agent-qa-agent';
5
5
  import '@vostride/agent-qa-runner';
6
6
  import 'node:sqlite';
7
7
 
8
- /**
9
- * D-22: bind one canary observation to the served candidate and attributed step. The schema
10
- * evidence-token recipe adds the exercised anchor and build ordinal; together those fields are
11
- * the complete replay identity required by §7.5.1.
12
- */
13
8
  declare function canaryOutcomeObservationId(outcome: Pick<CanaryOutcome, 'candidateId' | 'runId' | 'testId' | 'testIndex' | 'stepIndex'>): string;
14
9
 
15
10
  /**
@@ -27,7 +22,7 @@ declare function canaryOutcomeObservationId(outcome: Pick<CanaryOutcome, 'candid
27
22
  * Order is total and stable: product, then bundle directory name (which is the record id).
28
23
  * `enumerateBundleDirs` already sorts on exactly those two keys.
29
24
  */
30
- declare function listBundles(knowledgeRoot: string, priors?: TrustPriorTable): KnowledgeBundleSummary[];
25
+ declare function listBundles(knowledgeRoot: string): KnowledgeBundleSummary[];
31
26
 
32
27
  interface ShowRecordsOptions {
33
28
  knowledgeRoot: string;
@@ -58,15 +53,6 @@ interface CanaryAttributionRow {
58
53
  observationId: string;
59
54
  outcome?: CanaryAttributionOutcome;
60
55
  }
61
- /**
62
- * The attribution answer, with the partiality of the walk that produced it.
63
- *
64
- * `skippedBundles > 0` means the answer is PARTIAL — some bundle in the store failed
65
- * `loadMaintenanceBundle` (load or integrity) and was skipped. A caller that renders
66
- * `not attributed` from an absent `outcome` must consult this first: on a partial walk the
67
- * absence means "not found in the part of the store I could read", which is not the same claim
68
- * (REVIEW WR-03; the T-407-11 hazard class is the integrity arm).
69
- */
70
56
  interface CanaryAttributionsResult {
71
57
  rows: CanaryAttributionRow[];
72
58
  skippedBundles: number;
@@ -76,32 +62,12 @@ interface CanaryAttributionsForOptions {
76
62
  runId: string;
77
63
  tuples: readonly CanaryAttributionTuple[];
78
64
  }
79
- /**
80
- * Answer, per served canary tuple, the observation id it would have been attributed under and the
81
- * committed outcome carrying that id — when one survives.
82
- *
83
- * The answer carries `skippedBundles` beside the rows so the caller never has to infer the
84
- * partiality of this walk from some other read (REVIEW WR-03).
85
- *
86
- * An empty tuple list answers no rows and no skips without touching the store: there is nothing to
87
- * look up, and a walk that could fail on an unrelated bundle would turn "you asked about nothing"
88
- * into an error.
89
- */
90
65
  declare function canaryAttributionsFor(options: CanaryAttributionsForOptions): CanaryAttributionsResult;
91
66
 
92
67
  interface GateReceiptsForOptions {
93
68
  knowledgeRoot: string;
94
69
  candidateId: string;
95
- /** Resolved per candidate by the same assembly used by the promotion doors. */
96
- resolvePromotionPosture?: ResolvePromotionPosture;
97
70
  }
98
71
  declare function gateReceiptsFor(options: GateReceiptsForOptions): KnowledgeGatesListResult;
99
72
 
100
- interface CandidateInjectionForOptions {
101
- knowledgeRoot: string;
102
- candidateId: string;
103
- priors?: TrustPriorTable;
104
- }
105
- declare function candidateInjectionFor(options: CandidateInjectionForOptions): KnowledgeCandidateInjectionResult;
106
-
107
- export { type CanaryAttributionOutcome, type CanaryAttributionRow, type CanaryAttributionTuple, type CanaryAttributionsForOptions, type CanaryAttributionsResult, type CandidateInjectionForOptions, type GateReceiptsForOptions, type ShowRecordsOptions, canaryAttributionsFor, canaryOutcomeObservationId, candidateInjectionFor, gateReceiptsFor, listBundles, showRecords };
73
+ export { type CanaryAttributionOutcome, type CanaryAttributionRow, type CanaryAttributionTuple, type CanaryAttributionsForOptions, type CanaryAttributionsResult, type GateReceiptsForOptions, type ShowRecordsOptions, canaryAttributionsFor, canaryOutcomeObservationId, gateReceiptsFor, listBundles, showRecords };