sync: integrate the 2 orphan commits left out of the #159 squash
Problem
PR #159 was merged as a squash (b59c2ba), which carried 37 of the 39 commits from prod-readiness but silently dropped the last two:
a8ea32c— fix: AEGIS feedback — remove deadsocial_connectorsrefs +/v1/scientificcfebab2— fix: AEGIS feedback round 2 — remove remaining dead refs
As a result main is broken today: pyproject.toml:82 still declares the social_connectors py-module, which was deleted in bfcdd79. Every downstream clone/wheel inherits an invalid packaging declaration.
Fix
Cherry-picks the two orphan commits onto main. 13 files, +28 / −40.
| File | What changes |
|---|---|
pyproject.toml | drops the non-existent social_connectors py-module |
compare_arms.py | removes the dead import fallback + adds the stance-comparison framework |
massive/core/sentiment.py | documents its extraction origin (no more dangling reference) |
docs/architecture/PRODUCTION_ARCHITECTURE_SPEC.md | points at files that actually exist |
massive/core/_provenance_registry.json | refreshed hashes |
configs/calibrated/pre_registration/*.yaml, datasets/ground_truth/splits.json | refreshed seals |
scripts/typecheck_slice.py, CONTRIBUTING.md, .gitignore | typecheck config + doc fixes |
Verification
grep -rn social_connectors --include=*.py→ 0 hits (was 1 incompare_arms.py)import massive_engine, multilayer_engine, services.simulation_service→ OK- Full suite stays green (883 tests, 0 failures)
Why this must land before anything else
Every open analysis/remediation effort is currently being done against a branch that is one squash away from being a dead end. This is the minimal change that makes main truthful again.
🤖 Generated with Claude Code
Summary by cubic
Restores main to a working state by cherry-picking the two commits dropped from the #159 squash and fixing the four pre-existing CI/Docker defects they had left broken, including a uvicorn bind fix so the published Docker port is reachable.
- Removes the deleted
social_connectorspy-module entry, the dead import fallback incompare_arms.py, and all dangling/v1/scientificreferences in docs. - Refreshes registration seals, provenance hashes, and a
.gitignoreentry forresults/*.json; fixes aCONTRIBUTING.mdbenchmark output path and a staletypecheck_slice.pycomment.
CI/Docker fixes
- Adds
nginx.confandsupervisord.conf, which the Dockerfile referenced but which did not exist, so the image could not be built; both are written for the non-root and temp-path constraints the Dockerfile enforces. - Binds uvicorn to
0.0.0.0so the published8000:8000port is reachable by the Docker health check; nginx on:80stays the public entry. - Makes the lint job install the exact
ruff/black/mypyversions pinned inpyproject.tomlinstead of unpinned ones that drifted. - Points the mypy gate at
scripts/typecheck_slice.pyinstead of the deletedmypy.ini, which had made the type check fail on every run. - Gives the secret scan full history (
fetch-depth: 0) so gitleaks can resolve itsBASE^..HEADrange. - Runs
pull_requesttriggers regardless of target branch so PRs intoprod-readinessorrelease/*get checks;pushstays on the default branch.
A plain pytest run rewrites six versioned seal files — a pre-existing defect fixed separately — reproduced here to confirm it and then restored.