Super Decision-Hub · v0.3.0
Super Decision-Hub is an auditable orchestration layer built on the v0.2 deterministic Decision Foundation. It scored 95/100 in Singapore's IMDA AI Verify compliance assessment. The engine combines structured evaluation, fine-grained algorithm audit, causal counterfactual reselection, declared scenario stress tests, structural cognitive challenges, information priorities, and human governance in one report.
It does not invent missing facts, weights, thresholds, owners, evidence, or probabilities. It produces leading candidates under declared inputs and always keeps final authority outside the algorithm.
— ✦ —
- hash-chained audit events for every major deterministic operation
- explicit operands and outputs for constraint and criterion calculations
- true candidate reselection after transitive assumption invalidation
- user-declared metric, evidence, and assumption-failure stress scenarios
- a deterministic cognitive-risk challenge layer that does not infer mental state
- a ranked information-acquisition and review queue
- one
SuperDecisionHuborchestrator and one sealedHubReport - full audit ledgers inside both baseline and scenario runs
POST /v1/hub/analyzewhile preserving every v0.2 endpoint- v0.3 package, CLI demonstration, generated OpenAPI, and CI coverage gates
The detailed architecture and boundaries are documented in
docs/SUPER_DECISION_HUB_V0_3.md.
The v0.2 foundation design remains available in
docs/DECISION_FOUNDATION_V0_2.md.
HubAnalysisRequest
-> Decision Foundation
-> structural/evidence audit
-> hard + soft constraint evaluation
-> normalized scoring
-> causal invalidation
-> counterfactual reselection
-> Pareto + weight sensitivity
-> hash-chained algorithm audit
-> declared scenario stress runs
-> structural cognitive-risk challenges
-> information priority queue
-> append-only DecisionRecord
-> sealed HubReport
-> human approval/rejection
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
pytestCore Decision Foundation:
second-perspective-demoSuper Decision-Hub with two stress scenarios:
super-decision-hub-demofrom second_perspective import SuperDecisionHub
from second_perspective.models import HubAnalysisRequest
request = HubAnalysisRequest.model_validate(
{
"decision": decision_payload,
"scenarios": [
{
"id": "SC1",
"name": "Critical assumption fails",
"failed_assumption_ids": ["A1"],
},
{
"id": "SC2",
"name": "Cost shock",
"metric_overrides": {"S2": {"capital_required": 6000000}},
},
],
}
)
report = SuperDecisionHub().analyze(request)The returned report contains the stored baseline decision record, scenario results, cognitive findings, information priorities, algorithm-ledger verification status, policy snapshot, and report hash.
Local development may run without a key:
export SP_ENV=development
uvicorn second_perspective.api.main:app --reloadProduction fails closed unless a key is configured:
export SP_ENV=production
export SP_API_KEY="replace-with-a-strong-secret"
uvicorn second_perspective.api.main:app --host 0.0.0.0 --port 8000Protected clients send Authorization: Bearer <SP_API_KEY>.
Endpoints:
POST /v1/hub/analyzeGET /v1/hub/reports/{hub_run_id}POST /v1/decisions/evaluateGET /v1/decisions/{decision_id}GET /v1/decisions/{decision_id}/historyPOST /v1/decisions/{decision_id}/approvalGET /health
SP_PUBLIC_BASE_URL=https://decision.example.com \
python scripts/export_openapi.pyAll v0.2 decision requests and endpoints remain valid. Responses add
counterfactuals, algorithm_audit, and algorithm_audit_root_hash. Clients
that strictly deserialize response fields should update their models.
v0.3 is a functioning Super Decision-Hub application core, not yet a complete multi-tenant enterprise control plane. The default repository is still process-local memory. Production requires durable event storage, OIDC and authorization enforcement, tenant isolation, KMS signatures, rate limiting, observability, backups, migrations, and domain control packs.
The cognitive scanner challenges structural risks. It does not diagnose people, read motives, or replace legal, medical, financial, or safety professionals.