Skip to content

2-emit-partition (a): dissolve orch_run env weld into structured EnvPrefixed/EnvUnset AST - #6137

Merged
briansrls merged 12 commits into
mainfrom
session/fierce-lark-783-a-env-weld
Jul 2, 2026
Merged

briansrls merged 12 commits into
mainfrom
session/fierce-lark-783-a-env-weld

Conversation

@briansrls

@briansrls briansrls commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Slice (a) of node 2-emit-partition — retire orchestration→bash env lowering

Dissolves the welded orch_run env render (a single opaque orch_raw token) into the structured, reverse-parseable bash_stmt_env_prefixed / bash_stmt_env_unset grammar productions.

What changed

Verification (byte-oracle, green by execution — local targeted floor, CI saturated)

10 witnesses green across orchestration_emit_test + orchestration_bash_test, including:

  • orch_run_env_prefixed_structured_holds: single EnvSet → CARGO_BUILD_JOBS=1 cargo test --workspace (byte-identical to the old weld)
  • orch_run_env_unset_multi_binding_structured_holds: multi-binding + EnvUnset → env -u RUSTC_WRAPPER CARGO_BUILD_JOBS=1 cargo test --workspace (the exact CI-retry occ3 render)
  • orch_run_env_unset_emits_env_u_holds, plus the existing pipeline join / teeth / empty-env-delegation byte oracles.

🤖 Generated with Claude Code

Brian Searls and others added 10 commits July 2, 2026 05:11
…refixed/EnvUnset AST

