Implement BDEF v1.1 grading: scoring core, per-deck pipeline, ledger, dashboard, StartOS layer
- Deterministic scoring.py (quant 60 / qual 40 / flags -15, profitability heaviest) - Per-company JSON ledger with forecast-target chaining deck N-1 -> N - Single-shot sandbox agent with guided-JSON fallback ladder (no tool loop) - Portfolio dashboard with sparklines, KPI hit rates, BDEF category bars - 48 unit tests green; endpoints smoke-tested; npm check+build green Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
1dde915540
commit
b1d7aed9f4
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "boardroom_grades",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["schema_version", "grader", "categories", "red_flags", "overall_comment"],
|
||||
"properties": {
|
||||
"schema_version": {"type": "integer"},
|
||||
"grader": {"type": "string"},
|
||||
"categories": {
|
||||
"type": "array",
|
||||
"minItems": 8,
|
||||
"maxItems": 8,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "score", "evidence", "rationale"],
|
||||
"properties": {
|
||||
"id": {"type": "string", "enum": ["A", "B", "C", "D", "E", "F", "G", "H"]},
|
||||
"score": {"type": "integer", "minimum": 1, "maximum": 5},
|
||||
"evidence": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["quote", "location"],
|
||||
"properties": {
|
||||
"quote": {"type": "string", "description": "Verbatim text from the deck"},
|
||||
"location": {"type": "string", "description": "e.g. 'slide 3'"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rationale": {"type": "string"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"red_flags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["code", "description", "severity"],
|
||||
"properties": {
|
||||
"code": {"type": "string", "pattern": "^[a-z0-9_]+$"},
|
||||
"description": {"type": "string"},
|
||||
"severity": {"type": "integer", "minimum": 1, "maximum": 5},
|
||||
"evidence": {"type": "string", "default": ""}
|
||||
}
|
||||
}
|
||||
},
|
||||
"overall_comment": {"type": "string"}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user