agentskeptic 5.0.0 → 6.0.1
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/actionableFailure.remediationExhaustive.test.js +1 -1
- package/dist/bootstrap/runBootstrapSubcommand.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commercial/trustDecisionRecord.schema.test.js +23 -3
- package/dist/commercial/trustDecisionRecord.schema.test.js.map +1 -1
- package/dist/compare.acceptance.test.js +1 -1
- package/dist/decisionEvidenceBundle/validateDecisionEvidenceBundle.js +1 -1
- package/dist/decisionEvidenceBundle/writeDecisionEvidenceBundle.js +1 -1
- package/dist/decisionEvidenceBundle.test.js +40 -3
- package/dist/decisionEvidenceBundle.test.js.map +1 -1
- package/dist/decisionGate.js +1 -1
- package/dist/evidenceCompleteness.d.ts.map +1 -1
- package/dist/evidenceCompleteness.js +2 -24
- package/dist/evidenceCompleteness.js.map +1 -1
- package/dist/execution-identity.v1.json +1 -1
- package/dist/failureSpine.d.ts +37 -0
- package/dist/failureSpine.d.ts.map +1 -0
- package/dist/failureSpine.js +218 -0
- package/dist/failureSpine.js.map +1 -0
- package/dist/failureSpine.test.d.ts +2 -0
- package/dist/failureSpine.test.d.ts.map +1 -0
- package/dist/failureSpine.test.js +28 -0
- package/dist/failureSpine.test.js.map +1 -0
- package/dist/formatFailureSpineHuman.d.ts +4 -0
- package/dist/formatFailureSpineHuman.d.ts.map +1 -0
- package/dist/formatFailureSpineHuman.js +18 -0
- package/dist/formatFailureSpineHuman.js.map +1 -0
- package/dist/governanceEvidence.test.js +21 -2
- package/dist/governanceEvidence.test.js.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/langGraphCheckpointTrustGate.js +1 -1
- package/dist/langGraphCheckpointTrustIneligibleCertificate.js +1 -1
- package/dist/outcomeCertificate.d.ts +16 -12
- package/dist/outcomeCertificate.d.ts.map +1 -1
- package/dist/outcomeCertificate.js +50 -10
- package/dist/outcomeCertificate.js.map +1 -1
- package/dist/outcomeCertificate.test.js +1 -1
- package/dist/publicDistribution.generated.d.ts +1 -1
- package/dist/publicDistribution.generated.js +1 -1
- package/dist/quickVerify/quickParamPointerNegatives.test.js +5 -2
- package/dist/quickVerify/quickParamPointerNegatives.test.js.map +1 -1
- package/dist/quickVerify/quickParamPointerPromotionGoldens.test.js +7 -4
- package/dist/quickVerify/quickParamPointerPromotionGoldens.test.js.map +1 -1
- package/dist/remediationConsumptionGuard.test.js +2 -0
- package/dist/remediationConsumptionGuard.test.js.map +1 -1
- package/dist/remediationMessage.d.ts +6 -0
- package/dist/remediationMessage.d.ts.map +1 -0
- package/dist/remediationMessage.js +30 -0
- package/dist/remediationMessage.js.map +1 -0
- package/dist/remediationWireSurfaceGuard.test.js +2 -0
- package/dist/remediationWireSurfaceGuard.test.js.map +1 -1
- package/dist/schemaLoad.d.ts +1 -1
- package/dist/schemaLoad.d.ts.map +1 -1
- package/dist/schemaLoad.js +13 -3
- package/dist/schemaLoad.js.map +1 -1
- package/dist/shareReport/postPublicVerificationReport.d.ts +3 -3
- package/dist/shareReport/postPublicVerificationReport.js +1 -1
- package/dist/shareReport/postPublicVerificationReport.js.map +1 -1
- package/dist/standardVerifyWorkflowCli.d.ts +7 -7
- package/dist/standardVerifyWorkflowCli.js +3 -3
- package/dist/trustDecision.d.ts +7 -2
- package/dist/trustDecision.d.ts.map +1 -1
- package/dist/trustDecision.js +14 -7
- package/dist/trustDecision.js.map +1 -1
- package/dist/verify/batchVerifyTelemetrySubcommand.js +2 -2
- package/package.json +1 -1
- package/schemas/failure-spine-v1.schema.json +38 -0
- package/schemas/openapi-commercial-v1.in.yaml +1 -1
- package/schemas/openapi-commercial-v1.yaml +2 -2
- package/schemas/outcome-certificate-v3.schema.json +97 -0
- package/schemas/public-verification-report-v3.schema.json +1 -1
- package/schemas/regression-artifact-v1.schema.json +1 -1
- package/scripts/discovery-payload.lib.cjs +140 -18
- package/scripts/emit-primary-marketing.cjs +36 -0
|
@@ -7,6 +7,9 @@ import { buildQuickContractEventsNdjson } from "./buildQuickContractEventsNdjson
|
|
|
7
7
|
import { stableStringify } from "./canonicalJson.js";
|
|
8
8
|
const root = join(dirname(fileURLToPath(import.meta.url)), "..", "..");
|
|
9
9
|
const dbPath = join(root, "test/fixtures/quick-param-pointer/pointer-promotion.sqlite");
|
|
10
|
+
function readGolden(path) {
|
|
11
|
+
return readFileSync(path, "utf8").replace(/\r\n/g, "\n");
|
|
12
|
+
}
|
|
10
13
|
const promoLine = JSON.stringify({
|
|
11
14
|
toolId: "aa.save",
|
|
12
15
|
params: { contacts: { idid: "c_ok", name: "Alice", status: "active" } },
|
|
@@ -19,16 +22,16 @@ describe("quick param pointer promotion goldens", () => {
|
|
|
19
22
|
});
|
|
20
23
|
const row = report.units.find((u) => u.kind === "row");
|
|
21
24
|
expect(row?.contractEligible).toBe(true);
|
|
22
|
-
expect(
|
|
25
|
+
expect(readGolden(join(root, "test/golden/quick-param-pointer/v1/export.tools.json"))).toBe(registryUtf8);
|
|
23
26
|
const events = buildQuickContractEventsNdjson({ workflowId: "quick-verify", exports: contractExports });
|
|
24
|
-
expect(
|
|
25
|
-
expect(
|
|
27
|
+
expect(readGolden(join(root, "test/golden/quick-param-pointer/v1/contract.events.ndjson"))).toBe(events);
|
|
28
|
+
expect(readGolden(join(root, "test/golden/quick-param-pointer/v1/quick.stdout.promoted.jsonline"))).toBe(quickReportToStdoutLine(report));
|
|
26
29
|
const slice = {
|
|
27
30
|
confidence: row?.confidence,
|
|
28
31
|
reasonCodes: row?.reasonCodes,
|
|
29
32
|
inference: row?.inference,
|
|
30
33
|
};
|
|
31
|
-
expect(
|
|
34
|
+
expect(readGolden(join(root, "test/golden/quick-param-pointer/v1/expected.unit-row-slice.json"))).toBe(stableStringify(slice) + "\n");
|
|
32
35
|
});
|
|
33
36
|
});
|
|
34
37
|
//# sourceMappingURL=quickParamPointerPromotionGoldens.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quickParamPointerPromotionGoldens.test.js","sourceRoot":"","sources":["../../src/quickVerify/quickParamPointerPromotionGoldens.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACvE,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,EAAE,4DAA4D,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"quickParamPointerPromotionGoldens.test.js","sourceRoot":"","sources":["../../src/quickVerify/quickParamPointerPromotionGoldens.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC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E,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;QACxG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,2DAA2D,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,mEAAmE,CAAC,CAAC,CAAC,CAAC,IAAI,CACtG,uBAAuB,CAAC,MAAM,CAAC,CAChC,CAAC;QACF,MAAM,KAAK,GAAG;YACZ,UAAU,EAAE,GAAG,EAAE,UAAU;YAC3B,WAAW,EAAE,GAAG,EAAE,WAAW;YAC7B,SAAS,EAAE,GAAG,EAAE,SAAS;SAC1B,CAAC;QACF,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,iEAAiE,CAAC,CAAC,CAAC,CAAC,IAAI,CACpG,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,CAC9B,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -12,6 +12,8 @@ const PROPERTY_ACCESS_ALLOWLIST = new Set([
|
|
|
12
12
|
"src/workflowTruthReport.ts",
|
|
13
13
|
"src/runComparison.ts",
|
|
14
14
|
"src/evidenceCompleteness.ts",
|
|
15
|
+
"src/failureSpine.ts",
|
|
16
|
+
"src/formatFailureSpineHuman.ts",
|
|
15
17
|
]);
|
|
16
18
|
const propAccessRecommended = /\.(\s*)recommendedAction\b/;
|
|
17
19
|
const propAccessSafe = /\.(\s*)automationSafe\b/;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remediationConsumptionGuard.test.js","sourceRoot":"","sources":["../src/remediationConsumptionGuard.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM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
export declare function remediationMessageForRecommendedAction(code: RecommendedActionCode): string;
|
|
6
|
+
//# sourceMappingURL=remediationMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remediationMessage.d.ts","sourceRoot":"","sources":["../src/remediationMessage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA2BxD,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,CAE1F"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sole user-visible rerun / remediation line text per RecommendedActionCode (SSOT).
|
|
3
|
+
*/
|
|
4
|
+
const REMEDIATION_BY_CODE = {
|
|
5
|
+
none: "No further verification action is required for this outcome under the configured rules.",
|
|
6
|
+
manual_review: "Review the evidence completeness block and workflow truth report, then decide on a manual fix path.",
|
|
7
|
+
deduplicate: "Resolve duplicate or conflicting rows that matched the same verification key, then rerun verify.",
|
|
8
|
+
reconcile_downstream_state: "Fix downstream database or service state to match declared expectations, then rerun verify.",
|
|
9
|
+
correct_verification_inputs: "Correct registry, events, or tool parameters so expectations resolve, then rerun verify.",
|
|
10
|
+
improve_read_connectivity: "Restore read-only database or witness connectivity and credentials, then rerun verify.",
|
|
11
|
+
resolve_multi_effect_failures: "Align multi-effect registry coverage or split steps so each effect is verifiable, then rerun verify.",
|
|
12
|
+
align_tool_observations: "Align repeated tool observations so canonical params agree, then rerun verify.",
|
|
13
|
+
fix_event_ingest_and_steps: "Repair NDJSON event capture so each line is schema-valid tool_observed for this workflow, then rerun verify.",
|
|
14
|
+
fix_event_sequence_order: "Fix capture ordering or timestamps so the event sequence is coherent, then rerun verify.",
|
|
15
|
+
fix_run_context_controls: "Fix model/retrieval/control ordering so observations are fairly evaluated, then rerun verify.",
|
|
16
|
+
fix_cli_usage: "Fix CLI flags or paths (events, registry, database URL), then rerun verify.",
|
|
17
|
+
fix_registry_events_or_compare_files: "Align registry JSON with events and database, then rerun verify.",
|
|
18
|
+
fix_verification_database_connection: "Point verify at a reachable read-only database URL (not SQLite file mode for remote witnesses), then rerun verify.",
|
|
19
|
+
fix_saved_workflow_json: "Repair saved workflow JSON used for compare or replay, then rerun verify.",
|
|
20
|
+
fix_compare_workflow_inputs: "Fix compare inputs so both runs are compatible, then rerun compare.",
|
|
21
|
+
fix_execution_trace_structure: "Repair execution trace structure used for analysis, then retry.",
|
|
22
|
+
fix_verification_policy_and_hook: "Adjust verification policy timing or hooks, then rerun verify.",
|
|
23
|
+
fix_plan_document_and_patterns: "Fix plan document patterns referenced by plan-transition verification.",
|
|
24
|
+
fix_plan_transition_cli_and_refs: "Fix plan-transition CLI arguments and git refs, then rerun.",
|
|
25
|
+
upgrade_git_or_retry_git: "Upgrade git tooling or retry after git transient errors.",
|
|
26
|
+
};
|
|
27
|
+
export function remediationMessageForRecommendedAction(code) {
|
|
28
|
+
return REMEDIATION_BY_CODE[code] ?? REMEDIATION_BY_CODE.manual_review;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=remediationMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remediationMessage.js","sourceRoot":"","sources":["../src/remediationMessage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,mBAAmB,GAA0C;IACjE,IAAI,EAAE,yFAAyF;IAC/F,aAAa,EAAE,qGAAqG;IACpH,WAAW,EAAE,kGAAkG;IAC/G,0BAA0B,EAAE,6FAA6F;IACzH,2BAA2B,EAAE,0FAA0F;IACvH,yBAAyB,EAAE,wFAAwF;IACnH,6BAA6B,EAAE,sGAAsG;IACrI,uBAAuB,EAAE,gFAAgF;IACzG,0BAA0B,EAAE,8GAA8G;IAC1I,wBAAwB,EAAE,0FAA0F;IACpH,wBAAwB,EAAE,+FAA+F;IACzH,aAAa,EAAE,6EAA6E;IAC5F,oCAAoC,EAAE,kEAAkE;IACxG,oCAAoC,EAClC,oHAAoH;IACtH,uBAAuB,EAAE,2EAA2E;IACpG,2BAA2B,EAAE,qEAAqE;IAClG,6BAA6B,EAAE,iEAAiE;IAChG,gCAAgC,EAAE,gEAAgE;IAClG,8BAA8B,EAAE,wEAAwE;IACxG,gCAAgC,EAAE,6DAA6D;IAC/F,wBAAwB,EAAE,0DAA0D;CACrF,CAAC;AAEF,MAAM,UAAU,sCAAsC,CAAC,IAA2B;IAChF,OAAO,mBAAmB,CAAC,IAAI,CAAC,IAAI,mBAAmB,CAAC,aAAa,CAAC;AACxE,CAAC"}
|
|
@@ -12,6 +12,8 @@ const ALLOWLIST = new Set([
|
|
|
12
12
|
"src/workflowTruthReport.ts",
|
|
13
13
|
"src/runComparison.ts",
|
|
14
14
|
"src/evidenceCompleteness.ts",
|
|
15
|
+
"src/failureSpine.ts",
|
|
16
|
+
"src/formatFailureSpineHuman.ts",
|
|
15
17
|
]);
|
|
16
18
|
function listProductionTsFiles(dir, out = []) {
|
|
17
19
|
for (const ent of readdirSync(dir, { withFileTypes: true })) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remediationWireSurfaceGuard.test.js","sourceRoot":"","sources":["../src/remediationWireSurfaceGuard.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAY,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAEvC,MAAM,SAAS,GAAG,IAAI,GAAG,CAA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CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACtF,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,QAAQ,CAAC,wCAAwC,EAAE,GAAG,EAAE;IACtD,EAAE,CAAC,sFAAsF,EAAE,GAAG,EAAE;QAC9F,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACrC,KAAK,MAAM,GAAG,IAAI,qBAAqB,CAAC,MAAM,CAAC,EAAE,CAAC;YAChD,MAAM,GAAG,GAAG,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;YACxD,MAAM,IAAI,GAAG,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YACvC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC;gBAAE,SAAS;YAClD,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/schemaLoad.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ValidateFunction } from "ajv/dist/2020.js";
|
|
2
2
|
export declare function schemasDir(): string;
|
|
3
|
-
export type SchemaValidatorName = "agent-run-record-v1" | "agent-run-record-v2" | "workflow-result-signature" | "event" | "execution-trace-view" | "tools-registry" | "workflow-engine-result" | "workflow-truth-report" | "workflow-result" | "workflow-result-v9" | "workflow-result-compare-input" | "run-comparison-report" | "registry-validation-result" | "cli-error-envelope" | "plan-validation-core" | "quick-verify-report" | "tools-registry-export" | "ci-lock-v1" | "assurance-manifest-v1" | "assurance-run-report-v1" | "assurance-output-v1" | "public-verification-report-v1" | "public-verification-report-v2" | "public-verification-report-v3" | "evidence-completeness-v1" | "outcome-certificate-v1" | "outcome-certificate-v2" | "compare-run-manifest-v1" | "regression-artifact-v1" | "bootstrap-pack-input-v1" | "openai-function-tool-call-item-v1" | "contract-manifest" | "local-run-history-index-v1" | "trust-decision-record-v1" | "trust-certificate-snapshot-v1" | "material-truth-v1" | "material-truth-v2" | "decision-evidence-bundle-manifest-v1" | "decision-evidence-human-layer-v1" | "decision-evidence-exit-v1" | "decision-evidence-attestation-v1" | "decision-evidence-next-action-v1" | "decision-bundle-validation-v1" | "activation-manifest-v1";
|
|
3
|
+
export type SchemaValidatorName = "agent-run-record-v1" | "agent-run-record-v2" | "workflow-result-signature" | "event" | "execution-trace-view" | "tools-registry" | "workflow-engine-result" | "workflow-truth-report" | "workflow-result" | "workflow-result-v9" | "workflow-result-compare-input" | "run-comparison-report" | "registry-validation-result" | "cli-error-envelope" | "plan-validation-core" | "quick-verify-report" | "tools-registry-export" | "ci-lock-v1" | "assurance-manifest-v1" | "assurance-run-report-v1" | "assurance-output-v1" | "public-verification-report-v1" | "public-verification-report-v2" | "public-verification-report-v3" | "evidence-completeness-v1" | "outcome-certificate-v1" | "outcome-certificate-v2" | "outcome-certificate-v3" | "failure-spine-v1" | "compare-run-manifest-v1" | "regression-artifact-v1" | "bootstrap-pack-input-v1" | "openai-function-tool-call-item-v1" | "contract-manifest" | "local-run-history-index-v1" | "trust-decision-record-v1" | "trust-certificate-snapshot-v1" | "material-truth-v1" | "material-truth-v2" | "decision-evidence-bundle-manifest-v1" | "decision-evidence-human-layer-v1" | "decision-evidence-exit-v1" | "decision-evidence-attestation-v1" | "decision-evidence-next-action-v1" | "decision-bundle-validation-v1" | "activation-manifest-v1";
|
|
4
4
|
export declare function loadSchemaValidator(name: SchemaValidatorName): ValidateFunction;
|
|
5
5
|
//# sourceMappingURL=schemaLoad.d.ts.map
|
package/dist/schemaLoad.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaLoad.d.ts","sourceRoot":"","sources":["../src/schemaLoad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AA6ClE,wBAAgB,UAAU,IAAI,MAAM,CAKnC;AAaD,MAAM,MAAM,mBAAmB,GAC3B,qBAAqB,GACrB,qBAAqB,GACrB,2BAA2B,GAC3B,OAAO,GACP,sBAAsB,GACtB,gBAAgB,GAChB,wBAAwB,GACxB,uBAAuB,GACvB,iBAAiB,GACjB,oBAAoB,GACpB,+BAA+B,GAC/B,uBAAuB,GACvB,4BAA4B,GAC5B,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,uBAAuB,GACvB,YAAY,GACZ,uBAAuB,GACvB,yBAAyB,GACzB,qBAAqB,GACrB,+BAA+B,GAC/B,+BAA+B,GAC/B,+BAA+B,GAC/B,0BAA0B,GAC1B,wBAAwB,GACxB,wBAAwB,GACxB,yBAAyB,GACzB,wBAAwB,GACxB,yBAAyB,GACzB,mCAAmC,GACnC,mBAAmB,GACnB,4BAA4B,GAC5B,0BAA0B,GAC1B,+BAA+B,GAC/B,mBAAmB,GACnB,mBAAmB,GACnB,sCAAsC,GACtC,kCAAkC,GAClC,2BAA2B,GAC3B,kCAAkC,GAClC,kCAAkC,GAClC,+BAA+B,GAC/B,wBAAwB,CAAC;AA0C7B,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"schemaLoad.d.ts","sourceRoot":"","sources":["../src/schemaLoad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AA6ClE,wBAAgB,UAAU,IAAI,MAAM,CAKnC;AAaD,MAAM,MAAM,mBAAmB,GAC3B,qBAAqB,GACrB,qBAAqB,GACrB,2BAA2B,GAC3B,OAAO,GACP,sBAAsB,GACtB,gBAAgB,GAChB,wBAAwB,GACxB,uBAAuB,GACvB,iBAAiB,GACjB,oBAAoB,GACpB,+BAA+B,GAC/B,uBAAuB,GACvB,4BAA4B,GAC5B,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,uBAAuB,GACvB,YAAY,GACZ,uBAAuB,GACvB,yBAAyB,GACzB,qBAAqB,GACrB,+BAA+B,GAC/B,+BAA+B,GAC/B,+BAA+B,GAC/B,0BAA0B,GAC1B,wBAAwB,GACxB,wBAAwB,GACxB,wBAAwB,GACxB,kBAAkB,GAClB,yBAAyB,GACzB,wBAAwB,GACxB,yBAAyB,GACzB,mCAAmC,GACnC,mBAAmB,GACnB,4BAA4B,GAC5B,0BAA0B,GAC1B,+BAA+B,GAC/B,mBAAmB,GACnB,mBAAmB,GACnB,sCAAsC,GACtC,kCAAkC,GAClC,2BAA2B,GAC3B,kCAAkC,GAClC,kCAAkC,GAClC,+BAA+B,GAC/B,wBAAwB,CAAC;AA0C7B,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,GAAG,gBAAgB,CAiI/E"}
|
package/dist/schemaLoad.js
CHANGED
|
@@ -131,6 +131,14 @@ export function loadSchemaValidator(name) {
|
|
|
131
131
|
case "outcome-certificate-v2":
|
|
132
132
|
compileSchemaFile("evidence-completeness-v1", "evidence-completeness-v1.schema.json");
|
|
133
133
|
return compileSchemaFile(name, "outcome-certificate-v2.schema.json");
|
|
134
|
+
case "failure-spine-v1":
|
|
135
|
+
ensureWorkflowTruthForWireRefs();
|
|
136
|
+
return compileSchemaFile(name, "failure-spine-v1.schema.json");
|
|
137
|
+
case "outcome-certificate-v3":
|
|
138
|
+
compileSchemaFile("evidence-completeness-v1", "evidence-completeness-v1.schema.json");
|
|
139
|
+
ensureWorkflowTruthForWireRefs();
|
|
140
|
+
compileSchemaFile("failure-spine-v1", "failure-spine-v1.schema.json");
|
|
141
|
+
return compileSchemaFile(name, "outcome-certificate-v3.schema.json");
|
|
134
142
|
case "quick-verify-report":
|
|
135
143
|
compileSchemaFile("evidence-completeness-v1", "evidence-completeness-v1.schema.json");
|
|
136
144
|
ensureWorkflowEmittedDependencies();
|
|
@@ -158,8 +166,9 @@ export function loadSchemaValidator(name) {
|
|
|
158
166
|
return compileSchemaFile(name, "compare-run-manifest-v1.schema.json");
|
|
159
167
|
case "regression-artifact-v1":
|
|
160
168
|
compileSchemaFile("evidence-completeness-v1", "evidence-completeness-v1.schema.json");
|
|
161
|
-
compileSchemaFile("outcome-certificate-v2", "outcome-certificate-v2.schema.json");
|
|
162
169
|
ensureWorkflowTruthForWireRefs();
|
|
170
|
+
compileSchemaFile("failure-spine-v1", "failure-spine-v1.schema.json");
|
|
171
|
+
compileSchemaFile("outcome-certificate-v3", "outcome-certificate-v3.schema.json");
|
|
163
172
|
compileSchemaFile("run-comparison-report", "run-comparison-report.schema.json");
|
|
164
173
|
compileSchemaFile("execution-trace-view", "execution-trace-view.schema.json");
|
|
165
174
|
return compileSchemaFile(name, "regression-artifact-v1.schema.json");
|
|
@@ -167,8 +176,9 @@ export function loadSchemaValidator(name) {
|
|
|
167
176
|
compileSchemaFile("outcome-certificate-v1", "outcome-certificate-v1.schema.json");
|
|
168
177
|
return compileSchemaFile(name, "public-verification-report-v2.schema.json");
|
|
169
178
|
case "public-verification-report-v3":
|
|
170
|
-
compileSchemaFile
|
|
171
|
-
|
|
179
|
+
// Must use loadSchemaValidator (not compileSchemaFile) so outcome-certificate-v3 cross-$refs
|
|
180
|
+
// (failure-spine-v1, workflow-truth fragments, evidence-completeness) register before compile.
|
|
181
|
+
loadSchemaValidator("outcome-certificate-v3");
|
|
172
182
|
return compileSchemaFile(name, "public-verification-report-v3.schema.json");
|
|
173
183
|
case "openai-function-tool-call-item-v1":
|
|
174
184
|
return compileSchemaFile(name, "openai-function-tool-call-item-v1.schema.json");
|
package/dist/schemaLoad.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema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CAAC;QACjF,KAAK,2BAA2B;YAC9B,OAAO,iBAAiB,CAAC,IAAI,EAAE,uCAAuC,CAAC,CAAC;QAC1E,KAAK,kCAAkC;YACrC,OAAO,iBAAiB,CAAC,IAAI,EAAE,8CAA8C,CAAC,CAAC;QACjF,KAAK,kCAAkC;YACrC,OAAO,iBAAiB,CAAC,IAAI,EAAE,8CAA8C,CAAC,CAAC;QACjF,KAAK,+BAA+B;YAClC,OAAO,iBAAiB,CAAC,IAAI,EAAE,2CAA2C,CAAC,CAAC;QAC9E,KAAK,wBAAwB;YAC3B,OAAO,iBAAiB,CAAC,IAAI,EAAE,oCAAoC,CAAC,CAAC;QACvE,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,WAAW,GAAU,IAAI,CAAC;YAChC,OAAO,WAAW,CAAC;QACrB,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OutcomeCertificateV3 } from "../outcomeCertificate.js";
|
|
2
2
|
export type ShareReportEnvelope = {
|
|
3
3
|
schemaVersion: 1;
|
|
4
4
|
kind: "workflow";
|
|
@@ -11,8 +11,8 @@ export type ShareReportEnvelope = {
|
|
|
11
11
|
quickReport: unknown;
|
|
12
12
|
humanReportText: string;
|
|
13
13
|
} | {
|
|
14
|
-
schemaVersion:
|
|
15
|
-
certificate:
|
|
14
|
+
schemaVersion: 3;
|
|
15
|
+
certificate: OutcomeCertificateV3;
|
|
16
16
|
cliVersion?: string;
|
|
17
17
|
createdFrom?: string;
|
|
18
18
|
};
|
|
@@ -26,7 +26,7 @@ export async function postPublicVerificationReport(origin, envelope, fetchImpl =
|
|
|
26
26
|
}
|
|
27
27
|
try {
|
|
28
28
|
const json = JSON.parse(text);
|
|
29
|
-
if (
|
|
29
|
+
if (json.schemaVersion !== 3 ||
|
|
30
30
|
typeof json.id !== "string" ||
|
|
31
31
|
typeof json.url !== "string") {
|
|
32
32
|
return { ok: false, status: res.status, bodySnippet: text.slice(0, 200) };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postPublicVerificationReport.js","sourceRoot":"","sources":["../../src/shareReport/postPublicVerificationReport.ts"],"names":[],"mappings":"AAEA,MAAM,cAAc,GAAG,MAAM,CAAC;AA2B9B;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,MAAc,EACd,QAA6B,EAC7B,YAA0B,KAAK;IAE/B,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACvC,MAAM,GAAG,GAAG,GAAG,IAAI,kCAAkC,CAAC;IACtD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACtC,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,cAAc,EAAE,CAAC;QACrD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACtE,CAAC;IACD,IAAI,GAAa,CAAC;IAClB,IAAI,CAAC;QACH,GAAG,GAAG,MAAM,SAAS,CAAC,GAAG,EAAE;YACzB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;YAC/C,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IAChE,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IAC9B,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACZ,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;IAC5E,CAAC;IACD,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAA0D,CAAC;QACvF,IACE,
|
|
1
|
+
{"version":3,"file":"postPublicVerificationReport.js","sourceRoot":"","sources":["../../src/shareReport/postPublicVerificationReport.ts"],"names":[],"mappings":"AAEA,MAAM,cAAc,GAAG,MAAM,CAAC;AA2B9B;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,MAAc,EACd,QAA6B,EAC7B,YAA0B,KAAK;IAE/B,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACvC,MAAM,GAAG,GAAG,GAAG,IAAI,kCAAkC,CAAC;IACtD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACtC,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,cAAc,EAAE,CAAC;QACrD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACtE,CAAC;IACD,IAAI,GAAa,CAAC;IAClB,IAAI,CAAC;QACH,GAAG,GAAG,MAAM,SAAS,CAAC,GAAG,EAAE;YACzB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;YAC/C,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IAChE,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IAC9B,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACZ,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;IAC5E,CAAC;IACD,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAA0D,CAAC;QACvF,IACE,IAAI,CAAC,aAAa,KAAK,CAAC;YACxB,OAAO,IAAI,CAAC,EAAE,KAAK,QAAQ;YAC3B,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,EAC5B,CAAC;YACD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;QAC5E,CAAC;QACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;IAClD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;IAC5E,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type OutcomeCertificateV3 } from "./outcomeCertificate.js";
|
|
2
2
|
import type { WorkflowResult } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Run batch verification and validate emitted WorkflowResult against schema.
|
|
@@ -9,7 +9,7 @@ export declare function runBatchVerifyToValidatedResult(runVerify: () => Promise
|
|
|
9
9
|
/** Validates engine `WorkflowResult`, builds public Outcome Certificate v1, validates certificate schema. */
|
|
10
10
|
export declare function runBatchVerifyToValidatedCertificate(runVerify: () => Promise<WorkflowResult>): Promise<{
|
|
11
11
|
workflowResult: WorkflowResult;
|
|
12
|
-
certificate:
|
|
12
|
+
certificate: OutcomeCertificateV3;
|
|
13
13
|
}>;
|
|
14
14
|
export type StandardVerifyWorkflowCliIo = {
|
|
15
15
|
consoleLog: (line: string) => void;
|
|
@@ -21,7 +21,7 @@ export type StandardVerifyWorkflowCliIo = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Print Outcome Certificate JSON to stdout and exit by `stateRelation` (same thresholds as legacy workflow status).
|
|
23
23
|
*/
|
|
24
|
-
export declare function emitOutcomeCertificateCliAndExitByStateRelation(certificate:
|
|
24
|
+
export declare function emitOutcomeCertificateCliAndExitByStateRelation(certificate: OutcomeCertificateV3, io: Pick<StandardVerifyWorkflowCliIo, "consoleLog" | "exit">): void;
|
|
25
25
|
/** @internal Emit Outcome Certificate to stdout from an already-validated engine result (lock / bootstrap paths). */
|
|
26
26
|
export declare function emitVerifyWorkflowCliJsonAndExitByStatus(result: WorkflowResult, io: Pick<StandardVerifyWorkflowCliIo, "consoleLog" | "exit">): void;
|
|
27
27
|
/** Thrown after `io.exit(3)` when the process is still alive (e.g. tests mock `exit`). */
|
|
@@ -35,16 +35,16 @@ export declare function runStandardVerifyWorkflowCliToTerminalResult(options: {
|
|
|
35
35
|
/** When set, used instead of `runVerify` + default contract certificate builder (e.g. LangGraph checkpoint trust). */
|
|
36
36
|
runVerifyWithCertificate?: () => Promise<{
|
|
37
37
|
workflowResult: WorkflowResult;
|
|
38
|
-
certificate:
|
|
38
|
+
certificate: OutcomeCertificateV3;
|
|
39
39
|
}>;
|
|
40
|
-
maybeWriteBundle?: (result: WorkflowResult, certificate:
|
|
40
|
+
maybeWriteBundle?: (result: WorkflowResult, certificate: OutcomeCertificateV3) => void;
|
|
41
41
|
/** When set, human stderr is deferred until after a successful POST to this origin. */
|
|
42
42
|
shareReportOrigin?: string;
|
|
43
43
|
io?: Partial<StandardVerifyWorkflowCliIo>;
|
|
44
44
|
/** When true, prefix stderr human output with `truth_check_verdict:` (agentskeptic check). */
|
|
45
45
|
truthCheckInvoked?: boolean;
|
|
46
46
|
}): Promise<{
|
|
47
|
-
certificate:
|
|
47
|
+
certificate: OutcomeCertificateV3;
|
|
48
48
|
workflowResult: WorkflowResult;
|
|
49
49
|
}>;
|
|
50
50
|
/**
|
|
@@ -53,7 +53,7 @@ export declare function runStandardVerifyWorkflowCliToTerminalResult(options: {
|
|
|
53
53
|
*/
|
|
54
54
|
export declare function runStandardVerifyWorkflowCliFlow(options: {
|
|
55
55
|
runVerify: () => Promise<WorkflowResult>;
|
|
56
|
-
maybeWriteBundle?: (result: WorkflowResult, certificate:
|
|
56
|
+
maybeWriteBundle?: (result: WorkflowResult, certificate: OutcomeCertificateV3) => void;
|
|
57
57
|
/** When set, human stderr is deferred until after a successful POST to this origin. */
|
|
58
58
|
shareReportOrigin?: string;
|
|
59
59
|
io?: Partial<StandardVerifyWorkflowCliIo>;
|
|
@@ -22,7 +22,7 @@ export async function runBatchVerifyToValidatedResult(runVerify) {
|
|
|
22
22
|
export async function runBatchVerifyToValidatedCertificate(runVerify) {
|
|
23
23
|
const workflowResult = await runBatchVerifyToValidatedResult(runVerify);
|
|
24
24
|
const certificate = buildOutcomeCertificateFromWorkflowResult(workflowResult, "contract_sql");
|
|
25
|
-
const validateCert = loadSchemaValidator("outcome-certificate-
|
|
25
|
+
const validateCert = loadSchemaValidator("outcome-certificate-v3");
|
|
26
26
|
if (!validateCert(certificate)) {
|
|
27
27
|
throw new TruthLayerError(CLI_OPERATIONAL_CODES.WORKFLOW_RESULT_SCHEMA_INVALID, JSON.stringify(validateCert.errors ?? []));
|
|
28
28
|
}
|
|
@@ -85,7 +85,7 @@ export async function runStandardVerifyWorkflowCliToTerminalResult(options) {
|
|
|
85
85
|
if (!validateWf(workflowResult)) {
|
|
86
86
|
throw new TruthLayerError(CLI_OPERATIONAL_CODES.WORKFLOW_RESULT_SCHEMA_INVALID, JSON.stringify(validateWf.errors ?? []));
|
|
87
87
|
}
|
|
88
|
-
const validateCert = loadSchemaValidator("outcome-certificate-
|
|
88
|
+
const validateCert = loadSchemaValidator("outcome-certificate-v3");
|
|
89
89
|
if (!validateCert(certificate)) {
|
|
90
90
|
throw new TruthLayerError(CLI_OPERATIONAL_CODES.WORKFLOW_RESULT_SCHEMA_INVALID, JSON.stringify(validateCert.errors ?? []));
|
|
91
91
|
}
|
|
@@ -121,7 +121,7 @@ export async function runStandardVerifyWorkflowCliToTerminalResult(options) {
|
|
|
121
121
|
const origin = options.shareReportOrigin;
|
|
122
122
|
if (origin !== undefined) {
|
|
123
123
|
const shareRes = await postPublicVerificationReport(origin, {
|
|
124
|
-
schemaVersion:
|
|
124
|
+
schemaVersion: 3,
|
|
125
125
|
certificate,
|
|
126
126
|
});
|
|
127
127
|
if (!shareRes.ok) {
|
package/dist/trustDecision.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OutcomeCertificateHighStakesReliance, OutcomeCertificateRunKind, OutcomeCertificateStateRelation, OutcomeCertificateV3 } from "./outcomeCertificate.js";
|
|
2
2
|
/** Sole operator-facing trust enum for high-stakes gating. */
|
|
3
3
|
export type TrustDecision = "safe" | "unsafe" | "unknown";
|
|
4
|
+
export declare function trustDecisionFromRelianceFields(params: {
|
|
5
|
+
runKind: OutcomeCertificateRunKind;
|
|
6
|
+
stateRelation: OutcomeCertificateStateRelation;
|
|
7
|
+
highStakesReliance: OutcomeCertificateHighStakesReliance;
|
|
8
|
+
}): TrustDecision;
|
|
4
9
|
/**
|
|
5
10
|
* Derive trust from Outcome Certificate v1 (normative: quick_preview is never high-stakes safe).
|
|
6
11
|
*/
|
|
7
|
-
export declare function trustDecisionFromCertificate(certificate:
|
|
12
|
+
export declare function trustDecisionFromCertificate(certificate: OutcomeCertificateV3): TrustDecision;
|
|
8
13
|
//# sourceMappingURL=trustDecision.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trustDecision.d.ts","sourceRoot":"","sources":["../src/trustDecision.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"trustDecision.d.ts","sourceRoot":"","sources":["../src/trustDecision.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oCAAoC,EACpC,yBAAyB,EACzB,+BAA+B,EAC/B,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,8DAA8D;AAC9D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE1D,wBAAgB,+BAA+B,CAAC,MAAM,EAAE;IACtD,OAAO,EAAE,yBAAyB,CAAC;IACnC,aAAa,EAAE,+BAA+B,CAAC;IAC/C,kBAAkB,EAAE,oCAAoC,CAAC;CAC1D,GAAG,aAAa,CAKhB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,oBAAoB,GAAG,aAAa,CAM7F"}
|
package/dist/trustDecision.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
export function trustDecisionFromCertificate(certificate) {
|
|
5
|
-
if (certificate.runKind === "quick_preview")
|
|
1
|
+
export function trustDecisionFromRelianceFields(params) {
|
|
2
|
+
if (params.runKind === "quick_preview")
|
|
6
3
|
return "unknown";
|
|
7
|
-
if (
|
|
4
|
+
if (params.highStakesReliance === "permitted")
|
|
8
5
|
return "safe";
|
|
9
|
-
if (
|
|
6
|
+
if (params.stateRelation === "does_not_match")
|
|
10
7
|
return "unsafe";
|
|
11
8
|
return "unknown";
|
|
12
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Derive trust from Outcome Certificate v1 (normative: quick_preview is never high-stakes safe).
|
|
12
|
+
*/
|
|
13
|
+
export function trustDecisionFromCertificate(certificate) {
|
|
14
|
+
return trustDecisionFromRelianceFields({
|
|
15
|
+
runKind: certificate.runKind,
|
|
16
|
+
stateRelation: certificate.stateRelation,
|
|
17
|
+
highStakesReliance: certificate.highStakesReliance,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
13
20
|
//# sourceMappingURL=trustDecision.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trustDecision.js","sourceRoot":"","sources":["../src/trustDecision.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trustDecision.js","sourceRoot":"","sources":["../src/trustDecision.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,+BAA+B,CAAC,MAI/C;IACC,IAAI,MAAM,CAAC,OAAO,KAAK,eAAe;QAAE,OAAO,SAAS,CAAC;IACzD,IAAI,MAAM,CAAC,kBAAkB,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC;IAC7D,IAAI,MAAM,CAAC,aAAa,KAAK,gBAAgB;QAAE,OAAO,QAAQ,CAAC;IAC/D,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,WAAiC;IAC5E,OAAO,+BAA+B,CAAC;QACrC,OAAO,EAAE,WAAW,CAAC,OAAO;QAC5B,aAAa,EAAE,WAAW,CAAC,aAAa;QACxC,kBAAkB,EAAE,WAAW,CAAC,kBAAkB;KACnD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -208,7 +208,7 @@ export async function runBatchVerifyWithTelemetrySubcommand(batchArgs, opts) {
|
|
|
208
208
|
const shareOrigin = parsedBatch.shareReportOrigin;
|
|
209
209
|
if (shareOrigin !== undefined) {
|
|
210
210
|
const shareRes = await postPublicVerificationReport(shareOrigin, {
|
|
211
|
-
schemaVersion:
|
|
211
|
+
schemaVersion: 3,
|
|
212
212
|
certificate,
|
|
213
213
|
});
|
|
214
214
|
if (!shareRes.ok) {
|
|
@@ -329,7 +329,7 @@ export async function runBatchVerifyWithTelemetrySubcommand(batchArgs, opts) {
|
|
|
329
329
|
throw new TruthLayerError(CLI_OPERATIONAL_CODES.WORKFLOW_RESULT_SCHEMA_INVALID, JSON.stringify(validateWf.errors ?? []));
|
|
330
330
|
}
|
|
331
331
|
const certificate = buildOutcomeCertificateLangGraphCheckpointTrustFromWorkflowResult(workflowResult);
|
|
332
|
-
const validateCert = loadSchemaValidator("outcome-certificate-
|
|
332
|
+
const validateCert = loadSchemaValidator("outcome-certificate-v3");
|
|
333
333
|
if (!validateCert(certificate)) {
|
|
334
334
|
throw new TruthLayerError(CLI_OPERATIONAL_CODES.WORKFLOW_RESULT_SCHEMA_INVALID, JSON.stringify(validateCert.errors ?? []));
|
|
335
335
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentskeptic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Structured tool activity vs downstream state at verify time: SQL (SQLite, Postgres, MySQL), HTTP witnesses, supported vector indexes, MongoDB documents, and S3-compatible objects when configured—deterministic verdict artifacts (see verification-state-stores.md).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://agentskeptic.com/schemas/failure-spine-v1.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"title": "FailureSpineV1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"trustDecision",
|
|
10
|
+
"summary",
|
|
11
|
+
"actionableFailure",
|
|
12
|
+
"primaryCodes",
|
|
13
|
+
"rerunGuidance",
|
|
14
|
+
"source"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
18
|
+
"trustDecision": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": ["safe", "unsafe", "unknown"]
|
|
21
|
+
},
|
|
22
|
+
"summary": { "type": "string", "minLength": 1, "maxLength": 2048 },
|
|
23
|
+
"actionableFailure": {
|
|
24
|
+
"$ref": "https://agentskeptic.com/schemas/workflow-truth-report.schema.json#/$defs/actionableFailure"
|
|
25
|
+
},
|
|
26
|
+
"primaryCodes": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"minItems": 1,
|
|
29
|
+
"maxItems": 24,
|
|
30
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 256 }
|
|
31
|
+
},
|
|
32
|
+
"rerunGuidance": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
33
|
+
"source": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": ["workflow", "quick", "ineligible_langgraph"]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -12,7 +12,7 @@ info:
|
|
|
12
12
|
url: __CONTRACT_URL__
|
|
13
13
|
version: __CONTRACT_VERSION__
|
|
14
14
|
manifestSha256: __CONTRACT_SHA__
|
|
15
|
-
description: "__IDENTITY_ONE_LINER__\n\nMachine-readable contract for license preflight used by the published npm CLI.\nBase URL is your deployed app origin (same as NEXT_PUBLIC_APP_URL).\n\nEvery path in this document returns an `x-request-id` response header on all status codes (echo a valid client `x-request-id` when supplied; otherwise server-generated). Non-2xx JSON bodies follow RFC 7807-style Problem Details (`type`, `title`, `status`, `detail`, optional `code`, `instance`) unless noted; `POST /api/v1/usage/reserve` denials additionally include legacy `allowed`, `code`, `message`, and optional `upgrade_url` for backward compatibility.\n\n**Breaking (agentskeptic 5.x):** Hosted enforcement ingestion uses `schema_version` 3 with `outcome_certificate` (Outcome Certificate
|
|
15
|
+
description: "__IDENTITY_ONE_LINER__\n\nMachine-readable contract for license preflight used by the published npm CLI.\nBase URL is your deployed app origin (same as NEXT_PUBLIC_APP_URL).\n\nEvery path in this document returns an `x-request-id` response header on all status codes (echo a valid client `x-request-id` when supplied; otherwise server-generated). Non-2xx JSON bodies follow RFC 7807-style Problem Details (`type`, `title`, `status`, `detail`, optional `code`, `instance`) unless noted; `POST /api/v1/usage/reserve` denials additionally include legacy `allowed`, `code`, `message`, and optional `upgrade_url` for backward compatibility.\n\n**Breaking (agentskeptic 5.x):** Hosted enforcement ingestion uses `schema_version` 3 with `outcome_certificate` (Outcome Certificate v3 inner JSON, including `failureSpine`). Legacy `schema_version` 2 payloads with `outcome_certificate_v1` are rejected. `POST /api/v1/funnel/verify-outcome` requires `schema_version` 3 and `evidence_gap_primary`. `POST /api/public/verification-reports` accepts envelope `schemaVersion` 3 only. **HTTP 4xx/5xx** responses are **not** `failure-spine-v1` and are **not** Outcome Certificate-shaped; operational CLI errors use `cli-error-envelope` on stderr only.\n"
|
|
16
16
|
externalDocs:
|
|
17
17
|
description: "First-run integration guide"
|
|
18
18
|
url: __DISTRIBUTION_INTEGRATE_URL__
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: "3.0.3"
|
|
2
2
|
info:
|
|
3
3
|
title: AgentSkeptic commercial license API
|
|
4
|
-
version: "
|
|
4
|
+
version: "6.0.1"
|
|
5
5
|
contact:
|
|
6
6
|
url: https://agentskeptic.com
|
|
7
7
|
x-agentskeptic-distribution:
|
|
@@ -12,7 +12,7 @@ info:
|
|
|
12
12
|
url: https://agentskeptic.com/contract/v1.json
|
|
13
13
|
version: "1.0.1"
|
|
14
14
|
manifestSha256: "c5f23ec43576716c4b9a13e752cd2962a78bb4b4da1f9e521f911e15dfd80268"
|
|
15
|
-
description: "Read-only checks at verify time—not color.\n\nMachine-readable contract for license preflight used by the published npm CLI.\nBase URL is your deployed app origin (same as NEXT_PUBLIC_APP_URL).\n\nEvery path in this document returns an `x-request-id` response header on all status codes (echo a valid client `x-request-id` when supplied; otherwise server-generated). Non-2xx JSON bodies follow RFC 7807-style Problem Details (`type`, `title`, `status`, `detail`, optional `code`, `instance`) unless noted; `POST /api/v1/usage/reserve` denials additionally include legacy `allowed`, `code`, `message`, and optional `upgrade_url` for backward compatibility.\n\n**Breaking (agentskeptic 5.x):** Hosted enforcement ingestion uses `schema_version` 3 with `outcome_certificate` (Outcome Certificate
|
|
15
|
+
description: "Read-only checks at verify time—not color.\n\nMachine-readable contract for license preflight used by the published npm CLI.\nBase URL is your deployed app origin (same as NEXT_PUBLIC_APP_URL).\n\nEvery path in this document returns an `x-request-id` response header on all status codes (echo a valid client `x-request-id` when supplied; otherwise server-generated). Non-2xx JSON bodies follow RFC 7807-style Problem Details (`type`, `title`, `status`, `detail`, optional `code`, `instance`) unless noted; `POST /api/v1/usage/reserve` denials additionally include legacy `allowed`, `code`, `message`, and optional `upgrade_url` for backward compatibility.\n\n**Breaking (agentskeptic 5.x):** Hosted enforcement ingestion uses `schema_version` 3 with `outcome_certificate` (Outcome Certificate v3 inner JSON, including `failureSpine`). Legacy `schema_version` 2 payloads with `outcome_certificate_v1` are rejected. `POST /api/v1/funnel/verify-outcome` requires `schema_version` 3 and `evidence_gap_primary`. `POST /api/public/verification-reports` accepts envelope `schemaVersion` 3 only. **HTTP 4xx/5xx** responses are **not** `failure-spine-v1` and are **not** Outcome Certificate-shaped; operational CLI errors use `cli-error-envelope` on stderr only.\n"
|
|
16
16
|
externalDocs:
|
|
17
17
|
description: "First-run integration guide"
|
|
18
18
|
url: https://agentskeptic.com/integrate
|