@c4a/context 0.7.8 → 0.7.10-alpha.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.
Files changed (84) hide show
  1. package/articleStructure.d.ts +254 -0
  2. package/docs/guides/agent-dialogue.md +6 -5
  3. package/docs/guides/agent-guide.md +11 -5
  4. package/docs/guides/code-indexer-skill-authoring.md +76 -178
  5. package/docs/guides/indexer-provider-and-customization.md +93 -398
  6. package/docs/guides/indexer-skill-creation.md +107 -97
  7. package/docs/guides/knowledge-updates.md +137 -18
  8. package/docs/guides/markdown-indexer-skill-authoring.md +57 -134
  9. package/docs/guides/package-outputs.md +213 -47
  10. package/docs/reference/indexer-provider-protocol.md +71 -102
  11. package/docs/reference/package-templates.md +39 -65
  12. package/docs/reference/project-api.md +53 -0
  13. package/docs/reference/template-variables.md +2 -3
  14. package/index.d.ts +11 -11
  15. package/index.js +5826 -8062
  16. package/indexerAgentStepProtocol.d.ts +0 -910
  17. package/indexerApprovedKnowledge.d.ts +98 -359
  18. package/indexerArticlePlan.d.ts +3 -26
  19. package/indexerArtifact.d.ts +201 -70
  20. package/indexerArtifactPolicy.d.ts +4 -22
  21. package/indexerArtifactResult.d.ts +240 -888
  22. package/indexerAuthoringFixture.d.ts +0 -13
  23. package/indexerBenchmark.d.ts +2 -2
  24. package/indexerCandidateCompile.d.ts +123 -167
  25. package/indexerCatalogFallback.d.ts +32 -374
  26. package/indexerCollectionMapping.d.ts +2 -2
  27. package/indexerContentLayers.d.ts +187 -41
  28. package/indexerContractOverlay.d.ts +30 -44
  29. package/indexerControlledInvocation.d.ts +6 -6
  30. package/indexerControlledProgram.d.ts +959 -3020
  31. package/indexerDependencyView.d.ts +96 -96
  32. package/indexerEffectiveArtifact.d.ts +381 -242
  33. package/indexerExampleDecision.d.ts +134 -134
  34. package/indexerExampleIdentity.d.ts +6 -6
  35. package/indexerExampleIdentityAudit.d.ts +6 -6
  36. package/indexerInventoryDisposition.d.ts +0 -39
  37. package/indexerLayerComposition.d.ts +1378 -852
  38. package/indexerLayoutChange.d.ts +24 -33
  39. package/indexerLayoutProposalSet.d.ts +143 -137
  40. package/indexerLayoutResolver.d.ts +116 -101
  41. package/indexerLayoutTransition.d.ts +6 -6
  42. package/indexerMainLifecycle.d.ts +1 -11
  43. package/indexerMainRunLedger.d.ts +0 -14
  44. package/indexerMainRunProtocol.d.ts +806 -2530
  45. package/indexerMainWorkset.d.ts +0 -1212
  46. package/indexerNavigationArtifactPlan.d.ts +2 -2
  47. package/indexerOverlayQuestionApplyProposal.d.ts +0 -4
  48. package/indexerParserCoordinate.d.ts +2 -2
  49. package/indexerParserExecutionPlan.d.ts +42 -42
  50. package/indexerPartitionPlan.d.ts +24 -354
  51. package/indexerPhysicalArtifactManifest.d.ts +12 -27
  52. package/indexerPostAuthorComposition.d.ts +2 -253
  53. package/indexerPostAuthorRunLedger.d.ts +860 -562
  54. package/indexerPrimaryProjection.d.ts +2 -2
  55. package/indexerPrimaryResultView.d.ts +0 -318
  56. package/indexerProfileContract.d.ts +200 -549
  57. package/indexerProgramExecutionAuthorization.d.ts +4 -4
  58. package/indexerProgramRunProtocol.d.ts +806 -2527
  59. package/indexerProjectProposal.d.ts +8 -8
  60. package/indexerProjectedArtifactFanOutAudit.d.ts +8 -8
  61. package/indexerProjectedArtifactPlan.d.ts +0 -9
  62. package/indexerProtocolHash.d.ts +2 -0
  63. package/indexerProvider.d.ts +76 -318
  64. package/indexerProviderComposition.d.ts +16 -42
  65. package/indexerQuestionAuthority.d.ts +2 -82
  66. package/indexerReaderTargetInventory.d.ts +6 -6
  67. package/indexerRegistry.d.ts +606 -0
  68. package/indexerRequirementLifecycle.d.ts +6 -6
  69. package/indexerResultReconciliation.d.ts +35 -149
  70. package/indexerSemanticInput.d.ts +10926 -5665
  71. package/indexerStructuredDeclaration.d.ts +24 -24
  72. package/indexerTemplateRendering.d.ts +239 -113
  73. package/{readingStructure.d.ts → knowledgeMap.d.ts} +21 -21
  74. package/package.json +1 -1
  75. package/packageSite.d.ts +25 -0
  76. package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +13 -16
  77. package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +9 -9
  78. package/indexerArtifactDependencies.d.ts +0 -693
  79. package/indexerCompositionFactDependencies.d.ts +0 -16
  80. package/indexerExampleFactDependencies.d.ts +0 -17
  81. package/indexerIncrementalImpact.d.ts +0 -221
  82. package/indexerKnowledgeDependency.d.ts +0 -46
  83. package/indexerSubjectCatalog.d.ts +0 -230
  84. package/indexerSubjectKeyAuthority.d.ts +0 -786
@@ -249,16 +249,69 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
249
249
  template_id: z.ZodEffects<z.ZodString, string, string>;
250
250
  variables: z.ZodRecord<z.ZodString, z.ZodObject<{
251
251
  value: z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>;
252
- fact_refs: z.ZodArray<z.ZodString, "many">;
253
- evidence_refs: z.ZodArray<z.ZodString, "many">;
252
+ references: z.ZodArray<z.ZodObject<{
253
+ source_ref: z.ZodString;
254
+ locator: z.ZodEffects<z.ZodObject<{
255
+ path: z.ZodEffects<z.ZodString, string, string>;
256
+ start_line: z.ZodNumber;
257
+ end_line: z.ZodNumber;
258
+ }, "strict", z.ZodTypeAny, {
259
+ path: string;
260
+ start_line: number;
261
+ end_line: number;
262
+ }, {
263
+ path: string;
264
+ start_line: number;
265
+ end_line: number;
266
+ }>, {
267
+ path: string;
268
+ start_line: number;
269
+ end_line: number;
270
+ }, {
271
+ path: string;
272
+ start_line: number;
273
+ end_line: number;
274
+ }>;
275
+ content_digest: z.ZodString;
276
+ }, "strict", z.ZodTypeAny, {
277
+ source_ref: string;
278
+ locator: {
279
+ path: string;
280
+ start_line: number;
281
+ end_line: number;
282
+ };
283
+ content_digest: string;
284
+ }, {
285
+ source_ref: string;
286
+ locator: {
287
+ path: string;
288
+ start_line: number;
289
+ end_line: number;
290
+ };
291
+ content_digest: string;
292
+ }>, "many">;
254
293
  }, "strict", z.ZodTypeAny, {
255
294
  value: import("./indexerRegistry.js").IndexerJson;
256
- evidence_refs: string[];
257
- fact_refs: string[];
295
+ references: {
296
+ source_ref: string;
297
+ locator: {
298
+ path: string;
299
+ start_line: number;
300
+ end_line: number;
301
+ };
302
+ content_digest: string;
303
+ }[];
258
304
  }, {
259
305
  value: import("./indexerRegistry.js").IndexerJson;
260
- evidence_refs: string[];
261
- fact_refs: string[];
306
+ references: {
307
+ source_ref: string;
308
+ locator: {
309
+ path: string;
310
+ start_line: number;
311
+ end_line: number;
312
+ };
313
+ content_digest: string;
314
+ }[];
262
315
  }>>;
