Skip to content

feat(forge): forge/run IPC stub (Phase 4 of #1164) - #1183

Merged
joelteply merged 1 commit into
canaryfrom
feat/forge-run-ipc-stub
May 14, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/forge-run-ipc-stub

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

Phase 4 of continuum#1164. ForgeModule + forge/run IPC handler. v1 stub: takes a ForgeRecipe + optional hardware_node, returns a synthesized ForgeArtifact with the recipe lineage frozen + a sha256:stub-<id> alloy_hash marker. No models loaded, no stages executed, no HF publishing — Phase 5+ wires the real foundry executor.

What ships

  • modules/forge.rs — ForgeModule ServiceModule + synthesize_stub_artifact helper
  • modules/mod.rs — pub mod forge
  • ipc/mod.rs — register ForgeModule in the runtime

Tests

6 passing: recipe lineage frozen, distinct artifact id, canonical sha256:stub- hash, hardware_node echo, empty hw_verified when no hw_node, Phase 5+ fields all None on the stub.

Stub semantics

Explicitly does NOT claim to forge anything. Proves IPC reachability + recipe→artifact transformation shape end-to-end. Phase 5 replaces the stub with the real Rust foundry executor.

🤖 Generated with Claude Code

ForgeModule + forge/run IPC handler. v1 stub: takes a ForgeRecipe +
optional hardware_node label, returns a synthesized ForgeArtifact with
the recipe lineage frozen + a sha256:stub-<id> alloy_hash marker.
No models loaded, no stages executed, no HF publishing — Phase 5+
wires the real foundry executor.

Caller persists the returned artifact via standard data/upsert against
the forge_artifacts collection (Phase 3 #1180 wired the entity
registration).

What ships:
- src/workers/continuum-core/src/modules/forge.rs — ForgeModule
  ServiceModule + synthesize_stub_artifact helper.
- modules/mod.rs — pub mod forge.
- ipc/mod.rs — register ForgeModule alongside the existing module bulk.

Tests: 6 covering recipe lineage, distinct artifact id, canonical
sha256:stub- hash format, hardware_node echo, empty hw_verified
when no hw_node, Phase 5+ fields all None on the stub.

Phase 4 stub semantics — this PR explicitly does NOT claim to forge
anything. It proves the IPC reachability + recipe -> artifact
transformation shape end-to-end. Phase 5 replaces the stub with the
real Rust foundry executor.

Card: continuum#NNN.
@joelteply
joelteply merged commit 3f30c29 into canary May 14, 2026
2 checks passed
@joelteply
joelteply deleted the feat/forge-run-ipc-stub branch May 14, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant