Repository navigation
feat(forge): forge/run IPC stub (Phase 4 of #1164) - #1183
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 4 of continuum#1164. ForgeModule +
forge/runIPC handler. v1 stub: takes a ForgeRecipe + optional hardware_node, returns a synthesized ForgeArtifact with the recipe lineage frozen + asha256: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_artifacthelpermodules/mod.rs—pub mod forgeipc/mod.rs— register ForgeModule in the runtimeTests
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