Skip to content

Port scripts/lee_monte_carlo_baseline.py (Python, 2 functions) to specs/port/scripts/lee_monte_carlo_baseline.t27 - #7020

Merged
gHashTag merged 2 commits into
masterfrom
queen-5995
Oct 7, 2026
Merged

gHashTag merged 2 commits into
masterfrom
queen-5995

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Closes #5995

Written by a bee on queen-5995 and published by tools/queen/publish.py. The branch itself is the bee's; the second commit is the coordination entry every pull request must add, which a bee has no way to know about.

1 file changed, 135 insertions(+)

🤖 Generated with Claude Code

Trinity Bee and others added 2 commits October 4, 2026 15:31
The port keeps the two functions of the original with their names and
decisions: evaluate_expression (line 29: relative error abs(y - value)
/ value against the 0.001 threshold, 1 on a hit, 0 otherwise) and
search_trinity_basis (line 37: the ten candidate lambdas of the
original list enumerated inline in the original order, hits summed).
The script's plumbing - loading
research/lee-analysis/search_space_count.json, generating the random
targets with numpy, printing, and writing monte_carlo_results.json -
stays in Python and is not ported.

np.sin and np.cos have no .t27 builtins, so the two trig candidates are
carried as Taylor series with range reduction into [-PI, PI]. Four test
blocks assert on the threshold decision (including the strict 0.001
boundary), the hit counting over the ten candidates, abs(), and the
trig series. The generated Zig has no undefined and no
not-yet-implemented markers, so it compiles clean under zig 0.16.

Closes #5995
A pull request must add exactly one docs/now entry and a bee has no way
to know that: its brief names a boundary file and acceptance criteria,
and docs/now/ is neither. The publisher adds it rather than failing the
gate.

Closes #5995

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-06 18:39:15 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 40
PRs with All Checks Green 10
READY 0
FAILING 40
PENDING 0
NO CHECKS YET 0

These columns do not partition: 0 + 40 + 0 + 0 = 40, and there are 50 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=b23641f01baa != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

This was referenced Oct 6, 2026
@gHashTag
gHashTag enabled auto-merge (squash) October 7, 2026 07:24
@gHashTag
gHashTag merged commit 129ee4c into master Oct 7, 2026
27 of 29 checks passed
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.

Port scripts/lee_monte_carlo_baseline.py (Python, 2 functions) to specs/port/scripts/lee_monte_carlo_baseline.t27

2 participants