Skip to content

Phase C: default ./flow to Stage-A flowc (FLOW_HOST) - #192

Merged
godofecht merged 3 commits into
mainfrom
feature/flowc-phase-c-host
Aug 5, 2026
Merged

godofecht merged 3 commits into
mainfrom
feature/flowc-phase-c-host

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

  • Soft dual-host cutover: ./flow run|compile defaults to FLOW_HOST=flowc (Stage-A), with python escape hatch and auto fallback.
  • Adds compiler/scripts/ensure_flowc.sh to pick self-hosted drivers (or bootstrap Gen0 via Phase-A roundtrip).
  • CI: after roundtrip.sh, smoke FLOW_HOST=flowc on hello_world + fibonacci. Example/benchmark jobs pin FLOW_HOST=python until Phase D.

Test plan

  • CI flowc-bootstrap green including Phase C host smoke
  • FLOW_HOST=python ./flow run examples/basics/hello_world.flow still works
  • FLOW_HOST=flowc ./flow run examples/basics/hello_world.flow uses compiler/build/stage_a_driver* (no python -m flow emit)
  • ./flow --version prints host mode

Closes toward #152

Made with Cursor

godofecht and others added 3 commits August 5, 2026 14:00
Add FLOW_HOST=flowc|python|auto (default flowc), ensure_flowc.sh driver
resolution, and CI smoke after the self-host roundtrip. Keep example and
benchmark jobs on FLOW_HOST=python until Phase D covers the full surface.

Co-authored-by: Cursor <[email protected]>
Default flowc host broke roundtrip dogfood of compiler/src via ./flow and
could recurse through ensure_flowc. Bootstrap paths force the Python host;
resolve_flowc now rejects an empty driver path.

Co-authored-by: Cursor <[email protected]>
main returns fib(10); bash -e was treating the correct result as failure.

Co-authored-by: Cursor <[email protected]>
@godofecht
godofecht merged commit fc0c5ad into main Aug 5, 2026
13 checks passed
@godofecht
godofecht deleted the feature/flowc-phase-c-host branch August 5, 2026 13:09
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