263
316
  section_projections: z.ZodArray<z.ZodObject<{
264
317
  section_key: z.ZodEffects<z.ZodString, string, string>;
@@ -288,8 +341,15 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
288
341
  template_id: string;
289
342
  variables: Record<string, {
290
343
  value: import("./indexerRegistry.js").IndexerJson;
291
- evidence_refs: string[];
292
- fact_refs: string[];
344
+ references: {
345
+ source_ref: string;
346
+ locator: {
347
+ path: string;
348
+ start_line: number;
349
+ end_line: number;
350
+ };
351
+ content_digest: string;
352
+ }[];
293
353
  }>;
294
354
  section_projections: {
295
355
  section_key: string;
@@ -306,8 +366,15 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
306
366
  template_id: string;
307
367
  variables: Record<string, {
308
368
  value: import("./indexerRegistry.js").IndexerJson;
309
- evidence_refs: string[];
310
- fact_refs: string[];
369
+ references: {
370
+ source_ref: string;
371
+ locator: {
372
+ path: string;
373
+ start_line: number;
374
+ end_line: number;
375
+ };
376
+ content_digest: string;
377
+ }[];
311
378
  }>;
312
379
  section_projections: {
313
380
  section_key: string;
@@ -328,151 +395,178 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
328
395
  reader_goal: z.ZodEffects<z.ZodString, string, string>;
329
396
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
330
397
  } & {
331
- blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
332
- block_id: z.ZodEffects<z.ZodString, string, string>;
333
- layer: z.ZodLiteral<"deterministic-block">;
334
- renderer: z.ZodEnum<["bullet-list", "key-value-table", "multi-column-table", "public-contract-table", "json-code-block"]>;
335
- fact_refs: z.ZodArray<z.ZodString, "many">;
336
- }, "strict", z.ZodTypeAny, {
337
- block_id: string;
338
- layer: "deterministic-block";
339
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
340
- fact_refs: string[];
341
- }, {
342
- block_id: string;
343
- layer: "deterministic-block";
344
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
345
- fact_refs: string[];
346
- }>, z.ZodObject<{
398
+ blocks: z.ZodArray<z.ZodObject<{
347
399
  block_id: z.ZodEffects<z.ZodString, string, string>;
348
400
  layer: z.ZodLiteral<"semantic-prose">;
349
401
  markdown: z.ZodString;
350
- evidence_refs: z.ZodArray<z.ZodString, "many">;
402
+ references: z.ZodArray<z.ZodObject<{
403
+ source_ref: z.ZodString;
404
+ locator: z.ZodEffects<z.ZodObject<{
405
+ path: z.ZodEffects<z.ZodString, string, string>;
406
+ start_line: z.ZodNumber;
407
+ end_line: z.ZodNumber;
408
+ }, "strict", z.ZodTypeAny, {
409
+ path: string;
410
+ start_line: number;
411
+ end_line: number;
412
+ }, {
413
+ path: string;
414
+ start_line: number;
415
+ end_line: number;
416
+ }>, {
417
+ path: string;
418
+ start_line: number;
419
+ end_line: number;
420
+ }, {
421
+ path: string;
422
+ start_line: number;
423
+ end_line: number;
424
+ }>;
425
+ content_digest: z.ZodString;
426
+ }, "strict", z.ZodTypeAny, {
427
+ source_ref: string;
428
+ locator: {
429
+ path: string;
430
+ start_line: number;
431
+ end_line: number;
432
+ };
433
+ content_digest: string;
434
+ }, {
435
+ source_ref: string;
436
+ locator: {
437
+ path: string;
438
+ start_line: number;
439
+ end_line: number;
440
+ };
441
+ content_digest: string;
442
+ }>, "many">;
351
443
  }, "strict", z.ZodTypeAny, {
352
- evidence_refs: string[];
444
+ references: {
445
+ source_ref: string;
446
+ locator: {
447
+ path: string;
448
+ start_line: number;
449
+ end_line: number;
450
+ };
451
+ content_digest: string;
452
+ }[];
353
453
  block_id: string;
354
454
  layer: "semantic-prose";
355
455
  markdown: string;
356
456
  }, {
357
- evidence_refs: string[];
457
+ references: {
458
+ source_ref: string;
459
+ locator: {
460
+ path: string;
461
+ start_line: number;
462
+ end_line: number;
463
+ };
464
+ content_digest: string;
465
+ }[];
358
466
  block_id: string;
359
467
  layer: "semantic-prose";
360
468
  markdown: string;
361
- }>]>, "many">;
469
+ }>, "many">;
362
470
  }, "strict", z.ZodTypeAny, {
363
471
  section_key: string;
364
472
  owner_indexer_id: string;
365
473
  document_kind: string;
366
474
  reader_goal: string;
367
475
  artifact_kind: string;
368
- blocks: ({
369
- block_id: string;
370
- layer: "deterministic-block";
371
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
372
- fact_refs: string[];
373
- } | {
374
- evidence_refs: string[];
476
+ blocks: {
477
+ references: {
478
+ source_ref: string;
479
+ locator: {
480
+ path: string;
481
+ start_line: number;
482
+ end_line: number;
483
+ };
484
+ content_digest: string;
485
+ }[];
375
486
  block_id: string;
376
487
  layer: "semantic-prose";
377
488
  markdown: string;
378
- })[];
489
+ }[];
379
490
  }, {
380
491
  section_key: string;
381
492
  owner_indexer_id: string;
382
493
  document_kind: string;
383
494
  reader_goal: string;
384
495
  artifact_kind: string;
385
- blocks: ({
386
- block_id: string;
387
- layer: "deterministic-block";
388
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
389
- fact_refs: string[];
390
- } | {
391
- evidence_refs: string[];
496
+ blocks: {
497
+ references: {
498
+ source_ref: string;
499
+ locator: {
500
+ path: string;
501
+ start_line: number;
502
+ end_line: number;
503
+ };
504
+ content_digest: string;
505
+ }[];
392
506
  block_id: string;
393
507
  layer: "semantic-prose";
394
508
  markdown: string;
395
- })[];
509
+ }[];
396
510
  }>, "many">;
397
511
  artifact_id: z.ZodEffects<z.ZodString, string, string>;
398
512
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
399
513
  artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
400
514
  }, "strict", z.ZodTypeAny, {
401
- artifact_kind: string;
402
- representation: "sections";
403
- artifact_id: string;
404
- artifact_policy_variant: string;
405
515
  sections: {
406
516
  section_key: string;
407
517
  owner_indexer_id: string;
408
518
  document_kind: string;
409
519
  reader_goal: string;
410
520
  artifact_kind: string;
411
- blocks: ({
412
- block_id: string;
413
- layer: "deterministic-block";
414
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
415
- fact_refs: string[];
416
- } | {
417
- evidence_refs: string[];
521
+ blocks: {
522
+ references: {
523
+ source_ref: string;
524
+ locator: {
525
+ path: string;
526
+ start_line: number;
527
+ end_line: number;
528
+ };
529
+ content_digest: string;
530
+ }[];
418
531
  block_id: string;
419
532
  layer: "semantic-prose";
420
533
  markdown: string;
421
- })[];
534
+ }[];
422
535
  }[];
423
- template_id?: string | undefined;
424
- }, {
425
536
  artifact_kind: string;
426
537
  representation: "sections";
427
538
  artifact_id: string;
428
539
  artifact_policy_variant: string;
540
+ template_id?: string | undefined;
541
+ }, {
429
542
  sections: {
430
543
  section_key: string;
431
544
  owner_indexer_id: string;
432
545
  document_kind: string;
433
546
  reader_goal: string;
434
547
  artifact_kind: string;
435
- blocks: ({
436
- block_id: string;
437
- layer: "deterministic-block";
438
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
439
- fact_refs: string[];
440
- } | {
441
- evidence_refs: string[];
548
+ blocks: {
549
+ references: {
550
+ source_ref: string;
551
+ locator: {
552
+ path: string;
553
+ start_line: number;
554
+ end_line: number;
555
+ };
556
+ content_digest: string;
557
+ }[];
442
558
  block_id: string;
443
559
  layer: "semantic-prose";
444
560
  markdown: string;
445
- })[];
561
+ }[];
446
562
  }[];
563
+ artifact_kind: string;
564
+ representation: "sections";
565
+ artifact_id: string;
566
+ artifact_policy_variant: string;
447
567
  template_id?: string | undefined;
448
568
  }>]>;
