Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from cme.bridge import BridgeFramework, Workflow, Statement
from cme.agent import MeshAgent, AgentCapability
from cme.orchestrator import EnterpriseOrchestrator
from cme.chp import CHPOrchestrator, DecisionCase, Dossier
from chp import CHPOrchestrator, DecisionCase, Dossier
from cme.cfo_os import (
BoardBrief,
CFOOperatingSystem,
Expand Down
2 changes: 1 addition & 1 deletion src/cme/cfo_os/artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from typing import Any, Dict, List

from cme.agent import TurnResult
from cme.chp.models import DecisionCase, SessionStatus
from chp.models import DecisionCase, SessionStatus
from cme.cfo_os.briefs import BoardBrief, ForecastBrief, InvestmentBrief


Expand Down
2 changes: 1 addition & 1 deletion src/cme/cfo_os/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from typing import Iterable, List

from cme.agent import TurnResult
from cme.chp.models import DecisionCase, FoundationAttack, FoundationDisclosure
from chp.models import DecisionCase, FoundationAttack, FoundationDisclosure
from cme.protocol import ExpansionStep, GroundingCheck


Expand Down
2 changes: 1 addition & 1 deletion src/cme/cfo_os/dossier_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from datetime import datetime, timezone
from typing import Tuple

from cme.chp.models import DecisionCase, Dossier, FoundationAttack, FoundationDisclosure
from chp.models import DecisionCase, Dossier, FoundationAttack, FoundationDisclosure
from cme.cfo_os.briefs import (
BoardBrief,
CFOBrief,
Expand Down
31 changes: 20 additions & 11 deletions src/cme/cfo_os/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
from cme.agent import MeshAgent, TurnResult
from cme.audit import AuditLedger
from cme.bridge import EntryPoint
from cme.chp.foundation import foundation_verdict, validate_foundation_pair
from cme.chp.gates import evaluate_r0_gate
from cme.chp.models import (
from chp.foundation import foundation_verdict, validate_foundation_pair
from chp.gates import evaluate_r0_gate
from chp.models import (
DecisionCase,
FoundationAttack,
FoundationDisclosure,
Expand All @@ -37,11 +37,11 @@
ValidationResult,
Verdict,
)
from cme.chp.orchestrator import CHPOrchestrator
from cme.chp.parity import assess_model_parity
from cme.chp.payloads import build_payload_envelope
from cme.chp.registry import DecisionRegistry
from cme.chp.validators import apply_third_party_validation
from chp.orchestrator import CHPOrchestrator
from chp.parity import assess_model_parity
from chp.payloads import build_payload_envelope
from chp.registry import DecisionRegistry
from chp.validators import apply_third_party_validation
from cme.context import ContextEngine, Entity, Task
from cme.hardening import ChpDecisionGate, ChpRejection
from cme.orchestrator import EnterpriseOrchestrator, OrchestrationReport
Expand Down Expand Up @@ -204,6 +204,15 @@ def run(self, brief: CFOBrief, *, confirmed_by: Optional[str] = None) -> CFOSess
if confirmed_by:
self.gate.lock(decision, confirmed_by)

# The preliminary session above scores a builder heuristic before any agent
# has run, so under the spec §5.3 domain floors (100 for capital_allocation
# and board_decision) it can only REFRAME. The authoritative verdict is the
# hardening gate's, assessed on the produced artifact (and it already
# refused the session above if that fell short of the floor). Report that
# outcome on the case rather than the stale preliminary one.
chp_report.case.status = decision.case.status
chp_report.case.foundation_score = decision.case.foundation_score

audit = build_audit_trail(
turns=orchestration.turns,
case=chp_report.case,
Expand Down Expand Up @@ -251,9 +260,9 @@ def run(self, brief: CFOBrief, *, confirmed_by: Optional[str] = None) -> CFOSess
case=chp_report.case,
foundation_disclosure=disclosure,
foundation_attack=attack,
r0_verdict=chp_report.r0_verdict,
foundation_verdict=chp_report.foundation_verdict,
initial_packet=chp_report.initial_packet,
r0_verdict=decision.report.r0_verdict,
foundation_verdict=decision.report.foundation_verdict,
initial_packet=decision.report.initial_packet,
orchestration=orchestration,
artifact=artifact,
audit=audit,
Expand Down
63 changes: 0 additions & 63 deletions src/cme/chp/__init__.py

This file was deleted.

10 changes: 0 additions & 10 deletions src/cme/chp/devil.py

This file was deleted.

8 changes: 0 additions & 8 deletions src/cme/chp/dossier.py

This file was deleted.

18 changes: 0 additions & 18 deletions src/cme/chp/foundation.py

This file was deleted.

32 changes: 0 additions & 32 deletions src/cme/chp/gates.py

This file was deleted.

Loading
Loading