Route env-bearing orchestration Run emission through the #5868 structured
bash_stmt_env_prefixed / bash_stmt_env_unset grammar builders instead of the
opaque single-orch_raw welded render. The medium now returns an OrchRunEmitPlan
(construct_tag + target) so env-shape dispatch lives entirely in extdeps; the
compiler stage stays a fully agnostic registry-dispatch fold. Drops the
met-condition orch_run_env_reduction_dissolution_trigger scaffold + its
recording witness. Byte-identical output preserved (single EnvSet and
multi-binding+EnvUnset retry paths).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gunbai-bot gunbai-bot Bot changed the title 2-emit-partition — shell/json/yaml as grammar rows, zero language knowledge in the wrong layer (UN-GATED: operator merged #6106 registry dispatch). Four leftovers per the roadmap node: (a) retire orchestration->bash lowering from 05_emit_orchestration.dag via the #6106 registry mechanism (welded env 2-emit-partition (a): dissolve orch_run env weld into structured EnvPrefixed/EnvUnset AST Jul 2, 2026
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review July 2, 2026 06:25
@briansrls
briansrls merged commit bb6e656 into main Jul 2, 2026
1 of 2 checks passed
@briansrls
briansrls deleted the session/fierce-lark-783-a-env-weld branch July 2, 2026 07:24
briansrls added a commit that referenced this pull request Jul 2, 2026
…refixed/EnvUnset AST (#6137)

* WIP: 2-emit-partition — shell/json/yaml as grammar rows, zero language knowle

* WIP: 2-emit-partition — shell/json/yaml as grammar rows, zero language knowle

* 2-emit-partition (a): dissolve orch_run env weld into structured EnvPrefixed/EnvUnset AST

Route env-bearing orchestration Run emission through the #5868 structured
bash_stmt_env_prefixed / bash_stmt_env_unset grammar builders instead of the
opaque single-orch_raw welded render. The medium now returns an OrchRunEmitPlan
(construct_tag + target) so env-shape dispatch lives entirely in extdeps; the
compiler stage stays a fully agnostic registry-dispatch fold. Drops the
met-condition orch_run_env_reduction_dissolution_trigger scaffold + its
recording witness. Byte-identical output preserved (single EnvSet and
multi-binding+EnvUnset retry paths).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* wip: targeted orch env verify plan (throwaway)

* add structured bash_stmt_env_unset production (env -u NAME command)

* wip: split verify plan into per-file batches

* wip: skip=true to match real floor resolution

* remove throwaway verification plan

---------

Co-authored-by: Brian Searls <briansearls1@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
briansrls added a commit that referenced this pull request Jul 2, 2026
…refixed/EnvUnset AST (#6137)

* WIP: 2-emit-partition — shell/json/yaml as grammar rows, zero language knowle

* WIP: 2-emit-partition — shell/json/yaml as grammar rows, zero language knowle

* 2-emit-partition (a): dissolve orch_run env weld into structured EnvPrefixed/EnvUnset AST

Route env-bearing orchestration Run emission through the #5868 structured
bash_stmt_env_prefixed / bash_stmt_env_unset grammar builders instead of the
opaque single-orch_raw welded render. The medium now returns an OrchRunEmitPlan
(construct_tag + target) so env-shape dispatch lives entirely in extdeps; the
compiler stage stays a fully agnostic registry-dispatch fold. Drops the
met-condition orch_run_env_reduction_dissolution_trigger scaffold + its
recording witness. Byte-identical output preserved (single EnvSet and
multi-binding+EnvUnset retry paths).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* wip: targeted orch env verify plan (throwaway)

* add structured bash_stmt_env_unset production (env -u NAME command)

* wip: split verify plan into per-file batches

* wip: skip=true to match real floor resolution

* remove throwaway verification plan

---------

Co-authored-by: Brian Searls <briansearls1@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@gunbai-bot gunbai-bot Bot mentioned this pull request Jul 2, 2026
6 tasks
gunbai-bot Bot pushed a commit that referenced this pull request Jul 3, 2026
…sus-scoped slices, effect-plan band decisions (operator, 2026-07-03)

- shell_emission_model twin: bash-minimization rule (pre-runtime medium; fidelity-bounded ingestion; thin-run guardrail; supersedes ci-humming T5 converge-shell framing) + pre-runtime census receipt; slice 0 stale env-weld fixed (#5868+#6137 discharged) + Retry.on_exhausted precondition; slice 1 census-scoped to the If band (For/While have zero pre-runtime sites); slice 2 reframed converge thin-run; slice 3 live_deploy runtime-present reframe; slice 4 thin-shim scope; sidecar importer count 11->33 false-by-growth + ratchet directive
- host_effect_orchestration twin: new 1b effect-plan band (layer responsibility contract + governance RED rule + fork-census decisions: Policy de-fork onto IdempotencyEvidence, decide-algebra consolidation onto upsert_decision w/ typed refusal reasons, Retry-vs-temporal DISTINCT, algebra grounding While-measure/on_exhausted, std.effect_plan rename at Phase B, long-term-not-near-term dissolve, dead vocab); Phase B invocation-vs-script + Pipeline supersession inline; Phase D models EmitArtifactThenThinRun
- roadmap_authority: 6-shell-emission scoped by the rule; 2-emit-partition leftover (a) env-weld stale prose discharged; slices 1-2 re-scoped; shelf-shell-tail rescoped; 2-nbd-serve re-briefed to instantiate std.upsert_decision
- regen via generated_artifact_gate main_wet (ROADMAP.md + both plan mds); includes main's pre-existing 3-line regen drift on dag-v2-defork-audit.md/fold-ergonomics.md (authorities merged without regen; idempotent output, keeps the gate green)

Verified: drift gate main exit 0; plan_lens x2, roadmap_authority, roadmap_gate, generated_artifact_drift witnesses all true by execution.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
briansrls added a commit that referenced this pull request Jul 3, 2026
…+ effect-plan band decisions (#6220)

* WIP: srv3 file cleanup

* Amend shell-emission + host-effect plans: bash-minimization rule, census-scoped slices, effect-plan band decisions (operator, 2026-07-03)

- shell_emission_model twin: bash-minimization rule (pre-runtime medium; fidelity-bounded ingestion; thin-run guardrail; supersedes ci-humming T5 converge-shell framing) + pre-runtime census receipt; slice 0 stale env-weld fixed (#5868+#6137 discharged) + Retry.on_exhausted precondition; slice 1 census-scoped to the If band (For/While have zero pre-runtime sites); slice 2 reframed converge thin-run; slice 3 live_deploy runtime-present reframe; slice 4 thin-shim scope; sidecar importer count 11->33 false-by-growth + ratchet directive
- host_effect_orchestration twin: new 1b effect-plan band (layer responsibility contract + governance RED rule + fork-census decisions: Policy de-fork onto IdempotencyEvidence, decide-algebra consolidation onto upsert_decision w/ typed refusal reasons, Retry-vs-temporal DISTINCT, algebra grounding While-measure/on_exhausted, std.effect_plan rename at Phase B, long-term-not-near-term dissolve, dead vocab); Phase B invocation-vs-script + Pipeline supersession inline; Phase D models EmitArtifactThenThinRun
- roadmap_authority: 6-shell-emission scoped by the rule; 2-emit-partition leftover (a) env-weld stale prose discharged; slices 1-2 re-scoped; shelf-shell-tail rescoped; 2-nbd-serve re-briefed to instantiate std.upsert_decision
- regen via generated_artifact_gate main_wet (ROADMAP.md + both plan mds); includes main's pre-existing 3-line regen drift on dag-v2-defork-audit.md/fold-ergonomics.md (authorities merged without regen; idempotent output, keeps the gate green)

Verified: drift gate main exit 0; plan_lens x2, roadmap_authority, roadmap_gate, generated_artifact_drift witnesses all true by execution.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* WIP: srv3 file cleanup

---------

Co-authored-by: Brian Searls <briansearls1@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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