449
- evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
450
- ref: z.ZodString;
451
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
452
- source_digest: z.ZodString;
453
- }, "strict", z.ZodTypeAny, {
454
- ref: string;
455
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
456
- source_digest: string;
457
- }, {
458
- ref: string;
459
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
460
- source_digest: string;
461
- }>, "many">, {
462
- ref: string;
463
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
464
- source_digest: string;
465
- }[], {
466
- ref: string;
467
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
468
- source_digest: string;
469
- }[]>;
470
569
  }, "strict", z.ZodTypeAny, {
471
- evidence_refs: {
472
- ref: string;
473
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
474
- source_digest: string;
475
- }[];
476
570
  composer_ref: string;
477
571
  target_node_ref: string;
478
572
  artifact: {
@@ -481,8 +575,15 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
481
575
  template_id: string;
482
576
  variables: Record<string, {
483
577
  value: import("./indexerRegistry.js").IndexerJson;
484
- evidence_refs: string[];
485
- fact_refs: string[];
578
+ references: {
579
+ source_ref: string;
580
+ locator: {
581
+ path: string;
582
+ start_line: number;
583
+ end_line: number;
584
+ };
585
+ content_digest: string;
586
+ }[];
486
587
  }>;
487
588
  section_projections: {
488
589
  section_key: string;
@@ -494,36 +595,34 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
494
595
  artifact_id: string;
495
596
  artifact_policy_variant: string;
496
597
  } | {
497
- artifact_kind: string;
498
- representation: "sections";
499
- artifact_id: string;
500
- artifact_policy_variant: string;
501
598
  sections: {
502
599
  section_key: string;
503
600
  owner_indexer_id: string;
504
601
  document_kind: string;
505
602
  reader_goal: string;
506
603
  artifact_kind: string;
507
- blocks: ({
508
- block_id: string;
509
- layer: "deterministic-block";
510
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
511
- fact_refs: string[];
512
- } | {
513
- evidence_refs: string[];
604
+ blocks: {
605
+ references: {
606
+ source_ref: string;
607
+ locator: {
608
+ path: string;
609
+ start_line: number;
610
+ end_line: number;
611
+ };
612
+ content_digest: string;
613
+ }[];
514
614
  block_id: string;
515
615
  layer: "semantic-prose";
516
616
  markdown: string;
517
- })[];
617
+ }[];
518
618
  }[];
619
+ artifact_kind: string;
620
+ representation: "sections";
621
+ artifact_id: string;
622
+ artifact_policy_variant: string;
519
623
  template_id?: string | undefined;
520
624
  };
521
625
  }, {
522
- evidence_refs: {
523
- ref: string;
524
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
525
- source_digest: string;
526
- }[];
527
626
  composer_ref: string;
528
627
  target_node_ref: string;
529
628
  artifact: {
@@ -532,8 +631,15 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
532
631
  template_id: string;
533
632
  variables: Record<string, {
534
633
  value: import("./indexerRegistry.js").IndexerJson;
535
- evidence_refs: string[];
536
- fact_refs: string[];
634
+ references: {
635
+ source_ref: string;
636
+ locator: {
637
+ path: string;
638
+ start_line: number;
639
+ end_line: number;
640
+ };
641
+ content_digest: string;
642
+ }[];
537
643
  }>;
538
644
  section_projections: {
539
645
  section_key: string;
@@ -545,39 +651,37 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
545
651
  artifact_id: string;
546
652
  artifact_policy_variant: string;
547
653
  } | {
548
- artifact_kind: string;
549
- representation: "sections";
550
- artifact_id: string;
551
- artifact_policy_variant: string;
552
654
  sections: {
553
655
  section_key: string;
554
656
  owner_indexer_id: string;
555
657
  document_kind: string;
556
658
  reader_goal: string;
557
659
  artifact_kind: string;
558
- blocks: ({
559
- block_id: string;
560
- layer: "deterministic-block";
561
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
562
- fact_refs: string[];
563
- } | {
564
- evidence_refs: string[];
660
+ blocks: {
661
+ references: {
662
+ source_ref: string;
663
+ locator: {
664
+ path: string;
665
+ start_line: number;
666
+ end_line: number;
667
+ };
668
+ content_digest: string;
669
+ }[];
565
670
  block_id: string;
566
671
  layer: "semantic-prose";
567
672
  markdown: string;
568
- })[];
673
+ }[];
569
674
  }[];
675
+ artifact_kind: string;
676
+ representation: "sections";
677
+ artifact_id: string;
678
+ artifact_policy_variant: string;
570
679
  template_id?: string | undefined;
571
680
  };
572
681
  }>, "many">;
573
682
  }, "strict", z.ZodTypeAny, {
574
683
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
575
684
  proposals: {
576
- evidence_refs: {
577
- ref: string;
578
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
579
- source_digest: string;
580
- }[];
581
685
  composer_ref: string;
582
686
  target_node_ref: string;
583
687
  artifact: {
@@ -586,8 +690,15 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
586
690
  template_id: string;
587
691
  variables: Record<string, {
588
692
  value: import("./indexerRegistry.js").IndexerJson;
589
- evidence_refs: string[];
590
- fact_refs: string[];
693
+ references: {
694
+ source_ref: string;
695
+ locator: {
696
+ path: string;
697
+ start_line: number;
698
+ end_line: number;
699
+ };
700
+ content_digest: string;
701
+ }[];
591
702
  }>;
592
703
  section_projections: {
593
704
  section_key: string;
@@ -599,39 +710,37 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
599
710
  artifact_id: string;
600
711
  artifact_policy_variant: string;
601
712
  } | {
602
- artifact_kind: string;
603
- representation: "sections";
604
- artifact_id: string;
605
- artifact_policy_variant: string;
606
713
  sections: {
607
714
  section_key: string;
608
715
  owner_indexer_id: string;
609
716
  document_kind: string;
610
717
  reader_goal: string;
611
718
  artifact_kind: string;
612
- blocks: ({
613
- block_id: string;
614
- layer: "deterministic-block";
615
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
616
- fact_refs: string[];
617
- } | {
618
- evidence_refs: string[];
719
+ blocks: {
720
+ references: {
721
+ source_ref: string;
722
+ locator: {
723
+ path: string;
724
+ start_line: number;
725
+ end_line: number;
726
+ };
727
+ content_digest: string;
728
+ }[];
619
729
  block_id: string;
620
730
  layer: "semantic-prose";
621
731
  markdown: string;
622
- })[];
732
+ }[];
623
733
  }[];
734
+ artifact_kind: string;
735
+ representation: "sections";
736
+ artifact_id: string;
737
+ artifact_policy_variant: string;
624
738
  template_id?: string | undefined;
625
739
  };
626
740
  }[];
627
741
  }, {
628
742
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
629
743
  proposals: {
630
- evidence_refs: {
631
- ref: string;
632
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
633
- source_digest: string;
634
- }[];
635
744
  composer_ref: string;
636
745
  target_node_ref: string;
637
746
  artifact: {
@@ -640,8 +749,15 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
640
749
  template_id: string;
641
750
  variables: Record<string, {
642
751
  value: import("./indexerRegistry.js").IndexerJson;
643
- evidence_refs: string[];
644
- fact_refs: string[];
752
+ references: {
753
+ source_ref: string;
754
+ locator: {
755
+ path: string;
756
+ start_line: number;
757
+ end_line: number;
758
+ };
759
+ content_digest: string;
760
+ }[];
645
761
  }>;
646
762
  section_projections: {
647
763
  section_key: string;
@@ -653,28 +769,31 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
653
769
  artifact_id: string;
654
770
  artifact_policy_variant: string;
655
771
  } | {
656
- artifact_kind: string;
657
- representation: "sections";
658
- artifact_id: string;
659
- artifact_policy_variant: string;
660
772
  sections: {
661
773
  section_key: string;
662
774
  owner_indexer_id: string;
663
775
  document_kind: string;
664
776
  reader_goal: string;
665
777
  artifact_kind: string;
666
- blocks: ({
667
- block_id: string;
668
- layer: "deterministic-block";
669
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
670
- fact_refs: string[];
671
- } | {
672
- evidence_refs: string[];
778
+ blocks: {
779
+ references: {
780
+ source_ref: string;
781
+ locator: {
782
+ path: string;
783
+ start_line: number;
784
+ end_line: number;
785
+ };
786
+ content_digest: string;
787
+ }[];
673
788
  block_id: string;
674
789
  layer: "semantic-prose";
675
790
  markdown: string;
676
- })[];
791
+ }[];
677
792
  }[];
793
+ artifact_kind: string;
794
+ representation: "sections";
795
+ artifact_id: string;
796
+ artifact_policy_variant: string;
678
797
  template_id?: string | undefined;
679
798
  };
680
799
  }[];
@@ -735,11 +854,6 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
735
854
  } | {
736
855
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
737
856
  proposals: {
738
- evidence_refs: {
739
- ref: string;
740
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
741
- source_digest: string;
742
- }[];
743
857
  composer_ref: string;
744
858
  target_node_ref: string;
745
859
  artifact: {
@@ -748,8 +862,15 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
748
862
  template_id: string;
749
863
  variables: Record<string, {
750
864
  value: import("./indexerRegistry.js").IndexerJson;
751
- evidence_refs: string[];
752
- fact_refs: string[];
865
+ references: {
866
+ source_ref: string;
867
+ locator: {
868
+ path: string;
869
+ start_line: number;
870
+ end_line: number;
871
+ };
872
+ content_digest: string;
873
+ }[];
753
874
  }>;
754
875
  section_projections: {
755
876
  section_key: string;
@@ -761,28 +882,31 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
761
882
  artifact_id: string;
762
883
  artifact_policy_variant: string;
763
884
  } | {
764
- artifact_kind: string;
765
- representation: "sections";
766
- artifact_id: string;
767
- artifact_policy_variant: string;
768
885
  sections: {
769
886
  section_key: string;
770
887
  owner_indexer_id: string;
771
888
  document_kind: string;
772
889
  reader_goal: string;
773
890
  artifact_kind: string;
774
- blocks: ({
775
- block_id: string;
776
- layer: "deterministic-block";
777
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
778
- fact_refs: string[];
779
- } | {
780
- evidence_refs: string[];
891
+ blocks: {
892
+ references: {
893
+ source_ref: string;
894
+ locator: {
895
+ path: string;
896
+ start_line: number;
897
+ end_line: number;
898
+ };
899
+ content_digest: string;
900
+ }[];
781
901
  block_id: string;
782
902
  layer: "semantic-prose";
783
903
  markdown: string;
784
- })[];
904
+ }[];
785
905
  }[];
906
+ artifact_kind: string;
907
+ representation: "sections";
908
+ artifact_id: string;
909
+ artifact_policy_variant: string;
786
910
  template_id?: string | undefined;
787
911
  };
788
912
  }[];
@@ -833,11 +957,6 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
833
957
  } | {
834
958
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
835
959
  proposals: {
836
- evidence_refs: {
837
- ref: string;
838
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
839
- source_digest: string;
840
- }[];
841
960
  composer_ref: string;
842
961
  target_node_ref: string;
843
962
  artifact: {
@@ -846,8 +965,15 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
846
965
  template_id: string;
847
966
  variables: Record<string, {
848
967
  value: import("./indexerRegistry.js").IndexerJson;
849
- evidence_refs: string[];
850
- fact_refs: string[];
968
+ references: {
969
+ source_ref: string;
970
+ locator: {
971
+ path: string;
972
+ start_line: number;
973
+ end_line: number;
974
+ };
975
+ content_digest: string;
976
+ }[];
851
977
  }>;
852
978
  section_projections: {
853
979
  section_key: string;
@@ -859,28 +985,31 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
859
985
  artifact_id: string;
860
986
  artifact_policy_variant: string;
861
987
  } | {
862
- artifact_kind: string;
863
- representation: "sections";
864
- artifact_id: string;
865
- artifact_policy_variant: string;
866
988
  sections: {
867
989
  section_key: string;
868
990
  owner_indexer_id: string;
869
991
  document_kind: string;
870
992
  reader_goal: string;
871
993
  artifact_kind: string;
872
- blocks: ({
873
- block_id: string;
874
- layer: "deterministic-block";
875
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
876
- fact_refs: string[];
877
- } | {
878
- evidence_refs: string[];
994
+ blocks: {
995
+ references: {
996
+ source_ref: string;
997
+ locator: {
998
+ path: string;
999
+ start_line: number;
1000
+ end_line: number;
1001
+ };
1002
+ content_digest: string;
1003
+ }[];
879
1004
  block_id: string;
880
1005
  layer: "semantic-prose";
881
1006
  markdown: string;
882
- })[];
1007
+ }[];
883
1008
  }[];
1009
+ artifact_kind: string;
1010
+ representation: "sections";
1011
+ artifact_id: string;
1012
+ artifact_policy_variant: string;
884
1013
  template_id?: string | undefined;
885
1014
  };
886
1015
  }[];
@@ -959,11 +1088,6 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
959
1088
  } | {
960
1089
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
961
1090
  proposals: {
962
- evidence_refs: {
963
- ref: string;
964
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
965
- source_digest: string;
966
- }[];
967
1091
  composer_ref: string;
968
1092
  target_node_ref: string;
969
1093
  artifact: {
@@ -972,8 +1096,15 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
972
1096
  template_id: string;
973
1097
  variables: Record<string, {
974
1098
  value: import("./indexerRegistry.js").IndexerJson;
975
- evidence_refs: string[];
976
- fact_refs: string[];
1099
+ references: {
1100
+ source_ref: string;
1101
+ locator: {
1102
+ path: string;
1103
+ start_line: number;
1104
+ end_line: number;
1105
+ };
1106
+ content_digest: string;
1107
+ }[];
977
1108
  }>;
978
1109
  section_projections: {
979
1110
  section_key: string;
@@ -985,28 +1116,31 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
985
1116
  artifact_id: string;
986
1117
  artifact_policy_variant: string;
987
1118
  } | {
988
- artifact_kind: string;
989
- representation: "sections";
990
- artifact_id: string;
991
- artifact_policy_variant: string;
992
1119
  sections: {
993
1120
  section_key: string;
994
1121
  owner_indexer_id: string;
995
1122
  document_kind: string;
996
1123
  reader_goal: string;
997
1124
  artifact_kind: string;
998
- blocks: ({
999
- block_id: string;
1000
- layer: "deterministic-block";
1001
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1002
- fact_refs: string[];
1003
- } | {
1004
- evidence_refs: string[];
1125
+ blocks: {
1126
+ references: {
1127
+ source_ref: string;
1128
+ locator: {
1129
+ path: string;
1130
+ start_line: number;
1131
+ end_line: number;
1132
+ };
1133
+ content_digest: string;
1134
+ }[];
1005
1135
  block_id: string;
1006
1136
  layer: "semantic-prose";
1007
1137
  markdown: string;
1008
- })[];
1138
+ }[];
1009
1139
  }[];
1140
+ artifact_kind: string;
1141
+ representation: "sections";
1142
+ artifact_id: string;
1143
+ artifact_policy_variant: string;
1010
1144
  template_id?: string | undefined;
1011
1145
  };
1012
1146
  }[];
@@ -1083,11 +1217,6 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
1083
1217
  } | {
1084
1218
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1085
1219
  proposals: {
1086
- evidence_refs: {
1087
- ref: string;
1088
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1089
- source_digest: string;
1090
- }[];
1091
1220
  composer_ref: string;
1092
1221
  target_node_ref: string;
1093
1222
  artifact: {
@@ -1096,8 +1225,15 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
1096
1225
  template_id: string;
1097
1226
  variables: Record<string, {
1098
1227
  value: import("./indexerRegistry.js").IndexerJson;
1099
- evidence_refs: string[];
1100
- fact_refs: string[];
1228
+ references: {
1229
+ source_ref: string;
1230
+ locator: {
1231
+ path: string;
1232
+ start_line: number;
1233
+ end_line: number;
1234
+ };
1235
+ content_digest: string;
1236
+ }[];
1101
1237
  }>;
1102
1238
  section_projections: {
1103
1239
  section_key: string;
@@ -1109,28 +1245,31 @@ export declare const indexerPostAuthorRunLedgerEntrySchema: z.ZodUnion<[z.ZodObj
1109
1245
  artifact_id: string;
1110
1246
  artifact_policy_variant: string;
1111
1247
  } | {
1112
- artifact_kind: string;
1113
- representation: "sections";
1114
- artifact_id: string;
1115
- artifact_policy_variant: string;
1116
1248
  sections: {
1117
1249
  section_key: string;
1118
1250
  owner_indexer_id: string;
1119
1251
  document_kind: string;
1120
1252
  reader_goal: string;
1121
1253
  artifact_kind: string;
1122
- blocks: ({
1123
- block_id: string;
1124
- layer: "deterministic-block";
1125
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1126
- fact_refs: string[];
1127
- } | {
1128
- evidence_refs: string[];
1254
+ blocks: {
1255
+ references: {
1256
+ source_ref: string;
1257
+ locator: {
1258
+ path: string;
1259
+ start_line: number;
1260
+ end_line: number;
1261
+ };
1262
+ content_digest: string;
1263
+ }[];
1129
1264
  block_id: string;
1130
1265
  layer: "semantic-prose";
1131
1266
  markdown: string;
1132
- })[];
1267
+ }[];
1133
1268
  }[];
1269
+ artifact_kind: string;
1270
+ representation: "sections";
1271
+ artifact_id: string;
1272
+ artifact_policy_variant: string;
1134
1273
  template_id?: string | undefined;
1135
1274
  };
1136
1275
  }[];
@@ -1459,16 +1598,69 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1459
1598
  template_id: z.ZodEffects<z.ZodString, string, string>;
1460
1599
  variables: z.ZodRecord<z.ZodString, z.ZodObject<{
1461
1600
  value: z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>;
1462
- fact_refs: z.ZodArray<z.ZodString, "many">;
1463
- evidence_refs: z.ZodArray<z.ZodString, "many">;
1601
+ references: z.ZodArray<z.ZodObject<{
1602
+ source_ref: z.ZodString;
1603
+ locator: z.ZodEffects<z.ZodObject<{
1604
+ path: z.ZodEffects<z.ZodString, string, string>;
1605
+ start_line: z.ZodNumber;
1606
+ end_line: z.ZodNumber;
1607
+ }, "strict", z.ZodTypeAny, {
1608
+ path: string;
1609
+ start_line: number;
1610
+ end_line: number;
1611
+ }, {
1612
+ path: string;
1613
+ start_line: number;
1614
+ end_line: number;
1615
+ }>, {
1616
+ path: string;
1617
+ start_line: number;
1618
+ end_line: number;
1619
+ }, {
1620
+ path: string;
1621
+ start_line: number;
1622
+ end_line: number;
1623
+ }>;
1624
+ content_digest: z.ZodString;
1625
+ }, "strict", z.ZodTypeAny, {
1626
+ source_ref: string;
1627
+ locator: {
1628
+ path: string;
1629
+ start_line: number;
1630
+ end_line: number;
1631
+ };
1632
+ content_digest: string;
1633
+ }, {
1634
+ source_ref: string;
1635
+ locator: {
1636
+ path: string;
1637
+ start_line: number;
1638
+ end_line: number;
1639
+ };
1640
+ content_digest: string;
1641
+ }>, "many">;
1464
1642
  }, "strict", z.ZodTypeAny, {
1465
1643
  value: import("./indexerRegistry.js").IndexerJson;
1466
- evidence_refs: string[];
1467
- fact_refs: string[];
1644
+ references: {
1645
+ source_ref: string;
1646
+ locator: {
1647
+ path: string;
1648
+ start_line: number;
1649
+ end_line: number;
1650
+ };
1651
+ content_digest: string;
1652
+ }[];
1468
1653
  }, {
1469
1654
  value: import("./indexerRegistry.js").IndexerJson;
1470
- evidence_refs: string[];
1471
- fact_refs: string[];
1655
+ references: {
1656
+ source_ref: string;
1657
+ locator: {
1658
+ path: string;
1659
+ start_line: number;
1660
+ end_line: number;
1661
+ };
1662
+ content_digest: string;
1663
+ }[];
1472
1664
  }>>;
1473
1665
  section_projections: z.ZodArray<z.ZodObject<{
1474
1666
  section_key: z.ZodEffects<z.ZodString, string, string>;
@@ -1498,8 +1690,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1498
1690
  template_id: string;
1499
1691
  variables: Record<string, {
1500
1692
  value: import("./indexerRegistry.js").IndexerJson;
1501
- evidence_refs: string[];
1502
- fact_refs: string[];
1693
+ references: {
1694
+ source_ref: string;
1695
+ locator: {
1696
+ path: string;
1697
+ start_line: number;
1698
+ end_line: number;
1699
+ };
1700
+ content_digest: string;
1701
+ }[];
1503
1702
  }>;
1504
1703
  section_projections: {
1505
1704
  section_key: string;
@@ -1516,8 +1715,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1516
1715
  template_id: string;
1517
1716
  variables: Record<string, {
1518
1717
  value: import("./indexerRegistry.js").IndexerJson;
1519
- evidence_refs: string[];
1520
- fact_refs: string[];
1718
+ references: {
1719
+ source_ref: string;
1720
+ locator: {
1721
+ path: string;
1722
+ start_line: number;
1723
+ end_line: number;
1724
+ };
1725
+ content_digest: string;
1726
+ }[];
1521
1727
  }>;
1522
1728
  section_projections: {
1523
1729
  section_key: string;
@@ -1538,151 +1744,178 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1538
1744
  reader_goal: z.ZodEffects<z.ZodString, string, string>;
1539
1745
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1540
1746
  } & {
1541
- blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
1542
- block_id: z.ZodEffects<z.ZodString, string, string>;
1543
- layer: z.ZodLiteral<"deterministic-block">;
1544
- renderer: z.ZodEnum<["bullet-list", "key-value-table", "multi-column-table", "public-contract-table", "json-code-block"]>;
1545
- fact_refs: z.ZodArray<z.ZodString, "many">;
1546
- }, "strict", z.ZodTypeAny, {
1547
- block_id: string;
1548
- layer: "deterministic-block";
1549
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1550
- fact_refs: string[];
1551
- }, {
1552
- block_id: string;
1553
- layer: "deterministic-block";
1554
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1555
- fact_refs: string[];
1556
- }>, z.ZodObject<{
1747
+ blocks: z.ZodArray<z.ZodObject<{
1557
1748
  block_id: z.ZodEffects<z.ZodString, string, string>;
1558
1749
  layer: z.ZodLiteral<"semantic-prose">;
1559
1750
  markdown: z.ZodString;
1560
- evidence_refs: z.ZodArray<z.ZodString, "many">;
1751
+ references: z.ZodArray<z.ZodObject<{
1752
+ source_ref: z.ZodString;
1753
+ locator: z.ZodEffects<z.ZodObject<{
1754
+ path: z.ZodEffects<z.ZodString, string, string>;
1755
+ start_line: z.ZodNumber;
1756
+ end_line: z.ZodNumber;
1757
+ }, "strict", z.ZodTypeAny, {
1758
+ path: string;
1759
+ start_line: number;
1760
+ end_line: number;
1761
+ }, {
1762
+ path: string;
1763
+ start_line: number;
1764
+ end_line: number;
1765
+ }>, {
1766
+ path: string;
1767
+ start_line: number;
1768
+ end_line: number;
1769
+ }, {
1770
+ path: string;
1771
+ start_line: number;
1772
+ end_line: number;
1773
+ }>;
1774
+ content_digest: z.ZodString;
1775
+ }, "strict", z.ZodTypeAny, {
1776
+ source_ref: string;
1777
+ locator: {
1778
+ path: string;
1779
+ start_line: number;
1780
+ end_line: number;
1781
+ };
1782
+ content_digest: string;
1783
+ }, {
1784
+ source_ref: string;
1785
+ locator: {
1786
+ path: string;
1787
+ start_line: number;
1788
+ end_line: number;
1789
+ };
1790
+ content_digest: string;
1791
+ }>, "many">;
1561
1792
  }, "strict", z.ZodTypeAny, {
1562
- evidence_refs: string[];
1793
+ references: {
1794
+ source_ref: string;
1795
+ locator: {
1796
+ path: string;
1797
+ start_line: number;
1798
+ end_line: number;
1799
+ };
1800
+ content_digest: string;
1801
+ }[];
1563
1802
  block_id: string;
1564
1803
  layer: "semantic-prose";
1565
1804
  markdown: string;
1566
1805
  }, {
1567
- evidence_refs: string[];
1806
+ references: {
1807
+ source_ref: string;
1808
+ locator: {
1809
+ path: string;
1810
+ start_line: number;
1811
+ end_line: number;
1812
+ };
1813
+ content_digest: string;
1814
+ }[];
1568
1815
  block_id: string;
1569
1816
  layer: "semantic-prose";
1570
1817
  markdown: string;
1571
- }>]>, "many">;
1818
+ }>, "many">;
1572
1819
  }, "strict", z.ZodTypeAny, {
1573
1820
  section_key: string;
1574
1821
  owner_indexer_id: string;
1575
1822
  document_kind: string;
1576
1823
  reader_goal: string;
1577
1824
  artifact_kind: string;
1578
- blocks: ({
1579
- block_id: string;
1580
- layer: "deterministic-block";
1581
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1582
- fact_refs: string[];
1583
- } | {
1584
- evidence_refs: string[];
1825
+ blocks: {
1826
+ references: {
1827
+ source_ref: string;
1828
+ locator: {
1829
+ path: string;
1830
+ start_line: number;
1831
+ end_line: number;
1832
+ };
1833
+ content_digest: string;
1834
+ }[];
1585
1835
  block_id: string;
1586
1836
  layer: "semantic-prose";
1587
1837
  markdown: string;
1588
- })[];
1838
+ }[];
1589
1839
  }, {
1590
1840
  section_key: string;
1591
1841
  owner_indexer_id: string;
1592
1842
  document_kind: string;
1593
1843
  reader_goal: string;
1594
1844
  artifact_kind: string;
1595
- blocks: ({
1596
- block_id: string;
1597
- layer: "deterministic-block";
1598
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1599
- fact_refs: string[];
1600
- } | {
1601
- evidence_refs: string[];
1845
+ blocks: {
1846
+ references: {
1847
+ source_ref: string;
1848
+ locator: {
1849
+ path: string;
1850
+ start_line: number;
1851
+ end_line: number;
1852
+ };
1853
+ content_digest: string;
1854
+ }[];
1602
1855
  block_id: string;
1603
1856
  layer: "semantic-prose";
1604
1857
  markdown: string;
1605
- })[];
1858
+ }[];
1606
1859
  }>, "many">;
1607
1860
  artifact_id: z.ZodEffects<z.ZodString, string, string>;
1608
1861
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1609
1862
  artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
1610
1863
  }, "strict", z.ZodTypeAny, {
1611
- artifact_kind: string;
1612
- representation: "sections";
1613
- artifact_id: string;
1614
- artifact_policy_variant: string;
1615
1864
  sections: {
1616
1865
  section_key: string;
1617
1866
  owner_indexer_id: string;
1618
1867
  document_kind: string;
1619
1868
  reader_goal: string;
1620
1869
  artifact_kind: string;
1621
- blocks: ({
1622
- block_id: string;
1623
- layer: "deterministic-block";
1624
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1625
- fact_refs: string[];
1626
- } | {
1627
- evidence_refs: string[];
1870
+ blocks: {
1871
+ references: {
1872
+ source_ref: string;
1873
+ locator: {
1874
+ path: string;
1875
+ start_line: number;
1876
+ end_line: number;
1877
+ };
1878
+ content_digest: string;
1879
+ }[];
1628
1880
  block_id: string;
1629
1881
  layer: "semantic-prose";
1630
1882
  markdown: string;
1631
- })[];
1883
+ }[];
1632
1884
  }[];
1633
- template_id?: string | undefined;
1634
- }, {
1635
1885
  artifact_kind: string;
1636
1886
  representation: "sections";
1637
1887
  artifact_id: string;
1638
1888
  artifact_policy_variant: string;
1889
+ template_id?: string | undefined;
1890
+ }, {
1639
1891
  sections: {
1640
1892
  section_key: string;
1641
1893
  owner_indexer_id: string;
1642
1894
  document_kind: string;
1643
1895
  reader_goal: string;
1644
1896
  artifact_kind: string;
1645
- blocks: ({
1646
- block_id: string;
1647
- layer: "deterministic-block";
1648
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1649
- fact_refs: string[];
1650
- } | {
1651
- evidence_refs: string[];
1897
+ blocks: {
1898
+ references: {
1899
+ source_ref: string;
1900
+ locator: {
1901
+ path: string;
1902
+ start_line: number;
1903
+ end_line: number;
1904
+ };
1905
+ content_digest: string;
1906
+ }[];
1652
1907
  block_id: string;
1653
1908
  layer: "semantic-prose";
1654
1909
  markdown: string;
1655
- })[];
1910
+ }[];
1656
1911
  }[];
1912
+ artifact_kind: string;
1913
+ representation: "sections";
1914
+ artifact_id: string;
1915
+ artifact_policy_variant: string;
1657
1916
  template_id?: string | undefined;
1658
1917
  }>]>;
1659
- evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
1660
- ref: z.ZodString;
1661
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
1662
- source_digest: z.ZodString;
1663
- }, "strict", z.ZodTypeAny, {
1664
- ref: string;
1665
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1666
- source_digest: string;
1667
- }, {
1668
- ref: string;
1669
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1670
- source_digest: string;
1671
- }>, "many">, {
1672
- ref: string;
1673
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1674
- source_digest: string;
1675
- }[], {
1676
- ref: string;
1677
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1678
- source_digest: string;
1679
- }[]>;
1680
1918
  }, "strict", z.ZodTypeAny, {
1681
- evidence_refs: {
1682
- ref: string;
1683
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1684
- source_digest: string;
1685
- }[];
1686
1919
  composer_ref: string;
1687
1920
  target_node_ref: string;
1688
1921
  artifact: {
@@ -1691,8 +1924,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1691
1924
  template_id: string;
1692
1925
  variables: Record<string, {
1693
1926
  value: import("./indexerRegistry.js").IndexerJson;
1694
- evidence_refs: string[];
1695
- fact_refs: string[];
1927
+ references: {
1928
+ source_ref: string;
1929
+ locator: {
1930
+ path: string;
1931
+ start_line: number;
1932
+ end_line: number;
1933
+ };
1934
+ content_digest: string;
1935
+ }[];
1696
1936
  }>;
1697
1937
  section_projections: {
1698
1938
  section_key: string;
@@ -1704,36 +1944,34 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1704
1944
  artifact_id: string;
1705
1945
  artifact_policy_variant: string;
1706
1946
  } | {
1707
- artifact_kind: string;
1708
- representation: "sections";
1709
- artifact_id: string;
1710
- artifact_policy_variant: string;
1711
1947
  sections: {
1712
1948
  section_key: string;
1713
1949
  owner_indexer_id: string;
1714
1950
  document_kind: string;
1715
1951
  reader_goal: string;
1716
1952
  artifact_kind: string;
1717
- blocks: ({
1718
- block_id: string;
1719
- layer: "deterministic-block";
1720
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1721
- fact_refs: string[];
1722
- } | {
1723
- evidence_refs: string[];
1953
+ blocks: {
1954
+ references: {
1955
+ source_ref: string;
1956
+ locator: {
1957
+ path: string;
1958
+ start_line: number;
1959
+ end_line: number;
1960
+ };
1961
+ content_digest: string;
1962
+ }[];
1724
1963
  block_id: string;
1725
1964
  layer: "semantic-prose";
1726
1965
  markdown: string;
1727
- })[];
1966
+ }[];
1728
1967
  }[];
1968
+ artifact_kind: string;
1969
+ representation: "sections";
1970
+ artifact_id: string;
1971
+ artifact_policy_variant: string;
1729
1972
  template_id?: string | undefined;
1730
1973
  };
1731
1974
  }, {
1732
- evidence_refs: {
1733
- ref: string;
1734
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1735
- source_digest: string;
1736
- }[];
1737
1975
  composer_ref: string;
1738
1976
  target_node_ref: string;
1739
1977
  artifact: {
@@ -1742,8 +1980,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1742
1980
  template_id: string;
1743
1981
  variables: Record<string, {
1744
1982
  value: import("./indexerRegistry.js").IndexerJson;
1745
- evidence_refs: string[];
1746
- fact_refs: string[];
1983
+ references: {
1984
+ source_ref: string;
1985
+ locator: {
1986
+ path: string;
1987
+ start_line: number;
1988
+ end_line: number;
1989
+ };
1990
+ content_digest: string;
1991
+ }[];
1747
1992
  }>;
1748
1993
  section_projections: {
1749
1994
  section_key: string;
@@ -1755,39 +2000,37 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1755
2000
  artifact_id: string;
1756
2001
  artifact_policy_variant: string;
1757
2002
  } | {
1758
- artifact_kind: string;
1759
- representation: "sections";
1760
- artifact_id: string;
1761
- artifact_policy_variant: string;
1762
2003
  sections: {
1763
2004
  section_key: string;
1764
2005
  owner_indexer_id: string;
1765
2006
  document_kind: string;
1766
2007
  reader_goal: string;
1767
2008
  artifact_kind: string;
1768
- blocks: ({
1769
- block_id: string;
1770
- layer: "deterministic-block";
1771
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1772
- fact_refs: string[];
1773
- } | {
1774
- evidence_refs: string[];
2009
+ blocks: {
2010
+ references: {
2011
+ source_ref: string;
2012
+ locator: {
2013
+ path: string;
2014
+ start_line: number;
2015
+ end_line: number;
2016
+ };
2017
+ content_digest: string;
2018
+ }[];
1775
2019
  block_id: string;
1776
2020
  layer: "semantic-prose";
1777
2021
  markdown: string;
1778
- })[];
2022
+ }[];
1779
2023
  }[];
2024
+ artifact_kind: string;
2025
+ representation: "sections";
2026
+ artifact_id: string;
2027
+ artifact_policy_variant: string;
1780
2028
  template_id?: string | undefined;
1781
2029
  };
1782
2030
  }>, "many">;
1783
2031
  }, "strict", z.ZodTypeAny, {
1784
2032
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1785
2033
  proposals: {
1786
- evidence_refs: {
1787
- ref: string;
1788
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1789
- source_digest: string;
1790
- }[];
1791
2034
  composer_ref: string;
1792
2035
  target_node_ref: string;
1793
2036
  artifact: {
@@ -1796,8 +2039,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1796
2039
  template_id: string;
1797
2040
  variables: Record<string, {
1798
2041
  value: import("./indexerRegistry.js").IndexerJson;
1799
- evidence_refs: string[];
1800
- fact_refs: string[];
2042
+ references: {
2043
+ source_ref: string;
2044
+ locator: {
2045
+ path: string;
2046
+ start_line: number;
2047
+ end_line: number;
2048
+ };
2049
+ content_digest: string;
2050
+ }[];
1801
2051
  }>;
1802
2052
  section_projections: {
1803
2053
  section_key: string;
@@ -1809,39 +2059,37 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1809
2059
  artifact_id: string;
1810
2060
  artifact_policy_variant: string;
1811
2061
  } | {
1812
- artifact_kind: string;
1813
- representation: "sections";
1814
- artifact_id: string;
1815
- artifact_policy_variant: string;
1816
2062
  sections: {
1817
2063
  section_key: string;
1818
2064
  owner_indexer_id: string;
1819
2065
  document_kind: string;
1820
2066
  reader_goal: string;
1821
2067
  artifact_kind: string;
1822
- blocks: ({
1823
- block_id: string;
1824
- layer: "deterministic-block";
1825
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1826
- fact_refs: string[];
1827
- } | {
1828
- evidence_refs: string[];
2068
+ blocks: {
2069
+ references: {
2070
+ source_ref: string;
2071
+ locator: {
2072
+ path: string;
2073
+ start_line: number;
2074
+ end_line: number;
2075
+ };
2076
+ content_digest: string;
2077
+ }[];
1829
2078
  block_id: string;
1830
2079
  layer: "semantic-prose";
1831
2080
  markdown: string;
1832
- })[];
2081
+ }[];
1833
2082
  }[];
2083
+ artifact_kind: string;
2084
+ representation: "sections";
2085
+ artifact_id: string;
2086
+ artifact_policy_variant: string;
1834
2087
  template_id?: string | undefined;
1835
2088
  };
1836
2089
  }[];
1837
2090
  }, {
1838
2091
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1839
2092
  proposals: {
1840
- evidence_refs: {
1841
- ref: string;
1842
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1843
- source_digest: string;
1844
- }[];
1845
2093
  composer_ref: string;
1846
2094
  target_node_ref: string;
1847
2095
  artifact: {
@@ -1850,8 +2098,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1850
2098
  template_id: string;
1851
2099
  variables: Record<string, {
1852
2100
  value: import("./indexerRegistry.js").IndexerJson;
1853
- evidence_refs: string[];
1854
- fact_refs: string[];
2101
+ references: {
2102
+ source_ref: string;
2103
+ locator: {
2104
+ path: string;
2105
+ start_line: number;
2106
+ end_line: number;
2107
+ };
2108
+ content_digest: string;
2109
+ }[];
1855
2110
  }>;
1856
2111
  section_projections: {
1857
2112
  section_key: string;
@@ -1863,28 +2118,31 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1863
2118
  artifact_id: string;
1864
2119
  artifact_policy_variant: string;
1865
2120
  } | {
1866
- artifact_kind: string;
1867
- representation: "sections";
1868
- artifact_id: string;
1869
- artifact_policy_variant: string;
1870
2121
  sections: {
1871
2122
  section_key: string;
1872
2123
  owner_indexer_id: string;
1873
2124
  document_kind: string;
1874
2125
  reader_goal: string;
1875
2126
  artifact_kind: string;
1876
- blocks: ({
1877
- block_id: string;
1878
- layer: "deterministic-block";
1879
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1880
- fact_refs: string[];
1881
- } | {
1882
- evidence_refs: string[];
2127
+ blocks: {
2128
+ references: {
2129
+ source_ref: string;
2130
+ locator: {
2131
+ path: string;
2132
+ start_line: number;
2133
+ end_line: number;
2134
+ };
2135
+ content_digest: string;
2136
+ }[];
1883
2137
  block_id: string;
1884
2138
  layer: "semantic-prose";
1885
2139
  markdown: string;
1886
- })[];
2140
+ }[];
1887
2141
  }[];
2142
+ artifact_kind: string;
2143
+ representation: "sections";
2144
+ artifact_id: string;
2145
+ artifact_policy_variant: string;
1888
2146
  template_id?: string | undefined;
1889
2147
  };
1890
2148
  }[];
@@ -1945,11 +2203,6 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1945
2203
  } | {
1946
2204
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1947
2205
  proposals: {
1948
- evidence_refs: {
1949
- ref: string;
1950
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1951
- source_digest: string;
1952
- }[];
1953
2206
  composer_ref: string;
1954
2207
  target_node_ref: string;
1955
2208
  artifact: {
@@ -1958,8 +2211,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1958
2211
  template_id: string;
1959
2212
  variables: Record<string, {
1960
2213
  value: import("./indexerRegistry.js").IndexerJson;
1961
- evidence_refs: string[];
1962
- fact_refs: string[];
2214
+ references: {
2215
+ source_ref: string;
2216
+ locator: {
2217
+ path: string;
2218
+ start_line: number;
2219
+ end_line: number;
2220
+ };
2221
+ content_digest: string;
2222
+ }[];
1963
2223
  }>;
1964
2224
  section_projections: {
1965
2225
  section_key: string;
@@ -1971,28 +2231,31 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
1971
2231
  artifact_id: string;
1972
2232
  artifact_policy_variant: string;
1973
2233
  } | {
1974
- artifact_kind: string;
1975
- representation: "sections";
1976
- artifact_id: string;
1977
- artifact_policy_variant: string;
1978
2234
  sections: {
1979
2235
  section_key: string;
1980
2236
  owner_indexer_id: string;
1981
2237
  document_kind: string;
1982
2238
  reader_goal: string;
1983
2239
  artifact_kind: string;
1984
- blocks: ({
1985
- block_id: string;
1986
- layer: "deterministic-block";
1987
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1988
- fact_refs: string[];
1989
- } | {
1990
- evidence_refs: string[];
2240
+ blocks: {
2241
+ references: {
2242
+ source_ref: string;
2243
+ locator: {
2244
+ path: string;
2245
+ start_line: number;
2246
+ end_line: number;
2247
+ };
2248
+ content_digest: string;
2249
+ }[];
1991
2250
  block_id: string;
1992
2251
  layer: "semantic-prose";
1993
2252
  markdown: string;
1994
- })[];
2253
+ }[];
1995
2254
  }[];
2255
+ artifact_kind: string;
2256
+ representation: "sections";
2257
+ artifact_id: string;
2258
+ artifact_policy_variant: string;
1996
2259
  template_id?: string | undefined;
1997
2260
  };
1998
2261
  }[];
@@ -2043,11 +2306,6 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2043
2306
  } | {
2044
2307
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2045
2308
  proposals: {
2046
- evidence_refs: {
2047
- ref: string;
2048
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2049
- source_digest: string;
2050
- }[];
2051
2309
  composer_ref: string;
2052
2310
  target_node_ref: string;
2053
2311
  artifact: {
@@ -2056,8 +2314,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2056
2314
  template_id: string;
2057
2315
  variables: Record<string, {
2058
2316
  value: import("./indexerRegistry.js").IndexerJson;
2059
- evidence_refs: string[];
2060
- fact_refs: string[];
2317
+ references: {
2318
+ source_ref: string;
2319
+ locator: {
2320
+ path: string;
2321
+ start_line: number;
2322
+ end_line: number;
2323
+ };
2324
+ content_digest: string;
2325
+ }[];
2061
2326
  }>;
2062
2327
  section_projections: {
2063
2328
  section_key: string;
@@ -2069,28 +2334,31 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2069
2334
  artifact_id: string;
2070
2335
  artifact_policy_variant: string;
2071
2336
  } | {
2072
- artifact_kind: string;
2073
- representation: "sections";
2074
- artifact_id: string;
2075
- artifact_policy_variant: string;
2076
2337
  sections: {
2077
2338
  section_key: string;
2078
2339
  owner_indexer_id: string;
2079
2340
  document_kind: string;
2080
2341
  reader_goal: string;
2081
2342
  artifact_kind: string;
2082
- blocks: ({
2083
- block_id: string;
2084
- layer: "deterministic-block";
2085
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2086
- fact_refs: string[];
2087
- } | {
2088
- evidence_refs: string[];
2343
+ blocks: {
2344
+ references: {
2345
+ source_ref: string;
2346
+ locator: {
2347
+ path: string;
2348
+ start_line: number;
2349
+ end_line: number;
2350
+ };
2351
+ content_digest: string;
2352
+ }[];
2089
2353
  block_id: string;
2090
2354
  layer: "semantic-prose";
2091
2355
  markdown: string;
2092
- })[];
2356
+ }[];
2093
2357
  }[];
2358
+ artifact_kind: string;
2359
+ representation: "sections";
2360
+ artifact_id: string;
2361
+ artifact_policy_variant: string;
2094
2362
  template_id?: string | undefined;
2095
2363
  };
2096
2364
  }[];
@@ -2169,11 +2437,6 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2169
2437
  } | {
2170
2438
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2171
2439
  proposals: {
2172
- evidence_refs: {
2173
- ref: string;
2174
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2175
- source_digest: string;
2176
- }[];
2177
2440
  composer_ref: string;
2178
2441
  target_node_ref: string;
2179
2442
  artifact: {
@@ -2182,8 +2445,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2182
2445
  template_id: string;
2183
2446
  variables: Record<string, {
2184
2447
  value: import("./indexerRegistry.js").IndexerJson;
2185
- evidence_refs: string[];
2186
- fact_refs: string[];
2448
+ references: {
2449
+ source_ref: string;
2450
+ locator: {
2451
+ path: string;
2452
+ start_line: number;
2453
+ end_line: number;
2454
+ };
2455
+ content_digest: string;
2456
+ }[];
2187
2457
  }>;
2188
2458
  section_projections: {
2189
2459
  section_key: string;
@@ -2195,28 +2465,31 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2195
2465
  artifact_id: string;
2196
2466
  artifact_policy_variant: string;
2197
2467
  } | {
2198
- artifact_kind: string;
2199
- representation: "sections";
2200
- artifact_id: string;
2201
- artifact_policy_variant: string;
2202
2468
  sections: {
2203
2469
  section_key: string;
2204
2470
  owner_indexer_id: string;
2205
2471
  document_kind: string;
2206
2472
  reader_goal: string;
2207
2473
  artifact_kind: string;
2208
- blocks: ({
2209
- block_id: string;
2210
- layer: "deterministic-block";
2211
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2212
- fact_refs: string[];
2213
- } | {
2214
- evidence_refs: string[];
2474
+ blocks: {
2475
+ references: {
2476
+ source_ref: string;
2477
+ locator: {
2478
+ path: string;
2479
+ start_line: number;
2480
+ end_line: number;
2481
+ };
2482
+ content_digest: string;
2483
+ }[];
2215
2484
  block_id: string;
2216
2485
  layer: "semantic-prose";
2217
2486
  markdown: string;
2218
- })[];
2487
+ }[];
2219
2488
  }[];
2489
+ artifact_kind: string;
2490
+ representation: "sections";
2491
+ artifact_id: string;
2492
+ artifact_policy_variant: string;
2220
2493
  template_id?: string | undefined;
2221
2494
  };
2222
2495
  }[];
@@ -2293,11 +2566,6 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2293
2566
  } | {
2294
2567
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2295
2568
  proposals: {
2296
- evidence_refs: {
2297
- ref: string;
2298
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2299
- source_digest: string;
2300
- }[];
2301
2569
  composer_ref: string;
2302
2570
  target_node_ref: string;
2303
2571
  artifact: {
@@ -2306,8 +2574,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2306
2574
  template_id: string;
2307
2575
  variables: Record<string, {
2308
2576
  value: import("./indexerRegistry.js").IndexerJson;
2309
- evidence_refs: string[];
2310
- fact_refs: string[];
2577
+ references: {
2578
+ source_ref: string;
2579
+ locator: {
2580
+ path: string;
2581
+ start_line: number;
2582
+ end_line: number;
2583
+ };
2584
+ content_digest: string;
2585
+ }[];
2311
2586
  }>;
2312
2587
  section_projections: {
2313
2588
  section_key: string;
@@ -2319,28 +2594,31 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2319
2594
  artifact_id: string;
2320
2595
  artifact_policy_variant: string;
2321
2596
  } | {
2322
- artifact_kind: string;
2323
- representation: "sections";
2324
- artifact_id: string;
2325
- artifact_policy_variant: string;
2326
2597
  sections: {
2327
2598
  section_key: string;
2328
2599
  owner_indexer_id: string;
2329
2600
  document_kind: string;
2330
2601
  reader_goal: string;
2331
2602
  artifact_kind: string;
2332
- blocks: ({
2333
- block_id: string;
2334
- layer: "deterministic-block";
2335
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2336
- fact_refs: string[];
2337
- } | {
2338
- evidence_refs: string[];
2603
+ blocks: {
2604
+ references: {
2605
+ source_ref: string;
2606
+ locator: {
2607
+ path: string;
2608
+ start_line: number;
2609
+ end_line: number;
2610
+ };
2611
+ content_digest: string;
2612
+ }[];
2339
2613
  block_id: string;
2340
2614
  layer: "semantic-prose";
2341
2615
  markdown: string;
2342
- })[];
2616
+ }[];
2343
2617
  }[];
2618
+ artifact_kind: string;
2619
+ representation: "sections";
2620
+ artifact_id: string;
2621
+ artifact_policy_variant: string;
2344
2622
  template_id?: string | undefined;
2345
2623
  };
2346
2624
  }[];
@@ -2482,11 +2760,6 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2482
2760
  } | {
2483
2761
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2484
2762
  proposals: {
2485
- evidence_refs: {
2486
- ref: string;
2487
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2488
- source_digest: string;
2489
- }[];
2490
2763
  composer_ref: string;
2491
2764
  target_node_ref: string;
2492
2765
  artifact: {
@@ -2495,8 +2768,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2495
2768
  template_id: string;
2496
2769
  variables: Record<string, {
2497
2770
  value: import("./indexerRegistry.js").IndexerJson;
2498
- evidence_refs: string[];
2499
- fact_refs: string[];
2771
+ references: {
2772
+ source_ref: string;
2773
+ locator: {
2774
+ path: string;
2775
+ start_line: number;
2776
+ end_line: number;
2777
+ };
2778
+ content_digest: string;
2779
+ }[];
2500
2780
  }>;
2501
2781
  section_projections: {
2502
2782
  section_key: string;
@@ -2508,28 +2788,31 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2508
2788
  artifact_id: string;
2509
2789
  artifact_policy_variant: string;
2510
2790
  } | {
2511
- artifact_kind: string;
2512
- representation: "sections";
2513
- artifact_id: string;
2514
- artifact_policy_variant: string;
2515
2791
  sections: {
2516
2792
  section_key: string;
2517
2793
  owner_indexer_id: string;
2518
2794
  document_kind: string;
2519
2795
  reader_goal: string;
2520
2796
  artifact_kind: string;
2521
- blocks: ({
2522
- block_id: string;
2523
- layer: "deterministic-block";
2524
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2525
- fact_refs: string[];
2526
- } | {
2527
- evidence_refs: string[];
2797
+ blocks: {
2798
+ references: {
2799
+ source_ref: string;
2800
+ locator: {
2801
+ path: string;
2802
+ start_line: number;
2803
+ end_line: number;
2804
+ };
2805
+ content_digest: string;
2806
+ }[];
2528
2807
  block_id: string;
2529
2808
  layer: "semantic-prose";
2530
2809
  markdown: string;
2531
- })[];
2810
+ }[];
2532
2811
  }[];
2812
+ artifact_kind: string;
2813
+ representation: "sections";
2814
+ artifact_id: string;
2815
+ artifact_policy_variant: string;
2533
2816
  template_id?: string | undefined;
2534
2817
  };
2535
2818
  }[];
@@ -2633,11 +2916,6 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2633
2916
  } | {
2634
2917
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2635
2918
  proposals: {
2636
- evidence_refs: {
2637
- ref: string;
2638
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2639
- source_digest: string;
2640
- }[];
2641
2919
  composer_ref: string;
2642
2920
  target_node_ref: string;
2643
2921
  artifact: {
@@ -2646,8 +2924,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2646
2924
  template_id: string;
2647
2925
  variables: Record<string, {
2648
2926
  value: import("./indexerRegistry.js").IndexerJson;
2649
- evidence_refs: string[];
2650
- fact_refs: string[];
2927
+ references: {
2928
+ source_ref: string;
2929
+ locator: {
2930
+ path: string;
2931
+ start_line: number;
2932
+ end_line: number;
2933
+ };
2934
+ content_digest: string;
2935
+ }[];
2651
2936
  }>;
2652
2937
  section_projections: {
2653
2938
  section_key: string;
@@ -2659,28 +2944,31 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2659
2944
  artifact_id: string;
2660
2945
  artifact_policy_variant: string;
2661
2946
  } | {
2662
- artifact_kind: string;
2663
- representation: "sections";
2664
- artifact_id: string;
2665
- artifact_policy_variant: string;
2666
2947
  sections: {
2667
2948
  section_key: string;
2668
2949
  owner_indexer_id: string;
2669
2950
  document_kind: string;
2670
2951
  reader_goal: string;
2671
2952
  artifact_kind: string;
2672
- blocks: ({
2673
- block_id: string;
2674
- layer: "deterministic-block";
2675
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2676
- fact_refs: string[];
2677
- } | {
2678
- evidence_refs: string[];
2953
+ blocks: {
2954
+ references: {
2955
+ source_ref: string;
2956
+ locator: {
2957
+ path: string;
2958
+ start_line: number;
2959
+ end_line: number;
2960
+ };
2961
+ content_digest: string;
2962
+ }[];
2679
2963
  block_id: string;
2680
2964
  layer: "semantic-prose";
2681
2965
  markdown: string;
2682
- })[];
2966
+ }[];
2683
2967
  }[];
2968
+ artifact_kind: string;
2969
+ representation: "sections";
2970
+ artifact_id: string;
2971
+ artifact_policy_variant: string;
2684
2972
  template_id?: string | undefined;
2685
2973
  };
2686
2974
  }[];
@@ -2784,11 +3072,6 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2784
3072
  } | {
2785
3073
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2786
3074
  proposals: {
2787
- evidence_refs: {
2788
- ref: string;
2789
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2790
- source_digest: string;
2791
- }[];
2792
3075
  composer_ref: string;
2793
3076
  target_node_ref: string;
2794
3077
  artifact: {
@@ -2797,8 +3080,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2797
3080
  template_id: string;
2798
3081
  variables: Record<string, {
2799
3082
  value: import("./indexerRegistry.js").IndexerJson;
2800
- evidence_refs: string[];
2801
- fact_refs: string[];
3083
+ references: {
3084
+ source_ref: string;
3085
+ locator: {
3086
+ path: string;
3087
+ start_line: number;
3088
+ end_line: number;
3089
+ };
3090
+ content_digest: string;
3091
+ }[];
2802
3092
  }>;
2803
3093
  section_projections: {
2804
3094
  section_key: string;
@@ -2810,28 +3100,31 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2810
3100
  artifact_id: string;
2811
3101
  artifact_policy_variant: string;
2812
3102
  } | {
2813
- artifact_kind: string;
2814
- representation: "sections";
2815
- artifact_id: string;
2816
- artifact_policy_variant: string;
2817
3103
  sections: {
2818
3104
  section_key: string;
2819
3105
  owner_indexer_id: string;
2820
3106
  document_kind: string;
2821
3107
  reader_goal: string;
2822
3108
  artifact_kind: string;
2823
- blocks: ({
2824
- block_id: string;
2825
- layer: "deterministic-block";
2826
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2827
- fact_refs: string[];
2828
- } | {
2829
- evidence_refs: string[];
3109
+ blocks: {
3110
+ references: {
3111
+ source_ref: string;
3112
+ locator: {
3113
+ path: string;
3114
+ start_line: number;
3115
+ end_line: number;
3116
+ };
3117
+ content_digest: string;
3118
+ }[];
2830
3119
  block_id: string;
2831
3120
  layer: "semantic-prose";
2832
3121
  markdown: string;
2833
- })[];
3122
+ }[];
2834
3123
  }[];
3124
+ artifact_kind: string;
3125
+ representation: "sections";
3126
+ artifact_id: string;
3127
+ artifact_policy_variant: string;
2835
3128
  template_id?: string | undefined;
2836
3129
  };
2837
3130
  }[];
@@ -2935,11 +3228,6 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2935
3228
  } | {
2936
3229
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2937
3230
  proposals: {
2938
- evidence_refs: {
2939
- ref: string;
2940
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2941
- source_digest: string;
2942
- }[];
2943
3231
  composer_ref: string;
2944
3232
  target_node_ref: string;
2945
3233
  artifact: {
@@ -2948,8 +3236,15 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2948
3236
  template_id: string;
2949
3237
  variables: Record<string, {
2950
3238
  value: import("./indexerRegistry.js").IndexerJson;
2951
- evidence_refs: string[];
2952
- fact_refs: string[];
3239
+ references: {
3240
+ source_ref: string;
3241
+ locator: {
3242
+ path: string;
3243
+ start_line: number;
3244
+ end_line: number;
3245
+ };
3246
+ content_digest: string;
3247
+ }[];
2953
3248
  }>;
2954
3249
  section_projections: {
2955
3250
  section_key: string;
@@ -2961,28 +3256,31 @@ export declare const indexerPostAuthorRunLedgerSchema: z.ZodEffects<z.ZodObject<
2961
3256
  artifact_id: string;
2962
3257
  artifact_policy_variant: string;
2963
3258
  } | {
2964
- artifact_kind: string;
2965
- representation: "sections";
2966
- artifact_id: string;
2967
- artifact_policy_variant: string;
2968
3259
  sections: {
2969
3260
  section_key: string;
2970
3261
  owner_indexer_id: string;
2971
3262
  document_kind: string;
2972
3263
  reader_goal: string;
2973
3264
  artifact_kind: string;
2974
- blocks: ({
2975
- block_id: string;
2976
- layer: "deterministic-block";
2977
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2978
- fact_refs: string[];
2979
- } | {
2980
- evidence_refs: string[];
3265
+ blocks: {
3266
+ references: {
3267
+ source_ref: string;
3268
+ locator: {
3269
+ path: string;
3270
+ start_line: number;
3271
+ end_line: number;
3272
+ };
3273
+ content_digest: string;
3274
+ }[];
2981
3275
  block_id: string;
2982
3276
  layer: "semantic-prose";
2983
3277
  markdown: string;
2984
- })[];
3278
+ }[];
2985
3279
  }[];
3280
+ artifact_kind: string;
3281
+ representation: "sections";
3282
+ artifact_id: string;
3283
+ artifact_policy_variant: string;
2986
3284
  template_id?: string | undefined;
2987
3285
  };
2988
3286
  }[];
@@ -3085,10 +3383,10 @@ export declare const indexerPostAuthorStatusSchema: z.ZodObject<{
3085
3383
  digest: z.ZodNullable<z.ZodString>;
3086
3384
  }, "strict", z.ZodTypeAny, {
3087
3385
  digest: string | null;
3088
- state: "not-required" | "current" | "stale";
3386
+ state: "not-required" | "stale" | "current";
3089
3387
  }, {
3090
3388
  digest: string | null;
3091
- state: "not-required" | "current" | "stale";
3389
+ state: "not-required" | "stale" | "current";
3092
3390
  }>;
3093
3391
  outcome: z.ZodEnum<["complete", "index-post-author-workset-pending", "index-post-author-workset-failed", "index-post-author-workset-stale", "index-post-author-envelope-stale"]>;
3094
3392
  can_reconcile: z.ZodBoolean;
@@ -3111,7 +3409,7 @@ export declare const indexerPostAuthorStatusSchema: z.ZodObject<{
3111
3409
  accepted_receipt_set_digest: string;
3112
3410
  post_author_envelope: {
3113
3411
  digest: string | null;
3114
- state: "not-required" | "current" | "stale";
3412
+ state: "not-required" | "stale" | "current";
3115
3413
  };
3116
3414
  can_reconcile: boolean;
3117
3415
  }, {
@@ -3132,7 +3430,7 @@ export declare const indexerPostAuthorStatusSchema: z.ZodObject<{
3132
3430
  accepted_receipt_set_digest: string;
3133
3431
  post_author_envelope: {
3134
3432
  digest: string | null;
3135
- state: "not-required" | "current" | "stale";
3433
+ state: "not-required" | "stale" | "current";
3136
3434
  };
3137
3435
  can_reconcile: boolean;
3138
3436
  }>;