Series COCOMSS Deck Log

~4 min read

COCOMSS Confirms Its Recommendation Engine Failed and Turns to 2027 Taxation

While the test count grew from 260 to 1,017 over two months, the verification that mattered most measured the service's own recommendation engine against outside data. Aggressive profile −99.1% vs BTC +75.5%. The falsification stands, and the direction turns from 'what to buy' toward the 2027 taxation deadline.

UnderwayVerificationDataTax

Log

Jul 31 – Aug 11. Added KRWC, a KRW-collateralized stablecoin. The peg is defined not as "trust us" but as the equality of four numbers. Total issuance == reserve balance == audit-ledger recomputation == on-chain totalSupply. The exchange core's double-entry ledger and custody state machine were reused as they are. The screen carries a [break it by 1 KRW] button, because a verification that cannot fail proves nothing. Tests grew from 260 to 577.

August. Ran seven inspections and set up the data gates. Round-by-round inspections cleared defects like an unauthenticated GET that DROPped a table and a quiz returning the correct answer even on wrong submissions. Along the way the codebase's seven rules were written down ("a policy written in config is only a policy when code enforces it," among others). On the data side, a source registry and gates G1–G7 were set up. MVRV was admitted after cross-checking two free vendors (mean absolute difference 0.87%). SOPR was rejected as unverifiable with a single source. The Fear & Greed index was rejected for undisclosed methodology. OI history, which nobody provides, started accumulating in-house. The first run backfilled 25 symbols × 200 days.

Aug 24. Daily collection had been stopped for seven days. MySQL cannot index a TEXT column uniquely, so the ingestion guard halted loading. The guard worked as designed. The problem was that this fact reached no one for seven days. The tests run on SQLite and could never catch the constraint. The follow-up alert judges exactly one thing, "is the data still stale after a collection run." While wiring it, the compose environment-variable omission happened for the third time. The comment directly above that line recorded the previous two. The alert's first production send then failed because Discord rejects urllib's default User-Agent with a 403. Mocked tests never surface this kind of failure.

Sep 4. The design system landed, and so did a user report. Grade-based colors (a grade gap of 50 = AA), a chart palette tuned by searching 80,000 grade placements to maximize dichromat ΔE, a hardcoded-color lint, and a light theme went in. Then light mode shipped broken and a user said so. The hero title rendered at 1.33:1. Every token-contrast check had passed. Those checks verified the palette met the bar, not that the screens used the palette. A contrast E2E now measures the rendered DOM across 26 routes × both themes. 82 violations went to zero.

Sep 5. The falsification, the central event of these two months. The recommendation engine's own selection and weighting path was imported as-is and measured out-of-sample on all 287 Upbit KRW listings over three years with 33 rebalances. The result was aggressive profile −99.1% vs BTC buy-and-hold +75.5%. With the same coins selected, the optimized weights did worse than equal weighting. They also lost to their own fallback, inverse volatility. The cause is one line, mu = returns.mean() * 365. Covariance got shrinkage while μ, whose error is far larger, went untouched. The on-screen "annualized expected return" was showing +998.64% live for the aggressive profile. Its rank correlation to realized returns was ρ=−0.09, meaning no predictive power. In response, the metric was removed, not damped. It was replaced by a non-annualized window return with three regression tests against its resurrection. Weighting switched to inverse volatility. It was the winner across all five profiles in a pre-switch bake-off. A frozen-fixture walk-forward regression gate (8 seconds locally) now runs in every CI. A regression where the code "works correctly" while losing money is invisible to unit tests.

What the market asks for is elsewhere. The top 5 symbols carry 48.1% of trading volume and 3.4% of coins beat BTC over a one-year hold. Picking the top decile perfectly still returns −50.6% and the median per-coin MDD is −93.2%. A product answering "what should I buy" has a low ceiling because of population distribution rather than algorithm quality. One demand carries certainty instead. Crypto taxation from 2027-01-01. The hash chains, audit ledger, and source gates built for KRWC are exactly what that requires. Along the way, tax.py turned out to disagree with the law. The enforcement decree's Article 88① prescribes the overall-average method and the code used FIFO. It overstated tax in rising markets.

Sep 5 – Sep 9. The first work in the new direction was P0, the acquisition-cost baseline snapshot. It seals observations (raw responses, request times) rather than just numbers in a keccak chain. Two collection paths, live and daily, remove the single point of failure. Rehearsal measurements came to 482 symbols = 5 requests, 1.0 second. The rationale got stronger through a correction. "Gone forever once midnight passes" was an exaggeration. What actually disappears is the history of delisted coins (KRW-LUNA → 404). The coins whose acquisition costs most need proving are precisely the ones that will be delisted. Alongside this, a PWA and a Chrome side-panel drawdown prototype (#56–#58) were built. The PWA's service worker never touches /api/* at all, because offline caching in this service means showing stale prices. The side panel recommends nothing, reads no pages, and sees only the address bar. That promise is kept by a test that fails if the permission list ever grows, not by prose.

Judgment

Key point

Two months took pytest from 260 to 1,017, but the most valuable verification lived outside those 1,017. Self-tests measure "does the code keep the promises it set for itself." Outside data measures "are those promises true in the market." When outside data answered no, the right move was changing the product's question instead of tuning a metric. A falsified selector does not keep being sold. What this service has genuinely built well is sealing, reconciliation, and source verification. The direction turns toward the place where exactly that is needed.

The discipline running through the two months is the repeated extension of rule ⑤. A policy is only a policy when code enforces it. Environment wiring is enforced by an AST-scan test. CSP coverage is checked by a sitemap-inclusion test. Screen contrast is measured on the rendered DOM. Performance regressions are blocked by the walk-forward gate. Numbers in documents are recomputed from frozen fixtures and compared. Comments and docs failed to prevent the compose omission three times over, and only a test did.

Charted Ahead

  • Snapshot rehearsals on Nov 30 and Dec 15, then the real run at midnight on Dec 31. A rehearsal measures whether midnight can be hit rather than whether the code runs
  • Pin down the definition of a "price-publishing virtual asset service provider" through an inquiry to the NTS 126 line. Nothing gets built on a guess
  • The side panel stays off the store and gets a few days of real use. One question to answer: "left open, does it actually get looked at?"

Related

Portfolio'COCOMSS' — Crypto AI Portfolio AdvisorOperationsCOCOMSS — A crypto AI portfolio advisor that ran learn → understand → verify → decide·practice, down to hand-built exchange-core internalsJournalBuilding an Order Book and Ledger Inside COCOMSSJournalFour Projects Into One COCOMSS