Skip to content

feat(u4): document word stack routing - #56

Closed
brenorb wants to merge 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/u4-stack-routing-boundary
Closed

brenorb wants to merge 1 commit into
solving-bitcoin:mainfrom
brenorb:feat/u4-stack-routing-boundary

Conversation

@brenorb

@brenorb brenorb commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • document the existing 8-nibble OP_PICK copy and OP_ROLL move adapters
  • add deterministic tests proving source preservation, repositioning, and wrong-depth failure
  • measure the 16-byte / 8-opcode routing boundary and 25-item versus 17-item peaks
  • update the u4 README, arithmetic comparison, and catalog

Validation

  • cargo fmt --all -- --check
  • cargo test --locked arithmetic::u4::stack::tests
  • cargo test --locked --test primitive_metrics
  • python3 tools/kb.py validate
  • git diff --check

The full repository test suite was intentionally not run; validation is scoped to the routing primitive and repository knowledge/metric checks.

Copy link
Copy Markdown
Contributor

Review: changes needed before merge.

Fold this documentation of existing word routing into the shared stack/router package rather than maintaining another independent boundary PR.

Historical local validation (September 11, at this unchanged PR head): python3 tools/kb.py validate passed; 2 selected library tests passed. These are targeted local checks, not a full-suite or complete-spend validation. Results using a stack-limit-disabled execution helper remain research-unlimited.

The new metric markers are only added to the ignored aggregate metric collection; add an active, focused metric check for these documented configurations. Rebase the documentation and catalog on current main, preserving the existing configurations, and rerun only the affected checks.

Reviewed commit: 22733feec0f6be6a1156f346a934d45c6d1b01eb.

@brenorb

brenorb commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

The missing out-of-bounds source-depth regression is now included in #49. Closing this PR as superseded by the consolidated package: #49

@brenorb

brenorb commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #49, which now includes the corrected depth-9 copy/move regression.

@brenorb brenorb closed this Sep 18, 2026
@brenorb
brenorb deleted the feat/u4-stack-routing-boundary branch October 28, 2026 02:57
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