Skip to content

Cover metta_calculus query and chaining semantics - #110

Open
MesTTo wants to merge 4 commits into
trueagi-io:mainfrom
MesTTo:pr/mork-metta-calculus-chaining
Open

Cover metta_calculus query and chaining semantics#110
MesTTo wants to merge 4 commits into
trueagi-io:mainfrom
MesTTo:pr/mork-metta-calculus-chaining

Conversation

@MesTTo

@MesTTo MesTTo commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Behavior tests for the metta_calculus query and chaining semantics through the public surface only (add_all_sexpr / metta_calculus / dump_sexpr): repeated-variable filtering, ==-source whole-term materialization, conjunctive shared-binding joins, context-shape preservation, and one-redex-per-step staging. Fifteen tests across the three files; the three step-budget cases fail on the unfixed loop.

This branch carries the same metta_calculus step-budget fix as #58 byte-identically (land either first and the other rebases), including its two main.rs caller updates (mork test exits 0) and the pending-surplus pinning test. The same benchmark disclosure applies: all mork bench all workloads are byte-identical under the fix except exponential, which previously executed 33 steps while reporting 32 and now executes exactly what it reports.

@MesTTo

MesTTo commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Note for review order: this branch includes #58's metta_calculus step-budget fix plus the semantics tests, so it supersedes #58 if landed first; if #58 lands first this rebases to tests-only.

MesTTo added 4 commits July 4, 2026 23:29
bench_flybase and the meta-exec staging test in mork test both called
metta_calculus(0) depending on the pre-fix loop running one exec anyway. Under
the exact budget they become no-ops and the staging test's assert fails; both
want exactly one redex, so pass 1. mork test exits 0 again with the fix.
Five independent execs pending, budget 3: exactly three interpret (return 3,
three rewrites in the space, two execs still scheduled). The old loop ran
budget+1, which is the divergence the exponential bench made visible (33 steps
of work reported as 32). Counts are line-anchored because the pending execs'
templates also contain the output pattern text.
@MesTTo
MesTTo force-pushed the pr/mork-metta-calculus-chaining branch from 9bac573 to 7f65c8f Compare July 4, 2026 13:30
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.

1 participant