agentfootprint 9.77.0 → 9.78.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/CHANGELOG.md +110 -0
- package/CLAUDE.md +1 -0
- package/dist/core/Agent.js +50 -0
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/agent/stages/callLLM.js +14 -0
- package/dist/core/agent/stages/callLLM.js.map +1 -1
- package/dist/core/agent/stages/toolCalls.js +107 -0
- package/dist/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/core/tools.js +9 -1
- package/dist/core/tools.js.map +1 -1
- package/dist/esm/core/Agent.d.ts +7 -0
- package/dist/esm/core/Agent.js +50 -0
- package/dist/esm/core/Agent.js.map +1 -1
- package/dist/esm/core/agent/stages/callLLM.d.ts +11 -0
- package/dist/esm/core/agent/stages/callLLM.js +14 -0
- package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls.d.ts +20 -0
- package/dist/esm/core/agent/stages/toolCalls.js +107 -0
- package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/agent/types.d.ts +63 -0
- package/dist/esm/core/tools.d.ts +63 -0
- package/dist/esm/core/tools.js +17 -0
- package/dist/esm/core/tools.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/integrity/column-types/check.d.ts +156 -0
- package/dist/esm/integrity/column-types/check.js +363 -0
- package/dist/esm/integrity/column-types/check.js.map +1 -0
- package/dist/esm/integrity/column-types/types.d.ts +121 -0
- package/dist/esm/integrity/column-types/types.js +107 -0
- package/dist/esm/integrity/column-types/types.js.map +1 -0
- package/dist/esm/integrity/disposition/lifecycle.d.ts +16 -1
- package/dist/esm/integrity/disposition/lifecycle.js +30 -1
- package/dist/esm/integrity/disposition/lifecycle.js.map +1 -1
- package/dist/esm/integrity/finding/types.d.ts +14 -2
- package/dist/esm/integrity/finding/types.js.map +1 -1
- package/dist/esm/lib/mcp/toolExtras.d.ts +17 -2
- package/dist/esm/lib/mcp/toolExtras.js +5 -2
- package/dist/esm/lib/mcp/toolExtras.js.map +1 -1
- package/dist/esm/lib/trace-toolpack/traceToolpack.js +2 -0
- package/dist/esm/lib/trace-toolpack/traceToolpack.js.map +1 -1
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/integrity/column-types/check.js +368 -0
- package/dist/integrity/column-types/check.js.map +1 -0
- package/dist/integrity/column-types/types.js +112 -0
- package/dist/integrity/column-types/types.js.map +1 -0
- package/dist/integrity/disposition/lifecycle.js +30 -1
- package/dist/integrity/disposition/lifecycle.js.map +1 -1
- package/dist/integrity/finding/types.js.map +1 -1
- package/dist/lib/mcp/toolExtras.js +4 -1
- package/dist/lib/mcp/toolExtras.js.map +1 -1
- package/dist/lib/trace-toolpack/traceToolpack.js +2 -0
- package/dist/lib/trace-toolpack/traceToolpack.js.map +1 -1
- package/dist/types/core/Agent.d.ts +7 -0
- package/dist/types/core/Agent.d.ts.map +1 -1
- package/dist/types/core/agent/stages/callLLM.d.ts +11 -0
- package/dist/types/core/agent/stages/callLLM.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls.d.ts +20 -0
- package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
- package/dist/types/core/agent/types.d.ts +63 -0
- package/dist/types/core/agent/types.d.ts.map +1 -1
- package/dist/types/core/tools.d.ts +63 -0
- package/dist/types/core/tools.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/integrity/column-types/check.d.ts +157 -0
- package/dist/types/integrity/column-types/check.d.ts.map +1 -0
- package/dist/types/integrity/column-types/types.d.ts +122 -0
- package/dist/types/integrity/column-types/types.d.ts.map +1 -0
- package/dist/types/integrity/disposition/lifecycle.d.ts +16 -1
- package/dist/types/integrity/disposition/lifecycle.d.ts.map +1 -1
- package/dist/types/integrity/finding/types.d.ts +14 -2
- package/dist/types/integrity/finding/types.d.ts.map +1 -1
- package/dist/types/lib/mcp/toolExtras.d.ts +17 -2
- package/dist/types/lib/mcp/toolExtras.d.ts.map +1 -1
- package/dist/types/lib/trace-toolpack/traceToolpack.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -562,6 +562,69 @@ export interface AgentOptions {
|
|
|
562
562
|
* result the tool returned.
|
|
563
563
|
*/
|
|
564
564
|
readonly noticeEmptyLookups?: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* Check a tool's rows against the columns it declared (9.78.0) — the write
|
|
567
|
+
* seam's COLUMN-TYPE CONTRACT. **Default `'off'`.**
|
|
568
|
+
*
|
|
569
|
+
* THE RECORDED FAILURES, three of them, all one shape — a number became
|
|
570
|
+
* something else and nothing noticed at the seam. A mapping report wrote
|
|
571
|
+
* `str(m.get("logical_unit_number") or "")`, so LUN 0 — falsy — was stored
|
|
572
|
+
* as an EMPTY STRING on 2,094 mappings, and a host group missing the LUN an
|
|
573
|
+
* initiator probes first was indistinguishable from one that had it. A
|
|
574
|
+
* capacity view rendered an 8 MiB disk as `0.0 GB`, which reads as NO DISK
|
|
575
|
+
* during a live incident. And a whole family of tools returned their
|
|
576
|
+
* numbers as quoted strings (`"1240"`), which silently blanked every chart,
|
|
577
|
+
* because nothing downstream could tell a measure from a label.
|
|
578
|
+
*
|
|
579
|
+
* The library already lets a tool declare what its result IS
|
|
580
|
+
* (`Tool.resultKind`). This dial reads the sibling declaration —
|
|
581
|
+
* `Tool.resultColumns`, what the result CONTAINS — and checks the rows
|
|
582
|
+
* against it at the moment the tool answers.
|
|
583
|
+
*
|
|
584
|
+
* THE THREE WORDS, and they are `toolArgsValidation`'s own:
|
|
585
|
+
*
|
|
586
|
+
* • `'off'` (default) — nothing measured. Byte-identical to every release
|
|
587
|
+
* before this existed.
|
|
588
|
+
* • `'warn'` — findings are filed on
|
|
589
|
+
* `agentfootprint.integrity.context_error` and the model reads the rows
|
|
590
|
+
* EXACTLY as the tool returned them. Nothing is blocked, changed or
|
|
591
|
+
* retried.
|
|
592
|
+
* • `'enforce'` — the rows are REFUSED and the model reads a teaching
|
|
593
|
+
* sentence naming the column, what it declared, what arrived and how
|
|
594
|
+
* many rows — the `resultCeiling` idiom, not a thrown stack trace. The
|
|
595
|
+
* refusal is the whole payload, on every channel.
|
|
596
|
+
*
|
|
597
|
+
* The words are borrowed rather than invented deliberately: this is the
|
|
598
|
+
* MIRROR of `toolArgsValidation` — that boundary validates the arguments
|
|
599
|
+
* going IN against the tool's declared `inputSchema`, this one validates
|
|
600
|
+
* the rows coming OUT against the tool's declared `resultColumns`. Two
|
|
601
|
+
* validators at one seam that graded themselves in different vocabularies
|
|
602
|
+
* would be a worse defect than either could catch.
|
|
603
|
+
*
|
|
604
|
+
* TWO FINDINGS, because the field bug turned on the difference:
|
|
605
|
+
* `column-type-mismatch` (the column is there and holds the wrong thing)
|
|
606
|
+
* and `missing-column` (the declared column is in none of the rows). They
|
|
607
|
+
* send a person to two different files.
|
|
608
|
+
*
|
|
609
|
+
* THE CEILING: this judges TYPE, never MEANING. It sees that a column
|
|
610
|
+
* declared `number` holds a string; it can never see that the string should
|
|
611
|
+
* have been `0`, or that `0.0` should have been `0.0078` — so the `0.0 GB`
|
|
612
|
+
* failure above passes it cleanly. The bound ships as `COLUMN_TYPE_CEILING`
|
|
613
|
+
* and is quoted verbatim into every finding.
|
|
614
|
+
*
|
|
615
|
+
* WHAT IT REFUSES TO JUDGE: a result is read only when it is an ARRAY OF
|
|
616
|
+
* PLAIN OBJECTS with at least one row. Prose, a `null`, a bespoke
|
|
617
|
+
* `{ rows: [...] }` wrapper, a claim ticket — and the ZERO-ROW result,
|
|
618
|
+
* which has no columns to be wrong about and belongs to `empty-lookup`
|
|
619
|
+
* next door — all file an explicit `not-applicable` row and NO finding.
|
|
620
|
+
*
|
|
621
|
+
* TWO HALVES ARM IT: this dial AND at least one tool declaring
|
|
622
|
+
* `resultColumns`. Absent, the run is byte-identical; the one visible
|
|
623
|
+
* difference is the registered `column-type-mismatch` / `missing-column`
|
|
624
|
+
* rows in the disposition report, filed `not-applicable` — the family's
|
|
625
|
+
* law, not an exception to it.
|
|
626
|
+
*/
|
|
627
|
+
readonly checkColumnTypes?: 'off' | 'warn' | 'enforce';
|
|
565
628
|
/**
|
|
566
629
|
* What a turn does when its ACTION BUDGET runs out mid-task (9.56.0).
|
|
567
630
|
* Default **on**.
|
package/dist/esm/core/tools.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { type ToolWants } from '../artifacts/wants.js';
|
|
|
13
13
|
import type { Credential, CredentialNeed, CredentialProvider } from '../identity/types.js';
|
|
14
14
|
import type { MemoryIdentity } from '../memory/identity/types.js';
|
|
15
15
|
import { type ToolResultClass } from '../lib/semantics/types.js';
|
|
16
|
+
import { assertResultColumns, COLUMN_TYPES, type ColumnDeclaration, type ColumnType, type ToolResultColumns } from '../integrity/column-types/types.js';
|
|
16
17
|
import { type AskComponent } from './askComponent.js';
|
|
17
18
|
import type { CheckInDemand } from './checkin.js';
|
|
18
19
|
import type { TeardownOptions, TeardownScope } from './toolSessions.js';
|
|
@@ -184,6 +185,53 @@ export interface Tool<TArgs = Record<string, unknown>, TResult = unknown> {
|
|
|
184
185
|
* // elsewhere: defineTool({ name: 'chart', wants: { dataset: 'dataset/rows' }, … })
|
|
185
186
|
*/
|
|
186
187
|
readonly resultKind?: string;
|
|
188
|
+
/**
|
|
189
|
+
* WHAT THIS TOOL'S ROWS CONTAIN (9.78.0) — column name to type, the
|
|
190
|
+
* sibling of {@link Tool.resultKind}. `resultKind` says what the result IS;
|
|
191
|
+
* this says what it CONTAINS.
|
|
192
|
+
*
|
|
193
|
+
* THE MEASURED FAILURES, all three the same shape — a number became
|
|
194
|
+
* something else, and nothing noticed at the seam:
|
|
195
|
+
*
|
|
196
|
+
* 1. `str(m.get("logical_unit_number") or "")` — LUN 0 is falsy, so LUN 0
|
|
197
|
+
* was stored as an EMPTY STRING on 2,094 mappings, and a host group
|
|
198
|
+
* missing the LUN an initiator probes first became indistinguishable
|
|
199
|
+
* from one that had it.
|
|
200
|
+
* 2. `round(mib / 1024, 1)` rendered an 8 MiB disk as `0.0 GB`, which
|
|
201
|
+
* reads as NO DISK during a live incident.
|
|
202
|
+
* 3. A family of tools returned their numbers as quoted strings
|
|
203
|
+
* (`"1240"`), which silently blanked every chart, because nothing
|
|
204
|
+
* downstream could tell a measure from a label.
|
|
205
|
+
*
|
|
206
|
+
* Declaring the columns gives the library something to check the rows
|
|
207
|
+
* against. It catches 1 and 3. It cannot catch 2, and says so: the check
|
|
208
|
+
* judges TYPE, never MEANING (see `COLUMN_TYPE_CEILING`, quoted verbatim
|
|
209
|
+
* into every finding).
|
|
210
|
+
*
|
|
211
|
+
* A promise about what it NAMES, never a closed schema — an unlisted column
|
|
212
|
+
* is allowed and never judged. Two spellings: a bare type, or the object
|
|
213
|
+
* form when a column may legitimately hold nothing.
|
|
214
|
+
*
|
|
215
|
+
* ARMED BY TWO HALVES, like every write-seam check: this declaration AND
|
|
216
|
+
* the operator's `checkColumnTypes` dial (default `'off'`). Omitted, or
|
|
217
|
+
* with the dial off → exactly today's bytes; nothing is measured, no
|
|
218
|
+
* finding is filed, and the model reads the rows the tool returned.
|
|
219
|
+
*
|
|
220
|
+
* @example the LUN report that lost its zeroes
|
|
221
|
+
* defineTool({
|
|
222
|
+
* name: 'host_group_mappings',
|
|
223
|
+
* description: 'The LUN mappings of a host group',
|
|
224
|
+
* resultKind: 'dataset/rows',
|
|
225
|
+
* resultColumns: {
|
|
226
|
+
* logical_unit_number: 'number',
|
|
227
|
+
* host_group: 'string',
|
|
228
|
+
* comment: { type: 'string', nullable: true },
|
|
229
|
+
* },
|
|
230
|
+
* inputSchema: { … },
|
|
231
|
+
* execute: async () => [{ logical_unit_number: 0, host_group: 'vdi-a' }],
|
|
232
|
+
* });
|
|
233
|
+
*/
|
|
234
|
+
readonly resultColumns?: ToolResultColumns;
|
|
187
235
|
/**
|
|
188
236
|
* WHO OWNS THIS TOOL (9.60.0) — the identity edge, stamped at the one
|
|
189
237
|
* moment the code demonstrably knows both ends: registration. Before
|
|
@@ -344,6 +392,17 @@ export declare function assertResultCeiling(toolName: string, ceiling: ToolResul
|
|
|
344
392
|
* assembling `Tool` objects by hand.
|
|
345
393
|
*/
|
|
346
394
|
export declare function assertResultClass(toolName: string, resultClass: ToolResultClass | undefined): void;
|
|
395
|
+
/**
|
|
396
|
+
* The COLUMN-TYPE CONTRACT's rule and vocabulary, re-exported HERE.
|
|
397
|
+
*
|
|
398
|
+
* They are DEFINED in `src/integrity/column-types/types.ts`, because
|
|
399
|
+
* `src/integrity/` is a strict leaf that imports nothing outside itself and
|
|
400
|
+
* the check has to be able to read the words. They are re-exported here
|
|
401
|
+
* because `defineTool` and the MCP ingest both reach for their rules through
|
|
402
|
+
* `core/tools.ts` — one door for every declaration's rule, and no second copy
|
|
403
|
+
* of any of them anywhere.
|
|
404
|
+
*/
|
|
405
|
+
export { assertResultColumns, COLUMN_TYPES, type ColumnDeclaration, type ColumnType, type ToolResultColumns, };
|
|
347
406
|
/**
|
|
348
407
|
* Refuse a `resultKind` that could never be redeemed, at definition time —
|
|
349
408
|
* naming the tool and the fix (the `assertResultCeiling` / `assertResultClass`
|
|
@@ -676,6 +735,10 @@ export interface DefineToolOptions<TArgs, TResult> {
|
|
|
676
735
|
* vocabulary (see {@link Tool.resultKind}). Omitted →
|
|
677
736
|
* `tool-result/<name>`, byte-identical. */
|
|
678
737
|
readonly resultKind?: string;
|
|
738
|
+
/** What this tool's ROWS contain — column name to type (see
|
|
739
|
+
* {@link Tool.resultColumns}). Needs the `checkColumnTypes` dial too.
|
|
740
|
+
* Omitted → nothing measured, byte-identical. */
|
|
741
|
+
readonly resultColumns?: ToolResultColumns;
|
|
679
742
|
/** The stamped identity edge — see {@link Tool.owner}. */
|
|
680
743
|
readonly owner?: ToolOwner;
|
|
681
744
|
/** The declared argument grounds — see {@link Tool.argumentsFrom}. */
|
package/dist/esm/core/tools.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { isDevMode } from 'footprintjs';
|
|
10
10
|
import { assertToolWants } from '../artifacts/wants.js';
|
|
11
11
|
import { RESULT_CLASSES } from '../lib/semantics/types.js';
|
|
12
|
+
import { assertResultColumns, COLUMN_TYPES, } from '../integrity/column-types/types.js';
|
|
12
13
|
import { assertAskComponent } from './askComponent.js';
|
|
13
14
|
/**
|
|
14
15
|
* Refuse a `resultCeiling` this library cannot honor, at definition time —
|
|
@@ -60,6 +61,17 @@ export function assertResultClass(toolName, resultClass) {
|
|
|
60
61
|
`still apply to any result carrying the af_semantics marker).`);
|
|
61
62
|
}
|
|
62
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* The COLUMN-TYPE CONTRACT's rule and vocabulary, re-exported HERE.
|
|
66
|
+
*
|
|
67
|
+
* They are DEFINED in `src/integrity/column-types/types.ts`, because
|
|
68
|
+
* `src/integrity/` is a strict leaf that imports nothing outside itself and
|
|
69
|
+
* the check has to be able to read the words. They are re-exported here
|
|
70
|
+
* because `defineTool` and the MCP ingest both reach for their rules through
|
|
71
|
+
* `core/tools.ts` — one door for every declaration's rule, and no second copy
|
|
72
|
+
* of any of them anywhere.
|
|
73
|
+
*/
|
|
74
|
+
export { assertResultColumns, COLUMN_TYPES, };
|
|
63
75
|
/**
|
|
64
76
|
* Refuse a `resultKind` that could never be redeemed, at definition time —
|
|
65
77
|
* naming the tool and the fix (the `assertResultCeiling` / `assertResultClass`
|
|
@@ -270,6 +282,10 @@ export function defineTool(options) {
|
|
|
270
282
|
// A placed-result kind nothing could want fails HERE too — not at the first
|
|
271
283
|
// oversized result of the first run with placement configured.
|
|
272
284
|
assertResultKind(options.name, options.resultKind);
|
|
285
|
+
// A column type this library has no rule for fails HERE too — not at the
|
|
286
|
+
// first rowset of the first armed run, where the symptom would be a check
|
|
287
|
+
// that quietly judges nothing.
|
|
288
|
+
assertResultColumns(options.name, options.resultColumns);
|
|
273
289
|
// A decision component for a gate that never fires is configuration that
|
|
274
290
|
// lies — configured-and-inert looks exactly like configured-and-working
|
|
275
291
|
// (the `.checkIn({ scorer })`-with-minimal-evidence precedent). And a
|
|
@@ -319,6 +335,7 @@ export function defineTool(options) {
|
|
|
319
335
|
...(options.resultCeiling !== undefined && { resultCeiling: options.resultCeiling }),
|
|
320
336
|
...(options.resultClass !== undefined && { resultClass: options.resultClass }),
|
|
321
337
|
...(options.resultKind !== undefined && { resultKind: options.resultKind }),
|
|
338
|
+
...(options.resultColumns !== undefined && { resultColumns: options.resultColumns }),
|
|
322
339
|
...(options.owner !== undefined && { owner: options.owner }),
|
|
323
340
|
...(options.argumentsFrom !== undefined && { argumentsFrom: options.argumentsFrom }),
|
|
324
341
|
...(options.composedOf !== undefined && { composedOf: options.composedOf }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/core/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,OAAO,EAAE,eAAe,EAAkB,MAAM,uBAAuB,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAqB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/core/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,OAAO,EAAE,eAAe,EAAkB,MAAM,uBAAuB,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AACjF,OAAO,EACL,mBAAmB,EACnB,YAAY,GAIb,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAqB,MAAM,mBAAmB,CAAC;AA+W1E;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,QA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EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;QACjF,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC;AACJ,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export type { WriteProvenanceMode } from './core/agent/types.js';
|
|
|
43
43
|
export type { ExternalGroundsProvider } from './core/agent/types.js';
|
|
44
44
|
export type { ExternalGround, ExternalGrounding } from './integrity/unsupported-argument/check.js';
|
|
45
45
|
export { EMPTY_LOOKUP_CEILING, type LookupResultReading } from './integrity/empty-lookup/check.js';
|
|
46
|
+
export { COLUMN_TYPE_CEILING, readRowset, type ColumnCheckMode, type ColumnViolation, type RowsetReading, } from './integrity/column-types/check.js';
|
|
47
|
+
export { COLUMN_TYPES, assertResultColumns, type ColumnDeclaration, type ColumnType, type ToolResultColumns, } from './integrity/column-types/types.js';
|
|
46
48
|
export { OutputSchemaError, applyOutputSchema, type OutputSchemaParser, type OutputSchemaOptions, type OutputSchemaStrategy, } from './core/outputSchema.js';
|
|
47
49
|
export { InvalidRunInputError } from './core/runInput.js';
|
|
48
50
|
export { SCHEMA_CHECK_FRAME_PREFIX, SCHEMA_TOOL_NAME, isSchemaCheckMessage, type OutputAttempt, } from './core/agent/outputEnforcement.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -160,6 +160,17 @@ export { isTruncatedToolResult } from './core/agent/toolResultCap.js';
|
|
|
160
160
|
// read one owner. `LookupResultReading` is what the library could see of a
|
|
161
161
|
// result — the vocabulary behind a `not-applicable` row.
|
|
162
162
|
export { EMPTY_LOOKUP_CEILING } from './integrity/empty-lookup/check.js';
|
|
163
|
+
// The COLUMN-TYPE CONTRACT (9.78.0) — `Tool.resultColumns` +
|
|
164
|
+
// `AgentOptions.checkColumnTypes`. The CEILING is exported for the same
|
|
165
|
+
// reason `EMPTY_LOOKUP_CEILING` is: it is quoted verbatim into every finding,
|
|
166
|
+
// so a consumer rendering findings recognizes the bound instead of re-wording
|
|
167
|
+
// it, and the docs, the code and the tests read one owner. `RowsetReading` is
|
|
168
|
+
// what the library could see of a result — the vocabulary behind a
|
|
169
|
+
// `not-applicable` row.
|
|
170
|
+
export { COLUMN_TYPE_CEILING, readRowset, } from './integrity/column-types/check.js';
|
|
171
|
+
// The declaration's own vocabulary, so an app assembling `Tool` objects by
|
|
172
|
+
// hand (or typing a config) can name the words the library judges by.
|
|
173
|
+
export { COLUMN_TYPES, assertResultColumns, } from './integrity/column-types/types.js';
|
|
163
174
|
export { OutputSchemaError, applyOutputSchema, } from './core/outputSchema.js';
|
|
164
175
|
// 8.18.0 — the input boundary every runner's `run()` goes through. A bare
|
|
165
176
|
// string IS the message (`run('go')` ≡ `run({ message: 'go' })`); anything
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,oEAAoE;AACpE,8DAA8D;AAC9D,uEAAuE;AACvE,kEAAkE;AAClE,sEAAsE;AACtE,sDAAsD;AACtD,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,4CAA4C,CAAC;AAsCpD,6BAA6B;AAC7B,cAAc,qBAAqB,CAAC;AAEpC,yEAAyE;AACzE,uDAAuD;AACvD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc;AAEd,yEAAyE;AACzE,wEAAwE;AACxE,yEAAyE;AACzE,gBAAgB;AAChB,SAAS;AAET,2EAA2E;AAC3E,6EAA6E;AAC7E,6EAA6E;AAC7E,6DAA6D;AAC7D,YAAY;AAGZ,8EAA8E;AAC9E,6EAA6E;AAC7E,4EAA4E;AAC5E,yEAAyE;AACzE,4EAA4E;AAC5E,uCAAuC;AACvC,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,oEAAoE;AACpE,yEAAyE;AACzE,wEAAwE;AACxE,qEAAqE;AACrE,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AqE;AACrE,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,wEAAwE;AACxE,gEAAgE;AAChE,gEAAgE;AAChE,6CAA6C;AAC7C,EAAE;AACF,2FAA2F;AAC3F,wFAAwF;AAExF,OAAO,EACL,eAAe,GAIhB,MAAM,kCAAkC,CAAC;AAE1C,+DAA+D;AAE/D,oEAAoE;AACpE,gEAAgE;AAEhE,qEAAqE;AACrE,0DAA0D;AAC1D,cAAc,qBAAqB,CAAC;AAEpC,uEAAuE;AACvE,uEAAuE;AACvE,oEAAoE;AACpE,sEAAsE;AACtE,8CAA8C;AAE9C,wEAAwE;AACxE,sEAAsE;AACtE,sEAAsE;AACtE,OAAO,EACL,SAAS,EACT,uBAAuB,EAEvB,cAAc,GAGf,MAAM,oBAAoB,CAAC;AAE5B,yEAAyE;AACzE,0EAA0E;AAC1E,qEAAqE;AACrE,iEAAiE;AACjE,OAAO,EACL,IAAI,GAML,MAAM,6BAA6B,CAAC;AAErC,qEAAqE;AACrE,wEAAwE;AACxE,uEAAuE;AACvE,oEAAoE;AACpE,yDAAyD;AACzD,wEAAwE;AACxE,gDAAgD;AAChD,wEAAwE;AACxE,gEAAgE;AAEhE,wEAAwE;AACxE,wEAAwE;AACxE,uDAAuD;AAEvD,mEAAmE;AACnE,oEAAoE;AACpE,sDAAsD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,oEAAoE;AACpE,8DAA8D;AAC9D,uEAAuE;AACvE,kEAAkE;AAClE,sEAAsE;AACtE,sDAAsD;AACtD,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,4CAA4C,CAAC;AAsCpD,6BAA6B;AAC7B,cAAc,qBAAqB,CAAC;AAEpC,yEAAyE;AACzE,uDAAuD;AACvD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc;AAEd,yEAAyE;AACzE,wEAAwE;AACx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E;AACvE,oEAAoE;AACpE,yDAAyD;AACzD,wEAAwE;AACxE,gDAAgD;AAChD,wEAAwE;AACxE,gEAAgE;AAEhE,wEAAwE;AACxE,wEAAwE;AACxE,uDAAuD;AAEvD,mEAAmE;AACnE,oEAAoE;AACpE,sDAAsD"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* column-types — the tool declared what its rows contain, and the rows say
|
|
3
|
+
* otherwise. Filed at the WRITE seam, at the moment the tool answers.
|
|
4
|
+
*
|
|
5
|
+
* Pattern: pure function over (one declaration, one finished rowset); the
|
|
6
|
+
* SHAPE check, one storey below `empty-lookup` — that one asks
|
|
7
|
+
* whether the answer had any rows, this one asks what is in them.
|
|
8
|
+
* Role: the decidable fragment of "is this rowset the rowset it claims to
|
|
9
|
+
* be?".
|
|
10
|
+
*
|
|
11
|
+
* ── THE MEASURED FAILURES. Three, and they are one shape ────────────────
|
|
12
|
+
*
|
|
13
|
+
* 1. A mapping report wrote `str(m.get("logical_unit_number") or "")`. LUN 0
|
|
14
|
+
* is falsy, so on 2,094 mappings LUN 0 was stored as an EMPTY STRING —
|
|
15
|
+
* and a host group missing the LUN an initiator probes first became
|
|
16
|
+
* indistinguishable from one that had it. The column was numeric; the
|
|
17
|
+
* value was `''`; nothing anywhere disagreed.
|
|
18
|
+
* 2. A capacity view rendered `round(mib / 1024, 1)`, so an 8 MiB disk came
|
|
19
|
+
* out as `0.0 GB` — which reads as NO DISK, i.e. a provisioning failure,
|
|
20
|
+
* during a live desktop-fleet incident.
|
|
21
|
+
* 3. Earlier in the same application, a whole family of tools returned their
|
|
22
|
+
* numbers as quoted strings (`"1240"`). Every chart silently went blank,
|
|
23
|
+
* because nothing downstream could tell a measure from a label.
|
|
24
|
+
*
|
|
25
|
+
* All three are "a number became something else, and nothing noticed at the
|
|
26
|
+
* seam". The library already lets a tool declare what its result IS
|
|
27
|
+
* (`resultKind`, 9.70.0). It did not let a tool declare what its result
|
|
28
|
+
* CONTAINS, so there was nothing for a rowset to be wrong against.
|
|
29
|
+
*
|
|
30
|
+
* ── THE CEILING, and case 2 is the whole argument for stating it ────────
|
|
31
|
+
* This judges TYPE, never MEANING. It can see that a column declared
|
|
32
|
+
* `number` holds a string. It can NEVER see that the string should have been
|
|
33
|
+
* `0`, or that `0.0` should have been `0.0078`. Case 2 above passes this
|
|
34
|
+
* check cleanly — `0.0` is a perfectly good number — and the check says so
|
|
35
|
+
* out loud rather than letting a green row imply otherwise. The ceiling ships
|
|
36
|
+
* as {@link COLUMN_TYPE_CEILING} and is quoted verbatim into every finding,
|
|
37
|
+
* the `EMPTY_LOOKUP_CEILING` law: one owner for the bound, so it cannot drift
|
|
38
|
+
* out of a message and leave a reader believing the library knows more than
|
|
39
|
+
* it does.
|
|
40
|
+
*
|
|
41
|
+
* ── TWO FINDINGS, because the field bug turned on the difference ────────
|
|
42
|
+
* • `column-type-mismatch` — the column is THERE and holds the wrong thing.
|
|
43
|
+
* Cases 1 and 3.
|
|
44
|
+
* • `missing-column` — the column the author declared is in NO row of the
|
|
45
|
+
* result. Nothing to type-check; the promise was broken one level up.
|
|
46
|
+
* Collapsing them would recreate the exact ambiguity the LUN report died of:
|
|
47
|
+
* "the value is not what it should be" and "the value is not there" send a
|
|
48
|
+
* person to two different files, and a checker that says only "something is
|
|
49
|
+
* off with logical_unit_number" has helped with neither.
|
|
50
|
+
*
|
|
51
|
+
* ── DECLARED, NEVER INFERRED ────────────────────────────────────────────
|
|
52
|
+
* A tool is this check's subject only because its author wrote
|
|
53
|
+
* `resultColumns`. Nothing here sniffs a type off the data — sniffing is
|
|
54
|
+
* precisely what the consumers do today, and precisely what produced the
|
|
55
|
+
* failures above: one stray `''` demotes a numeric column to text, and the
|
|
56
|
+
* demotion is silent.
|
|
57
|
+
*
|
|
58
|
+
* ── WHAT IS NOT JUDGED ──────────────────────────────────────────────────
|
|
59
|
+
* See {@link readRowset}. A result is read only when it is an array of plain
|
|
60
|
+
* objects with at least one row. Everything else — prose, a `null`, a bespoke
|
|
61
|
+
* `{ rows: [...] }` wrapper, a claim ticket, AND the zero-row result — is
|
|
62
|
+
* `not-applicable`, filed as a ROW. The zero-row case belongs to the
|
|
63
|
+
* neighbour (`empty-lookup`) and is deliberately not stolen: an empty result
|
|
64
|
+
* has no columns to be wrong about, and filing `missing-column` for every
|
|
65
|
+
* declared column of an empty answer would turn one honest emptiness into a
|
|
66
|
+
* pile of false accusations.
|
|
67
|
+
*/
|
|
68
|
+
import type { Disposition } from '../disposition/types.js';
|
|
69
|
+
import type { ContextError } from '../finding/types.js';
|
|
70
|
+
import { type ColumnType, type ToolResultColumns } from './types.js';
|
|
71
|
+
/**
|
|
72
|
+
* THE CEILING, as one string with one owner.
|
|
73
|
+
*
|
|
74
|
+
* Quoted verbatim into every finding's message, into this folder's README and
|
|
75
|
+
* into the docs page, so the bound cannot drift out of one of them.
|
|
76
|
+
*/
|
|
77
|
+
export declare const COLUMN_TYPE_CEILING: string;
|
|
78
|
+
/** How the boundary was told to act on what this finds. */
|
|
79
|
+
export type ColumnCheckMode = 'warn' | 'enforce';
|
|
80
|
+
/**
|
|
81
|
+
* What the library could read about a finished result: the rows, or nothing.
|
|
82
|
+
*
|
|
83
|
+
* Deliberately thin. The check needs the rows and nothing else, and a reading
|
|
84
|
+
* that carried a verdict would be this file judging in two places.
|
|
85
|
+
*/
|
|
86
|
+
export interface RowsetReading {
|
|
87
|
+
readonly rows: readonly Readonly<Record<string, unknown>>[];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* READ a finished result as a rowset, or decline to.
|
|
91
|
+
*
|
|
92
|
+
* The one readable shape, and why only this one: an ARRAY OF PLAIN OBJECTS
|
|
93
|
+
* with at least one row. That is what a rowset is on this wire, it is what
|
|
94
|
+
* every consumer named in the docs page already expects, and it is the same
|
|
95
|
+
* `Array.isArray` law the neighbouring check reads by — the two must never
|
|
96
|
+
* disagree about what a rowset is.
|
|
97
|
+
*
|
|
98
|
+
* `undefined` (⇒ `not-applicable`, a ROW) for everything else:
|
|
99
|
+
* • a non-array — prose, a `null`, a `{ rows: [...] }` wrapper, a ticket;
|
|
100
|
+
* • an array holding anything that is not a plain object — a list of
|
|
101
|
+
* strings has no columns, and inventing some is how a checker starts
|
|
102
|
+
* lying;
|
|
103
|
+
* • an array of ZERO rows — an empty answer has no columns to be wrong
|
|
104
|
+
* about, and it is the neighbour's subject, not this one's.
|
|
105
|
+
*/
|
|
106
|
+
export declare function readRowset(value: unknown): RowsetReading | undefined;
|
|
107
|
+
/** One finished call to a tool whose author declared its result's columns. */
|
|
108
|
+
export interface ColumnTypesCall {
|
|
109
|
+
readonly toolName: string;
|
|
110
|
+
/** The provider's id for this call — what the witness points a reader at. */
|
|
111
|
+
readonly toolCallId: string;
|
|
112
|
+
/** `Tool.resultColumns`, exactly as the author wrote it. */
|
|
113
|
+
readonly columns: ToolResultColumns;
|
|
114
|
+
/** What the library could read of the result — `undefined` = not a rowset. */
|
|
115
|
+
readonly reading: RowsetReading | undefined;
|
|
116
|
+
/** What the boundary will do with a finding — carried so the message can
|
|
117
|
+
* say what actually happened rather than guess. */
|
|
118
|
+
readonly mode: ColumnCheckMode;
|
|
119
|
+
}
|
|
120
|
+
/** One declared column the rows disagreed with. */
|
|
121
|
+
export interface ColumnViolation {
|
|
122
|
+
readonly column: string;
|
|
123
|
+
readonly declared: ColumnType;
|
|
124
|
+
/** How many rows hold something that is not the declared type. */
|
|
125
|
+
readonly rows: number;
|
|
126
|
+
/** Total rows read, so a reader can see 3-of-4 rather than a bare 3. */
|
|
127
|
+
readonly ofRows: number;
|
|
128
|
+
/** The first offending value, rendered and clipped — what a person recognizes. */
|
|
129
|
+
readonly sample: string;
|
|
130
|
+
/** What that first offending value actually is (`string`, `null`, `missing`, …). */
|
|
131
|
+
readonly got: string;
|
|
132
|
+
}
|
|
133
|
+
/** One encounter's outcome: the findings, the ledger row, and — under
|
|
134
|
+
* `enforce` — the sentence that replaces the payload. */
|
|
135
|
+
export interface ColumnTypesEncounter {
|
|
136
|
+
readonly findings: readonly ContextError[];
|
|
137
|
+
/** Computed HERE, beside the rules that decide it, so "the library refused
|
|
138
|
+
* to judge this shape" is provable without a live agent. */
|
|
139
|
+
readonly disposition: Disposition;
|
|
140
|
+
/**
|
|
141
|
+
* The teaching refusal, present ONLY under `mode: 'enforce'` with at least
|
|
142
|
+
* one finding. The `applyResultCeiling` idiom, for the same reason: the
|
|
143
|
+
* model reads a sentence that says what was wrong and how to fix it, never
|
|
144
|
+
* a stack trace and never a truncated result that reads as complete.
|
|
145
|
+
*/
|
|
146
|
+
readonly refusal?: string;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Judge one finished call to a tool that declared its result's columns.
|
|
150
|
+
*
|
|
151
|
+
* @param call the call, the declaration, and what the library could read of
|
|
152
|
+
* the result. The caller has already established the tool declared
|
|
153
|
+
* `resultColumns` and that the dial is on; nothing here re-decides arming.
|
|
154
|
+
* @param epoch the run iteration, stamped on every witness.
|
|
155
|
+
*/
|
|
156
|
+
export declare function columnTypesOf(call: ColumnTypesCall, epoch: number): ColumnTypesEncounter;
|