harnery 0.24.0 → 0.25.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 (39) hide show
  1. package/dist/commands/harness.d.ts +2 -1
  2. package/dist/commands/harness.d.ts.map +1 -1
  3. package/dist/commands/harness.js +105 -3
  4. package/dist/commands/supervisor.d.ts.map +1 -1
  5. package/dist/commands/supervisor.js +3 -13
  6. package/dist/commands/work.d.ts.map +1 -1
  7. package/dist/commands/work.js +2 -7
  8. package/dist/commands/workflow.d.ts.map +1 -1
  9. package/dist/commands/workflow.js +3 -13
  10. package/dist/core/harnesses/attest.d.ts +48 -0
  11. package/dist/core/harnesses/attest.d.ts.map +1 -0
  12. package/dist/core/harnesses/attest.js +110 -0
  13. package/dist/core/harnesses/attestation.d.ts +75 -0
  14. package/dist/core/harnesses/attestation.d.ts.map +1 -0
  15. package/dist/core/harnesses/attestation.js +168 -0
  16. package/dist/core/harnesses/bench.d.ts +23 -1
  17. package/dist/core/harnesses/bench.d.ts.map +1 -1
  18. package/dist/core/harnesses/bench.js +135 -32
  19. package/dist/core/harnesses/index.d.ts +6 -2
  20. package/dist/core/harnesses/index.d.ts.map +1 -1
  21. package/dist/core/harnesses/index.js +3 -1
  22. package/dist/core/workflow/engine.js +3 -0
  23. package/dist/core/workflow/proof.d.ts +4 -1
  24. package/dist/core/workflow/proof.d.ts.map +1 -1
  25. package/dist/core/workflow/proof.js +3 -2
  26. package/dist/core/workflow/types.d.ts +14 -0
  27. package/dist/core/workflow/types.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/src/commands/harness.ts +123 -2
  30. package/src/commands/supervisor.ts +11 -15
  31. package/src/commands/work.ts +8 -8
  32. package/src/commands/workflow.ts +11 -15
  33. package/src/core/harnesses/attest.ts +162 -0
  34. package/src/core/harnesses/attestation.ts +231 -0
  35. package/src/core/harnesses/bench.ts +187 -32
  36. package/src/core/harnesses/index.ts +26 -1
  37. package/src/core/workflow/engine.ts +3 -0
  38. package/src/core/workflow/proof.ts +7 -1
  39. package/src/core/workflow/types.ts +15 -0
@@ -126,6 +126,14 @@ export interface WorkflowRepoEvidence {
126
126
  };
127
127
  }
128
128
 
129
+ /** Bounded pointer to the live attestation backing a harness's claims
130
+ * (ADR 0038). Structural facts only: no prompt text, no host paths. */
131
+ export interface HarnessAttestationCitation {
132
+ binary_version: string;
133
+ observed_at: string;
134
+ record_digest: string;
135
+ }
136
+
129
137
  export interface HarnessEvidenceCoverage {
130
138
  harness: HarnessName;
131
139
  tool_evidence: {
@@ -137,6 +145,10 @@ export interface HarnessEvidenceCoverage {
137
145
  session_ids: number;
138
146
  costs: number;
139
147
  };
148
+ /** What backs this harness's capability claims (ADR 0038). Absent when the
149
+ * host recorded no live attestation, which is the common case and is not by
150
+ * itself a proof unknown. */
151
+ attestation?: HarnessAttestationCitation;
140
152
  }
141
153
 
142
154
  export interface WorkflowProofUnknown {
@@ -429,6 +441,9 @@ export interface EngineOpts {
429
441
  /** Capability claims used to state whether adapter-native tool evidence was
430
442
  * available. Missing claims remain unknown. */
431
443
  harnessEvidence?: Readonly<Record<HarnessName, HarnessEvidenceCapability | undefined>>;
444
+ /** Live attestations backing each harness's claims (ADR 0038). Read once by
445
+ * the host and injected, so the engine performs no capability lookups. */
446
+ harnessAttestations?: Readonly<Record<HarnessName, HarnessAttestationCitation | undefined>>;
432
447
  /** Immutable host policy. Workflow scripts and model prompts cannot replace it. */
433
448
  policy?: PolicySpec | NormalizedPolicy;
434
449
  /** Host callback for ASK. Missing, invalid, throwing, or timed-out resolution denies. */