CLAUDE.md rewritten (708 -> ~320 lines): four overlapping release sections collapsed to one, stale v1->v35 schema history dropped (it lives in CHANGELOG), marketplace endpoint internals and verbose process sections moved out or tightened. New focused docs: - docs/RELEASING.md - release process, deploy workflows, CI quirks (RELEASE_TEMPLATE.md folded in as an appendix) - docs/marketplace.md - marketplace ingestion + re-serving internals - docs/README.md - documentation index by audience, linked from README.md and CLAUDE.md Archived under docs/archive/: docs/superpowers/ (52 historical planning artifacts), HACKATHON.md, pd-ps-comments.md, security-audit-2026-04.md, future/NOTIFICATIONS.md. Removed the docs/auto-install.md stub. Fixed dangling links in connectors/jira/README.md and dev_docs/README.md, repointed code/doc references to archived paths.
48 lines
1.7 KiB
Python
48 lines
1.7 KiB
Python
"""JSON schema for LLM structured output from the verification detector.
|
|
|
|
Confidence is intentionally NOT part of this schema. It is derived in code from
|
|
(source_type, detection_type) via services.corporate_memory.confidence — the LLM
|
|
is not trusted to set its own credibility (see docs/archive/pd-ps-comments.md Q3).
|
|
"""
|
|
|
|
VERIFICATION_SCHEMA: dict = {
|
|
"type": "object",
|
|
"properties": {
|
|
"verifications": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"detection_type": {
|
|
"type": "string",
|
|
"enum": ["correction", "confirmation", "unprompted_definition"],
|
|
},
|
|
"title": {"type": "string"},
|
|
"content": {"type": "string"},
|
|
"user_quote": {"type": "string"},
|
|
"domain": {
|
|
"type": "string",
|
|
"enum": [
|
|
"finance",
|
|
"engineering",
|
|
"product",
|
|
"data",
|
|
"operations",
|
|
"infrastructure",
|
|
],
|
|
},
|
|
"entities": {"type": "array", "items": {"type": "string"}},
|
|
},
|
|
"required": [
|
|
"detection_type",
|
|
"title",
|
|
"content",
|
|
"user_quote",
|
|
"domain",
|
|
"entities",
|
|
],
|
|
},
|
|
}
|
|
},
|
|
"required": ["verifications"],
|
|
}
|