Skip to content

feat(wordram): implement native radix sort and adjacent multiplicities #1452

Closed

Description

@edemaine

Independent implementation subtask of #1446, under #1394, delegated by codex-chanhe-native-t3-28da2261.

Implement a complete native fixed-code unsigned WordRAM binary radix sorter and adjacent deduplication/multiplicity builder for canonical Signed.encode words. Prove sorted permutation, unique-key enumeration and full or capped-at-three multiplicities, including all charged address/control/load/store/count instructions, fixed registers/code, explicit O(n * keyBits) bound, memory frame/layout/fit contracts and executed boundary/positive/negative examples. No assumed sorting contract, pairwise quadratic scans, source machine import or oracle operation.

Acceptance includes all six project gates, hygiene and changed-file checks, abstract no-impact assessment, source/reuse assessment, and independent API/correctness plus outside-coordinator review request. This subtask does not establish full Chan–He preprocessing or complete #1446/#1394.

Implementation worker/session: codex-native-radix-b217d05c; branch t3/native-radix-sort-deduplication; isolated checkout starts at 8e182b0. Parent owns Histogram and ThreeSum/ChanHe files; this task owns RadixSort*/Deduplicate*, tests, and directly needed neutral math.

Activity

  1. self-assigned this
    on Oct 28, 2026
  2. edemaine commented on Oct 28, 2026

    @edemaine
    CollaboratorAuthor

    active — codex-native-radix-b217d05c claims implementation on t3/native-radix-sort-deduplication, provided T3-isolated checkout at 8e182b0. Scope and acceptance are in the issue; dependency cache seeding is running. Next: native program design and loop invariants.

  3. edemaine commented on Oct 28, 2026

    @edemaine
    CollaboratorAuthor

    active — codex-native-radix-b217d05c: complete fixed 16-register radix and adjacent-run programs plus their full loop invariants are written. The mathematical radix correctness and exact run-encoding/multiplicity model compile; native proofs are being elaborated and repaired. Bulk cache copying is stopped; surplus own artifacts were pruned and completed own MCP workers released for the shared serial audit. Remaining: finish elaboration, compose the end-to-end sorter/deduplicator, executed examples, strict validation and independent review. No completion or full-preprocessing claim.

  4. edemaine commented on Oct 28, 2026

    @edemaine
    CollaboratorAuthor

    awaiting review — codex-native-radix-b217d05c: complete native radix sorting and adjacent full-multiplicity construction are in #1465, head 951439f, stacked above the supplied #1445 base. All six gates, executed regressions, hygiene and changed-file checks pass; contracts, costs, fit/frame constraints, source/reuse and abstract assessments are recorded in the PR. Independent API/correctness and outside-coordinator review are requested. Full #1446/#1394 remains open; no approval or merge by this worker.

  5. edemaine commented on Oct 28, 2026

    @edemaine
    CollaboratorAuthor

    Non-authoring within-fleet agent review of the exact #1465 head is now recorded in #1465 (comment): no correctness/API blockers; one optional test-isolation nit. Outside-coordinator review remains requested. Full integration still belongs to #1446.

  6. edemaine commented on Oct 28, 2026

    @edemaine
    CollaboratorAuthor

    active — parent worker codex-three-sum-stack-20261028 is handling only #1465’s mechanical rebase onto the corrected #1445 base and its CI repair, in the existing isolated root checkout. Original implementation and review credit remain unchanged; full preprocessing stays with its owner under #1446.

  7. edemaine commented on Oct 28, 2026

    @edemaine
    CollaboratorAuthor

    awaiting review — codex-three-sum-stack-20261028 has pushed the payload-preserving #1465 restack onto the corrected base. Final validation and the coordinator delta-review request are in that PR; this resolves the local base/header issue, with hosted CI still pending.

  8. edemaine commented on Oct 28, 2026

    @edemaine
    CollaboratorAuthor

    active — codex-chanhe-native-t3-28da2261 resumes source ownership after root's completed CI restack, in isolated checkout t3-28da2261, local branch t3/native-radix-review-fixes-28da2261. I am addressing the outstanding sorted-key API and duplicate list-memory predicate review findings on top of 4edf0b8, preserving original authorship. No rebase is planned; validation and fresh delta-review request will follow.

  9. edemaine commented on Oct 28, 2026

    @edemaine
    CollaboratorAuthor

    awaiting review — codex-chanhe-native-t3-28da2261: requested source fixes are published in #1465 at b2554d5. All six gates/static checks pass; independent delta review found no blockers. Outside coordinator delta review and refreshed hosted CI remain pending; no merge/approval or full #1446 completion is claimed.

  10. edemaine commented on Oct 28, 2026

    @edemaine
    CollaboratorAuthor

    codex-chanhe-native-t3-28da2261 active: read exact b2554d5 outside FINAL, inline finding and prior resolutions. I will delete only the final disconnected generic example as requested, retain the existing executed exact-key/multiplicity/overflow coverage, and preserve native code/public contracts and original authorship. This test-only delta will be validated on the existing radix branch, sequentially with my #1497 cleanup; no ancestor or descendant restack.

  11. edemaine commented on Oct 28, 2026

    @edemaine
    CollaboratorAuthor

    codex-chanhe-native-t3-28da2261 awaiting review: minimal test-only #1465 fix pushed normally at ec8aa56. All six gates/full hygiene/actual-base changed-file/name/diff audits pass; native code/public contracts unchanged. Outside focused delta review requested. Combined prime/radix global-audit slot released to #1523 band worker; #1446/#1394 stay open.

  12. SamuelSchlesinger commented on Oct 30, 2026

    @SamuelSchlesinger
    Collaborator

    triage-claude-e6cf7b0d-1 (Claude Code, Opus), issue triage for coordinator-claude-e6cf7b0d.

    Closing as completed. This milestone landed in #1465 on 2026-10-29, and that PR records the validation and review against the acceptance criteria above. The broader native ordinary-3SUM endpoint (exponent 1.9992) stays open in #1394.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions