@c4a/context-cli 0.6.18 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -8
- package/README.zh-CN.md +47 -7
- package/cli.js +89881 -53821
- package/docs/document-optimization.md +35 -11
- package/docs/document-optimization.zh-CN.md +29 -9
- 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/indexers/bundles/context-code-indexer/templates/adapter-integration.md +119 -0
- package/indexers/bundles/context-code-indexer/templates/api-service.md +118 -0
- package/indexers/bundles/context-code-indexer/templates/background-runtime.md +109 -0
- package/indexers/bundles/context-code-indexer/templates/cli-tool.md +129 -0
- package/indexers/bundles/context-code-indexer/templates/component-library.md +99 -0
- package/indexers/bundles/context-code-indexer/templates/contract-source.md +73 -0
- package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation.md +77 -0
- package/indexers/bundles/context-code-indexer/templates/derived-generated-source.md +117 -0
- package/indexers/bundles/context-code-indexer/templates/domain-service.md +109 -0
- package/indexers/bundles/context-code-indexer/templates/event-consumer.md +62 -0
- package/indexers/bundles/context-code-indexer/templates/gateway-facade.md +89 -0
- package/indexers/bundles/context-code-indexer/templates/monorepo-container.md +124 -0
- package/indexers/bundles/context-code-indexer/templates/plugin-extension.md +52 -0
- package/indexers/bundles/context-code-indexer/templates/sdk-library.md +132 -0
- package/indexers/bundles/context-code-indexer/templates/storage-repository.md +56 -0
- package/indexers/bundles/context-code-indexer/templates/web-application.md +146 -0
- 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 +40 -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 +112 -7
- 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 +113 -19
- 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 +112 -9
- package/plugins/skills/{c4a-context → context}/SKILL.md +114 -20
- 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-code-index-guidance.yaml +5 -0
- package/providers/context/actions/apply-document-optimization-guidance.yaml +5 -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-contract-overlay.yaml +7 -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/maintain-evidence.yaml +1 -1
- package/providers/context/actions/materialize-indexer-instructions.yaml +7 -0
- package/providers/context/actions/migrate-codeindex.yaml +5 -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/register-source-batch.yaml +1 -1
- 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/restore-repository-sources.yaml +1 -1
- 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-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 +72 -0
- package/providers/context/graphs/indexer.yaml +1068 -0
- package/providers/context/graphs/workspace.yaml +52 -3
- package/providers/context/manifest.json +1487 -157
- package/providers/context/provider.yaml +3 -2
- package/providers/context/resources/dialogue/code-extraction.md +12 -0
- package/providers/context/resources/dialogue/document-classification.md +1 -1
- package/providers/context/resources/dialogue/knowledge-review.md +7 -1
- package/providers/context/resources/dialogue/source-boundary.md +9 -1
- package/providers/context/resources/dialogue/workflow-mode-after-capture.md +11 -8
- package/providers/context/resources/dialogue/workflow-mode-after-creation.md +6 -4
- package/providers/context/resources/manuals/guides/lark-resources.md +7 -0
- package/providers/context/resources/manuals/guides/package-outputs.md +3 -3
- package/providers/context/resources/manuals/reference/code-extractors.md +7 -6
- package/providers/context/resources/manuals/reference/package-templates.md +18 -10
- package/providers/context/resources/manuals/reference/project-api.md +49 -24
- package/providers/context/resources/procedures/close-and-build.md +24 -9
- package/providers/context/resources/procedures/code-extraction.md +41 -13
- package/providers/context/resources/procedures/code-index-audit.md +83 -13
- package/providers/context/resources/procedures/document-capture.md +9 -0
- package/providers/context/resources/procedures/document-optimization.md +88 -21
- package/providers/context/resources/procedures/document-revision.md +11 -6
- package/providers/context/resources/procedures/knowledge-review.md +4 -1
- package/providers/context/resources/procedures/source-boundary.md +20 -8
- package/providers/context/resources/semantic/align/structure-planning.md +4 -4
- package/providers/context/resources/semantic/code-index/classification.md +8 -5
- package/providers/context/resources/semantic/code-index/templates/adapter.md +9 -0
- package/providers/context/resources/semantic/code-index/templates/contracts-and-chains.md +81 -0
- package/providers/context/resources/views/resolved-indexer-instructions.yaml +23 -0
- package/providers/context/schemas/document-optimization-decisions.schema.json +29 -6
- 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-authorization-input.schema.json +32 -0
- package/providers/context/schemas/indexer-contract-overlay-authorization-result.schema.json +121 -0
- package/providers/context/schemas/indexer-contract-overlay-validation-input.schema.json +90 -0
- package/providers/context/schemas/indexer-contract-overlay-validation-result.schema.json +158 -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-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/schemas/source-batch-input.schema.json +18 -3
- 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-post-author-composer/SKILL.md +21 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.selection-proposal-validation/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"protocol",
|
|
7
|
+
"proposal",
|
|
8
|
+
"static_report",
|
|
9
|
+
"outcome",
|
|
10
|
+
"next_provider_requests",
|
|
11
|
+
"resolution_requests",
|
|
12
|
+
"validation_digest"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"protocol": { "const": "context.indexer.selection-proposal-validation/v1" },
|
|
16
|
+
"proposal": { "type": "object" },
|
|
17
|
+
"static_report": { "type": "object" },
|
|
18
|
+
"outcome": { "const": "provider-resolution-required" },
|
|
19
|
+
"next_provider_requests": { "type": "array", "items": { "type": "object" } },
|
|
20
|
+
"resolution_requests": { "type": "array", "items": { "type": "object" } },
|
|
21
|
+
"validation_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.subject-reidentification-input/v1",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["protocol", "project_ref", "old_schema", "new_schema", "approved_subjects", "proposed_mappings"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"protocol": { "const": "context.indexer.subject-key-validation-input/v1" },
|
|
10
|
+
"project_ref": { "type": "string", "minLength": 1 },
|
|
11
|
+
"old_schema": { "type": "object" },
|
|
12
|
+
"new_schema": { "type": "object" },
|
|
13
|
+
"approved_subjects": { "type": "array", "items": { "type": "object" } },
|
|
14
|
+
"proposed_mappings": { "type": "array", "items": { "type": "object" } },
|
|
15
|
+
"report": { "type": "object" },
|
|
16
|
+
"authorization": { "type": "object" }
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "object",
|
|
22
|
+
"required": ["protocol", "project_ref", "old_schema", "new_schema", "approved_subjects", "proposed_mappings", "report", "authorized_by", "authorized_at"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"protocol": { "const": "context.indexer.subject-reidentification-confirmation-input/v1" },
|
|
25
|
+
"project_ref": { "type": "string", "minLength": 1 },
|
|
26
|
+
"old_schema": { "type": "object" },
|
|
27
|
+
"new_schema": { "type": "object" },
|
|
28
|
+
"approved_subjects": { "type": "array", "items": { "type": "object" } },
|
|
29
|
+
"proposed_mappings": { "type": "array", "items": { "type": "object" } },
|
|
30
|
+
"report": { "type": "object" },
|
|
31
|
+
"authorized_by": { "type": "string", "minLength": 1 },
|
|
32
|
+
"authorized_at": { "type": "string", "format": "date-time" }
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.subject-reidentification-output/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["protocol", "report", "graph_outcome"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"protocol": {
|
|
8
|
+
"enum": [
|
|
9
|
+
"context.indexer.subject-key-validation-result/v1",
|
|
10
|
+
"context.indexer.subject-reidentification-confirmation-result/v1"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"report": { "type": "object" },
|
|
14
|
+
"authorization": { "type": "object" },
|
|
15
|
+
"authorization_digest": {
|
|
16
|
+
"oneOf": [
|
|
17
|
+
{ "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
18
|
+
{ "type": "null" }
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"outcome": {
|
|
22
|
+
"enum": [
|
|
23
|
+
"subject-key-schema-current",
|
|
24
|
+
"index-subject-reidentification-required",
|
|
25
|
+
"index-subject-reidentification-invalid"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"graph_outcome": { "enum": ["completed", "blocked", "failed"] }
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
}
|
|
@@ -44,13 +44,28 @@
|
|
|
44
44
|
"$ref": "#/$defs/module"
|
|
45
45
|
},
|
|
46
46
|
"local": {
|
|
47
|
-
"
|
|
47
|
+
"allOf": [
|
|
48
|
+
{
|
|
49
|
+
"$ref": "#/$defs/nonEmptyString"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"description": "Local repository or module path resolved from the Context project root. A valid Git checkout supplies origin and current commit when remote/ref are omitted."
|
|
48
53
|
},
|
|
49
54
|
"remote": {
|
|
50
|
-
"
|
|
55
|
+
"allOf": [
|
|
56
|
+
{
|
|
57
|
+
"$ref": "#/$defs/nonEmptyString"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"description": "Repository remote URL. Optional when local resolves to a Git checkout with origin configured."
|
|
51
61
|
},
|
|
52
62
|
"ref": {
|
|
53
|
-
"
|
|
63
|
+
"allOf": [
|
|
64
|
+
{
|
|
65
|
+
"$ref": "#/$defs/nonEmptyString"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"description": "Pinned commit. Optional when local resolves to a Git checkout with a current commit."
|
|
54
69
|
}
|
|
55
70
|
}
|
|
56
71
|
},
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-configure-indexer-providers
|
|
3
|
+
description: Build one path-free Context Indexer Provider selection from current requirements and visible Indexer Skills; use during the provider-selection Graph route, not for executing Providers or changing requirements.
|
|
4
|
+
metadata:
|
|
5
|
+
agent-graph: path:../../provider.yaml
|
|
6
|
+
agent-graph.graph: indexer
|
|
7
|
+
agent-graph.entry: provider-selection
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Configure Indexer Providers
|
|
11
|
+
|
|
12
|
+
Read
|
|
13
|
+
`node_modules/@c4a/context/docs/guides/indexer-provider-and-customization.md`
|
|
14
|
+
for the registry-only default, Provider-layer rules, conflict handling and
|
|
15
|
+
completion conditions. This Action is the entry for
|
|
16
|
+
`indexer-provider-required`; when an exact distribution is unavailable, follow
|
|
17
|
+
the guide's `indexer-provider-unavailable` handling instead of substituting a
|
|
18
|
+
different version or cache.
|
|
19
|
+
|
|
20
|
+
Report the exact CLI-bundled catalog together with other Indexer entry Skills
|
|
21
|
+
already visible in this conversation. For an exact Skill root already exposed
|
|
22
|
+
by the Host, read only `SKILL.md` frontmatter and the sibling
|
|
23
|
+
`context-indexer.yaml`: the manifest version is authoritative and
|
|
24
|
+
`metadata.context-provider-version` must match it. Do not load Provider guidance
|
|
25
|
+
until selection. Group the same Skill name and exact version into one
|
|
26
|
+
conversation item with all observed source types; an installed copy of the
|
|
27
|
+
same CLI-bundled identity is not another Provider. Preserve distinct source
|
|
28
|
+
observations in `visible_skills`, keep different versions separate, and never
|
|
29
|
+
use source count or discovery order as precedence. Do not scan plugin caches or
|
|
30
|
+
persist this discovery list.
|
|
31
|
+
|
|
32
|
+
When the Graph enters through `markdown-provider`, first require the completed
|
|
33
|
+
capture report and report the visible `context-markdown-indexer*` Skills before
|
|
34
|
+
building the route input. Treat only the report's exact `source_inputs` as
|
|
35
|
+
current evidence. Do not infer semantic ownership from filenames, titles, or
|
|
36
|
+
headings, and do not persist the discovery list. Capture proves byte/currentness
|
|
37
|
+
only; the selected Markdown Provider remains responsible for semantic indexing.
|
|
38
|
+
|
|
39
|
+
Produce `context.indexer.provider-route-input/v1` for the current, unchanged
|
|
40
|
+
requirement set. Select portable distribution locators and exact versions and
|
|
41
|
+
integrities. Each required requirement/domain/source/module owner cell needs one
|
|
42
|
+
primary Indexer; overlapping read scope is allowed for enrichers. One Indexer
|
|
43
|
+
may combine a primary layer, supporting profiles, extension layers, and
|
|
44
|
+
composers, but Provider array order is not precedence.
|
|
45
|
+
|
|
46
|
+
On the first pass set `community_fallback_attempted: false`. If the CLI records
|
|
47
|
+
the route Action as `partial`, retry with the applicable CLI-bundled community
|
|
48
|
+
profile and set it to `true`. If the CLI reports conflicting primary owner cells,
|
|
49
|
+
do not choose one by name order: present the exact conflict and wait for a
|
|
50
|
+
decision. If fallback still leaves an unowned required cell, preserve the exact
|
|
51
|
+
CLI `capability_gap_proof` and record `blocked`; never invent a Provider or
|
|
52
|
+
weaken the requirement. Only the following `propose-indexer-customization`
|
|
53
|
+
Action may use that proof to draft a dependency-free minimal `extend`.
|
|
54
|
+
|
|
55
|
+
Record the CLI Route Action outcome exactly from `route.graph_outcome`. Only a
|
|
56
|
+
`completed` report may pass its `selection_proposal_input` to
|
|
57
|
+
`validate-indexer-selection-proposal`. Provider resolution and execution remain
|
|
58
|
+
separate Actions.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prepare-indexer-customization-project
|
|
3
|
+
description: Resolve the exact validated customization selection and stage its CAS-bound project proposal.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Prepare Indexer customization project
|
|
7
|
+
|
|
8
|
+
Read
|
|
9
|
+
`node_modules/@c4a/context/docs/guides/indexer-provider-and-customization.md`
|
|
10
|
+
before staging a project proposal. If validation reports an invalid local
|
|
11
|
+
resource or upstream drift, preserve the exact
|
|
12
|
+
`indexer-customization-invalid`/`indexer-customization-upstream-changed`
|
|
13
|
+
diagnostic and return to reconciliation; do not silently drop or overwrite the
|
|
14
|
+
affected override.
|
|
15
|
+
|
|
16
|
+
Consume only the current `context.indexer.customization-validation-result/v1`.
|
|
17
|
+
|
|
18
|
+
1. Pass `selection_proposal_input` to `context indexer validate-indexer-selection-proposal`.
|
|
19
|
+
2. Resolve every emitted Provider request through `context indexer resolve-indexer-providers`; never scan a
|
|
20
|
+
plugin cache or substitute another version. Stage each resolved Bundle with
|
|
21
|
+
`context indexer stage-indexer-provider-bundle`.
|
|
22
|
+
3. Build `context.indexer.customization-project-preparation-input/v1` with the exact validation digest,
|
|
23
|
+
static report, resolved/staged Bundle inputs, and current CLI operator/profile contracts. Run
|
|
24
|
+
`context indexer prepare-indexer-customization-project`.
|
|
25
|
+
4. If the result is `program-authorization-required`, stop at the independent program-execution authority.
|
|
26
|
+
Do not invent the authority receipt and do not apply any source file.
|
|
27
|
+
5. If the result is `project-confirmation-required`, preserve the returned proposal digest and staging
|
|
28
|
+
validation unchanged for the confirmation/apply route.
|
|
29
|
+
|
|
30
|
+
Never copy Provider files into the project, widen requirement scope, add dependency intents, or bypass the
|
|
31
|
+
content-addressed customization stage.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-propose-indexer-customization
|
|
3
|
+
description: Propose one minimal dependency-free extend customization only after the Context CLI has emitted a final capability-gap proof.
|
|
4
|
+
metadata:
|
|
5
|
+
agent-graph: path:../../provider.yaml
|
|
6
|
+
agent-graph.graph: indexer
|
|
7
|
+
agent-graph.entry: provider-selection
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Propose Indexer Customization
|
|
11
|
+
|
|
12
|
+
Read
|
|
13
|
+
`node_modules/@c4a/context/docs/guides/indexer-provider-and-customization.md`
|
|
14
|
+
and follow its six-level ladder. This Action handles the
|
|
15
|
+
`indexer-customization-required` outcome only; it must not reinterpret
|
|
16
|
+
`indexer-customization-invalid` or
|
|
17
|
+
`indexer-customization-upstream-changed` as permission to replace upstream
|
|
18
|
+
resources.
|
|
19
|
+
|
|
20
|
+
Use this Action only when its exact input is a
|
|
21
|
+
`context.indexer.provider-route-report/v1` whose route outcome is
|
|
22
|
+
`indexer-customization-required` and whose `capability_gap_proof` is present. Copy the
|
|
23
|
+
exact route input and report into `capability_gap`, and copy the proof's
|
|
24
|
+
`gap_digest` into the draft. Close every smaller ladder step in order with its
|
|
25
|
+
CLI/provider evidence digest. Never infer a gap from prose, a Provider manifest,
|
|
26
|
+
or an earlier route attempt.
|
|
27
|
+
|
|
28
|
+
Propose the smallest `extend` change that can close only the reported owner
|
|
29
|
+
cells and affected scopes. First close Provider-only and config levels with the
|
|
30
|
+
route evidence; then prefer appended instructions, one exact template
|
|
31
|
+
override, and a fixed local program extension in that order. Include only files
|
|
32
|
+
under `src/indexer/<indexer-id>/` and preserve the required Provider origin
|
|
33
|
+
comment. Do not create a `replace` draft, widen source scope, weaken the
|
|
34
|
+
requirement, or add dependency intents.
|
|
35
|
+
|
|
36
|
+
The output is an untrusted draft for the next CLI validation Action. Do not
|
|
37
|
+
write project source, install dependencies, execute local code, or claim that
|
|
38
|
+
the customization is applied. If no dependency-free `extend` can close the
|
|
39
|
+
exact gap, report the limitation and stop for human/dependency/program
|
|
40
|
+
authorization instead of emitting a conforming-looking draft.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: revise-index-output
|
|
3
|
+
description: Revise one exact Indexer candidate set in response to a recorded runtime profile failure.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Revise Index Output
|
|
7
|
+
|
|
8
|
+
Read the current profile audit and its failed metric samples. Change only the bound candidate revision; do not change source scope, requirements, baseline checks, metric thresholds, or provider authority.
|
|
9
|
+
|
|
10
|
+
Return `context.indexer.profile-revision-record-input/v1` with the new result fingerprint, a concrete list of actions taken, unresolved reasons, and the current ledger digest. A semantically unchanged fingerprint is not a new attempt.
|
|
11
|
+
|
|
12
|
+
After the third failed attempt, stop revising. The CLI must produce the complete failure report before any override is requested.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-run-indexer-agent-step
|
|
3
|
+
description: Execute one Context-authorized Indexer workset using only the current Route input and resolved Provider instructions.
|
|
4
|
+
metadata:
|
|
5
|
+
agent-graph: path:../../provider.yaml
|
|
6
|
+
agent-graph.graph: indexer
|
|
7
|
+
agent-graph.entry: agent-step
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Run one Indexer Agent step
|
|
11
|
+
|
|
12
|
+
Read the current Route action input and every required Resource marked `read-required`.
|
|
13
|
+
Use only the materialized `resolved-indexer-instructions` content, the supplied workset,
|
|
14
|
+
composition input, and Context-authorized evidence. Do not discover another Skill, read a
|
|
15
|
+
Provider path, widen source scope, run a program, or invent missing evidence.
|
|
16
|
+
|
|
17
|
+
Return exactly `context.indexer.agent-step-result/v1`. Preserve the supplied input and
|
|
18
|
+
execution request digests, bind the materialized instruction payload digest, and include
|
|
19
|
+
the current Host execution receipt. Context performs the final schema, evidence, owner,
|
|
20
|
+
scope, and workset validation; never report success merely because the prose looks valid.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-run-indexer-post-author-composer
|
|
3
|
+
description: Execute one CLI-authorized post-author composer request without changing primary facts, identity, scope, or composer selection.
|
|
4
|
+
metadata:
|
|
5
|
+
agent-graph: path:../../provider.yaml
|
|
6
|
+
agent-graph.graph: indexer
|
|
7
|
+
agent-graph.entry: post-author-composer-step
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Run one post-author composer
|
|
11
|
+
|
|
12
|
+
Read the current Route input and the exact `context.indexer.layer-fragment-request/v1`.
|
|
13
|
+
Use only its bounded `primary_result_view`, selected `composer_ref`, allowed target refs,
|
|
14
|
+
and the resolved instructions supplied by Context. Do not discover another Skill or
|
|
15
|
+
composer, read project files outside the request, change a SubjectKey, create a complete
|
|
16
|
+
primary Result, or widen the target set.
|
|
17
|
+
|
|
18
|
+
Return exactly `context.indexer.layer-fragment-result/v1`. Preserve the request digest,
|
|
19
|
+
composer ref, and consumed PrimaryResultView digest. Return only zero or more
|
|
20
|
+
`derived-artifact-proposal` fragments for allowed targets. Context performs final schema,
|
|
21
|
+
identity, evidence, policy, layer, and receipt validation before accepting the Result.
|