Repository navigation
2-emit-partition (a): dissolve orch_run env weld into structured EnvPrefixed/EnvUnset AST - #6137
Merged
Merged
Conversation
…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>
added 2 commits
July 2, 2026 06:42
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 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>
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.
Slice (a) of node 2-emit-partition — retire orchestration→bash env lowering
Dissolves the welded
orch_runenv render (a single opaqueorch_rawtoken) into the structured, reverse-parseablebash_stmt_env_prefixed/bash_stmt_env_unsetgrammar productions.What changed
05_emit_orchestration.dagno longer names any env construct — env-shape dispatch moved entirely into extdeps via a newOrchRunEmitPlan { construct_tag, target }the medium computes. The stage is a pure registry-dispatch fold (the Migrate orchestration emission to agnostic registry dispatch (de-bash the compiler stage) #6106 mechanism, no new mechanism invented).bash_stmt_env_unsetproduction (env -u NAME command, distinctenv -u/space tokens) alongside the existingbash_stmt_env_prefixed; deleted the weldedorch_run_*render (tokens/emitted/spelling/lex/rules/target_model).bash_orch_run_env_planfoldsFreeMonoid<EnvBinding>— outermost binding becomes the structured production (EnvSet→prefixed, EnvUnset→unset), inner bindings fold into the command spelling viabash_env_prefix; two registry edges (env_prefixed/env_unset).orch_run_env_reduction_dissolution_triggerscaffold + its recording witness (its dissolution condition — Grow bash AST: EnvUnset node + multi-binding env nesting (dissolve orch_emit_run_env_welded) #5868 grew the AST, Migrate orchestration emission to agnostic registry dispatch (de-bash the compiler stage) #6106 landed the exit mechanism — is satisfied).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-retryocc3render)orch_run_env_unset_emits_env_u_holds, plus the existing pipeline join / teeth / empty-env-delegation byte oracles.🤖 Generated with Claude Code