Skip to content

WIP: parser: retire WordMetadata::word_quotes (always-empty storage) - #2000

Merged
caomengxuan666 merged 2 commits into
masterfrom
chore/retire-word-quotes
Oct 29, 2026
Merged

caomengxuan666 merged 2 commits into
masterfrom
chore/retire-word-quotes

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

WIP: cross-repo retirement, step 2 of the word_quotes train (tracking rubash#1978). Do not merge until the niubash Session migration (niubash feat/150-session-migration) has merged — its change drops the last read of this field, and this repo's niu canary builds niubash master against this tree, so the canary is expected red until then.

What

Removes WordMetadata::word_quotes — always-empty storage (the executor re-derives quoting from the raw word at consumption time), retained until now only because niubash-runtime's drive-letter admission read it. That read is dropped on the niubash migration branch (the disjunct never fired: the field was empty on every instance). ArrayElementAssignment::word_quotes (live, scan-written) and the word_quotes_in_raw scanner are untouched.

Train

  1. niubash stops reading — migration branch commit "session migration 5/N" (draft PR pending number in the migration report).
  2. This PR deletes the field.
  3. The niubash rubash-pin re-bumps to a rev containing this deletion at release time (the pin already moved to 5b63c80 for the Session contract).

Gates (local Linux)

  • cargo check --locked --all-targets green; -D warnings clean on lib/bins/examples.
  • Parser test targets: 316 + 68 + 31 passed; lib parser:: tests 23 passed.

The field was always empty (wt44/parse4: the executor
re-derives quoting from the raw word at consumption time) and
was retained only because niubash-runtime's drive-letter
admission still read it. That reader dropped the read in the
1.5.0 Session migration (niubash feat/150-session-migration),
so the storage now goes the way of the other retired per-word
record kinds: field removed from WordMetadata, its three
construction sites cleaned, and one comment in
executor/command_words.rs reworded so it no longer names the
field. ArrayElementAssignment::word_quotes is a different,
live field (written by a real scan, read by
array_assignment_exec) and stays, as does the
word_quotes_in_raw scanner itself.

Sequencing (cross-repo retirement): niu stops reading (done
on the migration branch) -> this deletion -> the niubash pin
re-bumps at release time. niubash CI builds against rubash
master, and this repo's niu canary builds niubash master
against this tree, so the canary is expected red until the
niubash migration merges; both repos compile at each step of
the train.

Gates (local Linux): cargo check --locked --all-targets
green; -D warnings clean on lib/bins/examples; parser test
targets 316 + 68 + 31 passed; lib parser:: tests 23 passed.
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