HKUDS/Vibe-Trading · error · ValueError

NetDebtBridgeResult.equity_value={self.equity_value!r} does

Error message

NetDebtBridgeResult.equity_value={self.equity_value!r} does not match the bridge total {expected_equity!r}

What it means

Error "NetDebtBridgeResult.equity_value={self.equity_value!r} does not match the bridge total {expected_equity!r}" thrown in HKUDS/Vibe-Trading.

Source

Thrown at agent/src/quantlib/valuation/dcf.py:978

    def __post_init__(self) -> None:
        """Re-check the bridge and per-share arithmetic.

        Raises:
            ValueError: If ``equity_value`` or ``value_per_share`` do not
                match their formulas.
        """
        expected_equity = (
            self.enterprise_value
            - self.total_debt
            + self.cash_and_equivalents
            - self.minority_interest
            - self.preferred_equity
            + self.associate_investments
        )
        if not math.isclose(
            self.equity_value, expected_equity, rel_tol=_RECONCILIATION_TOLERANCE, abs_tol=1e-6
        ):
            raise ValueError(
                f"NetDebtBridgeResult.equity_value={self.equity_value!r} does not "
                f"match the bridge total {expected_equity!r}"
            )
        expected_per_share = self.equity_value / self.diluted_shares
        if not math.isclose(
            self.value_per_share,
            expected_per_share,
            rel_tol=_RECONCILIATION_TOLERANCE,
            abs_tol=1e-9,
        ):
            raise ValueError(
                f"NetDebtBridgeResult.value_per_share={self.value_per_share!r} "
                f"does not match equity_value / diluted_shares = {expected_per_share!r}"
            )


def equity_bridge(
    *,

View on GitHub (pinned to 80ffdda44c)

When it happens

Trigger: Thrown at agent/src/quantlib/valuation/dcf.py:978 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of HKUDS/Vibe-Trading@80ffdda44c (2026-08-28). Data as JSON: /api/errors/19cfd94a9fe9613d. Report an issue: GitHub.