@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
@@ -169,16 +169,69 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
169
169
  template_id: z.ZodEffects<z.ZodString, string, string>;
170
170
  variables: z.ZodRecord<z.ZodString, z.ZodObject<{
171
171
  value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
172
- fact_refs: z.ZodArray<z.ZodString, "many">;
173
- evidence_refs: z.ZodArray<z.ZodString, "many">;
172
+ references: z.ZodArray<z.ZodObject<{
173
+ source_ref: z.ZodString;
174
+ locator: z.ZodEffects<z.ZodObject<{
175
+ path: z.ZodEffects<z.ZodString, string, string>;
176
+ start_line: z.ZodNumber;
177
+ end_line: z.ZodNumber;
178
+ }, "strict", z.ZodTypeAny, {
179
+ path: string;
180
+ start_line: number;
181
+ end_line: number;
182
+ }, {
183
+ path: string;
184
+ start_line: number;
185
+ end_line: number;
186
+ }>, {
187
+ path: string;
188
+ start_line: number;
189
+ end_line: number;
190
+ }, {
191
+ path: string;
192
+ start_line: number;
193
+ end_line: number;
194
+ }>;
195
+ content_digest: z.ZodString;
196
+ }, "strict", z.ZodTypeAny, {
197
+ source_ref: string;
198
+ locator: {
199
+ path: string;
200
+ start_line: number;
201
+ end_line: number;
202
+ };
203
+ content_digest: string;
204
+ }, {
205
+ source_ref: string;
206
+ locator: {
207
+ path: string;
208
+ start_line: number;
209
+ end_line: number;
210
+ };
211
+ content_digest: string;
212
+ }>, "many">;
174
213
  }, "strict", z.ZodTypeAny, {
175
214
  value: IndexerJson;
176
- evidence_refs: string[];
177
- fact_refs: string[];
215
+ references: {
216
+ source_ref: string;
217
+ locator: {
218
+ path: string;
219
+ start_line: number;
220
+ end_line: number;
221
+ };
222
+ content_digest: string;
223
+ }[];
178
224
  }, {
179
225
  value: IndexerJson;
180
- evidence_refs: string[];
181
- fact_refs: string[];
226
+ references: {
227
+ source_ref: string;
228
+ locator: {
229
+ path: string;
230
+ start_line: number;
231
+ end_line: number;
232
+ };
233
+ content_digest: string;
234
+ }[];
182
235
  }>>;
183
236
  section_projections: z.ZodArray<z.ZodObject<{
184
237
  section_key: z.ZodEffects<z.ZodString, string, string>;
@@ -208,8 +261,15 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
208
261
  template_id: string;
209
262
  variables: Record<string, {
210
263
  value: IndexerJson;
211
- evidence_refs: string[];
212
- fact_refs: string[];
264
+ references: {
265
+ source_ref: string;
266
+ locator: {
267
+ path: string;
268
+ start_line: number;
269
+ end_line: number;
270
+ };
271
+ content_digest: string;
272
+ }[];
213
273
  }>;
214
274
  section_projections: {
215
275
  section_key: string;
@@ -226,8 +286,15 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
226
286
  template_id: string;
227
287
  variables: Record<string, {
228
288
  value: IndexerJson;
229
- evidence_refs: string[];
230
- fact_refs: string[];
289
+ references: {
290
+ source_ref: string;
291
+ locator: {
292
+ path: string;
293
+ start_line: number;
294
+ end_line: number;
295
+ };
296
+ content_digest: string;
297
+ }[];
231
298
  }>;
232
299
  section_projections: {
233
300
  section_key: string;
@@ -248,151 +315,178 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
248
315
  reader_goal: z.ZodEffects<z.ZodString, string, string>;
249
316
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
250
317
  } & {
251
- blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
252
- block_id: z.ZodEffects<z.ZodString, string, string>;
253
- layer: z.ZodLiteral<"deterministic-block">;
254
- renderer: z.ZodEnum<["bullet-list", "key-value-table", "multi-column-table", "public-contract-table", "json-code-block"]>;
255
- fact_refs: z.ZodArray<z.ZodString, "many">;
256
- }, "strict", z.ZodTypeAny, {
257
- block_id: string;
258
- layer: "deterministic-block";
259
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
260
- fact_refs: string[];
261
- }, {
262
- block_id: string;
263
- layer: "deterministic-block";
264
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
265
- fact_refs: string[];
266
- }>, z.ZodObject<{
318
+ blocks: z.ZodArray<z.ZodObject<{
267
319
  block_id: z.ZodEffects<z.ZodString, string, string>;
268
320
  layer: z.ZodLiteral<"semantic-prose">;
269
321
  markdown: z.ZodString;
270
- evidence_refs: z.ZodArray<z.ZodString, "many">;
322
+ references: z.ZodArray<z.ZodObject<{
323
+ source_ref: z.ZodString;
324
+ locator: z.ZodEffects<z.ZodObject<{
325
+ path: z.ZodEffects<z.ZodString, string, string>;
326
+ start_line: z.ZodNumber;
327
+ end_line: z.ZodNumber;
328
+ }, "strict", z.ZodTypeAny, {
329
+ path: string;
330
+ start_line: number;
331
+ end_line: number;
332
+ }, {
333
+ path: string;
334
+ start_line: number;
335
+ end_line: number;
336
+ }>, {
337
+ path: string;
338
+ start_line: number;
339
+ end_line: number;
340
+ }, {
341
+ path: string;
342
+ start_line: number;
343
+ end_line: number;
344
+ }>;
345
+ content_digest: z.ZodString;
346
+ }, "strict", z.ZodTypeAny, {
347
+ source_ref: string;
348
+ locator: {
349
+ path: string;
350
+ start_line: number;
351
+ end_line: number;
352
+ };
353
+ content_digest: string;
354
+ }, {
355
+ source_ref: string;
356
+ locator: {
357
+ path: string;
358
+ start_line: number;
359
+ end_line: number;
360
+ };
361
+ content_digest: string;
362
+ }>, "many">;
271
363
  }, "strict", z.ZodTypeAny, {
272
- evidence_refs: string[];
364
+ references: {
365
+ source_ref: string;
366
+ locator: {
367
+ path: string;
368
+ start_line: number;
369
+ end_line: number;
370
+ };
371
+ content_digest: string;
372
+ }[];
273
373
  block_id: string;
274
374
  layer: "semantic-prose";
275
375
  markdown: string;
276
376
  }, {
277
- evidence_refs: string[];
377
+ references: {
378
+ source_ref: string;
379
+ locator: {
380
+ path: string;
381
+ start_line: number;
382
+ end_line: number;
383
+ };
384
+ content_digest: string;
385
+ }[];
278
386
  block_id: string;
279
387
  layer: "semantic-prose";
280
388
  markdown: string;
281
- }>]>, "many">;
389
+ }>, "many">;
282
390
  }, "strict", z.ZodTypeAny, {
283
391
  section_key: string;
284
392
  owner_indexer_id: string;
285
393
  document_kind: string;
286
394
  reader_goal: string;
287
395
  artifact_kind: string;
288
- blocks: ({
289
- block_id: string;
290
- layer: "deterministic-block";
291
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
292
- fact_refs: string[];
293
- } | {
294
- evidence_refs: string[];
396
+ blocks: {
397
+ references: {
398
+ source_ref: string;
399
+ locator: {
400
+ path: string;
401
+ start_line: number;
402
+ end_line: number;
403
+ };
404
+ content_digest: string;
405
+ }[];
295
406
  block_id: string;
296
407
  layer: "semantic-prose";
297
408
  markdown: string;
298
- })[];
409
+ }[];
299
410
  }, {
300
411
  section_key: string;
301
412
  owner_indexer_id: string;
302
413
  document_kind: string;
303
414
  reader_goal: string;
304
415
  artifact_kind: string;
305
- blocks: ({
306
- block_id: string;
307
- layer: "deterministic-block";
308
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
309
- fact_refs: string[];
310
- } | {
311
- evidence_refs: string[];
416
+ blocks: {
417
+ references: {
418
+ source_ref: string;
419
+ locator: {
420
+ path: string;
421
+ start_line: number;
422
+ end_line: number;
423
+ };
424
+ content_digest: string;
425
+ }[];
312
426
  block_id: string;
313
427
  layer: "semantic-prose";
314
428
  markdown: string;
315
- })[];
429
+ }[];
316
430
  }>, "many">;
317
431
  artifact_id: z.ZodEffects<z.ZodString, string, string>;
318
432
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
319
433
  artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
320
434
  }, "strict", z.ZodTypeAny, {
321
- artifact_kind: string;
322
- representation: "sections";
323
- artifact_id: string;
324
- artifact_policy_variant: string;
325
435
  sections: {
326
436
  section_key: string;
327
437
  owner_indexer_id: string;
328
438
  document_kind: string;
329
439
  reader_goal: string;
330
440
  artifact_kind: string;
331
- blocks: ({
332
- block_id: string;
333
- layer: "deterministic-block";
334
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
335
- fact_refs: string[];
336
- } | {
337
- evidence_refs: string[];
441
+ blocks: {
442
+ references: {
443
+ source_ref: string;
444
+ locator: {
445
+ path: string;
446
+ start_line: number;
447
+ end_line: number;
448
+ };
449
+ content_digest: string;
450
+ }[];
338
451
  block_id: string;
339
452
  layer: "semantic-prose";
340
453
  markdown: string;
341
- })[];
454
+ }[];
342
455
  }[];
343
- template_id?: string | undefined;
344
- }, {
345
456
  artifact_kind: string;
346
457
  representation: "sections";
347
458
  artifact_id: string;
348
459
  artifact_policy_variant: string;
460
+ template_id?: string | undefined;
461
+ }, {
349
462
  sections: {
350
463
  section_key: string;
351
464
  owner_indexer_id: string;
352
465
  document_kind: string;
353
466
  reader_goal: string;
354
467
  artifact_kind: string;
355
- blocks: ({
356
- block_id: string;
357
- layer: "deterministic-block";
358
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
359
- fact_refs: string[];
360
- } | {
361
- evidence_refs: string[];
468
+ blocks: {
469
+ references: {
470
+ source_ref: string;
471
+ locator: {
472
+ path: string;
473
+ start_line: number;
474
+ end_line: number;
475
+ };
476
+ content_digest: string;
477
+ }[];
362
478
  block_id: string;
363
479
  layer: "semantic-prose";
364
480
  markdown: string;
365
- })[];
481
+ }[];
366
482
  }[];
483
+ artifact_kind: string;
484
+ representation: "sections";
485
+ artifact_id: string;
486
+ artifact_policy_variant: string;
367
487
  template_id?: string | undefined;
368
488
  }>]>;
