feat(delphi): prodclone extractor — feature-filtered dataset export (Spec B)#2646
Draft
jucor wants to merge 1 commit into
Draft
feat(delphi): prodclone extractor — feature-filtered dataset export (Spec B)#2646jucor wants to merge 1 commit into
jucor wants to merge 1 commit into
Conversation
…Spec B) Sonnet-agent build from SPEC_B: scripts/prodclone_extract.py (click CLI: survey + extract) over polismath/replay/prodclone.py (pure SQL builders, feature classifiers, CSV writers, slug minting, path-safety guard). Privacy invariants (reviewed): output path resolved + asserted under real_data/.local/ (refuses anything else); dir prefix is a salted sha256 of the zid, never a real report id; comment-body column present but ALWAYS empty (text redacted — the math pipeline never reads it); slug→zid map only in .local/prodclone_map.json (merge-update). Export mirrors the public format byte-layout (votes: full revote history ORDER BY created, ctid — no dedup; comments: agrees/disagrees counted over all vote rows like report.ts). Feature classes: modheavy / revote / banned (participants.mod=-1 voters) / meta / zerovote / smallmix / midmix (unremarkable volume coverage). Tests: 52 passed — pure-function units (no DB) + one integration test on the repo's require_polis_postgres throwaway-Postgres fixture, round-tripping survey→extract→load_export_votes. TDD (RED commit first in agent clone). commit-id:9f45b733
This was referenced Jul 22, 2026
Draft
Draft
docs(delphi): R1-parity goal docs, journal (2026-07-18 → 07-22 s3), quirks + divergence ledger
#2626
Draft
jucor
marked this pull request as draft
July 22, 2026 00:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sonnet-agent build from SPEC_B: scripts/prodclone_extract.py (click CLI:
survey + extract) over polismath/replay/prodclone.py (pure SQL builders,
feature classifiers, CSV writers, slug minting, path-safety guard).
Privacy invariants (reviewed): output path resolved + asserted under
real_data/.local/ (refuses anything else); dir prefix is a salted sha256 of
the zid, never a real report id; comment-body column present but ALWAYS
empty (text redacted — the math pipeline never reads it); slug→zid map only
in .local/prodclone_map.json (merge-update). Export mirrors the public
format byte-layout (votes: full revote history ORDER BY created, ctid — no
dedup; comments: agrees/disagrees counted over all vote rows like
report.ts).
Feature classes: modheavy / revote / banned (participants.mod=-1 voters) /
meta / zerovote / smallmix / midmix (unremarkable volume coverage).
Tests: 52 passed — pure-function units (no DB) + one integration test on
the repo's require_polis_postgres throwaway-Postgres fixture, round-tripping
survey→extract→load_export_votes. TDD (RED commit first in agent clone).
commit-id:9f45b733
Stack: