@c4a/context-cli 0.7.0 → 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/cli.js +32779 -32620
- package/indexers/capability-manifest.json +4 -9
- package/indexers/release-manifest.json +1 -1
- package/package.json +3 -3
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/providers/context/actions/run-indexer-lifecycle.yaml +7 -0
- package/providers/context/codes.yaml +3 -27
- package/providers/context/graphs/indexer.yaml +2 -28
- package/providers/context/graphs/workspace.yaml +37 -473
- package/providers/context/manifest.json +58 -558
- package/providers/context/provider.yaml +2 -2
- package/providers/context/resources/diagnostics/projection-stale.md +0 -1
- package/providers/context/resources/manuals/reference/project-api.md +39 -38
- 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 +1 -1
- 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-contract-overlay-validation-input.schema.json +0 -42
- package/providers/context/schemas/indexer-contract-overlay-validation-result.schema.json +27 -122
- package/providers/context/schemas/indexer-lifecycle-continuation.schema.json +15 -0
- package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +4 -4
- package/providers/context/schemas/indexer-overlay-question-rebind-input.schema.json +4 -4
- package/providers/context/skills/run-indexer-lifecycle/SKILL.md +36 -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-document-optimization-guidance.yaml +0 -5
- package/providers/context/actions/apply-structure-confirmation.yaml +0 -5
- package/providers/context/actions/authorize-indexer-contract-overlay.yaml +0 -7
- 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 -188
- package/providers/context/resources/procedures/code-index-audit.md +0 -113
- package/providers/context/resources/procedures/document-classification.md +0 -22
- package/providers/context/resources/procedures/document-optimization.md +0 -110
- 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/code-index/templates/adapter.md +0 -118
- package/providers/context/resources/semantic/code-index/templates/api-service.md +0 -116
- package/providers/context/resources/semantic/code-index/templates/background-runtime.md +0 -109
- package/providers/context/resources/semantic/code-index/templates/cli-tool.md +0 -129
- package/providers/context/resources/semantic/code-index/templates/contract-source.md +0 -73
- package/providers/context/resources/semantic/code-index/templates/contracts-and-chains.md +0 -81
- package/providers/context/resources/semantic/code-index/templates/cross-module-chain.md +0 -78
- package/providers/context/resources/semantic/code-index/templates/derived-source.md +0 -116
- package/providers/context/resources/semantic/code-index/templates/domain-service.md +0 -109
- package/providers/context/resources/semantic/code-index/templates/event-flow.md +0 -62
- package/providers/context/resources/semantic/code-index/templates/monorepo-container.md +0 -124
- package/providers/context/resources/semantic/code-index/templates/persistence-boundary.md +0 -56
- package/providers/context/resources/semantic/code-index/templates/plugin-extension.md +0 -52
- package/providers/context/resources/semantic/code-index/templates/protocol-boundary.md +0 -88
- package/providers/context/resources/semantic/code-index/templates/sdk-library.md +0 -132
- package/providers/context/resources/semantic/code-index/templates/web-application.md +0 -145
- 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/indexer-contract-overlay-authorization-input.schema.json +0 -32
- package/providers/context/schemas/indexer-contract-overlay-authorization-result.schema.json +0 -121
- package/providers/context/schemas/prose-structure-batch.schema.json +0 -35
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: semantic.code-index.template.sdk-library
|
|
3
|
-
kind: procedure
|
|
4
|
-
media-type: text/markdown
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# SDK and shared library template
|
|
8
|
-
|
|
9
|
-
Use for `sdk-library`: reusable code packages, component libraries, client
|
|
10
|
-
SDKs, public framework extensions, or shared runtimes consumed through a
|
|
11
|
-
deliberately supported interface. A package being imported elsewhere is not
|
|
12
|
-
enough; confirm its supported entry and consumer contract.
|
|
13
|
-
|
|
14
|
-
Recommended `outputProfile`: `public-api-reference`.
|
|
15
|
-
|
|
16
|
-
## Evidence pass
|
|
17
|
-
|
|
18
|
-
Locate:
|
|
19
|
-
|
|
20
|
-
- package manifest, exports map, public barrels, binary/native entry, or
|
|
21
|
-
documented import paths;
|
|
22
|
-
- initialization, providers, factories, configuration, and required runtime;
|
|
23
|
-
- public capability families, components, hooks, types, commands, or clients;
|
|
24
|
-
- supported extension/plugin points and lifecycle;
|
|
25
|
-
- compatibility, platform, peer dependency, and version constraints;
|
|
26
|
-
- maintained examples, tests, API comments, and migration/release notes;
|
|
27
|
-
- external protocol schemas and generated declarations or clients;
|
|
28
|
-
- internal implementation, fixtures, demos, and re-export chains that should
|
|
29
|
-
not become independent reader pages.
|
|
30
|
-
|
|
31
|
-
Use public exports plus maintained documentation together. An exported symbol
|
|
32
|
-
can still be incidental; a documented stable import path can remain public even
|
|
33
|
-
when it re-exports another implementation.
|
|
34
|
-
|
|
35
|
-
## Questions the knowledge must answer
|
|
36
|
-
|
|
37
|
-
1. Who should use this package and what capabilities does it promise?
|
|
38
|
-
2. What are the supported import/initialization paths?
|
|
39
|
-
3. How are public APIs grouped into concepts a consumer can navigate?
|
|
40
|
-
4. What configuration, lifecycle, compatibility, and failure rules apply?
|
|
41
|
-
5. Which examples demonstrate supported use rather than test-only behavior?
|
|
42
|
-
6. Which declarations are generated, and where is their authority?
|
|
43
|
-
7. How is the package built, versioned, and released when that is in scope?
|
|
44
|
-
|
|
45
|
-
## Suggested knowledge units
|
|
46
|
-
|
|
47
|
-
- **Library/module map**: purpose, supported entrypoints, capability families,
|
|
48
|
-
runtime/peer requirements, extension points, and navigation.
|
|
49
|
-
- **Getting started or lifecycle**: installation assumptions, initialization,
|
|
50
|
-
configuration, teardown, and minimal supported examples evidenced by source.
|
|
51
|
-
- **Capability-family reference**: a coherent group of APIs/components with
|
|
52
|
-
usage, contracts, constraints, and related types.
|
|
53
|
-
- **Granular API/component reference**: one symbol or component per page only
|
|
54
|
-
when the package intentionally exposes a granular public contract and the
|
|
55
|
-
measured preview remains appropriate.
|
|
56
|
-
- **Compatibility and migration**: supported platforms/versions and evidenced
|
|
57
|
-
breaking or transitional behavior.
|
|
58
|
-
- **Build/release entry**: only module-owned packaging and release behavior.
|
|
59
|
-
|
|
60
|
-
## Chapter blueprints
|
|
61
|
-
|
|
62
|
-
```markdown
|
|
63
|
-
# <Library> module map
|
|
64
|
-
## Purpose and intended consumers
|
|
65
|
-
## Supported entrypoints and initialization
|
|
66
|
-
## Capability families
|
|
67
|
-
## Runtime, peer, and platform requirements
|
|
68
|
-
## Configuration and lifecycle
|
|
69
|
-
## Extension points and external protocols
|
|
70
|
-
## Compatibility, build, and release
|
|
71
|
-
## Examples, evidence, and exclusions
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
For a capability family:
|
|
75
|
-
|
|
76
|
-
```markdown
|
|
77
|
-
# <Capability family>
|
|
78
|
-
## When to use it
|
|
79
|
-
## Supported imports or components
|
|
80
|
-
## Initialization and configuration
|
|
81
|
-
## API/component contracts
|
|
82
|
-
## Lifecycle, errors, and constraints
|
|
83
|
-
## Minimal source-backed examples
|
|
84
|
-
## Related capabilities and authoritative references
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
For a granular reference page:
|
|
88
|
-
|
|
89
|
-
```markdown
|
|
90
|
-
# <Public API or component>
|
|
91
|
-
## Purpose
|
|
92
|
-
## Import and signature/props
|
|
93
|
-
## Required context and configuration
|
|
94
|
-
## Behavior, lifecycle, and errors
|
|
95
|
-
## Supported example
|
|
96
|
-
## Compatibility and source evidence
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
## Granularity and relationships
|
|
100
|
-
|
|
101
|
-
Prefer capability families over one page per export. A symbol page is justified
|
|
102
|
-
when consumers search for that exact public identity and its contract contains
|
|
103
|
-
meaningful behavior beyond a signature. Do not copy complete function bodies,
|
|
104
|
-
private members, generated declarations, fixtures, or every re-export.
|
|
105
|
-
|
|
106
|
-
The 300-page limit remains per index unit. When a granular public surface would
|
|
107
|
-
cross it, keep the public identities navigable but aggregate them into
|
|
108
|
-
capability-family pages through `extractCustom()`; the limit is not raised for
|
|
109
|
-
large libraries, and splitting one `extractTs()` source into overlapping units
|
|
110
|
-
is not a valid workaround.
|
|
111
|
-
|
|
112
|
-
Relate public entries to capability families, configuration, examples, and
|
|
113
|
-
external protocols. Internal call graphs are secondary unless the knowledge
|
|
114
|
-
goal explicitly concerns extension or lifecycle behavior.
|
|
115
|
-
|
|
116
|
-
## Template composition examples
|
|
117
|
-
|
|
118
|
-
- A component library may use granular component pages plus family indexes,
|
|
119
|
-
while its demo site is a separate `web-application` unit.
|
|
120
|
-
- A generated client reads `derived-source.md` and
|
|
121
|
-
`protocol-boundary.md`; document the supported client surface while naming
|
|
122
|
-
the upstream schema authority.
|
|
123
|
-
- A library with a plugin host also reads `adapter.md` and
|
|
124
|
-
`plugin-extension.md`.
|
|
125
|
-
|
|
126
|
-
## Revise or stop when
|
|
127
|
-
|
|
128
|
-
- the public boundary cannot be distinguished from internal exports;
|
|
129
|
-
- examples are invented instead of derived from maintained usage or tests;
|
|
130
|
-
- generated declarations have no identifiable authority;
|
|
131
|
-
- every export or component is selected without a consumer-navigation reason;
|
|
132
|
-
- compatibility or lifecycle claims are unavailable but required by the goal.
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: semantic.code-index.template.web-application
|
|
3
|
-
kind: procedure
|
|
4
|
-
media-type: text/markdown
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Web and interactive application template
|
|
8
|
-
|
|
9
|
-
Use only after evidence classifies a module as `web-application`. This covers
|
|
10
|
-
browser applications, server-rendered sites, embedded WebViews, desktop Web
|
|
11
|
-
shells, native mobile/desktop applications, cross-platform UI runtimes, and
|
|
12
|
-
similar interactive modules. The `web-application` identifier is retained for
|
|
13
|
-
the current contract but represents an interactive application boundary, not
|
|
14
|
-
only browser code. It does
|
|
15
|
-
not automatically cover every package containing UI components; a reusable
|
|
16
|
-
component package is usually `sdk-library`.
|
|
17
|
-
|
|
18
|
-
Recommended `outputProfile`: `application-map`.
|
|
19
|
-
|
|
20
|
-
## Evidence pass
|
|
21
|
-
|
|
22
|
-
Locate the concrete application bootstrap and trace outward just far enough to
|
|
23
|
-
find:
|
|
24
|
-
|
|
25
|
-
- application mounting, server rendering, shell, or host-container entry;
|
|
26
|
-
- route/page/screen registries and navigation guards;
|
|
27
|
-
- page-to-state, loader, query, client, bridge, or controller boundaries;
|
|
28
|
-
- runtime configuration, environment selection, feature registration, and
|
|
29
|
-
authentication/session initialization;
|
|
30
|
-
- build, local development, test, bundle, and release entrypoints;
|
|
31
|
-
- generated clients, assets, styles, fixtures, and legacy routes that should
|
|
32
|
-
remain evidence rather than reader-facing pages.
|
|
33
|
-
|
|
34
|
-
If the route registry is generated, locate both its generator or source of
|
|
35
|
-
truth and the runtime consumer. Do not infer page identity from a directory
|
|
36
|
-
tree when an explicit registry exists.
|
|
37
|
-
|
|
38
|
-
## Questions the knowledge must answer
|
|
39
|
-
|
|
40
|
-
A useful application index should let a reader determine:
|
|
41
|
-
|
|
42
|
-
1. How does the application start, and which runtime or host does it expect?
|
|
43
|
-
2. What are the stable pages/routes/screens and their entry components?
|
|
44
|
-
3. How does a page obtain data or call an external capability?
|
|
45
|
-
4. Which state, session, bridge, or configuration boundaries affect behavior?
|
|
46
|
-
5. How is the module run, debugged, built, and released?
|
|
47
|
-
6. Which implementation details are intentionally outside the knowledge scope?
|
|
48
|
-
|
|
49
|
-
## Suggested knowledge units
|
|
50
|
-
|
|
51
|
-
Select only units supported by the confirmed goal and evidence:
|
|
52
|
-
|
|
53
|
-
- **Application map**: responsibility, runtime, bootstrap, major subsystems,
|
|
54
|
-
stable dependencies, and navigation to deeper pages.
|
|
55
|
-
- **Route or page registry**: concrete route/page identity, entry component,
|
|
56
|
-
loader/guard, main data boundary, and source locator. Aggregate related
|
|
57
|
-
routes when a page-per-route layout would be repetitive.
|
|
58
|
-
- **Data and protocol boundaries**: add application-specific page, state, and
|
|
59
|
-
session context to the canonical operation record in `protocol-boundary.md`;
|
|
60
|
-
do not create a second operation registry.
|
|
61
|
-
- **State and host integration**: only stable stores, bridges, extension points,
|
|
62
|
-
or host contracts that affect multiple pages or public behavior.
|
|
63
|
-
- **Runtime and delivery guide**: module-owned development commands,
|
|
64
|
-
configuration, build output, deployment/release entry, and evidenced recovery
|
|
65
|
-
paths.
|
|
66
|
-
- **Cross-layer flow**: a source-backed page-to-client-to-provider chain when
|
|
67
|
-
both sides are registered sources.
|
|
68
|
-
|
|
69
|
-
These are possible page families, not a required number of Markdown files.
|
|
70
|
-
|
|
71
|
-
## Chapter blueprints
|
|
72
|
-
|
|
73
|
-
An application-map page may use:
|
|
74
|
-
|
|
75
|
-
```markdown
|
|
76
|
-
# <Application> module map
|
|
77
|
-
## Responsibility and supported runtime
|
|
78
|
-
## Bootstrap sequence
|
|
79
|
-
## Route/page organization
|
|
80
|
-
## State, data, and protocol boundaries
|
|
81
|
-
## Host integrations and extension points
|
|
82
|
-
## Configuration and environment selection
|
|
83
|
-
## Development, build, and release entrypoints
|
|
84
|
-
## Known exclusions and source-of-truth links
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
A route/page registry may use a compact record rather than prose repetition:
|
|
88
|
-
|
|
89
|
-
```markdown
|
|
90
|
-
## <Route or page family>
|
|
91
|
-
- Identity and registration:
|
|
92
|
-
- Entry component or controller:
|
|
93
|
-
- Loader, guard, or initialization:
|
|
94
|
-
- Main client/state dependencies:
|
|
95
|
-
- User-visible outcome:
|
|
96
|
-
- Source evidence:
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
A cross-layer page may use:
|
|
100
|
-
|
|
101
|
-
```markdown
|
|
102
|
-
# <User interaction> execution path
|
|
103
|
-
## Trigger and route entry
|
|
104
|
-
## UI/state orchestration
|
|
105
|
-
## Protocol request and authoritative contract
|
|
106
|
-
## Provider boundary and response handling
|
|
107
|
-
## Failure, fallback, and observability
|
|
108
|
-
## Source-backed relationship chain
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
Do not fill a heading with generic text. Omit or mark a section as a material
|
|
112
|
-
gap when the source cannot support it.
|
|
113
|
-
|
|
114
|
-
## Granularity and relationships
|
|
115
|
-
|
|
116
|
-
Prefer stable application concepts over one page per component, hook, state
|
|
117
|
-
field, style, generated type, or internal helper. A page registry must contain
|
|
118
|
-
real identities and source locators, not just folder names. A protocol page
|
|
119
|
-
must name concrete operations or contract locations, not merely state that the
|
|
120
|
-
application “uses HTTP”.
|
|
121
|
-
|
|
122
|
-
Create structured relationships only when registration, call sites, imports
|
|
123
|
-
with unambiguous ownership, or parser evidence support them. Keep inferred
|
|
124
|
-
product intent out of the index.
|
|
125
|
-
|
|
126
|
-
## Template composition examples
|
|
127
|
-
|
|
128
|
-
- A server-rendered application with local API routes also reads
|
|
129
|
-
`api-service.md` and `protocol-boundary.md`.
|
|
130
|
-
- An embedded application with a host bridge also reads `adapter.md` and the
|
|
131
|
-
applicable `plugin-extension.md` or `protocol-boundary.md` template.
|
|
132
|
-
- A design-system package rendered in a demo application may need separate
|
|
133
|
-
index units: `sdk-library` for the supported package and `web-application`
|
|
134
|
-
for the demo host.
|
|
135
|
-
|
|
136
|
-
## Revise or stop when
|
|
137
|
-
|
|
138
|
-
- no executable bootstrap or route registry can be located;
|
|
139
|
-
- the proposed output is only a directory summary;
|
|
140
|
-
- protocol semantics depend on unavailable material;
|
|
141
|
-
- generated routes or clients are being mistaken for authoritative behavior;
|
|
142
|
-
- one-symbol-per-page selection expands components or API types without a
|
|
143
|
-
deliberate public-reference goal.
|
|
144
|
-
|
|
145
|
-
Resolve these issues before the measured batch preview.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
context_resource: semantic/compile/index
|
|
3
|
-
id: context.semantic.compile.index
|
|
4
|
-
kind: procedure
|
|
5
|
-
media-type: text/markdown
|
|
6
|
-
applies-to:
|
|
7
|
-
- diagnostic-routing
|
|
8
|
-
- evidence-repair
|
|
9
|
-
name: compile-reference-index
|
|
10
|
-
description: "Optional index for non-mechanical structure and evidence diagnostics; normal compile does not require it."
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
# Compile semantic reference index
|
|
14
|
-
|
|
15
|
-
Normal source-bound compile is deterministic and does not require these
|
|
16
|
-
references. Read this index only when a structure or evidence diagnostic asks
|
|
17
|
-
for a non-mechanical decision, then open only the matching procedure:
|
|
18
|
-
|
|
19
|
-
- [Compile action contract](compile-actions.md)
|
|
20
|
-
- [Action and domain gates](action-domain-gates.md)
|
|
21
|
-
- [Notes and caveats](notes.md)
|
|
22
|
-
- [Refresh and update](refresh-and-update.md)
|
|
23
|
-
- [Structural challenges](structural-challenges.md)
|
|
24
|
-
- [Compile judgment](compile-judgment.md)
|
|
25
|
-
- [Semantic judgment](semantic-judgment.md)
|
|
26
|
-
- [Disposition semantics](disposition-semantics.md)
|
|
27
|
-
- [Temporal evidence](temporal-and-evidence.md)
|
|
28
|
-
- [Leakage and ownership](leakage-and-ownership.md)
|
|
29
|
-
- [Scope review and omission](scope-review-and-omit.md)
|
|
30
|
-
- [User confirmation](user-confirmation.md)
|
|
31
|
-
- [Close gate](close-gate.md)
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
schema: agent-graph.resource.v1
|
|
2
|
-
id: context.code-index-audit
|
|
3
|
-
kind: context-view
|
|
4
|
-
mediaType: text/markdown
|
|
5
|
-
description: Current code-index content-depth, evidence-scope, relationship, source-coverage signals, and prior Agent decisions.
|
|
6
|
-
materializer: actions/materialize-context-view.yaml
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
schema: agent-graph.resource.v1
|
|
2
|
-
id: context.extraction-preview
|
|
3
|
-
kind: context-view
|
|
4
|
-
mediaType: text/markdown
|
|
5
|
-
description: Current batch code-extraction scale, output profile, ownership, structural probe coverage, and capability report.
|
|
6
|
-
materializer: actions/materialize-context-view.yaml
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.code-index-audit-decision.v1",
|
|
4
|
-
"title": "Context code-index Agent audit decision",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": [
|
|
8
|
-
"schema",
|
|
9
|
-
"report_digest",
|
|
10
|
-
"decision",
|
|
11
|
-
"summary",
|
|
12
|
-
"reviewed_units",
|
|
13
|
-
"scope_assessment",
|
|
14
|
-
"signal_assessments"
|
|
15
|
-
],
|
|
16
|
-
"properties": {
|
|
17
|
-
"schema": { "const": "context.code-index-audit-decision.v1" },
|
|
18
|
-
"report_digest": { "type": "string", "minLength": 1 },
|
|
19
|
-
"decision": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"enum": ["accept", "revise", "request-input"]
|
|
22
|
-
},
|
|
23
|
-
"summary": { "type": "string", "minLength": 1 },
|
|
24
|
-
"reviewed_units": {
|
|
25
|
-
"type": "array",
|
|
26
|
-
"minItems": 1,
|
|
27
|
-
"uniqueItems": true,
|
|
28
|
-
"items": { "type": "string", "minLength": 1 }
|
|
29
|
-
},
|
|
30
|
-
"scope_assessment": {
|
|
31
|
-
"type": "object",
|
|
32
|
-
"additionalProperties": false,
|
|
33
|
-
"required": ["matches_requested_scope", "omissions", "summary"],
|
|
34
|
-
"properties": {
|
|
35
|
-
"matches_requested_scope": { "type": "boolean" },
|
|
36
|
-
"omissions": {
|
|
37
|
-
"type": "array",
|
|
38
|
-
"uniqueItems": true,
|
|
39
|
-
"items": { "type": "string" }
|
|
40
|
-
},
|
|
41
|
-
"summary": { "type": "string", "minLength": 1 }
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"signal_assessments": {
|
|
45
|
-
"type": "array",
|
|
46
|
-
"items": {
|
|
47
|
-
"type": "object",
|
|
48
|
-
"additionalProperties": false,
|
|
49
|
-
"required": ["signal_id", "disposition", "reason"],
|
|
50
|
-
"properties": {
|
|
51
|
-
"signal_id": { "type": "string", "minLength": 1 },
|
|
52
|
-
"disposition": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"enum": ["fix", "acceptable", "not-applicable"]
|
|
55
|
-
},
|
|
56
|
-
"reason": { "type": "string", "minLength": 1 }
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"revision_plan": {
|
|
61
|
-
"type": "object",
|
|
62
|
-
"additionalProperties": false,
|
|
63
|
-
"required": ["units", "actions"],
|
|
64
|
-
"properties": {
|
|
65
|
-
"units": {
|
|
66
|
-
"type": "array",
|
|
67
|
-
"minItems": 1,
|
|
68
|
-
"uniqueItems": true,
|
|
69
|
-
"items": { "type": "string", "minLength": 1 }
|
|
70
|
-
},
|
|
71
|
-
"actions": {
|
|
72
|
-
"type": "array",
|
|
73
|
-
"minItems": 1,
|
|
74
|
-
"items": { "type": "string", "minLength": 1 }
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"requested_material": {
|
|
79
|
-
"type": "array",
|
|
80
|
-
"minItems": 1,
|
|
81
|
-
"items": { "type": "string", "minLength": 1 }
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"allOf": [
|
|
85
|
-
{
|
|
86
|
-
"if": { "properties": { "decision": { "const": "revise" } } },
|
|
87
|
-
"then": { "required": ["revision_plan"] }
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"if": { "properties": { "decision": { "const": "request-input" } } },
|
|
91
|
-
"then": { "required": ["requested_material"] }
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.document-optimization-decisions.v2",
|
|
4
|
-
"title": "Context source-constrained editorial revision decisions",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schema", "decisions"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schema": { "const": "context.document-optimization-decisions.v2" },
|
|
10
|
-
"decisions": {
|
|
11
|
-
"type": "array",
|
|
12
|
-
"items": {
|
|
13
|
-
"type": "object",
|
|
14
|
-
"additionalProperties": false,
|
|
15
|
-
"required": ["fragment_id", "input_digest", "context_digest", "policy_digest", "action"],
|
|
16
|
-
"properties": {
|
|
17
|
-
"fragment_id": { "type": "string", "minLength": 1 },
|
|
18
|
-
"input_digest": { "type": "string", "minLength": 1 },
|
|
19
|
-
"context_digest": { "type": "string", "minLength": 1 },
|
|
20
|
-
"policy_digest": { "type": "string", "minLength": 1 },
|
|
21
|
-
"action": {
|
|
22
|
-
"enum": ["keep", "repair", "reshape", "omit"],
|
|
23
|
-
"description": "Keep the Section, repair local presentation, reshape it within the same source boundary, or omit a mechanically eligible non-knowledge Section."
|
|
24
|
-
},
|
|
25
|
-
"replacement": { "type": "string" },
|
|
26
|
-
"assessment": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"minLength": 12,
|
|
29
|
-
"description": "Required when keeping a Section that has mechanical signals and when a repair or reshape retains review-confidence signals after rescan. Name every remaining signal code and explain why it is a false positive or why changing the Section would reduce source fidelity. Repair and reshape replacements cannot retain high-confidence signals. This value is decision-only and is not published."
|
|
30
|
-
},
|
|
31
|
-
"reason": {
|
|
32
|
-
"enum": [
|
|
33
|
-
"unanswered-question",
|
|
34
|
-
"empty-or-placeholder",
|
|
35
|
-
"draft-without-decision",
|
|
36
|
-
"duplicate-content",
|
|
37
|
-
"obsolete-without-replacement",
|
|
38
|
-
"volatile-reference",
|
|
39
|
-
"sensitive-value-candidate",
|
|
40
|
-
"conversion-artifact"
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"allOf": [
|
|
45
|
-
{
|
|
46
|
-
"if": { "properties": { "action": { "enum": ["repair", "reshape"] } } },
|
|
47
|
-
"then": { "required": ["replacement"] }
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"if": { "properties": { "action": { "const": "omit" } } },
|
|
51
|
-
"then": { "required": ["reason"] }
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.contract-overlay-authorization-input/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": [
|
|
7
|
-
"protocol",
|
|
8
|
-
"validation_input",
|
|
9
|
-
"expected_conformance_report_digest",
|
|
10
|
-
"authority_ref",
|
|
11
|
-
"authority_scope_digest",
|
|
12
|
-
"input_digest"
|
|
13
|
-
],
|
|
14
|
-
"properties": {
|
|
15
|
-
"protocol": { "const": "context.indexer.contract-overlay-authorization-input/v1" },
|
|
16
|
-
"validation_input": {
|
|
17
|
-
"type": "object",
|
|
18
|
-
"required": ["protocol", "input_digest"],
|
|
19
|
-
"properties": {
|
|
20
|
-
"protocol": { "const": "context.indexer.contract-overlay-validation-input/v1" },
|
|
21
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"expected_conformance_report_digest": { "$ref": "#/$defs/digest" },
|
|
25
|
-
"authority_ref": { "type": "string", "minLength": 1 },
|
|
26
|
-
"authority_scope_digest": { "$ref": "#/$defs/digest" },
|
|
27
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
28
|
-
},
|
|
29
|
-
"$defs": {
|
|
30
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.contract-overlay-authorization-result/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": [
|
|
7
|
-
"protocol",
|
|
8
|
-
"trusted_validation_input",
|
|
9
|
-
"validation",
|
|
10
|
-
"project_authorization",
|
|
11
|
-
"result_digest"
|
|
12
|
-
],
|
|
13
|
-
"properties": {
|
|
14
|
-
"protocol": { "const": "context.indexer.contract-overlay-authorization-result/v1" },
|
|
15
|
-
"trusted_validation_input": {
|
|
16
|
-
"type": "object",
|
|
17
|
-
"required": ["protocol", "project_authorization", "input_digest"],
|
|
18
|
-
"properties": {
|
|
19
|
-
"protocol": { "const": "context.indexer.contract-overlay-validation-input/v1" },
|
|
20
|
-
"project_authorization": { "type": "object" },
|
|
21
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"validation": {
|
|
25
|
-
"type": "object",
|
|
26
|
-
"required": [
|
|
27
|
-
"protocol",
|
|
28
|
-
"outcome",
|
|
29
|
-
"graph_outcome",
|
|
30
|
-
"validation_input_digest",
|
|
31
|
-
"trust_receipt",
|
|
32
|
-
"result_digest"
|
|
33
|
-
],
|
|
34
|
-
"properties": {
|
|
35
|
-
"protocol": { "const": "context.indexer.contract-overlay-validation-result/v1" },
|
|
36
|
-
"outcome": { "const": "trusted" },
|
|
37
|
-
"graph_outcome": { "const": "completed" },
|
|
38
|
-
"validation_input_digest": { "$ref": "#/$defs/digest" },
|
|
39
|
-
"trust_receipt": {
|
|
40
|
-
"type": "object",
|
|
41
|
-
"additionalProperties": false,
|
|
42
|
-
"required": [
|
|
43
|
-
"protocol",
|
|
44
|
-
"trust_class",
|
|
45
|
-
"project_ref",
|
|
46
|
-
"overlay_digest",
|
|
47
|
-
"attestation_digest",
|
|
48
|
-
"base_contract_digest",
|
|
49
|
-
"provider_integrity",
|
|
50
|
-
"operator_contract_digest",
|
|
51
|
-
"conformance_report_digest",
|
|
52
|
-
"trust_adapter",
|
|
53
|
-
"trust_adapter_version",
|
|
54
|
-
"trust_management_authority_digest",
|
|
55
|
-
"trust_policy_digest",
|
|
56
|
-
"authorization_receipt_digest",
|
|
57
|
-
"receipt_digest"
|
|
58
|
-
],
|
|
59
|
-
"properties": {
|
|
60
|
-
"protocol": { "const": "context.indexer.overlay-trust-receipt/v1" },
|
|
61
|
-
"trust_class": { "const": "project-authorized-exact-digest" },
|
|
62
|
-
"project_ref": { "type": "string", "minLength": 1 },
|
|
63
|
-
"overlay_digest": { "$ref": "#/$defs/digest" },
|
|
64
|
-
"attestation_digest": { "$ref": "#/$defs/nullableDigest" },
|
|
65
|
-
"base_contract_digest": { "$ref": "#/$defs/digest" },
|
|
66
|
-
"provider_integrity": { "$ref": "#/$defs/digest" },
|
|
67
|
-
"operator_contract_digest": { "$ref": "#/$defs/digest" },
|
|
68
|
-
"conformance_report_digest": { "$ref": "#/$defs/digest" },
|
|
69
|
-
"trust_adapter": { "type": "null" },
|
|
70
|
-
"trust_adapter_version": { "type": "null" },
|
|
71
|
-
"trust_management_authority_digest": { "type": "null" },
|
|
72
|
-
"trust_policy_digest": { "type": "null" },
|
|
73
|
-
"authorization_receipt_digest": { "$ref": "#/$defs/digest" },
|
|
74
|
-
"receipt_digest": { "$ref": "#/$defs/digest" }
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"result_digest": { "$ref": "#/$defs/digest" }
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"project_authorization": {
|
|
81
|
-
"type": "object",
|
|
82
|
-
"additionalProperties": false,
|
|
83
|
-
"required": [
|
|
84
|
-
"protocol",
|
|
85
|
-
"project_ref",
|
|
86
|
-
"overlay_digest",
|
|
87
|
-
"attestation_digest",
|
|
88
|
-
"base_contract_digest",
|
|
89
|
-
"provider_integrity",
|
|
90
|
-
"operator_contract_digest",
|
|
91
|
-
"conformance_report_digest",
|
|
92
|
-
"authority_ref",
|
|
93
|
-
"authority_scope_digest",
|
|
94
|
-
"authorization_receipt_digest"
|
|
95
|
-
],
|
|
96
|
-
"properties": {
|
|
97
|
-
"protocol": { "const": "context.indexer.overlay-project-authorization/v1" },
|
|
98
|
-
"project_ref": { "type": "string", "minLength": 1 },
|
|
99
|
-
"overlay_digest": { "$ref": "#/$defs/digest" },
|
|
100
|
-
"attestation_digest": { "$ref": "#/$defs/nullableDigest" },
|
|
101
|
-
"base_contract_digest": { "$ref": "#/$defs/digest" },
|
|
102
|
-
"provider_integrity": { "$ref": "#/$defs/digest" },
|
|
103
|
-
"operator_contract_digest": { "$ref": "#/$defs/digest" },
|
|
104
|
-
"conformance_report_digest": { "$ref": "#/$defs/digest" },
|
|
105
|
-
"authority_ref": { "const": "context.indexer-contract-overlay" },
|
|
106
|
-
"authority_scope_digest": { "$ref": "#/$defs/digest" },
|
|
107
|
-
"authorization_receipt_digest": { "$ref": "#/$defs/digest" }
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"result_digest": { "$ref": "#/$defs/digest" }
|
|
111
|
-
},
|
|
112
|
-
"$defs": {
|
|
113
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
114
|
-
"nullableDigest": {
|
|
115
|
-
"oneOf": [
|
|
116
|
-
{ "type": "null" },
|
|
117
|
-
{ "$ref": "#/$defs/digest" }
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.prose.structure-batch.v1",
|
|
4
|
-
"title": "Context prose structure batch",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schema", "items"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schema": {
|
|
10
|
-
"const": "context.prose.structure-batch.v1"
|
|
11
|
-
},
|
|
12
|
-
"items": {
|
|
13
|
-
"type": "array",
|
|
14
|
-
"minItems": 1,
|
|
15
|
-
"maxItems": 100,
|
|
16
|
-
"items": {
|
|
17
|
-
"type": "object",
|
|
18
|
-
"additionalProperties": false,
|
|
19
|
-
"required": ["phase_id", "input"],
|
|
20
|
-
"properties": {
|
|
21
|
-
"phase_id": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"minLength": 1,
|
|
24
|
-
"description": "One declared phase.align.prose id from the current pending structure targets."
|
|
25
|
-
},
|
|
26
|
-
"input": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"minLength": 1,
|
|
29
|
-
"description": "Project-relative or absolute YAML/JSON context.structure.v1 payload path for this target."
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|