369
- evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
370
- ref: z.ZodString;
371
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
372
- source_digest: z.ZodString;
373
- }, "strict", z.ZodTypeAny, {
374
- ref: string;
375
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
376
- source_digest: string;
377
- }, {
378
- ref: string;
379
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
380
- source_digest: string;
381
- }>, "many">, {
382
- ref: string;
383
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
384
- source_digest: string;
385
- }[], {
386
- ref: string;
387
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
388
- source_digest: string;
389
- }[]>;
390
489
  }, "strict", z.ZodTypeAny, {
391
- evidence_refs: {
392
- ref: string;
393
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
394
- source_digest: string;
395
- }[];
396
490
  composer_ref: string;
397
491
  target_node_ref: string;
398
492
  artifact: {
@@ -401,8 +495,15 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
401
495
  template_id: string;
402
496
  variables: Record<string, {
403
497
  value: IndexerJson;
404
- evidence_refs: string[];
405
- fact_refs: string[];
498
+ references: {
499
+ source_ref: string;
500
+ locator: {
501
+ path: string;
502
+ start_line: number;
503
+ end_line: number;
504
+ };
505
+ content_digest: string;
506
+ }[];
406
507
  }>;
407
508
  section_projections: {
408
509
  section_key: string;
@@ -414,36 +515,34 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
414
515
  artifact_id: string;
415
516
  artifact_policy_variant: string;
416
517
  } | {
417
- artifact_kind: string;
418
- representation: "sections";
419
- artifact_id: string;
420
- artifact_policy_variant: string;
421
518
  sections: {
422
519
  section_key: string;
423
520
  owner_indexer_id: string;
424
521
  document_kind: string;
425
522
  reader_goal: string;
426
523
  artifact_kind: string;
427
- blocks: ({
428
- block_id: string;
429
- layer: "deterministic-block";
430
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
431
- fact_refs: string[];
432
- } | {
433
- evidence_refs: string[];
524
+ blocks: {
525
+ references: {
526
+ source_ref: string;
527
+ locator: {
528
+ path: string;
529
+ start_line: number;
530
+ end_line: number;
531
+ };
532
+ content_digest: string;
533
+ }[];
434
534
  block_id: string;
435
535
  layer: "semantic-prose";
436
536
  markdown: string;
437
- })[];
537
+ }[];
438
538
  }[];
539
+ artifact_kind: string;
540
+ representation: "sections";
541
+ artifact_id: string;
542
+ artifact_policy_variant: string;
439
543
  template_id?: string | undefined;
440
544
  };
441
545
  }, {
442
- evidence_refs: {
443
- ref: string;
444
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
445
- source_digest: string;
446
- }[];
447
546
  composer_ref: string;
448
547
  target_node_ref: string;
449
548
  artifact: {
@@ -452,8 +551,15 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
452
551
  template_id: string;
453
552
  variables: Record<string, {
454
553
  value: IndexerJson;
455
- evidence_refs: string[];
456
- fact_refs: string[];
554
+ references: {
555
+ source_ref: string;
556
+ locator: {
557
+ path: string;
558
+ start_line: number;
559
+ end_line: number;
560
+ };
561
+ content_digest: string;
562
+ }[];
457
563
  }>;
458
564
  section_projections: {
459
565
  section_key: string;
@@ -465,39 +571,37 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
465
571
  artifact_id: string;
466
572
  artifact_policy_variant: string;
467
573
  } | {
468
- artifact_kind: string;
469
- representation: "sections";
470
- artifact_id: string;
471
- artifact_policy_variant: string;
472
574
  sections: {
473
575
  section_key: string;
474
576
  owner_indexer_id: string;
475
577
  document_kind: string;
476
578
  reader_goal: string;
477
579
  artifact_kind: string;
478
- blocks: ({
479
- block_id: string;
480
- layer: "deterministic-block";
481
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
482
- fact_refs: string[];
483
- } | {
484
- evidence_refs: string[];
580
+ blocks: {
581
+ references: {
582
+ source_ref: string;
583
+ locator: {
584
+ path: string;
585
+ start_line: number;
586
+ end_line: number;
587
+ };
588
+ content_digest: string;
589
+ }[];
485
590
  block_id: string;
486
591
  layer: "semantic-prose";
487
592
  markdown: string;
488
- })[];
593
+ }[];
489
594
  }[];
595
+ artifact_kind: string;
596
+ representation: "sections";
597
+ artifact_id: string;
598
+ artifact_policy_variant: string;
490
599
  template_id?: string | undefined;
491
600
  };
492
601
  }>, "many">;
493
602
  }, "strict", z.ZodTypeAny, {
494
603
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
495
604
  proposals: {
496
- evidence_refs: {
497
- ref: string;
498
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
499
- source_digest: string;
500
- }[];
501
605
  composer_ref: string;
502
606
  target_node_ref: string;
503
607
  artifact: {
@@ -506,8 +610,15 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
506
610
  template_id: string;
507
611
  variables: Record<string, {
508
612
  value: IndexerJson;
509
- evidence_refs: string[];
510
- fact_refs: string[];
613
+ references: {
614
+ source_ref: string;
615
+ locator: {
616
+ path: string;
617
+ start_line: number;
618
+ end_line: number;
619
+ };
620
+ content_digest: string;
621
+ }[];
511
622
  }>;
512
623
  section_projections: {
513
624
  section_key: string;
@@ -519,39 +630,37 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
519
630
  artifact_id: string;
520
631
  artifact_policy_variant: string;
521
632
  } | {
522
- artifact_kind: string;
523
- representation: "sections";
524
- artifact_id: string;
525
- artifact_policy_variant: string;
526
633
  sections: {
527
634
  section_key: string;
528
635
  owner_indexer_id: string;
529
636
  document_kind: string;
530
637
  reader_goal: string;
531
638
  artifact_kind: string;
532
- blocks: ({
533
- block_id: string;
534
- layer: "deterministic-block";
535
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
536
- fact_refs: string[];
537
- } | {
538
- evidence_refs: string[];
639
+ blocks: {
640
+ references: {
641
+ source_ref: string;
642
+ locator: {
643
+ path: string;
644
+ start_line: number;
645
+ end_line: number;
646
+ };
647
+ content_digest: string;
648
+ }[];
539
649
  block_id: string;
540
650
  layer: "semantic-prose";
541
651
  markdown: string;
542
- })[];
652
+ }[];
543
653
  }[];
654
+ artifact_kind: string;
655
+ representation: "sections";
656
+ artifact_id: string;
657
+ artifact_policy_variant: string;
544
658
  template_id?: string | undefined;
545
659
  };
546
660
  }[];
547
661
  }, {
548
662
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
549
663
  proposals: {
550
- evidence_refs: {
551
- ref: string;
552
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
553
- source_digest: string;
554
- }[];
555
664
  composer_ref: string;
556
665
  target_node_ref: string;
557
666
  artifact: {
@@ -560,8 +669,15 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
560
669
  template_id: string;
561
670
  variables: Record<string, {
562
671
  value: IndexerJson;
563
- evidence_refs: string[];
564
- fact_refs: string[];
672
+ references: {
673
+ source_ref: string;
674
+ locator: {
675
+ path: string;
676
+ start_line: number;
677
+ end_line: number;
678
+ };
679
+ content_digest: string;
680
+ }[];
565
681
  }>;
566
682
  section_projections: {
567
683
  section_key: string;
@@ -573,28 +689,31 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
573
689
  artifact_id: string;
574
690
  artifact_policy_variant: string;
575
691
  } | {
576
- artifact_kind: string;
577
- representation: "sections";
578
- artifact_id: string;
579
- artifact_policy_variant: string;
580
692
  sections: {
581
693
  section_key: string;
582
694
  owner_indexer_id: string;
583
695
  document_kind: string;
584
696
  reader_goal: string;
585
697
  artifact_kind: string;
586
- blocks: ({
587
- block_id: string;
588
- layer: "deterministic-block";
589
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
590
- fact_refs: string[];
591
- } | {
592
- evidence_refs: string[];
698
+ blocks: {
699
+ references: {
700
+ source_ref: string;
701
+ locator: {
702
+ path: string;
703
+ start_line: number;
704
+ end_line: number;
705
+ };
706
+ content_digest: string;
707
+ }[];
593
708
  block_id: string;
594
709
  layer: "semantic-prose";
595
710
  markdown: string;
596
- })[];
711
+ }[];
597
712
  }[];
713
+ artifact_kind: string;
714
+ representation: "sections";
715
+ artifact_id: string;
716
+ artifact_policy_variant: string;
598
717
  template_id?: string | undefined;
599
718
  };
600
719
  }[];
@@ -763,16 +882,69 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
763
882
  template_id: z.ZodEffects<z.ZodString, string, string>;
764
883
  variables: z.ZodRecord<z.ZodString, z.ZodObject<{
765
884
  value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
766
- fact_refs: z.ZodArray<z.ZodString, "many">;
767
- evidence_refs: z.ZodArray<z.ZodString, "many">;
885
+ references: z.ZodArray<z.ZodObject<{
886
+ source_ref: z.ZodString;
887
+ locator: z.ZodEffects<z.ZodObject<{
888
+ path: z.ZodEffects<z.ZodString, string, string>;
889
+ start_line: z.ZodNumber;
890
+ end_line: z.ZodNumber;
891
+ }, "strict", z.ZodTypeAny, {
892
+ path: string;
893
+ start_line: number;
894
+ end_line: number;
895
+ }, {
896
+ path: string;
897
+ start_line: number;
898
+ end_line: number;
899
+ }>, {
900
+ path: string;
901
+ start_line: number;
902
+ end_line: number;
903
+ }, {
904
+ path: string;
905
+ start_line: number;
906
+ end_line: number;
907
+ }>;
908
+ content_digest: z.ZodString;
909
+ }, "strict", z.ZodTypeAny, {
910
+ source_ref: string;
911
+ locator: {
912
+ path: string;
913
+ start_line: number;
914
+ end_line: number;
915
+ };
916
+ content_digest: string;
917
+ }, {
918
+ source_ref: string;
919
+ locator: {
920
+ path: string;
921
+ start_line: number;
922
+ end_line: number;
923
+ };
924
+ content_digest: string;
925
+ }>, "many">;
768
926
  }, "strict", z.ZodTypeAny, {
769
927
  value: IndexerJson;
770
- evidence_refs: string[];
771
- fact_refs: string[];
928
+ references: {
929
+ source_ref: string;
930
+ locator: {
931
+ path: string;
932
+ start_line: number;
933
+ end_line: number;
934
+ };
935
+ content_digest: string;
936
+ }[];
772
937
  }, {
773
938
  value: IndexerJson;
774
- evidence_refs: string[];
775
- fact_refs: string[];
939
+ references: {
940
+ source_ref: string;
941
+ locator: {
942
+ path: string;
943
+ start_line: number;
944
+ end_line: number;
945
+ };
946
+ content_digest: string;
947
+ }[];
776
948
  }>>;
777
949
  section_projections: z.ZodArray<z.ZodObject<{
778
950
  section_key: z.ZodEffects<z.ZodString, string, string>;
@@ -802,8 +974,15 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
802
974
  template_id: string;
803
975
  variables: Record<string, {
804
976
  value: IndexerJson;
805
- evidence_refs: string[];
806
- fact_refs: string[];
977
+ references: {
978
+ source_ref: string;
979
+ locator: {
980
+ path: string;
981
+ start_line: number;
982
+ end_line: number;
983
+ };
984
+ content_digest: string;
985
+ }[];
807
986
  }>;
808
987
  section_projections: {
809
988
  section_key: string;
@@ -820,8 +999,15 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
820
999
  template_id: string;
821
1000
  variables: Record<string, {
822
1001
  value: IndexerJson;
823
- evidence_refs: string[];
824
- fact_refs: string[];
1002
+ references: {
1003
+ source_ref: string;
1004
+ locator: {
1005
+ path: string;
1006
+ start_line: number;
1007
+ end_line: number;
1008
+ };
1009
+ content_digest: string;
1010
+ }[];
825
1011
  }>;
826
1012
  section_projections: {
827
1013
  section_key: string;
@@ -842,151 +1028,178 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
842
1028
  reader_goal: z.ZodEffects<z.ZodString, string, string>;
843
1029
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
844
1030
  } & {
845
- blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
846
- block_id: z.ZodEffects<z.ZodString, string, string>;
847
- layer: z.ZodLiteral<"deterministic-block">;
848
- renderer: z.ZodEnum<["bullet-list", "key-value-table", "multi-column-table", "public-contract-table", "json-code-block"]>;
849
- fact_refs: z.ZodArray<z.ZodString, "many">;
850
- }, "strict", z.ZodTypeAny, {
851
- block_id: string;
852
- layer: "deterministic-block";
853
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
854
- fact_refs: string[];
855
- }, {
856
- block_id: string;
857
- layer: "deterministic-block";
858
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
859
- fact_refs: string[];
860
- }>, z.ZodObject<{
1031
+ blocks: z.ZodArray<z.ZodObject<{
861
1032
  block_id: z.ZodEffects<z.ZodString, string, string>;
862
1033
  layer: z.ZodLiteral<"semantic-prose">;
863
1034
  markdown: z.ZodString;
864
- evidence_refs: z.ZodArray<z.ZodString, "many">;
1035
+ references: z.ZodArray<z.ZodObject<{
1036
+ source_ref: z.ZodString;
1037
+ locator: z.ZodEffects<z.ZodObject<{
1038
+ path: z.ZodEffects<z.ZodString, string, string>;
1039
+ start_line: z.ZodNumber;
1040
+ end_line: z.ZodNumber;
1041
+ }, "strict", z.ZodTypeAny, {
1042
+ path: string;
1043
+ start_line: number;
1044
+ end_line: number;
1045
+ }, {
1046
+ path: string;
1047
+ start_line: number;
1048
+ end_line: number;
1049
+ }>, {
1050
+ path: string;
1051
+ start_line: number;
1052
+ end_line: number;
1053
+ }, {
1054
+ path: string;
1055
+ start_line: number;
1056
+ end_line: number;
1057
+ }>;
1058
+ content_digest: z.ZodString;
1059
+ }, "strict", z.ZodTypeAny, {
1060
+ source_ref: string;
1061
+ locator: {
1062
+ path: string;
1063
+ start_line: number;
1064
+ end_line: number;
1065
+ };
1066
+ content_digest: string;
1067
+ }, {
1068
+ source_ref: string;
1069
+ locator: {
1070
+ path: string;
1071
+ start_line: number;
1072
+ end_line: number;
1073
+ };
1074
+ content_digest: string;
1075
+ }>, "many">;
865
1076
  }, "strict", z.ZodTypeAny, {
866
- evidence_refs: string[];
1077
+ references: {
1078
+ source_ref: string;
1079
+ locator: {
1080
+ path: string;
1081
+ start_line: number;
1082
+ end_line: number;
1083
+ };
1084
+ content_digest: string;
1085
+ }[];
867
1086
  block_id: string;
868
1087
  layer: "semantic-prose";
869
1088
  markdown: string;
870
1089
  }, {
871
- evidence_refs: string[];
1090
+ references: {
1091
+ source_ref: string;
1092
+ locator: {
1093
+ path: string;
1094
+ start_line: number;
1095
+ end_line: number;
1096
+ };
1097
+ content_digest: string;
1098
+ }[];
872
1099
  block_id: string;
873
1100
  layer: "semantic-prose";
874
1101
  markdown: string;
875
- }>]>, "many">;
1102
+ }>, "many">;
876
1103
  }, "strict", z.ZodTypeAny, {
877
1104
  section_key: string;
878
1105
  owner_indexer_id: string;
879
1106
  document_kind: string;
880
1107
  reader_goal: string;
881
1108
  artifact_kind: string;
882
- blocks: ({
883
- block_id: string;
884
- layer: "deterministic-block";
885
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
886
- fact_refs: string[];
887
- } | {
888
- evidence_refs: string[];
1109
+ blocks: {
1110
+ references: {
1111
+ source_ref: string;
1112
+ locator: {
1113
+ path: string;
1114
+ start_line: number;
1115
+ end_line: number;
1116
+ };
1117
+ content_digest: string;
1118
+ }[];
889
1119
  block_id: string;
890
1120
  layer: "semantic-prose";
891
1121
  markdown: string;
892
- })[];
1122
+ }[];
893
1123
  }, {
894
1124
  section_key: string;
895
1125
  owner_indexer_id: string;
896
1126
  document_kind: string;
897
1127
  reader_goal: string;
898
1128
  artifact_kind: string;
899
- blocks: ({
900
- block_id: string;
901
- layer: "deterministic-block";
902
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
903
- fact_refs: string[];
904
- } | {
905
- evidence_refs: string[];
1129
+ blocks: {
1130
+ references: {
1131
+ source_ref: string;
1132
+ locator: {
1133
+ path: string;
1134
+ start_line: number;
1135
+ end_line: number;
1136
+ };
1137
+ content_digest: string;
1138
+ }[];
906
1139
  block_id: string;
907
1140
  layer: "semantic-prose";
908
1141
  markdown: string;
909
- })[];
1142
+ }[];
910
1143
  }>, "many">;
911
1144
  artifact_id: z.ZodEffects<z.ZodString, string, string>;
912
1145
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
913
1146
  artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
914
1147
  }, "strict", z.ZodTypeAny, {
915
- artifact_kind: string;
916
- representation: "sections";
917
- artifact_id: string;
918
- artifact_policy_variant: string;
919
1148
  sections: {
920
1149
  section_key: string;
921
1150
  owner_indexer_id: string;
922
1151
  document_kind: string;
923
1152
  reader_goal: string;
924
1153
  artifact_kind: string;
925
- blocks: ({
926
- block_id: string;
927
- layer: "deterministic-block";
928
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
929
- fact_refs: string[];
930
- } | {
931
- evidence_refs: string[];
1154
+ blocks: {
1155
+ references: {
1156
+ source_ref: string;
1157
+ locator: {
1158
+ path: string;
1159
+ start_line: number;
1160
+ end_line: number;
1161
+ };
1162
+ content_digest: string;
1163
+ }[];
932
1164
  block_id: string;
933
1165
  layer: "semantic-prose";
934
1166
  markdown: string;
935
- })[];
1167
+ }[];
936
1168
  }[];
937
- template_id?: string | undefined;
938
- }, {
939
1169
  artifact_kind: string;
940
1170
  representation: "sections";
941
1171
  artifact_id: string;
942
1172
  artifact_policy_variant: string;
1173
+ template_id?: string | undefined;
1174
+ }, {
943
1175
  sections: {
944
1176
  section_key: string;
945
1177
  owner_indexer_id: string;
946
1178
  document_kind: string;
947
1179
  reader_goal: string;
948
1180
  artifact_kind: string;
949
- blocks: ({
950
- block_id: string;
951
- layer: "deterministic-block";
952
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
953
- fact_refs: string[];
954
- } | {
955
- evidence_refs: string[];
1181
+ blocks: {
1182
+ references: {
1183
+ source_ref: string;
1184
+ locator: {
1185
+ path: string;
1186
+ start_line: number;
1187
+ end_line: number;
1188
+ };
1189
+ content_digest: string;
1190
+ }[];
956
1191
  block_id: string;
957
1192
  layer: "semantic-prose";
958
1193
  markdown: string;
959
- })[];
1194
+ }[];
960
1195
  }[];
1196
+ artifact_kind: string;
1197
+ representation: "sections";
1198
+ artifact_id: string;
1199
+ artifact_policy_variant: string;
961
1200
  template_id?: string | undefined;
962
1201
  }>]>;
963
- evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
964
- ref: z.ZodString;
965
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
966
- source_digest: z.ZodString;
967
- }, "strict", z.ZodTypeAny, {
968
- ref: string;
969
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
970
- source_digest: string;
971
- }, {
972
- ref: string;
973
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
974
- source_digest: string;
975
- }>, "many">, {
976
- ref: string;
977
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
978
- source_digest: string;
979
- }[], {
980
- ref: string;
981
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
982
- source_digest: string;
983
- }[]>;
984
1202
  }, "strict", z.ZodTypeAny, {
985
- evidence_refs: {
986
- ref: string;
987
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
988
- source_digest: string;
989
- }[];
990
1203
  composer_ref: string;
991
1204
  target_node_ref: string;
992
1205
  artifact: {
@@ -995,8 +1208,15 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
995
1208
  template_id: string;
996
1209
  variables: Record<string, {
997
1210
  value: IndexerJson;
998
- evidence_refs: string[];
999
- fact_refs: string[];
1211
+ references: {
1212
+ source_ref: string;
1213
+ locator: {
1214
+ path: string;
1215
+ start_line: number;
1216
+ end_line: number;
1217
+ };
1218
+ content_digest: string;
1219
+ }[];
1000
1220
  }>;
1001
1221
  section_projections: {
1002
1222
  section_key: string;
@@ -1008,36 +1228,34 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1008
1228
  artifact_id: string;
1009
1229
  artifact_policy_variant: string;
1010
1230
  } | {
1011
- artifact_kind: string;
1012
- representation: "sections";
1013
- artifact_id: string;
1014
- artifact_policy_variant: string;
1015
1231
  sections: {
1016
1232
  section_key: string;
1017
1233
  owner_indexer_id: string;
1018
1234
  document_kind: string;
1019
1235
  reader_goal: string;
1020
1236
  artifact_kind: string;
1021
- blocks: ({
1022
- block_id: string;
1023
- layer: "deterministic-block";
1024
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1025
- fact_refs: string[];
1026
- } | {
1027
- evidence_refs: string[];
1237
+ blocks: {
1238
+ references: {
1239
+ source_ref: string;
1240
+ locator: {
1241
+ path: string;
1242
+ start_line: number;
1243
+ end_line: number;
1244
+ };
1245
+ content_digest: string;
1246
+ }[];
1028
1247
  block_id: string;
1029
1248
  layer: "semantic-prose";
1030
1249
  markdown: string;
1031
- })[];
1250
+ }[];
1032
1251
  }[];
1252
+ artifact_kind: string;
1253
+ representation: "sections";
1254
+ artifact_id: string;
1255
+ artifact_policy_variant: string;
1033
1256
  template_id?: string | undefined;
1034
1257
  };
1035
1258
  }, {
1036
- evidence_refs: {
1037
- ref: string;
1038
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1039
- source_digest: string;
1040
- }[];
1041
1259
  composer_ref: string;
1042
1260
  target_node_ref: string;
1043
1261
  artifact: {
@@ -1046,8 +1264,15 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1046
1264
  template_id: string;
1047
1265
  variables: Record<string, {
1048
1266
  value: IndexerJson;
1049
- evidence_refs: string[];
1050
- fact_refs: string[];
1267
+ references: {
1268
+ source_ref: string;
1269
+ locator: {
1270
+ path: string;
1271
+ start_line: number;
1272
+ end_line: number;
1273
+ };
1274
+ content_digest: string;
1275
+ }[];
1051
1276
  }>;
1052
1277
  section_projections: {
1053
1278
  section_key: string;
@@ -1059,39 +1284,37 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1059
1284
  artifact_id: string;
1060
1285
  artifact_policy_variant: string;
1061
1286
  } | {
1062
- artifact_kind: string;
1063
- representation: "sections";
1064
- artifact_id: string;
1065
- artifact_policy_variant: string;
1066
1287
  sections: {
1067
1288
  section_key: string;
1068
1289
  owner_indexer_id: string;
1069
1290
  document_kind: string;
1070
1291
  reader_goal: string;
1071
1292
  artifact_kind: string;
1072
- blocks: ({
1073
- block_id: string;
1074
- layer: "deterministic-block";
1075
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1076
- fact_refs: string[];
1077
- } | {
1078
- evidence_refs: string[];
1293
+ blocks: {
1294
+ references: {
1295
+ source_ref: string;
1296
+ locator: {
1297
+ path: string;
1298
+ start_line: number;
1299
+ end_line: number;
1300
+ };
1301
+ content_digest: string;
1302
+ }[];
1079
1303
  block_id: string;
1080
1304
  layer: "semantic-prose";
1081
1305
  markdown: string;
1082
- })[];
1306
+ }[];
1083
1307
  }[];
1308
+ artifact_kind: string;
1309
+ representation: "sections";
1310
+ artifact_id: string;
1311
+ artifact_policy_variant: string;
1084
1312
  template_id?: string | undefined;
1085
1313
  };
1086
1314
  }>, "many">;
1087
1315
  }, "strict", z.ZodTypeAny, {
1088
1316
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1089
1317
  proposals: {
1090
- evidence_refs: {
1091
- ref: string;
1092
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1093
- source_digest: string;
1094
- }[];
1095
1318
  composer_ref: string;
1096
1319
  target_node_ref: string;
1097
1320
  artifact: {
@@ -1100,8 +1323,15 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1100
1323
  template_id: string;
1101
1324
  variables: Record<string, {
1102
1325
  value: IndexerJson;
1103
- evidence_refs: string[];
1104
- fact_refs: string[];
1326
+ references: {
1327
+ source_ref: string;
1328
+ locator: {
1329
+ path: string;
1330
+ start_line: number;
1331
+ end_line: number;
1332
+ };
1333
+ content_digest: string;
1334
+ }[];
1105
1335
  }>;
1106
1336
  section_projections: {
1107
1337
  section_key: string;
@@ -1113,39 +1343,37 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1113
1343
  artifact_id: string;
1114
1344
  artifact_policy_variant: string;
1115
1345
  } | {
1116
- artifact_kind: string;
1117
- representation: "sections";
1118
- artifact_id: string;
1119
- artifact_policy_variant: string;
1120
1346
  sections: {
1121
1347
  section_key: string;
1122
1348
  owner_indexer_id: string;
1123
1349
  document_kind: string;
1124
1350
  reader_goal: string;
1125
1351
  artifact_kind: string;
1126
- blocks: ({
1127
- block_id: string;
1128
- layer: "deterministic-block";
1129
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1130
- fact_refs: string[];
1131
- } | {
1132
- evidence_refs: string[];
1352
+ blocks: {
1353
+ references: {
1354
+ source_ref: string;
1355
+ locator: {
1356
+ path: string;
1357
+ start_line: number;
1358
+ end_line: number;
1359
+ };
1360
+ content_digest: string;
1361
+ }[];
1133
1362
  block_id: string;
1134
1363
  layer: "semantic-prose";
1135
1364
  markdown: string;
1136
- })[];
1365
+ }[];
1137
1366
  }[];
1367
+ artifact_kind: string;
1368
+ representation: "sections";
1369
+ artifact_id: string;
1370
+ artifact_policy_variant: string;
1138
1371
  template_id?: string | undefined;
1139
1372
  };
1140
1373
  }[];
1141
1374
  }, {
1142
1375
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1143
1376
  proposals: {
1144
- evidence_refs: {
1145
- ref: string;
1146
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1147
- source_digest: string;
1148
- }[];
1149
1377
  composer_ref: string;
1150
1378
  target_node_ref: string;
1151
1379
  artifact: {
@@ -1154,8 +1382,15 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1154
1382
  template_id: string;
1155
1383
  variables: Record<string, {
1156
1384
  value: IndexerJson;
1157
- evidence_refs: string[];
1158
- fact_refs: string[];
1385
+ references: {
1386
+ source_ref: string;
1387
+ locator: {
1388
+ path: string;
1389
+ start_line: number;
1390
+ end_line: number;
1391
+ };
1392
+ content_digest: string;
1393
+ }[];
1159
1394
  }>;
1160
1395
  section_projections: {
1161
1396
  section_key: string;
@@ -1167,28 +1402,31 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1167
1402
  artifact_id: string;
1168
1403
  artifact_policy_variant: string;
1169
1404
  } | {
1170
- artifact_kind: string;
1171
- representation: "sections";
1172
- artifact_id: string;
1173
- artifact_policy_variant: string;
1174
1405
  sections: {
1175
1406
  section_key: string;
1176
1407
  owner_indexer_id: string;
1177
1408
  document_kind: string;
1178
1409
  reader_goal: string;
1179
1410
  artifact_kind: string;
1180
- blocks: ({
1181
- block_id: string;
1182
- layer: "deterministic-block";
1183
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1184
- fact_refs: string[];
1185
- } | {
1186
- evidence_refs: string[];
1411
+ blocks: {
1412
+ references: {
1413
+ source_ref: string;
1414
+ locator: {
1415
+ path: string;
1416
+ start_line: number;
1417
+ end_line: number;
1418
+ };
1419
+ content_digest: string;
1420
+ }[];
1187
1421
  block_id: string;
1188
1422
  layer: "semantic-prose";
1189
1423
  markdown: string;
1190
- })[];
1424
+ }[];
1191
1425
  }[];
1426
+ artifact_kind: string;
1427
+ representation: "sections";
1428
+ artifact_id: string;
1429
+ artifact_policy_variant: string;
1192
1430
  template_id?: string | undefined;
1193
1431
  };
1194
1432
  }[];
@@ -1225,11 +1463,6 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1225
1463
  } | {
1226
1464
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1227
1465
  proposals: {
1228
- evidence_refs: {
1229
- ref: string;
1230
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1231
- source_digest: string;
1232
- }[];
1233
1466
  composer_ref: string;
1234
1467
  target_node_ref: string;
1235
1468
  artifact: {
@@ -1238,8 +1471,15 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1238
1471
  template_id: string;
1239
1472
  variables: Record<string, {
1240
1473
  value: IndexerJson;
1241
- evidence_refs: string[];
1242
- fact_refs: string[];
1474
+ references: {
1475
+ source_ref: string;
1476
+ locator: {
1477
+ path: string;
1478
+ start_line: number;
1479
+ end_line: number;
1480
+ };
1481
+ content_digest: string;
1482
+ }[];
1243
1483
  }>;
1244
1484
  section_projections: {
1245
1485
  section_key: string;
@@ -1251,28 +1491,31 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1251
1491
  artifact_id: string;
1252
1492
  artifact_policy_variant: string;
1253
1493
  } | {
1254
- artifact_kind: string;
1255
- representation: "sections";
1256
- artifact_id: string;
1257
- artifact_policy_variant: string;
1258
1494
  sections: {
1259
1495
  section_key: string;
1260
1496
  owner_indexer_id: string;
1261
1497
  document_kind: string;
1262
1498
  reader_goal: string;
1263
1499
  artifact_kind: string;
1264
- blocks: ({
1265
- block_id: string;
1266
- layer: "deterministic-block";
1267
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1268
- fact_refs: string[];
1269
- } | {
1270
- evidence_refs: string[];
1500
+ blocks: {
1501
+ references: {
1502
+ source_ref: string;
1503
+ locator: {
1504
+ path: string;
1505
+ start_line: number;
1506
+ end_line: number;
1507
+ };
1508
+ content_digest: string;
1509
+ }[];
1271
1510
  block_id: string;
1272
1511
  layer: "semantic-prose";
1273
1512
  markdown: string;
1274
- })[];
1513
+ }[];
1275
1514
  }[];
1515
+ artifact_kind: string;
1516
+ representation: "sections";
1517
+ artifact_id: string;
1518
+ artifact_policy_variant: string;
1276
1519
  template_id?: string | undefined;
1277
1520
  };
1278
1521
  }[];
@@ -1315,11 +1558,6 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1315
1558
  } | {
1316
1559
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1317
1560
  proposals: {
1318
- evidence_refs: {
1319
- ref: string;
1320
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1321
- source_digest: string;
1322
- }[];
1323
1561
  composer_ref: string;
1324
1562
  target_node_ref: string;
1325
1563
  artifact: {
@@ -1328,8 +1566,15 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1328
1566
  template_id: string;
1329
1567
  variables: Record<string, {
1330
1568
  value: IndexerJson;
1331
- evidence_refs: string[];
1332
- fact_refs: string[];
1569
+ references: {
1570
+ source_ref: string;
1571
+ locator: {
1572
+ path: string;
1573
+ start_line: number;
1574
+ end_line: number;
1575
+ };
1576
+ content_digest: string;
1577
+ }[];
1333
1578
  }>;
1334
1579
  section_projections: {
1335
1580
  section_key: string;
@@ -1341,28 +1586,31 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1341
1586
  artifact_id: string;
1342
1587
  artifact_policy_variant: string;
1343
1588
  } | {
1344
- artifact_kind: string;
1345
- representation: "sections";
1346
- artifact_id: string;
1347
- artifact_policy_variant: string;
1348
1589
  sections: {
1349
1590
  section_key: string;
1350
1591
  owner_indexer_id: string;
1351
1592
  document_kind: string;
1352
1593
  reader_goal: string;
1353
1594
  artifact_kind: string;
1354
- blocks: ({
1355
- block_id: string;
1356
- layer: "deterministic-block";
1357
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1358
- fact_refs: string[];
1359
- } | {
1360
- evidence_refs: string[];
1595
+ blocks: {
1596
+ references: {
1597
+ source_ref: string;
1598
+ locator: {
1599
+ path: string;
1600
+ start_line: number;
1601
+ end_line: number;
1602
+ };
1603
+ content_digest: string;
1604
+ }[];
1361
1605
  block_id: string;
1362
1606
  layer: "semantic-prose";
1363
1607
  markdown: string;
1364
- })[];
1608
+ }[];
1365
1609
  }[];
1610
+ artifact_kind: string;
1611
+ representation: "sections";
1612
+ artifact_id: string;
1613
+ artifact_policy_variant: string;
1366
1614
  template_id?: string | undefined;
1367
1615
  };
1368
1616
  }[];
@@ -1405,11 +1653,6 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1405
1653
  } | {
1406
1654
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1407
1655
  proposals: {
1408
- evidence_refs: {
1409
- ref: string;
1410
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1411
- source_digest: string;
1412
- }[];
1413
1656
  composer_ref: string;
1414
1657
  target_node_ref: string;
1415
1658
  artifact: {
@@ -1418,8 +1661,15 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1418
1661
  template_id: string;
1419
1662
  variables: Record<string, {
1420
1663
  value: IndexerJson;
1421
- evidence_refs: string[];
1422
- fact_refs: string[];
1664
+ references: {
1665
+ source_ref: string;
1666
+ locator: {
1667
+ path: string;
1668
+ start_line: number;
1669
+ end_line: number;
1670
+ };
1671
+ content_digest: string;
1672
+ }[];
1423
1673
  }>;
1424
1674
  section_projections: {
1425
1675
  section_key: string;
@@ -1431,28 +1681,31 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1431
1681
  artifact_id: string;
1432
1682
  artifact_policy_variant: string;
1433
1683
  } | {
1434
- artifact_kind: string;
1435
- representation: "sections";
1436
- artifact_id: string;
1437
- artifact_policy_variant: string;
1438
1684
  sections: {
1439
1685
  section_key: string;
1440
1686
  owner_indexer_id: string;
1441
1687
  document_kind: string;
1442
1688
  reader_goal: string;
1443
1689
  artifact_kind: string;
1444
- blocks: ({
1445
- block_id: string;
1446
- layer: "deterministic-block";
1447
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1448
- fact_refs: string[];
1449
- } | {
1450
- evidence_refs: string[];
1690
+ blocks: {
1691
+ references: {
1692
+ source_ref: string;
1693
+ locator: {
1694
+ path: string;
1695
+ start_line: number;
1696
+ end_line: number;
1697
+ };
1698
+ content_digest: string;
1699
+ }[];
1451
1700
  block_id: string;
1452
1701
  layer: "semantic-prose";
1453
1702
  markdown: string;
1454
- })[];
1703
+ }[];
1455
1704
  }[];
1705
+ artifact_kind: string;
1706
+ representation: "sections";
1707
+ artifact_id: string;
1708
+ artifact_policy_variant: string;
1456
1709
  template_id?: string | undefined;
1457
1710
  };
1458
1711
  }[];
@@ -1495,11 +1748,6 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1495
1748
  } | {
1496
1749
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1497
1750
  proposals: {
1498
- evidence_refs: {
1499
- ref: string;
1500
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1501
- source_digest: string;
1502
- }[];
1503
1751
  composer_ref: string;
1504
1752
  target_node_ref: string;
1505
1753
  artifact: {
@@ -1508,8 +1756,15 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1508
1756
  template_id: string;
1509
1757
  variables: Record<string, {
1510
1758
  value: IndexerJson;
1511
- evidence_refs: string[];
1512
- fact_refs: string[];
1759
+ references: {
1760
+ source_ref: string;
1761
+ locator: {
1762
+ path: string;
1763
+ start_line: number;
1764
+ end_line: number;
1765
+ };
1766
+ content_digest: string;
1767
+ }[];
1513
1768
  }>;
1514
1769
  section_projections: {
1515
1770
  section_key: string;
@@ -1521,28 +1776,31 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
1521
1776
  artifact_id: string;
1522
1777
  artifact_policy_variant: string;
1523
1778
  } | {
1524
- artifact_kind: string;
1525
- representation: "sections";
1526
- artifact_id: string;
1527
- artifact_policy_variant: string;
1528
1779
  sections: {
1529
1780
  section_key: string;
1530
1781
  owner_indexer_id: string;
1531
1782
  document_kind: string;
1532
1783
  reader_goal: string;
1533
1784
  artifact_kind: string;
1534
- blocks: ({
1535
- block_id: string;
1536
- layer: "deterministic-block";
1537
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1538
- fact_refs: string[];
1539
- } | {
1540
- evidence_refs: string[];
1785
+ blocks: {
1786
+ references: {
1787
+ source_ref: string;
1788
+ locator: {
1789
+ path: string;
1790
+ start_line: number;
1791
+ end_line: number;
1792
+ };
1793
+ content_digest: string;
1794
+ }[];
1541
1795
  block_id: string;
1542
1796
  layer: "semantic-prose";
1543
1797
  markdown: string;
1544
- })[];
1798
+ }[];
1545
1799
  }[];
1800
+ artifact_kind: string;
1801
+ representation: "sections";
1802
+ artifact_id: string;
1803
+ artifact_policy_variant: string;
1546
1804
  template_id?: string | undefined;
1547
1805
  };
1548
1806
  }[];
@@ -1722,16 +1980,69 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
1722
1980
  template_id: z.ZodEffects<z.ZodString, string, string>;
1723
1981
  variables: z.ZodRecord<z.ZodString, z.ZodObject<{
1724
1982
  value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
1725
- fact_refs: z.ZodArray<z.ZodString, "many">;
1726
- evidence_refs: z.ZodArray<z.ZodString, "many">;
1983
+ references: z.ZodArray<z.ZodObject<{
1984
+ source_ref: z.ZodString;
1985
+ locator: z.ZodEffects<z.ZodObject<{
1986
+ path: z.ZodEffects<z.ZodString, string, string>;
1987
+ start_line: z.ZodNumber;
1988
+ end_line: z.ZodNumber;
1989
+ }, "strict", z.ZodTypeAny, {
1990
+ path: string;
1991
+ start_line: number;
1992
+ end_line: number;
1993
+ }, {
1994
+ path: string;
1995
+ start_line: number;
1996
+ end_line: number;
1997
+ }>, {
1998
+ path: string;
1999
+ start_line: number;
2000
+ end_line: number;
2001
+ }, {
2002
+ path: string;
2003
+ start_line: number;
2004
+ end_line: number;
2005
+ }>;
2006
+ content_digest: z.ZodString;
2007
+ }, "strict", z.ZodTypeAny, {
2008
+ source_ref: string;
2009
+ locator: {
2010
+ path: string;
2011
+ start_line: number;
2012
+ end_line: number;
2013
+ };
2014
+ content_digest: string;
2015
+ }, {
2016
+ source_ref: string;
2017
+ locator: {
2018
+ path: string;
2019
+ start_line: number;
2020
+ end_line: number;
2021
+ };
2022
+ content_digest: string;
2023
+ }>, "many">;
1727
2024
  }, "strict", z.ZodTypeAny, {
1728
2025
  value: IndexerJson;
1729
- evidence_refs: string[];
1730
- fact_refs: string[];
2026
+ references: {
2027
+ source_ref: string;
2028
+ locator: {
2029
+ path: string;
2030
+ start_line: number;
2031
+ end_line: number;
2032
+ };
2033
+ content_digest: string;
2034
+ }[];
1731
2035
  }, {
1732
2036
  value: IndexerJson;
1733
- evidence_refs: string[];
1734
- fact_refs: string[];
2037
+ references: {
2038
+ source_ref: string;
2039
+ locator: {
2040
+ path: string;
2041
+ start_line: number;
2042
+ end_line: number;
2043
+ };
2044
+ content_digest: string;
2045
+ }[];
1735
2046
  }>>;
1736
2047
  section_projections: z.ZodArray<z.ZodObject<{
1737
2048
  section_key: z.ZodEffects<z.ZodString, string, string>;
@@ -1761,8 +2072,15 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
1761
2072
  template_id: string;
1762
2073
  variables: Record<string, {
1763
2074
  value: IndexerJson;
1764
- evidence_refs: string[];
1765
- fact_refs: string[];
2075
+ references: {
2076
+ source_ref: string;
2077
+ locator: {
2078
+ path: string;
2079
+ start_line: number;
2080
+ end_line: number;
2081
+ };
2082
+ content_digest: string;
2083
+ }[];
1766
2084
  }>;
1767
2085
  section_projections: {
1768
2086
  section_key: string;
@@ -1779,8 +2097,15 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
1779
2097
  template_id: string;
1780
2098
  variables: Record<string, {
1781
2099
  value: IndexerJson;
1782
- evidence_refs: string[];
1783
- fact_refs: string[];
2100
+ references: {
2101
+ source_ref: string;
2102
+ locator: {
2103
+ path: string;
2104
+ start_line: number;
2105
+ end_line: number;
2106
+ };
2107
+ content_digest: string;
2108
+ }[];
1784
2109
  }>;
1785
2110
  section_projections: {
1786
2111
  section_key: string;
@@ -1801,151 +2126,178 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
1801
2126
  reader_goal: z.ZodEffects<z.ZodString, string, string>;
1802
2127
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1803
2128
  } & {
1804
- blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
1805
- block_id: z.ZodEffects<z.ZodString, string, string>;
1806
- layer: z.ZodLiteral<"deterministic-block">;
1807
- renderer: z.ZodEnum<["bullet-list", "key-value-table", "multi-column-table", "public-contract-table", "json-code-block"]>;
1808
- fact_refs: z.ZodArray<z.ZodString, "many">;
1809
- }, "strict", z.ZodTypeAny, {
1810
- block_id: string;
1811
- layer: "deterministic-block";
1812
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1813
- fact_refs: string[];
1814
- }, {
1815
- block_id: string;
1816
- layer: "deterministic-block";
1817
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1818
- fact_refs: string[];
1819
- }>, z.ZodObject<{
2129
+ blocks: z.ZodArray<z.ZodObject<{
1820
2130
  block_id: z.ZodEffects<z.ZodString, string, string>;
1821
2131
  layer: z.ZodLiteral<"semantic-prose">;
1822
2132
  markdown: z.ZodString;
1823
- evidence_refs: z.ZodArray<z.ZodString, "many">;
2133
+ references: z.ZodArray<z.ZodObject<{
2134
+ source_ref: z.ZodString;
2135
+ locator: z.ZodEffects<z.ZodObject<{
2136
+ path: z.ZodEffects<z.ZodString, string, string>;
2137
+ start_line: z.ZodNumber;
2138
+ end_line: z.ZodNumber;
2139
+ }, "strict", z.ZodTypeAny, {
2140
+ path: string;
2141
+ start_line: number;
2142
+ end_line: number;
2143
+ }, {
2144
+ path: string;
2145
+ start_line: number;
2146
+ end_line: number;
2147
+ }>, {
2148
+ path: string;
2149
+ start_line: number;
2150
+ end_line: number;
2151
+ }, {
2152
+ path: string;
2153
+ start_line: number;
2154
+ end_line: number;
2155
+ }>;
2156
+ content_digest: z.ZodString;
2157
+ }, "strict", z.ZodTypeAny, {
2158
+ source_ref: string;
2159
+ locator: {
2160
+ path: string;
2161
+ start_line: number;
2162
+ end_line: number;
2163
+ };
2164
+ content_digest: string;
2165
+ }, {
2166
+ source_ref: string;
2167
+ locator: {
2168
+ path: string;
2169
+ start_line: number;
2170
+ end_line: number;
2171
+ };
2172
+ content_digest: string;
2173
+ }>, "many">;
1824
2174
  }, "strict", z.ZodTypeAny, {
1825
- evidence_refs: string[];
2175
+ references: {
2176
+ source_ref: string;
2177
+ locator: {
2178
+ path: string;
2179
+ start_line: number;
2180
+ end_line: number;
2181
+ };
2182
+ content_digest: string;
2183
+ }[];
1826
2184
  block_id: string;
1827
2185
  layer: "semantic-prose";
1828
2186
  markdown: string;
1829
2187
  }, {
1830
- evidence_refs: string[];
2188
+ references: {
2189
+ source_ref: string;
2190
+ locator: {
2191
+ path: string;
2192
+ start_line: number;
2193
+ end_line: number;
2194
+ };
2195
+ content_digest: string;
2196
+ }[];
1831
2197
  block_id: string;
1832
2198
  layer: "semantic-prose";
1833
2199
  markdown: string;
1834
- }>]>, "many">;
2200
+ }>, "many">;
1835
2201
  }, "strict", z.ZodTypeAny, {
1836
2202
  section_key: string;
1837
2203
  owner_indexer_id: string;
1838
2204
  document_kind: string;
1839
2205
  reader_goal: string;
1840
2206
  artifact_kind: string;
1841
- blocks: ({
1842
- block_id: string;
1843
- layer: "deterministic-block";
1844
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1845
- fact_refs: string[];
1846
- } | {
1847
- evidence_refs: string[];
2207
+ blocks: {
2208
+ references: {
2209
+ source_ref: string;
2210
+ locator: {
2211
+ path: string;
2212
+ start_line: number;
2213
+ end_line: number;
2214
+ };
2215
+ content_digest: string;
2216
+ }[];
1848
2217
  block_id: string;
1849
2218
  layer: "semantic-prose";
1850
2219
  markdown: string;
1851
- })[];
2220
+ }[];
1852
2221
  }, {
1853
2222
  section_key: string;
1854
2223
  owner_indexer_id: string;
1855
2224
  document_kind: string;
1856
2225
  reader_goal: string;
1857
2226
  artifact_kind: string;
1858
- blocks: ({
1859
- block_id: string;
1860
- layer: "deterministic-block";
1861
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1862
- fact_refs: string[];
1863
- } | {
1864
- evidence_refs: string[];
2227
+ blocks: {
2228
+ references: {
2229
+ source_ref: string;
2230
+ locator: {
2231
+ path: string;
2232
+ start_line: number;
2233
+ end_line: number;
2234
+ };
2235
+ content_digest: string;
2236
+ }[];
1865
2237
  block_id: string;
1866
2238
  layer: "semantic-prose";
1867
2239
  markdown: string;
1868
- })[];
2240
+ }[];
1869
2241
  }>, "many">;
1870
2242
  artifact_id: z.ZodEffects<z.ZodString, string, string>;
1871
2243
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1872
2244
  artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
1873
2245
  }, "strict", z.ZodTypeAny, {
1874
- artifact_kind: string;
1875
- representation: "sections";
1876
- artifact_id: string;
1877
- artifact_policy_variant: string;
1878
2246
  sections: {
1879
2247
  section_key: string;
1880
2248
  owner_indexer_id: string;
1881
2249
  document_kind: string;
1882
2250
  reader_goal: string;
1883
2251
  artifact_kind: string;
1884
- blocks: ({
1885
- block_id: string;
1886
- layer: "deterministic-block";
1887
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1888
- fact_refs: string[];
1889
- } | {
1890
- evidence_refs: string[];
2252
+ blocks: {
2253
+ references: {
2254
+ source_ref: string;
2255
+ locator: {
2256
+ path: string;
2257
+ start_line: number;
2258
+ end_line: number;
2259
+ };
2260
+ content_digest: string;
2261
+ }[];
1891
2262
  block_id: string;
1892
2263
  layer: "semantic-prose";
1893
2264
  markdown: string;
1894
- })[];
2265
+ }[];
1895
2266
  }[];
1896
- template_id?: string | undefined;
1897
- }, {
1898
2267
  artifact_kind: string;
1899
2268
  representation: "sections";
1900
2269
  artifact_id: string;
1901
2270
  artifact_policy_variant: string;
2271
+ template_id?: string | undefined;
2272
+ }, {
1902
2273
  sections: {
1903
2274
  section_key: string;
1904
2275
  owner_indexer_id: string;
1905
2276
  document_kind: string;
1906
2277
  reader_goal: string;
1907
2278
  artifact_kind: string;
1908
- blocks: ({
1909
- block_id: string;
1910
- layer: "deterministic-block";
1911
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1912
- fact_refs: string[];
1913
- } | {
1914
- evidence_refs: string[];
2279
+ blocks: {
2280
+ references: {
2281
+ source_ref: string;
2282
+ locator: {
2283
+ path: string;
2284
+ start_line: number;
2285
+ end_line: number;
2286
+ };
2287
+ content_digest: string;
2288
+ }[];
1915
2289
  block_id: string;
1916
2290
  layer: "semantic-prose";
1917
2291
  markdown: string;
1918
- })[];
2292
+ }[];
1919
2293
  }[];
1920
- template_id?: string | undefined;
1921
- }>]>;
1922
- evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
1923
- ref: z.ZodString;
1924
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
1925
- source_digest: z.ZodString;
1926
- }, "strict", z.ZodTypeAny, {
1927
- ref: string;
1928
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1929
- source_digest: string;
1930
- }, {
1931
- ref: string;
1932
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1933
- source_digest: string;
1934
- }>, "many">, {
1935
- ref: string;
1936
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1937
- source_digest: string;
1938
- }[], {
1939
- ref: string;
1940
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1941
- source_digest: string;
1942
- }[]>;
2294
+ artifact_kind: string;
2295
+ representation: "sections";
2296
+ artifact_id: string;
2297
+ artifact_policy_variant: string;
2298
+ template_id?: string | undefined;
2299
+ }>]>;
1943
2300
  }, "strict", z.ZodTypeAny, {
1944
- evidence_refs: {
1945
- ref: string;
1946
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1947
- source_digest: string;
1948
- }[];
1949
2301
  composer_ref: string;
1950
2302
  target_node_ref: string;
1951
2303
  artifact: {
@@ -1954,8 +2306,15 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
1954
2306
  template_id: string;
1955
2307
  variables: Record<string, {
1956
2308
  value: IndexerJson;
1957
- evidence_refs: string[];
1958
- fact_refs: string[];
2309
+ references: {
2310
+ source_ref: string;
2311
+ locator: {
2312
+ path: string;
2313
+ start_line: number;
2314
+ end_line: number;
2315
+ };
2316
+ content_digest: string;
2317
+ }[];
1959
2318
  }>;
1960
2319
  section_projections: {
1961
2320
  section_key: string;
@@ -1967,36 +2326,34 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
1967
2326
  artifact_id: string;
1968
2327
  artifact_policy_variant: string;
1969
2328
  } | {
1970
- artifact_kind: string;
1971
- representation: "sections";
1972
- artifact_id: string;
1973
- artifact_policy_variant: string;
1974
2329
  sections: {
1975
2330
  section_key: string;
1976
2331
  owner_indexer_id: string;
1977
2332
  document_kind: string;
1978
2333
  reader_goal: string;
1979
2334
  artifact_kind: string;
1980
- blocks: ({
1981
- block_id: string;
1982
- layer: "deterministic-block";
1983
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
1984
- fact_refs: string[];
1985
- } | {
1986
- evidence_refs: string[];
2335
+ blocks: {
2336
+ references: {
2337
+ source_ref: string;
2338
+ locator: {
2339
+ path: string;
2340
+ start_line: number;
2341
+ end_line: number;
2342
+ };
2343
+ content_digest: string;
2344
+ }[];
1987
2345
  block_id: string;
1988
2346
  layer: "semantic-prose";
1989
2347
  markdown: string;
1990
- })[];
2348
+ }[];
1991
2349
  }[];
2350
+ artifact_kind: string;
2351
+ representation: "sections";
2352
+ artifact_id: string;
2353
+ artifact_policy_variant: string;
1992
2354
  template_id?: string | undefined;
1993
2355
  };
1994
2356
  }, {
1995
- evidence_refs: {
1996
- ref: string;
1997
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1998
- source_digest: string;
1999
- }[];
2000
2357
  composer_ref: string;
2001
2358
  target_node_ref: string;
2002
2359
  artifact: {
@@ -2005,8 +2362,15 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2005
2362
  template_id: string;
2006
2363
  variables: Record<string, {
2007
2364
  value: IndexerJson;
2008
- evidence_refs: string[];
2009
- fact_refs: string[];
2365
+ references: {
2366
+ source_ref: string;
2367
+ locator: {
2368
+ path: string;
2369
+ start_line: number;
2370
+ end_line: number;
2371
+ };
2372
+ content_digest: string;
2373
+ }[];
2010
2374
  }>;
2011
2375
  section_projections: {
2012
2376
  section_key: string;
@@ -2018,39 +2382,37 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2018
2382
  artifact_id: string;
2019
2383
  artifact_policy_variant: string;
2020
2384
  } | {
2021
- artifact_kind: string;
2022
- representation: "sections";
2023
- artifact_id: string;
2024
- artifact_policy_variant: string;
2025
2385
  sections: {
2026
2386
  section_key: string;
2027
2387
  owner_indexer_id: string;
2028
2388
  document_kind: string;
2029
2389
  reader_goal: string;
2030
2390
  artifact_kind: string;
2031
- blocks: ({
2032
- block_id: string;
2033
- layer: "deterministic-block";
2034
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2035
- fact_refs: string[];
2036
- } | {
2037
- evidence_refs: string[];
2391
+ blocks: {
2392
+ references: {
2393
+ source_ref: string;
2394
+ locator: {
2395
+ path: string;
2396
+ start_line: number;
2397
+ end_line: number;
2398
+ };
2399
+ content_digest: string;
2400
+ }[];
2038
2401
  block_id: string;
2039
2402
  layer: "semantic-prose";
2040
2403
  markdown: string;
2041
- })[];
2404
+ }[];
2042
2405
  }[];
2406
+ artifact_kind: string;
2407
+ representation: "sections";
2408
+ artifact_id: string;
2409
+ artifact_policy_variant: string;
2043
2410
  template_id?: string | undefined;
2044
2411
  };
2045
2412
  }>, "many">;
2046
2413
  }, "strict", z.ZodTypeAny, {
2047
2414
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2048
2415
  proposals: {
2049
- evidence_refs: {
2050
- ref: string;
2051
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2052
- source_digest: string;
2053
- }[];
2054
2416
  composer_ref: string;
2055
2417
  target_node_ref: string;
2056
2418
  artifact: {
@@ -2059,8 +2421,15 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2059
2421
  template_id: string;
2060
2422
  variables: Record<string, {
2061
2423
  value: IndexerJson;
2062
- evidence_refs: string[];
2063
- fact_refs: string[];
2424
+ references: {
2425
+ source_ref: string;
2426
+ locator: {
2427
+ path: string;
2428
+ start_line: number;
2429
+ end_line: number;
2430
+ };
2431
+ content_digest: string;
2432
+ }[];
2064
2433
  }>;
2065
2434
  section_projections: {
2066
2435
  section_key: string;
@@ -2072,39 +2441,37 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2072
2441
  artifact_id: string;
2073
2442
  artifact_policy_variant: string;
2074
2443
  } | {
2075
- artifact_kind: string;
2076
- representation: "sections";
2077
- artifact_id: string;
2078
- artifact_policy_variant: string;
2079
2444
  sections: {
2080
2445
  section_key: string;
2081
2446
  owner_indexer_id: string;
2082
2447
  document_kind: string;
2083
2448
  reader_goal: string;
2084
2449
  artifact_kind: string;
2085
- blocks: ({
2086
- block_id: string;
2087
- layer: "deterministic-block";
2088
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2089
- fact_refs: string[];
2090
- } | {
2091
- evidence_refs: string[];
2450
+ blocks: {
2451
+ references: {
2452
+ source_ref: string;
2453
+ locator: {
2454
+ path: string;
2455
+ start_line: number;
2456
+ end_line: number;
2457
+ };
2458
+ content_digest: string;
2459
+ }[];
2092
2460
  block_id: string;
2093
2461
  layer: "semantic-prose";
2094
2462
  markdown: string;
2095
- })[];
2463
+ }[];
2096
2464
  }[];
2465
+ artifact_kind: string;
2466
+ representation: "sections";
2467
+ artifact_id: string;
2468
+ artifact_policy_variant: string;
2097
2469
  template_id?: string | undefined;
2098
2470
  };
2099
2471
  }[];
2100
2472
  }, {
2101
2473
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2102
2474
  proposals: {
2103
- evidence_refs: {
2104
- ref: string;
2105
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2106
- source_digest: string;
2107
- }[];
2108
2475
  composer_ref: string;
2109
2476
  target_node_ref: string;
2110
2477
  artifact: {
@@ -2113,8 +2480,15 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2113
2480
  template_id: string;
2114
2481
  variables: Record<string, {
2115
2482
  value: IndexerJson;
2116
- evidence_refs: string[];
2117
- fact_refs: string[];
2483
+ references: {
2484
+ source_ref: string;
2485
+ locator: {
2486
+ path: string;
2487
+ start_line: number;
2488
+ end_line: number;
2489
+ };
2490
+ content_digest: string;
2491
+ }[];
2118
2492
  }>;
2119
2493
  section_projections: {
2120
2494
  section_key: string;
@@ -2126,28 +2500,31 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2126
2500
  artifact_id: string;
2127
2501
  artifact_policy_variant: string;
2128
2502
  } | {
2129
- artifact_kind: string;
2130
- representation: "sections";
2131
- artifact_id: string;
2132
- artifact_policy_variant: string;
2133
2503
  sections: {
2134
2504
  section_key: string;
2135
2505
  owner_indexer_id: string;
2136
2506
  document_kind: string;
2137
2507
  reader_goal: string;
2138
2508
  artifact_kind: string;
2139
- blocks: ({
2140
- block_id: string;
2141
- layer: "deterministic-block";
2142
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2143
- fact_refs: string[];
2144
- } | {
2145
- evidence_refs: string[];
2509
+ blocks: {
2510
+ references: {
2511
+ source_ref: string;
2512
+ locator: {
2513
+ path: string;
2514
+ start_line: number;
2515
+ end_line: number;
2516
+ };
2517
+ content_digest: string;
2518
+ }[];
2146
2519
  block_id: string;
2147
2520
  layer: "semantic-prose";
2148
2521
  markdown: string;
2149
- })[];
2522
+ }[];
2150
2523
  }[];
2524
+ artifact_kind: string;
2525
+ representation: "sections";
2526
+ artifact_id: string;
2527
+ artifact_policy_variant: string;
2151
2528
  template_id?: string | undefined;
2152
2529
  };
2153
2530
  }[];
@@ -2208,11 +2585,6 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2208
2585
  } | {
2209
2586
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2210
2587
  proposals: {
2211
- evidence_refs: {
2212
- ref: string;
2213
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2214
- source_digest: string;
2215
- }[];
2216
2588
  composer_ref: string;
2217
2589
  target_node_ref: string;
2218
2590
  artifact: {
@@ -2221,8 +2593,15 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2221
2593
  template_id: string;
2222
2594
  variables: Record<string, {
2223
2595
  value: IndexerJson;
2224
- evidence_refs: string[];
2225
- fact_refs: string[];
2596
+ references: {
2597
+ source_ref: string;
2598
+ locator: {
2599
+ path: string;
2600
+ start_line: number;
2601
+ end_line: number;
2602
+ };
2603
+ content_digest: string;
2604
+ }[];
2226
2605
  }>;
2227
2606
  section_projections: {
2228
2607
  section_key: string;
@@ -2234,28 +2613,31 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2234
2613
  artifact_id: string;
2235
2614
  artifact_policy_variant: string;
2236
2615
  } | {
2237
- artifact_kind: string;
2238
- representation: "sections";
2239
- artifact_id: string;
2240
- artifact_policy_variant: string;
2241
2616
  sections: {
2242
2617
  section_key: string;
2243
2618
  owner_indexer_id: string;
2244
2619
  document_kind: string;
2245
2620
  reader_goal: string;
2246
2621
  artifact_kind: string;
2247
- blocks: ({
2248
- block_id: string;
2249
- layer: "deterministic-block";
2250
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2251
- fact_refs: string[];
2252
- } | {
2253
- evidence_refs: string[];
2622
+ blocks: {
2623
+ references: {
2624
+ source_ref: string;
2625
+ locator: {
2626
+ path: string;
2627
+ start_line: number;
2628
+ end_line: number;
2629
+ };
2630
+ content_digest: string;
2631
+ }[];
2254
2632
  block_id: string;
2255
2633
  layer: "semantic-prose";
2256
2634
  markdown: string;
2257
- })[];
2635
+ }[];
2258
2636
  }[];
2637
+ artifact_kind: string;
2638
+ representation: "sections";
2639
+ artifact_id: string;
2640
+ artifact_policy_variant: string;
2259
2641
  template_id?: string | undefined;
2260
2642
  };
2261
2643
  }[];
@@ -2306,11 +2688,6 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2306
2688
  } | {
2307
2689
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2308
2690
  proposals: {
2309
- evidence_refs: {
2310
- ref: string;
2311
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2312
- source_digest: string;
2313
- }[];
2314
2691
  composer_ref: string;
2315
2692
  target_node_ref: string;
2316
2693
  artifact: {
@@ -2319,8 +2696,15 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2319
2696
  template_id: string;
2320
2697
  variables: Record<string, {
2321
2698
  value: IndexerJson;
2322
- evidence_refs: string[];
2323
- fact_refs: string[];
2699
+ references: {
2700
+ source_ref: string;
2701
+ locator: {
2702
+ path: string;
2703
+ start_line: number;
2704
+ end_line: number;
2705
+ };
2706
+ content_digest: string;
2707
+ }[];
2324
2708
  }>;
2325
2709
  section_projections: {
2326
2710
  section_key: string;
@@ -2332,28 +2716,31 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
2332
2716
  artifact_id: string;
2333
2717
  artifact_policy_variant: string;
2334
2718
  } | {
2335
- artifact_kind: string;
2336
- representation: "sections";
2337
- artifact_id: string;
2338
- artifact_policy_variant: string;
2339
2719
  sections: {
2340
2720
  section_key: string;
2341
2721
  owner_indexer_id: string;
2342
2722
  document_kind: string;
2343
2723
  reader_goal: string;
2344
2724
  artifact_kind: string;
2345
- blocks: ({
2346
- block_id: string;
2347
- layer: "deterministic-block";
2348
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2349
- fact_refs: string[];
2350
- } | {
2351
- evidence_refs: string[];
2725
+ blocks: {
2726
+ references: {
2727
+ source_ref: string;
2728
+ locator: {
2729
+ path: string;
2730
+ start_line: number;
2731
+ end_line: number;
2732
+ };
2733
+ content_digest: string;
2734
+ }[];
2352
2735
  block_id: string;
2353
2736
  layer: "semantic-prose";
2354
2737
  markdown: string;
2355
- })[];
2738
+ }[];
2356
2739
  }[];
2740
+ artifact_kind: string;
2741
+ representation: "sections";
2742
+ artifact_id: string;
2743
+ artifact_policy_variant: string;
2357
2744
  template_id?: string | undefined;
2358
2745
  };
2359
2746
  }[];
@@ -2560,16 +2947,69 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2560
2947
  template_id: z.ZodEffects<z.ZodString, string, string>;
2561
2948
  variables: z.ZodRecord<z.ZodString, z.ZodObject<{
2562
2949
  value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
2563
- fact_refs: z.ZodArray<z.ZodString, "many">;
2564
- evidence_refs: z.ZodArray<z.ZodString, "many">;
2950
+ references: z.ZodArray<z.ZodObject<{
2951
+ source_ref: z.ZodString;
2952
+ locator: z.ZodEffects<z.ZodObject<{
2953
+ path: z.ZodEffects<z.ZodString, string, string>;
2954
+ start_line: z.ZodNumber;
2955
+ end_line: z.ZodNumber;
2956
+ }, "strict", z.ZodTypeAny, {
2957
+ path: string;
2958
+ start_line: number;
2959
+ end_line: number;
2960
+ }, {
2961
+ path: string;
2962
+ start_line: number;
2963
+ end_line: number;
2964
+ }>, {
2965
+ path: string;
2966
+ start_line: number;
2967
+ end_line: number;
2968
+ }, {
2969
+ path: string;
2970
+ start_line: number;
2971
+ end_line: number;
2972
+ }>;
2973
+ content_digest: z.ZodString;
2974
+ }, "strict", z.ZodTypeAny, {
2975
+ source_ref: string;
2976
+ locator: {
2977
+ path: string;
2978
+ start_line: number;
2979
+ end_line: number;
2980
+ };
2981
+ content_digest: string;
2982
+ }, {
2983
+ source_ref: string;
2984
+ locator: {
2985
+ path: string;
2986
+ start_line: number;
2987
+ end_line: number;
2988
+ };
2989
+ content_digest: string;
2990
+ }>, "many">;
2565
2991
  }, "strict", z.ZodTypeAny, {
2566
2992
  value: IndexerJson;
2567
- evidence_refs: string[];
2568
- fact_refs: string[];
2993
+ references: {
2994
+ source_ref: string;
2995
+ locator: {
2996
+ path: string;
2997
+ start_line: number;
2998
+ end_line: number;
2999
+ };
3000
+ content_digest: string;
3001
+ }[];
2569
3002
  }, {
2570
3003
  value: IndexerJson;
2571
- evidence_refs: string[];
2572
- fact_refs: string[];
3004
+ references: {
3005
+ source_ref: string;
3006
+ locator: {
3007
+ path: string;
3008
+ start_line: number;
3009
+ end_line: number;
3010
+ };
3011
+ content_digest: string;
3012
+ }[];
2573
3013
  }>>;
2574
3014
  section_projections: z.ZodArray<z.ZodObject<{
2575
3015
  section_key: z.ZodEffects<z.ZodString, string, string>;
@@ -2599,8 +3039,15 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2599
3039
  template_id: string;
2600
3040
  variables: Record<string, {
2601
3041
  value: IndexerJson;
2602
- evidence_refs: string[];
2603
- fact_refs: string[];
3042
+ references: {
3043
+ source_ref: string;
3044
+ locator: {
3045
+ path: string;
3046
+ start_line: number;
3047
+ end_line: number;
3048
+ };
3049
+ content_digest: string;
3050
+ }[];
2604
3051
  }>;
2605
3052
  section_projections: {
2606
3053
  section_key: string;
@@ -2617,8 +3064,15 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2617
3064
  template_id: string;
2618
3065
  variables: Record<string, {
2619
3066
  value: IndexerJson;
2620
- evidence_refs: string[];
2621
- fact_refs: string[];
3067
+ references: {
3068
+ source_ref: string;
3069
+ locator: {
3070
+ path: string;
3071
+ start_line: number;
3072
+ end_line: number;
3073
+ };
3074
+ content_digest: string;
3075
+ }[];
2622
3076
  }>;
2623
3077
  section_projections: {
2624
3078
  section_key: string;
@@ -2639,151 +3093,178 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2639
3093
  reader_goal: z.ZodEffects<z.ZodString, string, string>;
2640
3094
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
2641
3095
  } & {
2642
- blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
2643
- block_id: z.ZodEffects<z.ZodString, string, string>;
2644
- layer: z.ZodLiteral<"deterministic-block">;
2645
- renderer: z.ZodEnum<["bullet-list", "key-value-table", "multi-column-table", "public-contract-table", "json-code-block"]>;
2646
- fact_refs: z.ZodArray<z.ZodString, "many">;
2647
- }, "strict", z.ZodTypeAny, {
2648
- block_id: string;
2649
- layer: "deterministic-block";
2650
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2651
- fact_refs: string[];
2652
- }, {
2653
- block_id: string;
2654
- layer: "deterministic-block";
2655
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2656
- fact_refs: string[];
2657
- }>, z.ZodObject<{
3096
+ blocks: z.ZodArray<z.ZodObject<{
2658
3097
  block_id: z.ZodEffects<z.ZodString, string, string>;
2659
3098
  layer: z.ZodLiteral<"semantic-prose">;
2660
3099
  markdown: z.ZodString;
2661
- evidence_refs: z.ZodArray<z.ZodString, "many">;
3100
+ references: z.ZodArray<z.ZodObject<{
3101
+ source_ref: z.ZodString;
3102
+ locator: z.ZodEffects<z.ZodObject<{
3103
+ path: z.ZodEffects<z.ZodString, string, string>;
3104
+ start_line: z.ZodNumber;
3105
+ end_line: z.ZodNumber;
3106
+ }, "strict", z.ZodTypeAny, {
3107
+ path: string;
3108
+ start_line: number;
3109
+ end_line: number;
3110
+ }, {
3111
+ path: string;
3112
+ start_line: number;
3113
+ end_line: number;
3114
+ }>, {
3115
+ path: string;
3116
+ start_line: number;
3117
+ end_line: number;
3118
+ }, {
3119
+ path: string;
3120
+ start_line: number;
3121
+ end_line: number;
3122
+ }>;
3123
+ content_digest: z.ZodString;
3124
+ }, "strict", z.ZodTypeAny, {
3125
+ source_ref: string;
3126
+ locator: {
3127
+ path: string;
3128
+ start_line: number;
3129
+ end_line: number;
3130
+ };
3131
+ content_digest: string;
3132
+ }, {
3133
+ source_ref: string;
3134
+ locator: {
3135
+ path: string;
3136
+ start_line: number;
3137
+ end_line: number;
3138
+ };
3139
+ content_digest: string;
3140
+ }>, "many">;
2662
3141
  }, "strict", z.ZodTypeAny, {
2663
- evidence_refs: string[];
3142
+ references: {
3143
+ source_ref: string;
3144
+ locator: {
3145
+ path: string;
3146
+ start_line: number;
3147
+ end_line: number;
3148
+ };
3149
+ content_digest: string;
3150
+ }[];
2664
3151
  block_id: string;
2665
3152
  layer: "semantic-prose";
2666
3153
  markdown: string;
2667
3154
  }, {
2668
- evidence_refs: string[];
3155
+ references: {
3156
+ source_ref: string;
3157
+ locator: {
3158
+ path: string;
3159
+ start_line: number;
3160
+ end_line: number;
3161
+ };
3162
+ content_digest: string;
3163
+ }[];
2669
3164
  block_id: string;
2670
3165
  layer: "semantic-prose";
2671
3166
  markdown: string;
2672
- }>]>, "many">;
3167
+ }>, "many">;
2673
3168
  }, "strict", z.ZodTypeAny, {
2674
3169
  section_key: string;
2675
3170
  owner_indexer_id: string;
2676
3171
  document_kind: string;
2677
3172
  reader_goal: string;
2678
3173
  artifact_kind: string;
2679
- blocks: ({
2680
- block_id: string;
2681
- layer: "deterministic-block";
2682
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2683
- fact_refs: string[];
2684
- } | {
2685
- evidence_refs: string[];
3174
+ blocks: {
3175
+ references: {
3176
+ source_ref: string;
3177
+ locator: {
3178
+ path: string;
3179
+ start_line: number;
3180
+ end_line: number;
3181
+ };
3182
+ content_digest: string;
3183
+ }[];
2686
3184
  block_id: string;
2687
3185
  layer: "semantic-prose";
2688
3186
  markdown: string;
2689
- })[];
3187
+ }[];
2690
3188
  }, {
2691
3189
  section_key: string;
2692
3190
  owner_indexer_id: string;
2693
3191
  document_kind: string;
2694
3192
  reader_goal: string;
2695
3193
  artifact_kind: string;
2696
- blocks: ({
2697
- block_id: string;
2698
- layer: "deterministic-block";
2699
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2700
- fact_refs: string[];
2701
- } | {
2702
- evidence_refs: string[];
3194
+ blocks: {
3195
+ references: {
3196
+ source_ref: string;
3197
+ locator: {
3198
+ path: string;
3199
+ start_line: number;
3200
+ end_line: number;
3201
+ };
3202
+ content_digest: string;
3203
+ }[];
2703
3204
  block_id: string;
2704
3205
  layer: "semantic-prose";
2705
3206
  markdown: string;
2706
- })[];
3207
+ }[];
2707
3208
  }>, "many">;
2708
3209
  artifact_id: z.ZodEffects<z.ZodString, string, string>;
2709
3210
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
2710
3211
  artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
2711
3212
  }, "strict", z.ZodTypeAny, {
2712
- artifact_kind: string;
2713
- representation: "sections";
2714
- artifact_id: string;
2715
- artifact_policy_variant: string;
2716
3213
  sections: {
2717
3214
  section_key: string;
2718
3215
  owner_indexer_id: string;
2719
3216
  document_kind: string;
2720
3217
  reader_goal: string;
2721
3218
  artifact_kind: string;
2722
- blocks: ({
2723
- block_id: string;
2724
- layer: "deterministic-block";
2725
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2726
- fact_refs: string[];
2727
- } | {
2728
- evidence_refs: string[];
3219
+ blocks: {
3220
+ references: {
3221
+ source_ref: string;
3222
+ locator: {
3223
+ path: string;
3224
+ start_line: number;
3225
+ end_line: number;
3226
+ };
3227
+ content_digest: string;
3228
+ }[];
2729
3229
  block_id: string;
2730
3230
  layer: "semantic-prose";
2731
3231
  markdown: string;
2732
- })[];
3232
+ }[];
2733
3233
  }[];
2734
- template_id?: string | undefined;
2735
- }, {
2736
3234
  artifact_kind: string;
2737
3235
  representation: "sections";
2738
3236
  artifact_id: string;
2739
3237
  artifact_policy_variant: string;
3238
+ template_id?: string | undefined;
3239
+ }, {
2740
3240
  sections: {
2741
3241
  section_key: string;
2742
3242
  owner_indexer_id: string;
2743
3243
  document_kind: string;
2744
3244
  reader_goal: string;
2745
3245
  artifact_kind: string;
2746
- blocks: ({
2747
- block_id: string;
2748
- layer: "deterministic-block";
2749
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2750
- fact_refs: string[];
2751
- } | {
2752
- evidence_refs: string[];
3246
+ blocks: {
3247
+ references: {
3248
+ source_ref: string;
3249
+ locator: {
3250
+ path: string;
3251
+ start_line: number;
3252
+ end_line: number;
3253
+ };
3254
+ content_digest: string;
3255
+ }[];
2753
3256
  block_id: string;
2754
3257
  layer: "semantic-prose";
2755
3258
  markdown: string;
2756
- })[];
3259
+ }[];
2757
3260
  }[];
3261
+ artifact_kind: string;
3262
+ representation: "sections";
3263
+ artifact_id: string;
3264
+ artifact_policy_variant: string;
2758
3265
  template_id?: string | undefined;
2759
3266
  }>]>;
2760
- evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
2761
- ref: z.ZodString;
2762
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
2763
- source_digest: z.ZodString;
2764
- }, "strict", z.ZodTypeAny, {
2765
- ref: string;
2766
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2767
- source_digest: string;
2768
- }, {
2769
- ref: string;
2770
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2771
- source_digest: string;
2772
- }>, "many">, {
2773
- ref: string;
2774
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2775
- source_digest: string;
2776
- }[], {
2777
- ref: string;
2778
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2779
- source_digest: string;
2780
- }[]>;
2781
3267
  }, "strict", z.ZodTypeAny, {
2782
- evidence_refs: {
2783
- ref: string;
2784
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2785
- source_digest: string;
2786
- }[];
2787
3268
  composer_ref: string;
2788
3269
  target_node_ref: string;
2789
3270
  artifact: {
@@ -2792,8 +3273,15 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2792
3273
  template_id: string;
2793
3274
  variables: Record<string, {
2794
3275
  value: IndexerJson;
2795
- evidence_refs: string[];
2796
- fact_refs: string[];
3276
+ references: {
3277
+ source_ref: string;
3278
+ locator: {
3279
+ path: string;
3280
+ start_line: number;
3281
+ end_line: number;
3282
+ };
3283
+ content_digest: string;
3284
+ }[];
2797
3285
  }>;
2798
3286
  section_projections: {
2799
3287
  section_key: string;
@@ -2805,36 +3293,34 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2805
3293
  artifact_id: string;
2806
3294
  artifact_policy_variant: string;
2807
3295
  } | {
2808
- artifact_kind: string;
2809
- representation: "sections";
2810
- artifact_id: string;
2811
- artifact_policy_variant: string;
2812
3296
  sections: {
2813
3297
  section_key: string;
2814
3298
  owner_indexer_id: string;
2815
3299
  document_kind: string;
2816
3300
  reader_goal: string;
2817
3301
  artifact_kind: string;
2818
- blocks: ({
2819
- block_id: string;
2820
- layer: "deterministic-block";
2821
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2822
- fact_refs: string[];
2823
- } | {
2824
- evidence_refs: string[];
3302
+ blocks: {
3303
+ references: {
3304
+ source_ref: string;
3305
+ locator: {
3306
+ path: string;
3307
+ start_line: number;
3308
+ end_line: number;
3309
+ };
3310
+ content_digest: string;
3311
+ }[];
2825
3312
  block_id: string;
2826
3313
  layer: "semantic-prose";
2827
3314
  markdown: string;
2828
- })[];
3315
+ }[];
2829
3316
  }[];
3317
+ artifact_kind: string;
3318
+ representation: "sections";
3319
+ artifact_id: string;
3320
+ artifact_policy_variant: string;
2830
3321
  template_id?: string | undefined;
2831
3322
  };
2832
3323
  }, {
2833
- evidence_refs: {
2834
- ref: string;
2835
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2836
- source_digest: string;
2837
- }[];
2838
3324
  composer_ref: string;
2839
3325
  target_node_ref: string;
2840
3326
  artifact: {
@@ -2843,8 +3329,15 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2843
3329
  template_id: string;
2844
3330
  variables: Record<string, {
2845
3331
  value: IndexerJson;
2846
- evidence_refs: string[];
2847
- fact_refs: string[];
3332
+ references: {
3333
+ source_ref: string;
3334
+ locator: {
3335
+ path: string;
3336
+ start_line: number;
3337
+ end_line: number;
3338
+ };
3339
+ content_digest: string;
3340
+ }[];
2848
3341
  }>;
2849
3342
  section_projections: {
2850
3343
  section_key: string;
@@ -2856,39 +3349,37 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2856
3349
  artifact_id: string;
2857
3350
  artifact_policy_variant: string;
2858
3351
  } | {
2859
- artifact_kind: string;
2860
- representation: "sections";
2861
- artifact_id: string;
2862
- artifact_policy_variant: string;
2863
3352
  sections: {
2864
3353
  section_key: string;
2865
3354
  owner_indexer_id: string;
2866
3355
  document_kind: string;
2867
3356
  reader_goal: string;
2868
3357
  artifact_kind: string;
2869
- blocks: ({
2870
- block_id: string;
2871
- layer: "deterministic-block";
2872
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2873
- fact_refs: string[];
2874
- } | {
2875
- evidence_refs: string[];
3358
+ blocks: {
3359
+ references: {
3360
+ source_ref: string;
3361
+ locator: {
3362
+ path: string;
3363
+ start_line: number;
3364
+ end_line: number;
3365
+ };
3366
+ content_digest: string;
3367
+ }[];
2876
3368
  block_id: string;
2877
3369
  layer: "semantic-prose";
2878
3370
  markdown: string;
2879
- })[];
3371
+ }[];
2880
3372
  }[];
3373
+ artifact_kind: string;
3374
+ representation: "sections";
3375
+ artifact_id: string;
3376
+ artifact_policy_variant: string;
2881
3377
  template_id?: string | undefined;
2882
3378
  };
2883
3379
  }>, "many">;
2884
3380
  }, "strict", z.ZodTypeAny, {
2885
3381
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2886
3382
  proposals: {
2887
- evidence_refs: {
2888
- ref: string;
2889
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2890
- source_digest: string;
2891
- }[];
2892
3383
  composer_ref: string;
2893
3384
  target_node_ref: string;
2894
3385
  artifact: {
@@ -2897,8 +3388,15 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2897
3388
  template_id: string;
2898
3389
  variables: Record<string, {
2899
3390
  value: IndexerJson;
2900
- evidence_refs: string[];
2901
- fact_refs: string[];
3391
+ references: {
3392
+ source_ref: string;
3393
+ locator: {
3394
+ path: string;
3395
+ start_line: number;
3396
+ end_line: number;
3397
+ };
3398
+ content_digest: string;
3399
+ }[];
2902
3400
  }>;
2903
3401
  section_projections: {
2904
3402
  section_key: string;
@@ -2910,39 +3408,37 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2910
3408
  artifact_id: string;
2911
3409
  artifact_policy_variant: string;
2912
3410
  } | {
2913
- artifact_kind: string;
2914
- representation: "sections";
2915
- artifact_id: string;
2916
- artifact_policy_variant: string;
2917
3411
  sections: {
2918
3412
  section_key: string;
2919
3413
  owner_indexer_id: string;
2920
3414
  document_kind: string;
2921
3415
  reader_goal: string;
2922
3416
  artifact_kind: string;
2923
- blocks: ({
2924
- block_id: string;
2925
- layer: "deterministic-block";
2926
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2927
- fact_refs: string[];
2928
- } | {
2929
- evidence_refs: string[];
3417
+ blocks: {
3418
+ references: {
3419
+ source_ref: string;
3420
+ locator: {
3421
+ path: string;
3422
+ start_line: number;
3423
+ end_line: number;
3424
+ };
3425
+ content_digest: string;
3426
+ }[];
2930
3427
  block_id: string;
2931
3428
  layer: "semantic-prose";
2932
3429
  markdown: string;
2933
- })[];
3430
+ }[];
2934
3431
  }[];
3432
+ artifact_kind: string;
3433
+ representation: "sections";
3434
+ artifact_id: string;
3435
+ artifact_policy_variant: string;
2935
3436
  template_id?: string | undefined;
2936
3437
  };
2937
3438
  }[];
2938
3439
  }, {
2939
3440
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
2940
3441
  proposals: {
2941
- evidence_refs: {
2942
- ref: string;
2943
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
2944
- source_digest: string;
2945
- }[];
2946
3442
  composer_ref: string;
2947
3443
  target_node_ref: string;
2948
3444
  artifact: {
@@ -2951,8 +3447,15 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2951
3447
  template_id: string;
2952
3448
  variables: Record<string, {
2953
3449
  value: IndexerJson;
2954
- evidence_refs: string[];
2955
- fact_refs: string[];
3450
+ references: {
3451
+ source_ref: string;
3452
+ locator: {
3453
+ path: string;
3454
+ start_line: number;
3455
+ end_line: number;
3456
+ };
3457
+ content_digest: string;
3458
+ }[];
2956
3459
  }>;
2957
3460
  section_projections: {
2958
3461
  section_key: string;
@@ -2964,28 +3467,31 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
2964
3467
  artifact_id: string;
2965
3468
  artifact_policy_variant: string;
2966
3469
  } | {
2967
- artifact_kind: string;
2968
- representation: "sections";
2969
- artifact_id: string;
2970
- artifact_policy_variant: string;
2971
3470
  sections: {
2972
3471
  section_key: string;
2973
3472
  owner_indexer_id: string;
2974
3473
  document_kind: string;
2975
3474
  reader_goal: string;
2976
3475
  artifact_kind: string;
2977
- blocks: ({
2978
- block_id: string;
2979
- layer: "deterministic-block";
2980
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
2981
- fact_refs: string[];
2982
- } | {
2983
- evidence_refs: string[];
3476
+ blocks: {
3477
+ references: {
3478
+ source_ref: string;
3479
+ locator: {
3480
+ path: string;
3481
+ start_line: number;
3482
+ end_line: number;
3483
+ };
3484
+ content_digest: string;
3485
+ }[];
2984
3486
  block_id: string;
2985
3487
  layer: "semantic-prose";
2986
3488
  markdown: string;
2987
- })[];
3489
+ }[];
2988
3490
  }[];
3491
+ artifact_kind: string;
3492
+ representation: "sections";
3493
+ artifact_id: string;
3494
+ artifact_policy_variant: string;
2989
3495
  template_id?: string | undefined;
2990
3496
  };
2991
3497
  }[];
@@ -3046,11 +3552,6 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3046
3552
  } | {
3047
3553
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
3048
3554
  proposals: {
3049
- evidence_refs: {
3050
- ref: string;
3051
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
3052
- source_digest: string;
3053
- }[];
3054
3555
  composer_ref: string;
3055
3556
  target_node_ref: string;
3056
3557
  artifact: {
@@ -3059,8 +3560,15 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3059
3560
  template_id: string;
3060
3561
  variables: Record<string, {
3061
3562
  value: IndexerJson;
3062
- evidence_refs: string[];
3063
- fact_refs: string[];
3563
+ references: {
3564
+ source_ref: string;
3565
+ locator: {
3566
+ path: string;
3567
+ start_line: number;
3568
+ end_line: number;
3569
+ };
3570
+ content_digest: string;
3571
+ }[];
3064
3572
  }>;
3065
3573
  section_projections: {
3066
3574
  section_key: string;
@@ -3072,28 +3580,31 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3072
3580
  artifact_id: string;
3073
3581
  artifact_policy_variant: string;
3074
3582
  } | {
3075
- artifact_kind: string;
3076
- representation: "sections";
3077
- artifact_id: string;
3078
- artifact_policy_variant: string;
3079
3583
  sections: {
3080
3584
  section_key: string;
3081
3585
  owner_indexer_id: string;
3082
3586
  document_kind: string;
3083
3587
  reader_goal: string;
3084
3588
  artifact_kind: string;
3085
- blocks: ({
3086
- block_id: string;
3087
- layer: "deterministic-block";
3088
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
3089
- fact_refs: string[];
3090
- } | {
3091
- evidence_refs: string[];
3589
+ blocks: {
3590
+ references: {
3591
+ source_ref: string;
3592
+ locator: {
3593
+ path: string;
3594
+ start_line: number;
3595
+ end_line: number;
3596
+ };
3597
+ content_digest: string;
3598
+ }[];
3092
3599
  block_id: string;
3093
3600
  layer: "semantic-prose";
3094
3601
  markdown: string;
3095
- })[];
3602
+ }[];
3096
3603
  }[];
3604
+ artifact_kind: string;
3605
+ representation: "sections";
3606
+ artifact_id: string;
3607
+ artifact_policy_variant: string;
3097
3608
  template_id?: string | undefined;
3098
3609
  };
3099
3610
  }[];
@@ -3144,11 +3655,6 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3144
3655
  } | {
3145
3656
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
3146
3657
  proposals: {
3147
- evidence_refs: {
3148
- ref: string;
3149
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
3150
- source_digest: string;
3151
- }[];
3152
3658
  composer_ref: string;
3153
3659
  target_node_ref: string;
3154
3660
  artifact: {
@@ -3157,8 +3663,15 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3157
3663
  template_id: string;
3158
3664
  variables: Record<string, {
3159
3665
  value: IndexerJson;
3160
- evidence_refs: string[];
3161
- fact_refs: string[];
3666
+ references: {
3667
+ source_ref: string;
3668
+ locator: {
3669
+ path: string;
3670
+ start_line: number;
3671
+ end_line: number;
3672
+ };
3673
+ content_digest: string;
3674
+ }[];
3162
3675
  }>;
3163
3676
  section_projections: {
3164
3677
  section_key: string;
@@ -3170,28 +3683,31 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3170
3683
  artifact_id: string;
3171
3684
  artifact_policy_variant: string;
3172
3685
  } | {
3173
- artifact_kind: string;
3174
- representation: "sections";
3175
- artifact_id: string;
3176
- artifact_policy_variant: string;
3177
3686
  sections: {
3178
3687
  section_key: string;
3179
3688
  owner_indexer_id: string;
3180
3689
  document_kind: string;
3181
3690
  reader_goal: string;
3182
3691
  artifact_kind: string;
3183
- blocks: ({
3184
- block_id: string;
3185
- layer: "deterministic-block";
3186
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
3187
- fact_refs: string[];
3188
- } | {
3189
- evidence_refs: string[];
3692
+ blocks: {
3693
+ references: {
3694
+ source_ref: string;
3695
+ locator: {
3696
+ path: string;
3697
+ start_line: number;
3698
+ end_line: number;
3699
+ };
3700
+ content_digest: string;
3701
+ }[];
3190
3702
  block_id: string;
3191
3703
  layer: "semantic-prose";
3192
3704
  markdown: string;
3193
- })[];
3705
+ }[];
3194
3706
  }[];
3707
+ artifact_kind: string;
3708
+ representation: "sections";
3709
+ artifact_id: string;
3710
+ artifact_policy_variant: string;
3195
3711
  template_id?: string | undefined;
3196
3712
  };
3197
3713
  }[];
@@ -3261,11 +3777,6 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3261
3777
  } | {
3262
3778
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
3263
3779
  proposals: {
3264
- evidence_refs: {
3265
- ref: string;
3266
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
3267
- source_digest: string;
3268
- }[];
3269
3780
  composer_ref: string;
3270
3781
  target_node_ref: string;
3271
3782
  artifact: {
@@ -3274,8 +3785,15 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3274
3785
  template_id: string;
3275
3786
  variables: Record<string, {
3276
3787
  value: IndexerJson;
3277
- evidence_refs: string[];
3278
- fact_refs: string[];
3788
+ references: {
3789
+ source_ref: string;
3790
+ locator: {
3791
+ path: string;
3792
+ start_line: number;
3793
+ end_line: number;
3794
+ };
3795
+ content_digest: string;
3796
+ }[];
3279
3797
  }>;
3280
3798
  section_projections: {
3281
3799
  section_key: string;
@@ -3287,28 +3805,31 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3287
3805
  artifact_id: string;
3288
3806
  artifact_policy_variant: string;
3289
3807
  } | {
3290
- artifact_kind: string;
3291
- representation: "sections";
3292
- artifact_id: string;
3293
- artifact_policy_variant: string;
3294
3808
  sections: {
3295
3809
  section_key: string;
3296
3810
  owner_indexer_id: string;
3297
3811
  document_kind: string;
3298
3812
  reader_goal: string;
3299
3813
  artifact_kind: string;
3300
- blocks: ({
3301
- block_id: string;
3302
- layer: "deterministic-block";
3303
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
3304
- fact_refs: string[];
3305
- } | {
3306
- evidence_refs: string[];
3814
+ blocks: {
3815
+ references: {
3816
+ source_ref: string;
3817
+ locator: {
3818
+ path: string;
3819
+ start_line: number;
3820
+ end_line: number;
3821
+ };
3822
+ content_digest: string;
3823
+ }[];
3307
3824
  block_id: string;
3308
3825
  layer: "semantic-prose";
3309
3826
  markdown: string;
3310
- })[];
3827
+ }[];
3311
3828
  }[];
3829
+ artifact_kind: string;
3830
+ representation: "sections";
3831
+ artifact_id: string;
3832
+ artifact_policy_variant: string;
3312
3833
  template_id?: string | undefined;
3313
3834
  };
3314
3835
  }[];
@@ -3370,11 +3891,6 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3370
3891
  } | {
3371
3892
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
3372
3893
  proposals: {
3373
- evidence_refs: {
3374
- ref: string;
3375
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
3376
- source_digest: string;
3377
- }[];
3378
3894
  composer_ref: string;
3379
3895
  target_node_ref: string;
3380
3896
  artifact: {
@@ -3383,8 +3899,15 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3383
3899
  template_id: string;
3384
3900
  variables: Record<string, {
3385
3901
  value: IndexerJson;
3386
- evidence_refs: string[];
3387
- fact_refs: string[];
3902
+ references: {
3903
+ source_ref: string;
3904
+ locator: {
3905
+ path: string;
3906
+ start_line: number;
3907
+ end_line: number;
3908
+ };
3909
+ content_digest: string;
3910
+ }[];
3388
3911
  }>;
3389
3912
  section_projections: {
3390
3913
  section_key: string;
@@ -3396,28 +3919,31 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
3396
3919
  artifact_id: string;
3397
3920
  artifact_policy_variant: string;
3398
3921
  } | {
3399
- artifact_kind: string;
3400
- representation: "sections";
3401
- artifact_id: string;
3402
- artifact_policy_variant: string;
3403
3922
  sections: {
3404
3923
  section_key: string;
3405
3924
  owner_indexer_id: string;
3406
3925
  document_kind: string;
3407
3926
  reader_goal: string;
3408
3927
  artifact_kind: string;
3409
- blocks: ({
3410
- block_id: string;
3411
- layer: "deterministic-block";
3412
- renderer: "bullet-list" | "key-value-table" | "multi-column-table" | "public-contract-table" | "json-code-block";
3413
- fact_refs: string[];
3414
- } | {
3415
- evidence_refs: string[];
3928
+ blocks: {
3929
+ references: {
3930
+ source_ref: string;
3931
+ locator: {
3932
+ path: string;
3933
+ start_line: number;
3934
+ end_line: number;
3935
+ };
3936
+ content_digest: string;
3937
+ }[];
3416
3938
  block_id: string;
3417
3939
  layer: "semantic-prose";
3418
3940
  markdown: string;
3419
- })[];
3941
+ }[];
3420
3942
  }[];
3943
+ artifact_kind: string;
3944
+ representation: "sections";
3945
+ artifact_id: string;
3946
+ artifact_policy_variant: string;
3421
3947
  template_id?: string | undefined;
3422
3948
  };
3423
3949
  }[];