Repository navigation
fix: remove Veilweaver from player-facing asset text - #394
Conversation
The intro companion line and the debrief title card now use in-world wording. The gate and a dialogue test fail if that name returns in dialogue, quests, voices, npc lines, or cinematics. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
|
@coderabbitai review |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 81f70d279a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| find \ | ||
| assets/dialogue_intro.toml \ | ||
| assets/quests_main.toml \ | ||
| assets/echoes.toml \ | ||
| assets/voices.toml \ |
There was a problem hiding this comment.
Include runtime UI copy in the forbidden-name scan
When the demos are run, this check is green while players still see the retired name: examples/veilweaver_demo/src/main.rs:157-178 prints it in the banner/HUD, and examples/cutscene_render_demo/src/main.rs:114-119 displays it as a title cue. Because find is rooted only at four asset files plus assets/npc and assets/cinematics, no player-visible Rust string can be caught, so the new CI gate does not enforce the repository's naming requirement; extend the scan or an explicit allowlist to cover runtime UI copy as well.
AGENTS.md reference: AGENTS.md:L2-L2
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The two copy edits are sound, and they do not move simulation state. The new gate can report success after it stops seeing the files it claims to scan.
Holds
assets/dialogue_intro.tomlnoden2is the only runtime string change. Nothing matches the old sentence.examples/dialogue_voice_demoandexamples/quest_dialogue_demoread the file as display text. The nineteen replay cases do not.quest_tickshashes in-memory tick fields (start_time,last_update,generated_at), notassets/quests_main.toml.- The debrief edit is a
//comment afterCinematic(...)has already closed. A RON parse drops it, so the cinematic value is unchanged. There is still no title-card field. Players do not see “THE LOOM HOLDS”. - No new dependency, no
unsafe, no network, no sim write.Cargo.lockis untouched. The gate step is unconditional and runs before the docs-only skip, withcontents: read. On this tree the script scans 10 files and exits 0.determinism-replaycompare succeeded (run 39532313887).cargo-denyandcargo-auditsucceeded. Ubuntu affected tests ran the new unit test against the real assets. aw_doc_lintstill covers only the markdown front door (README.md,CONTRIBUTING.md,docs/README.md,docs/QUICKSTART.md,docs/guides/*.md) and already ignores identifier suffixes. This script is the asset-side check. LeavingVeilweaverLevel, feature flags, and crate paths in place is the right split.assets/cells/100_0_0.ronstill hasdescription: Some("Veilweaver slice start platform at Loom Gate"), and the other Loomspire cells still tag"veilweaver".CellMetadata.descriptionis loaded and stored on the partition cell. The only reads arecell_loadertests. The exclusion matches current wiring. It stops matching the moment a panel prints that field.
Gate fails open
mapfile < <(find …) discards find's status. set -euo pipefail does not apply to that process substitution. I ran the same control flow with a missing root: count=0, script exit 0. With both roots missing, the success line would be Player-facing assets do not say Veilweaver (0 files). if grep also treats grep's exit 2 as a clean file. A mode-000 file containing the word produced Permission denied and fail=0. mapfile splits on newlines, so a filename with a newline is scanned as two wrong paths and those grep errors are swallowed the same way.
The unit test has the same hole. A missing directory is continue. A missing required file is continue. An empty hit list then passes. read_dir is one level and keeps every file; the shell is recursive and keeps only *.toml, *.ron, and *.txt. Today both see the same 10 files, because assets/npc and assets/cinematics are flat. A nested .ron is enforced only by the shell. A nested .json is enforced only by the unit test, and only when astraweave-dialogue tests run.
Fail the script when find is non-zero, and require a fixed minimum count (10 on this tree) before the success line. Fail the test when any listed asset is missing. Walk both scanners with one recursive extension filter.
Still on screen, outside this allowlist
examples/veilweaver_demo sets the window title to Veilweaver — AI-Native Game Engine (visual_renderer.rs:1031) and prints that name in the headless banner and HUD (main.rs:157 and :178). Those are the live player-facing leftovers. examples/cutscene_render_demo stores Cue::Title { text: "Veilweaver" } and then binds the event to _text. That handler does not draw it, and the window title there is Cutscene Demo. Fix the window title and the headless HUD. Leave the silent title cue alone.
The companion line and the comment edit can stay. The gate needs a follow-up before a green “does not say Veilweaver” line is evidence.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
| mapfile -t files < <( | ||
| find \ | ||
| assets/dialogue_intro.toml \ | ||
| assets/quests_main.toml \ | ||
| assets/echoes.toml \ | ||
| assets/voices.toml \ | ||
| assets/npc \ | ||
| assets/cinematics \ | ||
| -type f \( -name '*.toml' -o -name '*.ron' -o -name '*.txt' \) | sort | ||
| ) | ||
|
|
||
| fail=0 | ||
| for file in "${files[@]}"; do | ||
| if grep -In -E -i 'veilweaver' "$file"; then | ||
| fail=1 | ||
| fi | ||
| done |
There was a problem hiding this comment.
This gate exits 0 when it never saw the files. mapfile < <(find …) drops find's status, and set -euo pipefail does not apply to a process substitution. I ran this control flow with assets/dialogue_intro.toml present and a second root missing: find printed No such file or directory, then the script reported count=1 and exited 0. With both roots missing it reported count=0 and exited 0, which this script would print as Player-facing assets do not say Veilweaver (0 files).
The if grep on line 24 treats exit 2 as a clean file. A mode-000 file whose contents were the banned word produced Permission denied and fail=0. mapfile also splits on newlines, so one filename with an embedded newline becomes two paths, grep fails both, and those errors are swallowed the same way. Paths here are prefixed with assets/, so they are not grep flags. That part is fine.
Capture find's status (write the list, then test $?), and refuse to print the success line unless the count is the full set. On this tree that set is 10 files: the four root files, assets/npc/merchant.toml, and the five cinematic .ron files.
| if !dir.is_dir() { | ||
| continue; | ||
| } | ||
| let mut nested: Vec<_> = std::fs::read_dir(&dir) | ||
| .unwrap_or_else(|err| panic!("reading {}: {err}", dir.display())) | ||
| .map(|entry| entry.unwrap().path()) | ||
| .filter(|path| path.is_file()) | ||
| .collect(); | ||
| nested.sort(); | ||
| files.extend(nested); | ||
| } | ||
| let mut hits = Vec::new(); | ||
| for path in files { | ||
| if !path.is_file() { | ||
| continue; |
There was a problem hiding this comment.
A missing asset tree makes this test pass. !dir.is_dir() continues, and !path.is_file() continues, so the hit list stays empty and the assertion holds. CARGO_MANIFEST_DIR/../assets is correct for this workspace layout. It is the wrong layout, or a renamed file, that goes green.
read_dir is one directory level, and line 267 keeps every file. scripts/ci/player_facing_names.sh is recursive and keeps only *.toml, *.ron, and *.txt. Both see the same 10 files today because assets/npc and assets/cinematics are flat. A nested .ron fails only the shell. A .json under assets/cinematics fails only this test, and only on a run that actually builds astraweave-dialogue (an asset-only diff does not).
Panic when a required path is missing. Recurse with the same extension filter as the shell, or have one of the two checks call the other.
* docs: record the weave origin island on main outside ±2048 cells and does not saturate, and the weaving replay case still hashes NullField. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: record #394, #396, and #397 on the status pages #397 closed #260. The mod host rejects an out-of-island origin before the cast is stored. #394 keeps the retired title out of player-facing assets. The 0.323 ms figure is the cloud_shadow pass. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: correct the weave-origin citations the audit flagged A dropped wind returns from wind_direction before legacy_geometry_kept. A failed mod run drops only that agent's casts. SEC-MOD-2 is the range check already on main. The status pins name which sentences were checked at 49d289e. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: name both Hi-Z flags and the echoes scan draw_into records the pyramid only when hiz_depth_load and sample_hiz are both set. The name gate includes echoes.toml. #269 was cross-referenced by #389. The close was not attributed. compile_legacy drop sites are the empty returns, not cell_origin. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: a failed weave run drops only that call The tick walks scripts, then agents. An earlier Ok for the same agent stays applied. The new test locks that. The scripting trace now says nineteen replay cases, and sample_hiz is the flag that defaults off. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: a later weave success still lands after a failed script The test queues a cast, a failing origin, then another cast, and compares two runs. #217 landed when the required replay set was fifteen. The required set is now nineteen. Revision 1.6 is withdrawn. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: stamp the scripting trace at the commit that has the test last_verified_commit is 79122e7. That commit contains the three-source weave test and invariant 9. 49d289e is trace 1.5 and does not. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>


Description
Player-facing copy no longer says Veilweaver.
assets/dialogue_intro.tomlcompanion line is now "Spoken like a true thread-binder."assets/cinematics/debrief_resolution.ronis "THE LOOM HOLDS — The first span is stitched". That line was a spec comment, not a runtime string. The cinematic data has no separate title-card field.scripts/ci/player_facing_names.shruns in the CI gate and fails ifVeilweaverappears in dialogue, quests, echoes, voices, npc lines, or cinematics.astraweave-dialoguehas the same check as a unit test. Cell tags stay internal and are not scanned.Type of change
Security Considerations
Checklist