{"record":{"id":"19cfd94a9fe9613d","repo":"HKUDS/Vibe-Trading","slug":"netdebtbridgeresult-equity-value-self-equity-valu","errorCode":null,"errorMessage":"NetDebtBridgeResult.equity_value={self.equity_value!r} does not match the bridge total {expected_equity!r}","messagePattern":"NetDebtBridgeResult\\.equity_value=(.+?) does not match the bridge total (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"agent/src/quantlib/valuation/dcf.py","lineNumber":978,"sourceCode":"    def __post_init__(self) -> None:\n        \"\"\"Re-check the bridge and per-share arithmetic.\n\n        Raises:\n            ValueError: If ``equity_value`` or ``value_per_share`` do not\n                match their formulas.\n        \"\"\"\n        expected_equity = (\n            self.enterprise_value\n            - self.total_debt\n            + self.cash_and_equivalents\n            - self.minority_interest\n            - self.preferred_equity\n            + self.associate_investments\n        )\n        if not math.isclose(\n            self.equity_value, expected_equity, rel_tol=_RECONCILIATION_TOLERANCE, abs_tol=1e-6\n        ):\n            raise ValueError(\n                f\"NetDebtBridgeResult.equity_value={self.equity_value!r} does not \"\n                f\"match the bridge total {expected_equity!r}\"\n            )\n        expected_per_share = self.equity_value / self.diluted_shares\n        if not math.isclose(\n            self.value_per_share,\n            expected_per_share,\n            rel_tol=_RECONCILIATION_TOLERANCE,\n            abs_tol=1e-9,\n        ):\n            raise ValueError(\n                f\"NetDebtBridgeResult.value_per_share={self.value_per_share!r} \"\n                f\"does not match equity_value / diluted_shares = {expected_per_share!r}\"\n            )\n\n\ndef equity_bridge(\n    *,","sourceCodeStart":960,"sourceCodeEnd":996,"githubUrl":"https://github.com/HKUDS/Vibe-Trading/blob/80ffdda44c5c4db0dd84d70e051cca591cea67df/agent/src/quantlib/valuation/dcf.py#L960-L996","documentation":"Error \"NetDebtBridgeResult.equity_value={self.equity_value!r} does not match the bridge total {expected_equity!r}\" thrown in HKUDS/Vibe-Trading.","triggerScenarios":"Thrown at agent/src/quantlib/valuation/dcf.py:978 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"80ffdda44c5c4db0dd84d70e051cca591cea67df","analyzedAt":"2026-08-28T12:46:38.989Z","schemaVersion":2},"datasetVersion":"2026-08-28T16:17:29.566Z"}