Skip to content

Pre-register the offside-capitulation evaluation and hand off its execution - #113

Open
mspinola wants to merge 3 commits into
mainfrom
claude/offside-capitulation-evaluation-b55iv9
Open

Pre-register the offside-capitulation evaluation and hand off its execution#113
mspinola wants to merge 3 commits into
mainfrom
claude/offside-capitulation-evaluation-b55iv9

Conversation

@mspinola

Copy link
Copy Markdown
Owner

Description

"Offside capitulation evaluation": the phrase names a concept the workspace has vocabulary for but no measurement of — crowdmon's offside term (crowding = lopsided / offside / trapped) and the npf/cotmetrics capitulation signal family. This PR pre-registers a first-look event study and hands its execution to a trusted-network session, because this sandbox's network policy blocks cftc.gov and every probed price host (the same block the NPF variance check hit).

  • docs/handoffs/2026-08-23-offside-capitulation-evaluation.md — the frozen design. Offside = adverse ≥1σ 4-week move against a trailing NPF extreme; capitulation = top-decile one-week unwind of the crowded net; outcome = forward σ-scaled returns signed so the washout (claim A) and stampede (claim B) folk readings — both of which cotmetrics itself carries, in FLAG_BULL_CAPITULATION vs CAPITULATION/COMMS_CAPITULATION — predict opposite signs. Controls and the recentred block-bootstrap p inherit the forced-flow verdict's mean-reversion lesson up front. Declared readings: 18; primaries: the two 4-week event readings; pre-committed verdict rules including an "insufficient data" outcome.
  • scripts/offside_capitulation_check.py — the executable form, in the npf_check.py mold: downloads CFTC Legacy zips (same URLs as providers/cftc.py) and stooq daily continuous closes, with a local-CSV fallback and an honest degraded COT-only mode. --selftest runs the full pipeline on synthetic data offline and passes in this sandbox in ~0.5s.
  • .gitignore — excludes the script's download cache.

Results, when the executing session pushes them, land as new dated docs/analysis/ files on this branch; §§1–5 of the handoff and the script's frozen parameters are not to be edited.

Fixes # (no linked issue — task arrived as a branch assignment)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have run tests (e.g. pytest) and they pass locally — the existing suite is untouched by this additive change; the new script's --selftest passes
  • Any dependent changes have been merged and published in downstream modules — n/a, self-contained

Generated by Claude Code

claude added 3 commits August 23, 2026 17:00
Defines offside (adverse >=1-sigma 4-week move against a trailing NPF
extreme) and capitulation (top-decile one-week unwind of the crowded
net) on the 8 Legacy markets of the NPF variance check, and freezes a
two-sided event study - the washout and stampede folk claims disagree
on the sign, so the sign is the question. Controls and the recentred
block-bootstrap p inherit the forced-flow verdict's mean-reversion
lesson from the start. This sandbox's network policy blocks cftc.gov
and every probed price host, so execution is handed to a
trusted-network session per the CLAUDE.md precedent; the script
degrades to COT-only descriptives and reports a blocked run as
blocked, never as a null.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMg9W6WCCNS69zx3cEaCKb
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMg9W6WCCNS69zx3cEaCKb
The author's point: the data already lives in the stores this repo
produces. COT now comes from COTDATA_STORE via cotdata.get_cot and
daily closes from MARKETDATA_STORE via marketdata.get_bars (propadj,
then backadj, logged), with the cftc.gov and stooq downloads demoted
to fallback for store-less environments. Verified against the npf
fixture store: gold loads 1,829 weeks through the real read path.
Section 4 of the handoff is untouched; the amendment is recorded in
section 5, dated and pre-execution.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMg9W6WCCNS69zx3cEaCKb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants