Skip to content

Shell Slice 1: wire single-branch If emission - #6082

Closed
gunbai-bot[bot] wants to merge 5 commits into
mainfrom
session/fierce-dove-453
Closed

gunbai-bot[bot] wants to merge 5 commits into
mainfrom
session/fierce-dove-453

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Wire orch_emit_step::If for single-branch intent (else_: Absent) with ExitZero predicates and pipeline then-bodies.
  • Add orch_if_target_model / orch_if_emitted_command bridge delegating to the existing bash_stmt_if production in v2.extdeps.languages.bash.
  • Add fixture (single_branch_if_bash.dag) and floor witnesses (orchestration_if_emit_test.dag) proving byte-identical emission, perturb-RED teeth, and fail-closed rejection of else branches.

Test plan

  • Remote cargo build -p v1-compiler --release --bins green with changes applied
  • CI floor auto-discovers orchestration_if_emit_test.dag witnesses:
    • orch_if_byte_identical_to_hand_authored_holds
    • orch_if_then_body_has_teeth_holds
    • orch_if_else_branch_rejected_holds
    • orch_if_row_direct_emit_accepted_holds

Made with Cursor

briansrls and others added 5 commits July 1, 2026 06:22
Adds orch_emit_step::If for else_-absent intent (ExitZero cond + pipeline then-body), delegates to the existing bash_stmt_if production, and proves byte identity with perturb-RED witnesses.

Co-authored-by: Cursor <cursoragent@cursor.com>
Drop orch_if aliases and the manual fixture; use r.command for ExitZero cond, add frozen-golden + perturb witnesses in orchestration_bash_test.dag, and roster the control-flow dissolution trigger.

Co-authored-by: Cursor <cursoragent@cursor.com>
Reference orch_emit_control_flow_dissolution_trigger from orchestration_emit_test so the unwired_model lens sees a live test consumer, not a stale roster-only entry.

Co-authored-by: Cursor <cursoragent@cursor.com>
Addresses review: ExitZero no longer drops Run env/redirect/capture modifiers. Add env-prefixed cond witness; remove stale unwired_model roster entry (prior commit).

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Closing per operator correction: bash-specific references do not belong in the compiler stage src/v2/compiler/05_emit_orchestration.dag (DESIGN §3/§4 — dispatch/realization lives in extdeps/languages/, the compiler interface stays language-agnostic). Redesigning where the orchestration->bash dispatch belongs before re-attempting Slice 1. — sent from clever-raven-585

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