@mikeargento/bitgraph-audit 0.13.0 → 0.15.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/src/types.ts CHANGED
@@ -323,6 +323,11 @@ export interface ArtifactRecord {
323
323
  byteLength: number;
324
324
  /** Every path holding these exact bytes, in observation order. Byte-identical copies create no ambiguity. */
325
325
  paths: string[];
326
+ /**
327
+ * The paths among `paths` that are BitGraphed files: there, these bytes are
328
+ * the file's first byteLength bytes, before its block. Absent when none is.
329
+ */
330
+ carriedPaths?: string[];
326
331
  /** Canonical hashes of every observed proof whose artifact digest equals this content hash. One artifact may satisfy many proofs. */
327
332
  matchedProofHashes: string[];
328
333
  }
@@ -432,6 +437,10 @@ export interface IngestCounts {
432
437
  ceilings?: number;
433
438
  /** Export-shaped files (format "bitgraph-export/..."), checked or rejected. */
434
439
  exports?: number;
440
+ /** BitGraphed files (a bitgraph-carrier block at the end), read or not. Absent when there are none. */
441
+ carriers?: number;
442
+ /** BitGraphed files whose block could not be read, so their proofs are not counted. Absent when there are none. */
443
+ corruptCarriers?: number;
435
444
  /** Container entries skipped for unsafe paths. */
436
445
  skippedUnsafePaths: number;
437
446
  }
@@ -1740,7 +1749,9 @@ export interface AuditResult {
1740
1749
  * block-number mismatch, an invalid candidate anchor, or an unmatched
1741
1750
  * witness), or any floor problem (a floor-* code: a proof signing two
1742
1751
  * floors, a malformed or off-schedule Base floor, a floor header that
1743
- * contradicts the signed floor or matches none). Benign findings are reported but never set exit bits: ingest
1752
+ * contradicts the signed floor or matches none), or any BitGraphed file
1753
+ * whose block cannot be read (carrier-corrupt: its proof is not counted,
1754
+ * so a token it spent cannot be checked). Benign findings are reported but never set exit bits: ingest
1744
1755
  * advisories (duplicate copies, manifest advisories, unsafe paths,
1745
1756
  * embedded proofHash mismatches) and informational anchor findings
1746
1757
  * (anchor-metadata-disagreement, anchor-metadata-only-claim,