Skip to content

2-emit-partition (b1a follow-up): scaffold markers + naming for the bash whole-program serializer - #6152

Merged
briansrls merged 6 commits into
mainfrom
session/fierce-lark-783-b-bash-defork
Jul 2, 2026
Merged

briansrls merged 6 commits into
mainfrom
session/fierce-lark-783-b-bash-defork

Conversation

@briansrls

@briansrls briansrls commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #6149 (merged early, before the review-fix commit landed). Carries the review fixes claude-opus-4-7 requested on #6149 to main:

  • Medium-as-string (§3): on-carrier scaffold marker bash_program_serialize_medium_join_scaffold — the set-e prefix + newline stmt-join are String literals via concat; marker names the dissolution trigger (they become bash grammar productions emitted through the fold, mirroring orch_construct_seq2/orch_seq2_target_model, so serialization runs with zero concat). Tracked as (b1b).
  • Single authority (§3): reconciliation marker bash_program_serialize_single_authority_reconciliation — declares bash_program_serialize THE v2 ShellProgram→String authority and serialize_bash the scaffold-to-delete (dissolves at (b3) consumer migration).
  • Naming: bash_program_fold_* → bash_program_emit_* (facts_lookup + atom + serialize_stmt) for module consistency; fail-closed sentinel mirroring orch_emit_facts_lookup.

Byte-oracle witnesses (bash_program_serialize_matches_oracle_holds + set_e teeth) re-verified green against current main.

🤖 Generated with Claude Code

Brian Searls and others added 6 commits July 2, 2026 07:06
…fold markers

- Layering: bash_program_fold.dag was in extdeps but imports v2.compiler.emit
  (extdeps->compiler inversion). Moved to src/v2/workflow/bash_program_emit.dag
  (workflow may import compiler+extdeps; all imports point toward std).
- Finding 1 (medium-as-string): the set-e prefix + newline stmt-join are String
  literals composed via concat. Added on-carrier SCAFFOLD marker
  (bash_program_serialize_medium_join_scaffold) naming the dissolution trigger:
  program-join + set-e become bash grammar productions emitted through the fold
  (mirror orch_construct_seq2 / orch_seq2_target_model), so bash_program_serialize
  emits with zero concat. Tracked as (b1b).
- Finding 2 (single authority): added reconciliation marker
  (bash_program_serialize_single_authority_reconciliation) declaring
  bash_program_serialize THE single v2 ShellProgram->String authority and
  serialize_bash the scaffold-to-delete; dissolution = (b3) consumer migration
  + serialize_bash deletion. The test oracle is the git-historical byte-reference.
- Finding 3: renamed facts_lookup/atom bash_program_fold_* -> bash_program_emit_*
  for module consistency; it is a fail-closed sentinel mirroring
  orch_emit_facts_lookup (direct-variant emit never consults facts, proven green).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…83-b-bash-defork

# Conflicts:
#	src/v2/workflow/bash_program_emit.dag
@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 (b1a follow-up): scaffold markers + naming for the bash whole-program serializer Jul 2, 2026
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review July 2, 2026 07:34
@briansrls
briansrls merged commit 73ab1a8 into main Jul 2, 2026
2 of 6 checks passed
@briansrls
briansrls deleted the session/fierce-lark-783-b-bash-defork branch July 2, 2026 15:26
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