WIP: feat: add bounded symbolic expert registry and selection #461

Draft
nsaspy wants to merge 2 commits from codex/symbolic-experts into main
Owner

Runtime invariant

Trusted host code registers expert handlers. Goal and context remain inert data; selection is deterministic, capability checked, and provider free. Invocation bounds work and sanitizes public results and exceptions while preserving cancellation.

Scope

First local expert substrate for #421 and #422. Plan/direct projections, nested lineage, provider metering, and specialist implementations remain separate work.

Verification

At cb438bb4b2: 10/10 focused tests, 1,245/1,245 deterministic tests, 16/16 deterministic benchmark, 15/15 deep experiment, runtime/load/CLI/diff checks, and prolog-verify check passed. No live provider call is required for this provider-free slice.

## Runtime invariant Trusted host code registers expert handlers. Goal and context remain inert data; selection is deterministic, capability checked, and provider free. Invocation bounds work and sanitizes public results and exceptions while preserving cancellation. ## Scope First local expert substrate for #421 and #422. Plan/direct projections, nested lineage, provider metering, and specialist implementations remain separate work. ## Verification At cb438bb4b29cdf69ad26f4b94b62bf2248cabb7c: 10/10 focused tests, 1,245/1,245 deterministic tests, 16/16 deterministic benchmark, 15/15 deep experiment, runtime/load/CLI/diff checks, and prolog-verify check passed. No live provider call is required for this provider-free slice.
fix: bound and sanitize expert handler outcomes
All checks were successful
CI / Deterministic unit and load checks (pull_request) Successful in 1m45s
CI / REAL OpenRouter integration (pull_request) Has been skipped
Clean SWI pack install / Install and load copied pack (pull_request) Successful in 46s
Paid OpenRouter / Pinned paid OpenRouter integration (pull_request) Has been skipped
Nix flake / Flake package and clean runtime load (pull_request) Successful in 5m33s
Tree-sitter FFI / Direct SWI-Prolog Tree-sitter FFI (pull_request) Successful in 6m49s
cb438bb4b2
All checks were successful
CI / Deterministic unit and load checks (pull_request) Successful in 1m45s
CI / REAL OpenRouter integration (pull_request) Has been skipped
Clean SWI pack install / Install and load copied pack (pull_request) Successful in 46s
Paid OpenRouter / Pinned paid OpenRouter integration (pull_request) Has been skipped
Nix flake / Flake package and clean runtime load (pull_request) Successful in 5m33s
Tree-sitter FFI / Direct SWI-Prolog Tree-sitter FFI (pull_request) Successful in 6m49s
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin codex/symbolic-experts:codex/symbolic-experts
git switch codex/symbolic-experts

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff codex/symbolic-experts
git switch codex/symbolic-experts
git rebase main
git switch main
git merge --ff-only codex/symbolic-experts
git switch codex/symbolic-experts
git rebase main
git switch main
git merge --no-ff codex/symbolic-experts
git switch main
git merge --squash codex/symbolic-experts
git switch main
git merge --ff-only codex/symbolic-experts
git switch main
git merge codex/symbolic-experts
git push origin main
Sign in to join this conversation.
No description provided.