fix #36: Phase 3 — Factory to bone compilation (SQLite registry, bridge, dedup) #243

Merged
Mark merged 1 commit from mesh-seed-36-bone-compilation into master 2026-07-22 17:26:15 +00:00
Owner

Summary

Completes the remaining deliverables for #36 (Phase 3: Factory → Bone Compilation).

Changes

runtime/bone_registry.py (new) — SQLite-backed bone registry with:

  • Version tracking (auto-incrementing per factory_id/skill_type)
  • Active/superseded/deprecated status transitions
  • Fallback logging when bone execution fails
  • adoption_stats() for championship monitoring

runtime/factory_bone_bridge.py (new) — Bridges compiled bones with factory fallback:

  • execute_factory_intent() routes through compiled bone fast-path
  • Falls back to factory when no bone matches or execution fails
  • Returns structured metadata (bone_used, route, fallback_available)

substrate/bone_compiled.py (cleanup) — Removed 623 lines of duplicate auto-generated bone function (bone_monitor_test_factory_monitor_test_intent was registered 7 times with different timestamps). Kept module API and single anchor for auto-append.

Verification

pytest tests/unit/test_bone_router.py tests/integration/test_factory_to_bone.py -v
# 9 passed in 0.13s
## Summary Completes the remaining deliverables for #36 (Phase 3: Factory → Bone Compilation). ### Changes **`runtime/bone_registry.py`** (new) — SQLite-backed bone registry with: - Version tracking (auto-incrementing per factory_id/skill_type) - Active/superseded/deprecated status transitions - Fallback logging when bone execution fails - `adoption_stats()` for championship monitoring **`runtime/factory_bone_bridge.py`** (new) — Bridges compiled bones with factory fallback: - `execute_factory_intent()` routes through compiled bone fast-path - Falls back to factory when no bone matches or execution fails - Returns structured metadata (bone_used, route, fallback_available) **`substrate/bone_compiled.py`** (cleanup) — Removed 623 lines of duplicate auto-generated bone function (`bone_monitor_test_factory_monitor_test_intent` was registered 7 times with different timestamps). Kept module API and single anchor for auto-append. ### Verification ``` pytest tests/unit/test_bone_router.py tests/integration/test_factory_to_bone.py -v # 9 passed in 0.13s ```
fix #36: Phase 3 - Factory to bone compilation (SQLite registry, bridge, dedup)
Some checks failed
CI / Type Check (pull_request) Successful in 35s
CI / Code Quality Checks (pull_request) Successful in 9s
CI / Unit Tests (pull_request) Failing after 32s
CI / Integration Tests (pull_request) Successful in 29s
CI / Security Check (pull_request) Failing after 1m35s
CI / Smoke Tests (pull_request) Failing after 28s
CI / Lint and Format (pull_request) Failing after 4m7s
CI / Full Test Suite (pull_request) Has been skipped
c7bd223ddb
Implements the remaining pieces of the factory-to-bone compilation
pipeline that were still outstanding after the initial implementation:

3.3 Bone registry:
  - runtime/bone_registry.py: SQLite-backed BoneRegistry with version
    tracking (bone_v1, v2), active/superseded/deprecated status
    transitions, fallback logging, and adoption_stats().

3.4 Factory-to-bone bridge:
  - runtime/factory_bone_bridge.py: execute_factory_intent() routes
    intents through compiled bones with factory fallback when no bone
    matches or bone execution fails.

Cleanup:
  - substrate/bone_compiled.py: removed 623 lines of duplicate
    auto-generated bone function (bone_monitor_test_factory_monitor_test_intent
    was registered 7 times with different timestamps). Kept the module API
    and a single copy anchor for the auto-append pattern.
Mark merged commit 364654c509 into master 2026-07-22 17:26:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/mesh-seed!243
No description provided.