@c4a/context-cli 0.6.19 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -6
- package/README.zh-CN.md +42 -5
- package/cli.js +77935 -44879
- package/indexers/bundles/context-code-indexer/SKILL.md +20 -0
- package/indexers/bundles/context-code-indexer/context-indexer.yaml +230 -0
- package/indexers/bundles/context-code-indexer/references/composers/contracts-and-chains.md +23 -0
- package/indexers/bundles/context-code-indexer/references/composers/cross-module-chain.md +22 -0
- package/indexers/bundles/context-code-indexer/references/composers/development-and-delivery.md +22 -0
- package/indexers/bundles/context-code-indexer/references/composers/event-flow.md +21 -0
- package/indexers/bundles/context-code-indexer/references/composers/examples-and-documentation.md +22 -0
- package/indexers/bundles/context-code-indexer/references/composers/persistence-boundary.md +21 -0
- package/indexers/bundles/context-code-indexer/references/composers/protocol-boundary.md +22 -0
- package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +23 -0
- package/indexers/bundles/context-code-indexer/references/indexer.md +49 -0
- package/indexers/bundles/context-code-indexer/references/metrics.md +201 -0
- package/{providers/context/resources/semantic/code-index/templates/adapter.md → indexers/bundles/context-code-indexer/templates/adapter-integration.md} +16 -6
- package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/api-service.md +9 -7
- package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/background-runtime.md +3 -3
- package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/cli-tool.md +6 -6
- package/indexers/bundles/context-code-indexer/templates/component-library.md +99 -0
- package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/contract-source.md +4 -4
- package/{providers/context/resources/semantic/code-index/templates/cross-module-chain.md → indexers/bundles/context-code-indexer/templates/data-sync-reconciliation.md} +11 -12
- package/{providers/context/resources/semantic/code-index/templates/derived-source.md → indexers/bundles/context-code-indexer/templates/derived-generated-source.md} +11 -10
- package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/domain-service.md +4 -4
- package/{providers/context/resources/semantic/code-index/templates/event-flow.md → indexers/bundles/context-code-indexer/templates/event-consumer.md} +5 -5
- package/{providers/context/resources/semantic/code-index/templates/protocol-boundary.md → indexers/bundles/context-code-indexer/templates/gateway-facade.md} +14 -13
- package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/monorepo-container.md +11 -11
- package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/plugin-extension.md +1 -1
- package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/sdk-library.md +9 -9
- package/{providers/context/resources/semantic/code-index/templates/persistence-boundary.md → indexers/bundles/context-code-indexer/templates/storage-repository.md} +3 -3
- package/{providers/context/resources/semantic/code-index → indexers/bundles/context-code-indexer}/templates/web-application.md +5 -4
- package/indexers/bundles/context-code-indexer/tests/fixtures/chapters.json +226 -0
- package/indexers/bundles/context-code-indexer/tests/fixtures/composers.json +82 -0
- package/indexers/bundles/context-code-indexer/tests/fixtures/profiles.json +210 -0
- package/indexers/bundles/context-code-indexer/tests/fixtures/scenarios.json +122 -0
- package/indexers/bundles/context-markdown-indexer/SKILL.md +20 -0
- package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +147 -0
- package/indexers/bundles/context-markdown-indexer/references/classification.md +63 -0
- package/indexers/bundles/context-markdown-indexer/references/editorial-policy.md +106 -0
- package/indexers/bundles/context-markdown-indexer/references/indexer.md +23 -0
- package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +146 -0
- package/indexers/bundles/context-markdown-indexer/references/structure-and-artifacts.md +109 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/anonymous.json +31 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/editorial.json +309 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/migration-equivalence.json +186 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/profiles.json +171 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/routing.json +151 -0
- package/indexers/capability-manifest.json +35 -0
- package/indexers/contracts/hard-rule-conformance.json +2644 -0
- package/indexers/contracts/operator-contract.json +35 -0
- package/indexers/contracts/profile-contract.json +10162 -0
- package/indexers/release-manifest.json +208 -0
- package/package.json +5 -4
- package/plugins/README.md +17 -109
- package/plugins/README_CN.md +11 -89
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +3 -11
- package/plugins/claude/CLAUDE.md +1 -1
- package/plugins/claude/README.md +1 -1
- package/plugins/claude/commands/context.md +76 -1
- package/plugins/codex/.codex-plugin/plugin.json +6 -17
- package/plugins/codex/AGENTS.md +1 -1
- package/plugins/codex/README.md +1 -1
- package/plugins/codex/skills/context/SKILL.md +77 -13
- package/plugins/cursor/.cursor-plugin/plugin.json +4 -17
- package/plugins/cursor/AGENTS.md +1 -1
- package/plugins/cursor/README.md +3 -2
- package/plugins/cursor/commands/c4a-context.md +76 -3
- package/plugins/skills/{c4a-context → context}/SKILL.md +78 -14
- package/plugins/skills/context-code-indexer/SKILL.md +20 -0
- package/plugins/skills/context-code-indexer/context-indexer.yaml +230 -0
- package/plugins/skills/context-code-indexer/references/composers/contracts-and-chains.md +23 -0
- package/plugins/skills/context-code-indexer/references/composers/cross-module-chain.md +22 -0
- package/plugins/skills/context-code-indexer/references/composers/development-and-delivery.md +22 -0
- package/plugins/skills/context-code-indexer/references/composers/event-flow.md +21 -0
- package/plugins/skills/context-code-indexer/references/composers/examples-and-documentation.md +22 -0
- package/plugins/skills/context-code-indexer/references/composers/persistence-boundary.md +21 -0
- package/plugins/skills/context-code-indexer/references/composers/protocol-boundary.md +22 -0
- package/plugins/skills/context-code-indexer/references/composers/public-contract.md +23 -0
- package/plugins/skills/context-code-indexer/references/indexer.md +49 -0
- package/plugins/skills/context-code-indexer/references/metrics.md +201 -0
- package/plugins/skills/context-code-indexer/templates/adapter-integration.md +119 -0
- package/plugins/skills/context-code-indexer/templates/api-service.md +118 -0
- package/plugins/skills/context-code-indexer/templates/background-runtime.md +109 -0
- package/plugins/skills/context-code-indexer/templates/cli-tool.md +129 -0
- package/plugins/skills/context-code-indexer/templates/component-library.md +99 -0
- package/plugins/skills/context-code-indexer/templates/contract-source.md +73 -0
- package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation.md +77 -0
- package/plugins/skills/context-code-indexer/templates/derived-generated-source.md +117 -0
- package/plugins/skills/context-code-indexer/templates/domain-service.md +109 -0
- package/plugins/skills/context-code-indexer/templates/event-consumer.md +62 -0
- package/plugins/skills/context-code-indexer/templates/gateway-facade.md +89 -0
- package/plugins/skills/context-code-indexer/templates/monorepo-container.md +124 -0
- package/plugins/skills/context-code-indexer/templates/plugin-extension.md +52 -0
- package/plugins/skills/context-code-indexer/templates/sdk-library.md +132 -0
- package/plugins/skills/context-code-indexer/templates/storage-repository.md +56 -0
- package/plugins/skills/context-code-indexer/templates/web-application.md +146 -0
- package/plugins/skills/context-code-indexer/tests/fixtures/chapters.json +226 -0
- package/plugins/skills/context-code-indexer/tests/fixtures/composers.json +82 -0
- package/plugins/skills/context-code-indexer/tests/fixtures/profiles.json +210 -0
- package/plugins/skills/context-code-indexer/tests/fixtures/scenarios.json +122 -0
- package/plugins/skills/context-markdown-indexer/SKILL.md +20 -0
- package/plugins/skills/context-markdown-indexer/context-indexer.yaml +147 -0
- package/plugins/skills/context-markdown-indexer/references/classification.md +63 -0
- package/plugins/skills/context-markdown-indexer/references/editorial-policy.md +106 -0
- package/plugins/skills/context-markdown-indexer/references/indexer.md +23 -0
- package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +146 -0
- package/plugins/skills/context-markdown-indexer/references/structure-and-artifacts.md +109 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/anonymous.json +31 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/editorial.json +309 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/migration-equivalence.json +186 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/profiles.json +171 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/routing.json +151 -0
- package/providers/context/actions/accept-main-index-run.yaml +7 -0
- package/providers/context/actions/accept-material-answer-run.yaml +7 -0
- package/providers/context/actions/accept-post-author-composer-run.yaml +7 -0
- package/providers/context/actions/actualize-material-answer-bindings.yaml +8 -0
- package/providers/context/actions/apply-indexer-project.yaml +7 -0
- package/providers/context/actions/audit-material-gap-state.yaml +8 -0
- package/providers/context/actions/audit-projected-artifact-fan-out.yaml +8 -0
- package/providers/context/actions/authorize-indexer-dependencies.yaml +7 -0
- package/providers/context/actions/authorize-indexer-program-execution.yaml +7 -0
- package/providers/context/actions/build-main-index-author-worksets.yaml +7 -0
- package/providers/context/actions/build-main-index-catalog-fallback.yaml +7 -0
- package/providers/context/actions/build-main-index-partition-worksets.yaml +7 -0
- package/providers/context/actions/build-material-question-workset.yaml +7 -0
- package/providers/context/actions/build-post-author-composer-worksets.yaml +7 -0
- package/providers/context/actions/build-question-target-inventory.yaml +7 -0
- package/providers/context/actions/build-subject-catalog.yaml +7 -0
- package/providers/context/actions/build-target-resolution-views.yaml +7 -0
- package/providers/context/actions/checkpoint-material-answer-review.yaml +8 -0
- package/providers/context/actions/checkpoint-material-gaps.yaml +8 -0
- package/providers/context/actions/close-indexer-approved-knowledge.yaml +8 -0
- package/providers/context/actions/compile-indexer-candidates.yaml +8 -0
- package/providers/context/actions/compose-indexer-post-author-fragments.yaml +7 -0
- package/providers/context/actions/configure-community-indexer-fallback.yaml +6 -0
- package/providers/context/actions/configure-indexer-providers.yaml +6 -0
- package/providers/context/actions/confirm-index-requirement-workset.yaml +8 -0
- package/providers/context/actions/confirm-subject-reidentification.yaml +8 -0
- package/providers/context/actions/converge-main-index-partition-run.yaml +7 -0
- package/providers/context/actions/discover-markdown-indexer-providers.yaml +6 -0
- package/providers/context/actions/evaluate-material-gaps.yaml +8 -0
- package/providers/context/actions/fail-main-index-run.yaml +7 -0
- package/providers/context/actions/fail-material-answer-run.yaml +7 -0
- package/providers/context/actions/fail-post-author-composer-run.yaml +7 -0
- package/providers/context/actions/inspect-index-candidate-review-readiness.yaml +8 -0
- package/providers/context/actions/inspect-index-profile-failure.yaml +7 -0
- package/providers/context/actions/inspect-indexer-dependencies.yaml +7 -0
- package/providers/context/actions/inspect-indexer-program-execution.yaml +7 -0
- package/providers/context/actions/inspect-indexer-project-proposal.yaml +7 -0
- package/providers/context/actions/inspect-markdown-provider-capture.yaml +7 -0
- package/providers/context/actions/inspect-material-answer-review.yaml +8 -0
- package/providers/context/actions/materialize-indexer-instructions.yaml +7 -0
- package/providers/context/actions/observe-indexer-project.yaml +7 -0
- package/providers/context/actions/observe-main-index-run-ledger.yaml +7 -0
- package/providers/context/actions/observe-material-answer-runs.yaml +7 -0
- package/providers/context/actions/observe-post-author-composer-worksets.yaml +7 -0
- package/providers/context/actions/override-index-profile-audit.yaml +7 -0
- package/providers/context/actions/prepare-indexer-customization-project.yaml +7 -0
- package/providers/context/actions/prepare-main-index-run-ledger.yaml +7 -0
- package/providers/context/actions/prepare-material-answer-runs.yaml +7 -0
- package/providers/context/actions/propose-indexer-customization.yaml +7 -0
- package/providers/context/actions/propose-overlay-question-amendment.yaml +7 -0
- package/providers/context/actions/rebind-indexer-selection-to-requirement.yaml +7 -0
- package/providers/context/actions/reconcile-indexer-results.yaml +7 -0
- package/providers/context/actions/record-index-profile-revision.yaml +7 -0
- package/providers/context/actions/report-index-profile-failure.yaml +7 -0
- package/providers/context/actions/report-indexer-incremental-impact.yaml +8 -0
- package/providers/context/actions/resolve-effective-composers.yaml +7 -0
- package/providers/context/actions/review-material-answer-candidate.yaml +8 -0
- package/providers/context/actions/revise-index-output.yaml +7 -0
- package/providers/context/actions/route-index-requirement-confirmation.yaml +8 -0
- package/providers/context/actions/route-indexer-provider-selection.yaml +7 -0
- package/providers/context/actions/run-indexer-agent-step.yaml +7 -0
- package/providers/context/actions/run-indexer-lifecycle.yaml +7 -0
- package/providers/context/actions/run-indexer-post-author-composer.yaml +7 -0
- package/providers/context/actions/run-material-answer-indexers.yaml +7 -0
- package/providers/context/actions/start-main-index-run.yaml +7 -0
- package/providers/context/actions/start-material-answer-run.yaml +7 -0
- package/providers/context/actions/start-post-author-composer-run.yaml +7 -0
- package/providers/context/actions/validate-indexer-contract-overlays.yaml +7 -0
- package/providers/context/actions/validate-indexer-customization.yaml +7 -0
- package/providers/context/actions/validate-indexer-selection-proposal.yaml +7 -0
- package/providers/context/actions/validate-main-index-run.yaml +7 -0
- package/providers/context/actions/validate-markdown-provider-selection.yaml +7 -0
- package/providers/context/actions/validate-subject-key-schemas.yaml +8 -0
- package/providers/context/codes.yaml +69 -23
- package/providers/context/graphs/indexer.yaml +1042 -0
- package/providers/context/graphs/workspace.yaml +37 -454
- package/providers/context/manifest.json +1245 -433
- package/providers/context/provider.yaml +3 -2
- package/providers/context/resources/diagnostics/projection-stale.md +0 -1
- package/providers/context/resources/manuals/reference/project-api.md +41 -40
- package/providers/context/resources/views/document-optimization-current.yaml +1 -1
- package/providers/context/resources/views/package-current.yaml +1 -1
- package/providers/context/resources/views/resolved-indexer-instructions.yaml +23 -0
- package/providers/context/resources/views/review-current.yaml +1 -1
- package/providers/context/resources/views/source-boundary.yaml +1 -1
- package/providers/context/resources/views/source-current.yaml +1 -1
- package/providers/context/resources/views/verification-current.yaml +1 -1
- package/providers/context/resources/views/workspace-current.yaml +1 -1
- package/providers/context/schemas/indexer-agent-step-input.schema.json +30 -0
- package/providers/context/schemas/indexer-agent-step-result.schema.json +47 -0
- package/providers/context/schemas/indexer-candidate-compile-input.schema.json +57 -0
- package/providers/context/schemas/indexer-candidate-compile-output.schema.json +38 -0
- package/providers/context/schemas/indexer-candidate-review-readiness-input.schema.json +46 -0
- package/providers/context/schemas/indexer-candidate-review-readiness-output.schema.json +104 -0
- package/providers/context/schemas/indexer-contract-overlay-validation-input.schema.json +48 -0
- package/providers/context/schemas/indexer-contract-overlay-validation-result.schema.json +63 -0
- package/providers/context/schemas/indexer-customization-project-preparation-result.schema.json +44 -0
- package/providers/context/schemas/indexer-customization-proposal-draft.schema.json +83 -0
- package/providers/context/schemas/indexer-customization-validation-result.schema.json +36 -0
- package/providers/context/schemas/indexer-dependency-authorization-input.schema.json +71 -0
- package/providers/context/schemas/indexer-dependency-authorization-result.schema.json +138 -0
- package/providers/context/schemas/indexer-incremental-impact-input.schema.json +31 -0
- package/providers/context/schemas/indexer-incremental-impact-output.schema.json +52 -0
- package/providers/context/schemas/indexer-lifecycle-continuation.schema.json +15 -0
- package/providers/context/schemas/indexer-main-lifecycle-input.schema.json +187 -0
- package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +180 -0
- package/providers/context/schemas/indexer-markdown-provider-capture-input.schema.json +17 -0
- package/providers/context/schemas/indexer-markdown-provider-capture-output.schema.json +54 -0
- package/providers/context/schemas/indexer-markdown-provider-validation-input.schema.json +34 -0
- package/providers/context/schemas/indexer-markdown-provider-validation-output.schema.json +75 -0
- package/providers/context/schemas/indexer-material-answer-lifecycle-input.schema.json +90 -0
- package/providers/context/schemas/indexer-material-answer-lifecycle-output.schema.json +80 -0
- package/providers/context/schemas/indexer-material-answer-review-inspection-input.schema.json +32 -0
- package/providers/context/schemas/indexer-material-answer-review-inspection-output.schema.json +32 -0
- package/providers/context/schemas/indexer-material-answer-review-resolution-input.schema.json +19 -0
- package/providers/context/schemas/indexer-material-answer-review-resolution-output.schema.json +87 -0
- package/providers/context/schemas/indexer-material-gap-lifecycle-input.schema.json +86 -0
- package/providers/context/schemas/indexer-material-gap-lifecycle-output.schema.json +19 -0
- package/providers/context/schemas/indexer-materialize-request.schema.json +53 -0
- package/providers/context/schemas/indexer-materialized-resource.schema.json +57 -0
- package/providers/context/schemas/indexer-overlay-question-amendment.schema.json +13 -0
- package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +40 -0
- package/providers/context/schemas/indexer-overlay-question-rebind-input.schema.json +35 -0
- package/providers/context/schemas/indexer-overlay-question-rebind-result.schema.json +25 -0
- package/providers/context/schemas/indexer-post-author-fragment-request.schema.json +26 -0
- package/providers/context/schemas/indexer-post-author-fragment-result.schema.json +18 -0
- package/providers/context/schemas/indexer-post-author-lifecycle-input.schema.json +94 -0
- package/providers/context/schemas/indexer-post-author-lifecycle-output.schema.json +72 -0
- package/providers/context/schemas/indexer-profile-failure-inspection-input.schema.json +13 -0
- package/providers/context/schemas/indexer-profile-failure-inspection-result.schema.json +19 -0
- package/providers/context/schemas/indexer-profile-failure-report-input.schema.json +22 -0
- package/providers/context/schemas/indexer-profile-failure-report-result.schema.json +49 -0
- package/providers/context/schemas/indexer-profile-override-decision.schema.json +20 -0
- package/providers/context/schemas/indexer-profile-override-result.schema.json +49 -0
- package/providers/context/schemas/indexer-profile-revision-agent-input.schema.json +18 -0
- package/providers/context/schemas/indexer-profile-revision-record-input.schema.json +31 -0
- package/providers/context/schemas/indexer-profile-revision-record-result.schema.json +45 -0
- package/providers/context/schemas/indexer-program-execution-authorization-input.schema.json +145 -0
- package/providers/context/schemas/indexer-program-execution-authorization-result.schema.json +60 -0
- package/providers/context/schemas/indexer-project-action-result.schema.json +19 -0
- package/providers/context/schemas/indexer-project-gate-input.schema.json +100 -0
- package/providers/context/schemas/indexer-project-observation-input.schema.json +16 -0
- package/providers/context/schemas/indexer-project-observation-result.schema.json +42 -0
- package/providers/context/schemas/indexer-provider-route-input.schema.json +55 -0
- package/providers/context/schemas/indexer-provider-route-report.schema.json +188 -0
- package/providers/context/schemas/indexer-requirement-confirmation-input.schema.json +27 -0
- package/providers/context/schemas/indexer-requirement-confirmation-output.schema.json +24 -0
- package/providers/context/schemas/indexer-result-reconciliation-input.schema.json +59 -0
- package/providers/context/schemas/indexer-result-reconciliation-output.schema.json +43 -0
- package/providers/context/schemas/indexer-selection-proposal-input.schema.json +12 -0
- package/providers/context/schemas/indexer-selection-proposal-validation.schema.json +23 -0
- package/providers/context/schemas/indexer-subject-reidentification-input.schema.json +37 -0
- package/providers/context/schemas/indexer-subject-reidentification-output.schema.json +31 -0
- package/providers/context/skills/configure-indexer-providers/SKILL.md +58 -0
- package/providers/context/skills/prepare-indexer-customization-project/SKILL.md +31 -0
- package/providers/context/skills/propose-indexer-customization/SKILL.md +40 -0
- package/providers/context/skills/revise-index-output/SKILL.md +12 -0
- package/providers/context/skills/run-indexer-agent-step/SKILL.md +20 -0
- package/providers/context/skills/run-indexer-lifecycle/SKILL.md +36 -0
- package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +21 -0
- package/providers/context/actions/align-next.yaml +0 -6
- package/providers/context/actions/apply-code-index-guidance.yaml +0 -5
- package/providers/context/actions/apply-structure-confirmation.yaml +0 -5
- package/providers/context/actions/compile-next.yaml +0 -5
- package/providers/context/actions/configure-code-extraction.yaml +0 -5
- package/providers/context/actions/configure-prose-lifecycle.yaml +0 -5
- package/providers/context/actions/extract-next.yaml +0 -5
- package/providers/context/actions/inspect-code-extraction.yaml +0 -5
- package/providers/context/actions/inspect-document-classification.yaml +0 -5
- package/providers/context/actions/inspect-structure.yaml +0 -5
- package/providers/context/actions/migrate-codeindex.yaml +0 -5
- package/providers/context/actions/optimize-documents.yaml +0 -6
- package/providers/context/actions/preview-extraction-batch.yaml +0 -5
- package/providers/context/actions/revise-code-index-audit.yaml +0 -5
- package/providers/context/actions/submit-code-index-audit.yaml +0 -6
- package/providers/context/resources/dialogue/code-extraction.md +0 -87
- package/providers/context/resources/dialogue/document-classification.md +0 -33
- package/providers/context/resources/dialogue/structure-confirmation.md +0 -44
- package/providers/context/resources/dialogue/workflow-mode-after-capture.md +0 -25
- package/providers/context/resources/manuals/reference/code-extractors.md +0 -152
- package/providers/context/resources/procedures/code-extraction.md +0 -184
- package/providers/context/resources/procedures/code-index-audit.md +0 -83
- package/providers/context/resources/procedures/document-classification.md +0 -22
- package/providers/context/resources/procedures/document-optimization.md +0 -91
- package/providers/context/resources/procedures/prose-align.md +0 -68
- package/providers/context/resources/procedures/prose-compile.md +0 -23
- package/providers/context/resources/semantic/align/candidate-resolution.md +0 -106
- package/providers/context/resources/semantic/align/density-profile.md +0 -41
- package/providers/context/resources/semantic/align/gates.md +0 -276
- package/providers/context/resources/semantic/align/structure-planning.md +0 -337
- package/providers/context/resources/semantic/code-index/classification.md +0 -270
- package/providers/context/resources/semantic/compile/index.md +0 -31
- package/providers/context/resources/views/code-index-audit.yaml +0 -6
- package/providers/context/resources/views/extraction-preview.yaml +0 -6
- package/providers/context/resources/views/structure-current.yaml +0 -6
- package/providers/context/schemas/code-index-audit-decision.schema.json +0 -94
- package/providers/context/schemas/document-optimization-decisions.schema.json +0 -57
- package/providers/context/schemas/prose-structure-batch.schema.json +0 -35
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# Profile metric revision guide
|
|
2
|
+
|
|
3
|
+
Use the current CLI audit as the sole source of actual, recommended, and hard values. This guide explains how to revise a Result; it does not define thresholds or authorize changing a denominator.
|
|
4
|
+
|
|
5
|
+
## inventory-disposition-coverage
|
|
6
|
+
|
|
7
|
+
### Meaning
|
|
8
|
+
|
|
9
|
+
Every identity in the CLI inventory needs an owned, excluded, or unsupported disposition.
|
|
10
|
+
|
|
11
|
+
### Revise
|
|
12
|
+
|
|
13
|
+
Return decisions for the reported missing identities, preserving the complete inventory denominator and citing the evidence behind exclusions or unsupported cases.
|
|
14
|
+
|
|
15
|
+
### Positive example
|
|
16
|
+
|
|
17
|
+
An internal generated file is retained in the inventory and marked excluded with its generated-source evidence.
|
|
18
|
+
|
|
19
|
+
### Anti-example
|
|
20
|
+
|
|
21
|
+
The Result omits files that did not fit the selected template.
|
|
22
|
+
|
|
23
|
+
## duplicated-fact-target-ratio
|
|
24
|
+
|
|
25
|
+
### Meaning
|
|
26
|
+
|
|
27
|
+
The same reader fact should have one canonical target rather than competing copies across Artifacts.
|
|
28
|
+
|
|
29
|
+
### Revise
|
|
30
|
+
|
|
31
|
+
Choose the canonical owner, replace other copies with explicit relationships, and keep evidence on the owning fact.
|
|
32
|
+
|
|
33
|
+
### Positive example
|
|
34
|
+
|
|
35
|
+
One contract Artifact owns the request semantics while the overview links to it.
|
|
36
|
+
|
|
37
|
+
### Anti-example
|
|
38
|
+
|
|
39
|
+
Several pages repeat the same behavior paragraph with different headings.
|
|
40
|
+
|
|
41
|
+
## narrative-enumeration-ratio
|
|
42
|
+
|
|
43
|
+
### Meaning
|
|
44
|
+
|
|
45
|
+
Reader prose should explain capabilities and boundaries instead of restating a deterministic inventory as sentences.
|
|
46
|
+
|
|
47
|
+
### Revise
|
|
48
|
+
|
|
49
|
+
Move exhaustive identities into the deterministic catalog, group related items by a reader question, and explain responsibility, differences, and handoffs.
|
|
50
|
+
|
|
51
|
+
### Positive example
|
|
52
|
+
|
|
53
|
+
A capability section explains dispatch choices and links to a complete generated route catalog.
|
|
54
|
+
|
|
55
|
+
### Anti-example
|
|
56
|
+
|
|
57
|
+
The page turns every discovered symbol into an “observed” bullet.
|
|
58
|
+
|
|
59
|
+
## normalized-template-repetition-ratio
|
|
60
|
+
|
|
61
|
+
### Meaning
|
|
62
|
+
|
|
63
|
+
Repeated sentence frames with only identity substitutions indicate template residue rather than evidence-specific explanation.
|
|
64
|
+
|
|
65
|
+
### Revise
|
|
66
|
+
|
|
67
|
+
Merge repeated observations, describe the shared rule once, and record meaningful exceptions with their own evidence.
|
|
68
|
+
|
|
69
|
+
### Positive example
|
|
70
|
+
|
|
71
|
+
A family section states the common lifecycle and separately explains the exceptional member.
|
|
72
|
+
|
|
73
|
+
### Anti-example
|
|
74
|
+
|
|
75
|
+
Every member receives the same sentence with only its name changed.
|
|
76
|
+
|
|
77
|
+
## implementation-body-ratio
|
|
78
|
+
|
|
79
|
+
### Meaning
|
|
80
|
+
|
|
81
|
+
Reader knowledge should describe stable behavior without copying implementation bodies, generated payloads, or declaration dumps.
|
|
82
|
+
|
|
83
|
+
### Revise
|
|
84
|
+
|
|
85
|
+
Replace copied code with an evidence-bound behavioral statement and retain only a small excerpt when it is necessary to explain a contract or failure boundary.
|
|
86
|
+
|
|
87
|
+
### Positive example
|
|
88
|
+
|
|
89
|
+
The page explains the validation and rollback sequence and links to the exact implementation locator.
|
|
90
|
+
|
|
91
|
+
### Anti-example
|
|
92
|
+
|
|
93
|
+
The page embeds the complete function or generated type file as its main content.
|
|
94
|
+
|
|
95
|
+
## reference-only-reader-targets
|
|
96
|
+
|
|
97
|
+
### Meaning
|
|
98
|
+
|
|
99
|
+
A reader target requires a CLI-authorized declaration, registration, public contract, approved Subject, or Partition Subject identity.
|
|
100
|
+
|
|
101
|
+
### Revise
|
|
102
|
+
|
|
103
|
+
Merge aliases and ordinary references into their canonical owner, or remove the target when no authorized identity observation exists.
|
|
104
|
+
|
|
105
|
+
### Positive example
|
|
106
|
+
|
|
107
|
+
A re-export alias points to the canonical public target instead of creating another page.
|
|
108
|
+
|
|
109
|
+
### Anti-example
|
|
110
|
+
|
|
111
|
+
A frequently imported helper becomes a target solely because it has many references.
|
|
112
|
+
|
|
113
|
+
## unresolved-ordinal-partitions
|
|
114
|
+
|
|
115
|
+
### Meaning
|
|
116
|
+
|
|
117
|
+
Partition identity must come from a stable semantic boundary, not traversal order or a fixed batch label.
|
|
118
|
+
|
|
119
|
+
### Revise
|
|
120
|
+
|
|
121
|
+
Regroup members by capability, entrypoint, lifecycle stage, state owner, protocol boundary, or handoff; if none applies, return the protocol outcome for CLI-owned catalog fallback.
|
|
122
|
+
|
|
123
|
+
### Positive example
|
|
124
|
+
|
|
125
|
+
Handlers are grouped by the reader-visible protocol capability they implement.
|
|
126
|
+
|
|
127
|
+
### Anti-example
|
|
128
|
+
|
|
129
|
+
Files are divided into successive numbered batches to reduce page size.
|
|
130
|
+
|
|
131
|
+
## discretionary-artifacts-per-logical-unit
|
|
132
|
+
|
|
133
|
+
### Meaning
|
|
134
|
+
|
|
135
|
+
Optional Artifacts must answer distinct reader questions allowed by the selected Bundle variant.
|
|
136
|
+
|
|
137
|
+
### Revise
|
|
138
|
+
|
|
139
|
+
Remove unsupported optional Artifacts, merge overlapping ones, or select another CLI-eligible variant when canonical facts justify it.
|
|
140
|
+
|
|
141
|
+
### Positive example
|
|
142
|
+
|
|
143
|
+
An examples Artifact is retained because it explains a distinct usage scenario with independent evidence.
|
|
144
|
+
|
|
145
|
+
### Anti-example
|
|
146
|
+
|
|
147
|
+
The Result creates extra pages to spread the same prose across a larger Bundle.
|
|
148
|
+
|
|
149
|
+
## example-candidate-decision-coverage
|
|
150
|
+
|
|
151
|
+
### Meaning
|
|
152
|
+
|
|
153
|
+
Every CLI-discovered example candidate needs one explicit terminal or merge decision.
|
|
154
|
+
|
|
155
|
+
### Revise
|
|
156
|
+
|
|
157
|
+
Decide each reported candidate as linked, merged, documentation-only, excluded with reason, or blocked by a material request.
|
|
158
|
+
|
|
159
|
+
### Positive example
|
|
160
|
+
|
|
161
|
+
A duplicate scenario is merged into a canonical example through its full example identity.
|
|
162
|
+
|
|
163
|
+
### Anti-example
|
|
164
|
+
|
|
165
|
+
Unclear examples disappear from the Result without a disposition.
|
|
166
|
+
|
|
167
|
+
## example-representative-coverage
|
|
168
|
+
|
|
169
|
+
### Meaning
|
|
170
|
+
|
|
171
|
+
Eligible scenarios need retained representatives that explain setup, key calls, parameters, and expected behavior.
|
|
172
|
+
|
|
173
|
+
### Revise
|
|
174
|
+
|
|
175
|
+
Promote or merge evidence-backed examples for the reported uncovered scenarios and close each required facet explicitly.
|
|
176
|
+
|
|
177
|
+
### Positive example
|
|
178
|
+
|
|
179
|
+
A canonical example covers the scenario and records evidence-backed not-applicable facets.
|
|
180
|
+
|
|
181
|
+
### Anti-example
|
|
182
|
+
|
|
183
|
+
A path is listed as an example without explaining how or why it is used.
|
|
184
|
+
|
|
185
|
+
## example-public-target-linkage
|
|
186
|
+
|
|
187
|
+
### Meaning
|
|
188
|
+
|
|
189
|
+
Eligible examples should resolve to the exact public target they demonstrate whenever that target exists.
|
|
190
|
+
|
|
191
|
+
### Revise
|
|
192
|
+
|
|
193
|
+
Resolve aliases, repair the terminal decision chain, and bind the representative to the CLI-supplied public target identity.
|
|
194
|
+
|
|
195
|
+
### Positive example
|
|
196
|
+
|
|
197
|
+
A scenario variant merges into a representative whose terminal decision links the canonical public target.
|
|
198
|
+
|
|
199
|
+
### Anti-example
|
|
200
|
+
|
|
201
|
+
An example is linked to a similarly named internal helper or only to a directory.
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: context.code-indexer.template.adapter-integration
|
|
3
3
|
kind: procedure
|
|
4
4
|
media-type: text/markdown
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Adapter, bridge, and integration template
|
|
8
8
|
|
|
9
|
-
Use for `adapter`: BFFs, protocol bridges, host integrations, plugin adapters,
|
|
9
|
+
Use for `adapter-integration`: BFFs, protocol bridges, host integrations, plugin adapters,
|
|
10
10
|
compatibility layers, gateways, and translators whose stable responsibility is
|
|
11
11
|
to connect two boundaries. An ordinary internal helper that converts one object
|
|
12
12
|
is not automatically an adapter module.
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
Use the exact profile and Artifact policy variant supplied by the workset. For
|
|
15
|
+
an inbound operation surface, combine this template with the selected gateway
|
|
16
|
+
or protocol evidence without creating a second operation registry.
|
|
16
17
|
|
|
17
18
|
## Evidence pass
|
|
18
19
|
|
|
@@ -89,16 +90,25 @@ helper separately.
|
|
|
89
90
|
Add structured edges only for concrete registration and call paths. Keep a
|
|
90
91
|
narrative locator when dynamic dispatch prevents an unambiguous edge.
|
|
91
92
|
|
|
93
|
+
Return `identityGroups` when several target identities share one explained
|
|
94
|
+
adapter responsibility. Return every source-backed adjacency in
|
|
95
|
+
`chainCandidates`, then provide one `chainCandidateDecisions` record for each
|
|
96
|
+
candidate. A documented decision names the reader-facing view and emits its
|
|
97
|
+
structured edge; an equivalent candidate merges into that canonical candidate;
|
|
98
|
+
false positives and missing external material use `exclude` or `request-input`
|
|
99
|
+
with a concrete reason. Read `contracts-and-chains.md` for the complete generic
|
|
100
|
+
contract.
|
|
101
|
+
|
|
92
102
|
## Template composition examples
|
|
93
103
|
|
|
94
|
-
- An HTTP endpoint backed by an RPC client is `api-service` + `adapter`; combine
|
|
104
|
+
- An HTTP endpoint backed by an RPC client is `api-service` + `adapter-integration`; combine
|
|
95
105
|
one operation registry with one mapping contract rather than duplicating the
|
|
96
106
|
route facts.
|
|
97
107
|
- A host plugin bridge reads `plugin-extension.md` and may also be `sdk-library`
|
|
98
108
|
when consumers import
|
|
99
109
|
a supported extension API.
|
|
100
110
|
- A compatibility wrapper over generated clients also reads
|
|
101
|
-
`derived-source.md` and identifies the authoritative schemas.
|
|
111
|
+
`derived-generated-source.md` and identifies the authoritative schemas.
|
|
102
112
|
|
|
103
113
|
## Revise or stop when
|
|
104
114
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: context.code-indexer.template.api-service
|
|
3
3
|
kind: procedure
|
|
4
4
|
media-type: text/markdown
|
|
5
5
|
---
|
|
@@ -9,11 +9,12 @@ media-type: text/markdown
|
|
|
9
9
|
Use after classifying an inbound HTTP, RPC, GraphQL, message-request, or similar
|
|
10
10
|
surface as `api-service`. A module that only calls a remote API is a protocol
|
|
11
11
|
consumer, not automatically an API service. Gateways that translate to another
|
|
12
|
-
protocol normally also
|
|
12
|
+
protocol normally also selects `adapter-integration`.
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
the transformation between inbound and outbound
|
|
16
|
-
|
|
14
|
+
Use the exact profile and Artifact policy variant supplied by the workset. If
|
|
15
|
+
the reader goal is primarily the transformation between inbound and outbound
|
|
16
|
+
boundaries, use the selected adapter-integration profile and retain one
|
|
17
|
+
canonical operation registry.
|
|
17
18
|
|
|
18
19
|
## Evidence pass
|
|
19
20
|
|
|
@@ -98,7 +99,7 @@ types can locate fields but do not prove runtime behavior.
|
|
|
98
99
|
|
|
99
100
|
## Template composition examples
|
|
100
101
|
|
|
101
|
-
- A gateway that receives HTTP and calls RPC reads `adapter.md` and
|
|
102
|
+
- A gateway that receives HTTP and calls RPC reads `adapter-integration.md` and
|
|
102
103
|
`protocol-boundary.md` in addition to this template.
|
|
103
104
|
- An RPC service containing stable domain orchestration also reads
|
|
104
105
|
`domain-service.md`.
|
|
@@ -113,4 +114,5 @@ types can locate fields but do not prove runtime behavior.
|
|
|
113
114
|
- security or error behavior would be guessed from names;
|
|
114
115
|
- scan mode would expand models and helpers into hundreds of pages.
|
|
115
116
|
|
|
116
|
-
|
|
117
|
+
Return a `request-material` disposition tied to a blocking material-question
|
|
118
|
+
proposal when required protocol semantics remain unavailable before preview.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: context.code-indexer.template.background-runtime
|
|
3
3
|
kind: procedure
|
|
4
4
|
media-type: text/markdown
|
|
5
5
|
---
|
|
@@ -10,7 +10,7 @@ Use for `background-runtime`: queue or stream consumers, scheduled jobs,
|
|
|
10
10
|
pipelines, functions, controllers, watchers, and long-running agents activated
|
|
11
11
|
by a trigger instead of an interactive request.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Use the exact profile and Artifact policy variant supplied by the workset.
|
|
14
14
|
|
|
15
15
|
## Evidence pass
|
|
16
16
|
|
|
@@ -95,7 +95,7 @@ identity. A shared type name or import is insufficient.
|
|
|
95
95
|
## Template composition examples
|
|
96
96
|
|
|
97
97
|
- A consumer that invokes a domain boundary reads `domain-service.md`.
|
|
98
|
-
- A scheduler that calls external APIs selects `
|
|
98
|
+
- A scheduler that calls external APIs selects `adapter-integration` and reads
|
|
99
99
|
`protocol-boundary.md`.
|
|
100
100
|
- A controller exposing administrative commands may combine this template with
|
|
101
101
|
`cli-tool.md` or `api-service.md`, but should still produce one runtime map.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: context.code-indexer.template.cli-tool
|
|
3
3
|
kind: procedure
|
|
4
4
|
media-type: text/markdown
|
|
5
5
|
---
|
|
@@ -11,7 +11,7 @@ executables, generators, and command-driven plugin hosts. A build script used
|
|
|
11
11
|
only internally does not need a CLI knowledge unit unless it is a supported
|
|
12
12
|
operator or contributor surface.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Use the exact profile and Artifact policy variant supplied by the workset.
|
|
15
15
|
|
|
16
16
|
## Evidence pass
|
|
17
17
|
|
|
@@ -112,13 +112,13 @@ platform operations only when source registrations or call sites prove them.
|
|
|
112
112
|
|
|
113
113
|
## Template composition examples
|
|
114
114
|
|
|
115
|
-
- A CLI with installable providers also reads `adapter.md` and
|
|
115
|
+
- A CLI with installable providers also reads `adapter-integration.md` and
|
|
116
116
|
`plugin-extension.md`.
|
|
117
|
-
- A CLI that primarily wraps a remote protocol selects `
|
|
117
|
+
- A CLI that primarily wraps a remote protocol selects `adapter-integration` and
|
|
118
118
|
reads `protocol-boundary.md`.
|
|
119
119
|
- A monorepo release tool may combine this template with
|
|
120
|
-
`monorepo-container.md` and `
|
|
121
|
-
registry.
|
|
120
|
+
`monorepo-container.md` and the `development-and-delivery.md` composer
|
|
121
|
+
contract without duplicating its command registry.
|
|
122
122
|
|
|
123
123
|
## Revise or stop when
|
|
124
124
|
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: context.code-indexer.template.component-library
|
|
3
|
+
kind: procedure
|
|
4
|
+
media-type: text/markdown
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Component library template
|
|
8
|
+
|
|
9
|
+
Use for `component-library`: a supported collection of UI components, tokens,
|
|
10
|
+
hooks, primitives, or design-system packages consumed through documented
|
|
11
|
+
imports and component contracts. A web application that happens to contain
|
|
12
|
+
shared components remains a `web-application` unless the component surface is
|
|
13
|
+
published as an independent consumer boundary.
|
|
14
|
+
|
|
15
|
+
Use the exact profile and Artifact policy variant supplied by the workset.
|
|
16
|
+
|
|
17
|
+
## Evidence pass
|
|
18
|
+
|
|
19
|
+
Locate:
|
|
20
|
+
|
|
21
|
+
- public package exports, component registries, barrels, or documented imports;
|
|
22
|
+
- component props, slots, events, variants, composition, and lifecycle rules;
|
|
23
|
+
- theme, token, styling, accessibility, locale, and provider requirements;
|
|
24
|
+
- maintained examples, stories, visual tests, and consumer integration tests;
|
|
25
|
+
- compatibility, peer dependency, platform, and release constraints;
|
|
26
|
+
- generated declarations, documentation sites, demos, and internal primitives
|
|
27
|
+
that must not become independent reader pages without a public contract.
|
|
28
|
+
|
|
29
|
+
Treat stories and examples as usage evidence, not as authority for unsupported
|
|
30
|
+
props or behavior. When generated declarations disagree with source, identify
|
|
31
|
+
the authoritative source and record the gap.
|
|
32
|
+
|
|
33
|
+
## Questions the knowledge must answer
|
|
34
|
+
|
|
35
|
+
1. Which component families are public, and how are they imported?
|
|
36
|
+
2. What props, events, variants, slots, and composition rules are supported?
|
|
37
|
+
3. Which providers, themes, tokens, runtimes, or peer packages are required?
|
|
38
|
+
4. What accessibility, state, lifecycle, and failure constraints apply?
|
|
39
|
+
5. Which examples demonstrate supported use and important combinations?
|
|
40
|
+
6. Which implementation primitives or demo-only components are excluded?
|
|
41
|
+
|
|
42
|
+
## Suggested knowledge units
|
|
43
|
+
|
|
44
|
+
- **Library map**: purpose, supported entrypoints, providers, component
|
|
45
|
+
families, compatibility, and navigation.
|
|
46
|
+
- **Component-family guide**: shared concepts, composition, variants,
|
|
47
|
+
accessibility, and representative source-backed examples.
|
|
48
|
+
- **Granular component reference**: only when consumers search for the exact
|
|
49
|
+
public component and its contract contains meaningful behavior.
|
|
50
|
+
- **Tokens and theming**: only the stable consumer contract, including scope,
|
|
51
|
+
defaults, override order, and compatibility.
|
|
52
|
+
- **Migration or compatibility guide**: only when maintained sources describe
|
|
53
|
+
version transitions or supported platform constraints.
|
|
54
|
+
|
|
55
|
+
## Chapter blueprints
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
# <Component library> map
|
|
59
|
+
## Purpose and intended consumers
|
|
60
|
+
## Supported imports and providers
|
|
61
|
+
## Component and token families
|
|
62
|
+
## Composition and state model
|
|
63
|
+
## Accessibility and localization
|
|
64
|
+
## Theming and customization
|
|
65
|
+
## Compatibility and release constraints
|
|
66
|
+
## Examples, evidence, and exclusions
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
For a component family:
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
# <Component family>
|
|
73
|
+
## When to use it
|
|
74
|
+
## Supported components and imports
|
|
75
|
+
## Props, events, slots, and variants
|
|
76
|
+
## Composition and state
|
|
77
|
+
## Accessibility and interaction
|
|
78
|
+
## Source-backed examples
|
|
79
|
+
## Related families and evidence
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Granularity and relationships
|
|
83
|
+
|
|
84
|
+
Prefer component families over one page per export. Use a granular page only
|
|
85
|
+
when the exact public identity has a stable consumer contract beyond a type
|
|
86
|
+
signature. Relate components to providers, tokens, accessibility behavior,
|
|
87
|
+
examples, and compatible peers only when source evidence supports the link.
|
|
88
|
+
|
|
89
|
+
Do not copy implementation bodies, generated declarations, every story, or
|
|
90
|
+
every styling variant into reader-facing content. Do not use ordinal batches
|
|
91
|
+
to disguise an enumeration-heavy index.
|
|
92
|
+
|
|
93
|
+
## Revise or stop when
|
|
94
|
+
|
|
95
|
+
- public components cannot be distinguished from internal or demo-only code;
|
|
96
|
+
- component behavior is inferred only from screenshots or names;
|
|
97
|
+
- examples invent combinations that maintained usage does not support;
|
|
98
|
+
- accessibility or provider requirements are asserted without evidence;
|
|
99
|
+
- one-page-per-component expansion has no consumer-navigation justification.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: context.code-indexer.template.contract-source
|
|
3
3
|
kind: procedure
|
|
4
4
|
media-type: text/markdown
|
|
5
5
|
---
|
|
@@ -11,9 +11,9 @@ IDL, OpenAPI document, schema registry, message contract, or equivalent
|
|
|
11
11
|
machine-readable interface definition. It defines contracts consumed by other
|
|
12
12
|
modules but does not need to execute or dispatch them itself.
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
Use the exact profile and Artifact policy variant supplied by the workset.
|
|
15
|
+
Generated projections must point back to this authority and remain supporting
|
|
16
|
+
evidence rather than a second contract authority.
|
|
17
17
|
|
|
18
18
|
## Evidence pass
|
|
19
19
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: context.code-indexer.template.data-sync-reconciliation
|
|
3
3
|
kind: procedure
|
|
4
4
|
media-type: text/markdown
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# Data synchronization and reconciliation template
|
|
8
8
|
|
|
9
|
-
Use for `
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
non-duplicated map.
|
|
9
|
+
Use for `data-sync-reconciliation` when a stable reader question crosses source,
|
|
10
|
+
transformation, persistence, delivery, or reconciliation boundaries. The flow
|
|
11
|
+
is an independently owned logical unit; each participating module keeps its own
|
|
12
|
+
non-duplicated responsibility map.
|
|
13
13
|
|
|
14
14
|
## Evidence pass
|
|
15
15
|
|
|
@@ -52,13 +52,12 @@ Examples include application-to-client-to-endpoint, endpoint-to-service-to-
|
|
|
52
52
|
repository, producer-to-event-to-consumer, command-to-remote-operation, and
|
|
53
53
|
plugin-host-to-provider.
|
|
54
54
|
|
|
55
|
-
##
|
|
55
|
+
## Partition and ownership rule
|
|
56
56
|
|
|
57
|
-
A
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
the same phase.
|
|
57
|
+
A flow normally cites sources already owned by module units. Give the flow one
|
|
58
|
+
stable SubjectKey and keep module inventory ownership unchanged; its author
|
|
59
|
+
workset may reference the exact cross-source evidence views but must not claim
|
|
60
|
+
the same inventory members as a second primary owner.
|
|
62
61
|
|
|
63
62
|
The aggregate candidate may cite evidence from every participating source. It
|
|
64
63
|
must cover all Route-reported structural probes selected by the flow profile;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: context.code-indexer.template.derived-generated-source
|
|
3
3
|
kind: procedure
|
|
4
4
|
media-type: text/markdown
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Generated, mirrored, vendored, and legacy source template
|
|
8
8
|
|
|
9
|
-
Use for `derived-source` and
|
|
9
|
+
Use for `derived-generated-source` and source states `generated`, `mirrored`,
|
|
10
10
|
`vendored`, or `legacy`. Its main purpose is to prevent derived artifacts from
|
|
11
11
|
being mistaken for independent knowledge authority while preserving useful
|
|
12
12
|
consumer and provenance information.
|
|
@@ -49,10 +49,11 @@ markers, build steps, headers, manifests, or source mapping.
|
|
|
49
49
|
- **Update/recovery procedure**: only maintained generation or synchronization
|
|
50
50
|
commands, verification, and overwrite boundaries.
|
|
51
51
|
|
|
52
|
-
Default
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
Default to a narrow provenance Artifact unless the workset also selects a
|
|
53
|
+
supported consumer surface. A consumer-facing derived unit must bind its
|
|
54
|
+
authority evidence to the confirmed source locator; a missing authority remains
|
|
55
|
+
a material gap rather than a reason to invent semantics or hide the supported
|
|
56
|
+
consumer surface.
|
|
56
57
|
|
|
57
58
|
## Chapter blueprints
|
|
58
59
|
|
|
@@ -94,17 +95,17 @@ not a naming guess.
|
|
|
94
95
|
If the authority cannot be located, a narrow provenance unit may still record
|
|
95
96
|
confirmed lifecycle markers, generator clues, output boundaries, and active
|
|
96
97
|
consumers. Keep any separate unit that promises field semantics, compatibility,
|
|
97
|
-
or upstream meaning
|
|
98
|
-
provided.
|
|
98
|
+
or upstream meaning in a `request-material` disposition tied to a blocking
|
|
99
|
+
material-question proposal until the missing authority is provided.
|
|
99
100
|
|
|
100
101
|
## Template composition examples
|
|
101
102
|
|
|
102
|
-
- A generated API client is `sdk-library` + `derived-source` and reads
|
|
103
|
+
- A generated API client is `sdk-library` + `derived-generated-source` and reads
|
|
103
104
|
`protocol-boundary.md` for protocol authority.
|
|
104
105
|
- A vendored library with no project-owned surface remains one provenance page,
|
|
105
106
|
not a copied API reference.
|
|
106
107
|
- A legacy adapter still serving callers combines this template with
|
|
107
|
-
`adapter.md`; document only proven compatibility and migration behavior.
|
|
108
|
+
`adapter-integration.md`; document only proven compatibility and migration behavior.
|
|
108
109
|
|
|
109
110
|
## Revise or stop when
|
|
110
111
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: context.code-indexer.template.domain-service
|
|
3
3
|
kind: procedure
|
|
4
4
|
media-type: text/markdown
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Domain service template
|
|
8
8
|
|
|
9
|
-
Use for `service` modules whose stable value is a domain/use-case boundary or a
|
|
9
|
+
Use for `domain-service` modules whose stable value is a domain/use-case boundary or a
|
|
10
10
|
reusable service contract and its first-level orchestration. Do not classify a
|
|
11
11
|
directory as a service merely because it contains classes or functions named
|
|
12
12
|
`Service`.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Use the exact profile and Artifact policy variant supplied by the workset.
|
|
15
15
|
|
|
16
16
|
## Evidence pass
|
|
17
17
|
|
|
@@ -95,7 +95,7 @@ similar names or shared models.
|
|
|
95
95
|
|
|
96
96
|
- An RPC implementation reads `api-service.md` for its inbound registration and
|
|
97
97
|
this template for domain orchestration.
|
|
98
|
-
- A service backed by durable storage selects
|
|
98
|
+
- A service backed by durable storage also selects `storage-repository` and reads
|
|
99
99
|
`persistence-boundary.md`.
|
|
100
100
|
- A service activated only by events also reads `background-runtime.md` and the
|
|
101
101
|
`event-flow.md` template.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: context.code-indexer.template.event-consumer
|
|
3
3
|
kind: procedure
|
|
4
4
|
media-type: text/markdown
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Event
|
|
7
|
+
# Event consumer template
|
|
8
8
|
|
|
9
|
-
Use for `event-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Use for `event-consumer`. This template supplements the owning runtime, service,
|
|
10
|
+
application, or adapter Artifact; an event signal does not by itself justify a
|
|
11
|
+
separate end-to-end Artifact.
|
|
12
12
|
|
|
13
13
|
## Evidence pass
|
|
14
14
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
2
|
+
id: context.code-indexer.template.gateway-facade
|
|
3
3
|
kind: procedure
|
|
4
4
|
media-type: text/markdown
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# Gateway and protocol facade template
|
|
8
8
|
|
|
9
|
-
Use for `
|
|
10
|
-
template owns the canonical operation
|
|
11
|
-
|
|
12
|
-
registry for the same operations.
|
|
9
|
+
Use for `gateway-facade` when the selected reader goal is the boundary exposed
|
|
10
|
+
or translated by one gateway. This template owns the canonical operation
|
|
11
|
+
record. Application, API, service, SDK, contract-source, and adapter templates
|
|
12
|
+
provide context but must not create a second registry for the same operations.
|
|
13
13
|
|
|
14
14
|
## Evidence pass
|
|
15
15
|
|
|
@@ -60,15 +60,16 @@ separate reader goal.
|
|
|
60
60
|
|
|
61
61
|
## Generated and authoritative contracts
|
|
62
62
|
|
|
63
|
-
For
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
For generated contract material, also select `derived-generated-source` and
|
|
64
|
+
record the upstream schema, generator, version/pin, generated output boundary,
|
|
65
|
+
and runtime consumer. Generated code may locate operations and fields but does
|
|
66
|
+
not become semantic authority by itself.
|
|
66
67
|
|
|
67
|
-
When the upstream authority is unavailable, a separate provenance
|
|
68
|
+
When the upstream authority is unavailable, a separate provenance Artifact may
|
|
68
69
|
still record the generated boundary, generator markers, current consumers, and
|
|
69
|
-
known authority gap
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
known authority gap. Keep the question that would explain field semantics or
|
|
71
|
+
compatibility unresolved as a material gap; do not block an independently
|
|
72
|
+
supported provenance record.
|
|
72
73
|
|
|
73
74
|
For a `contract-source` module, preserve exact operation identities, namespaces,
|
|
74
75
|
versions, compatibility declarations, imports, and generator targets. Do not
|