generated from coulomb/repo-seed
Some checks failed
ci / validate-registry (push) Has been cancelled
T01: specs/PlanCheck.md design doc, plan-check-result.schema.json and reuse-event.schema.json (the latter shared with WP-0019's reuse telemetry). T02: reuse_surface/plan_check.py + 'reuse-surface plan-check' CLI command. Deterministic token-Jaccard matching against registry/indexes/federated.yaml (reuses overlaps.py's TOKEN_RE rather than a second scoring method), with reuse/extend/new verdicts, markdown and --format json output, staleness warning, and --record-outcome JSONL telemetry. T04: reuse_surface/statehub_bridge.py bridges plan-check 'new' verdicts to State Hub capability requests (--file-request) and surfaces open requests with no matching capability (report gaps --check-capability-requests, opt-in to stay offline-safe). Verified against the live local State Hub API; status field (not catalog_entry_id presence) is the correct open/closed signal, and the list endpoint needs a longer timeout than the health check (~7s observed with 5 rows). T06: docs (tools/README.md, RegistryFederation.md, SCOPE.md, IntentScopeGapAnalysis.md priority 29) and an informational CI smoke step. T03 (LLM rerank) not started -- llm-connect isn't running on this workstation. T05 (ecosystem rollout) remains blocked: WP-0017 has drafted entries for all 61 repos but they're still local-only pending its own T05 push/publish pass, so the federated index isn't yet worth rolling out plan-check as ecosystem convention. 16 new tests, all mocked -- no network calls in the default test run. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
55 lines
1.6 KiB
JSON
55 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://reuse-surface.local/schemas/plan-check-result.schema.json",
|
|
"title": "PlanCheckResult",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["query", "verdict", "top_score", "matches"],
|
|
"properties": {
|
|
"query": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["source", "text"],
|
|
"properties": {
|
|
"source": {"type": "string", "enum": ["workplan", "intent"]},
|
|
"text": {"type": "string", "minLength": 1},
|
|
"workplan_id": {"type": ["string", "null"]},
|
|
"workplan_path": {"type": ["string", "null"]}
|
|
}
|
|
},
|
|
"verdict": {
|
|
"type": "string",
|
|
"enum": ["reuse", "extend", "new"]
|
|
},
|
|
"top_score": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 1
|
|
},
|
|
"matches": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["id", "score", "kind"],
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^capability\\.[a-z0-9]+(\\.[a-z0-9-]+)+$"
|
|
},
|
|
"score": {"type": "number", "minimum": 0, "maximum": 1},
|
|
"vector": {"type": ["string", "null"]},
|
|
"owner": {"type": ["string", "null"]},
|
|
"summary": {"type": ["string", "null"]},
|
|
"kind": {
|
|
"type": "string",
|
|
"enum": ["deterministic", "llm", "related"]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"federated_index_updated": {"type": ["string", "null"]},
|
|
"federated_index_stale_warning": {"type": ["string", "null"]}
|
|
}
|
|
}
|