Skip to content

fix: remove Veilweaver from player-facing asset text - #394

Merged
lazyxeon merged 1 commit into
mainfrom
cursor/player-name-b23f
Oct 21, 2026
Merged

lazyxeon merged 1 commit into
mainfrom
cursor/player-name-b23f

Conversation

@lazyxeon

Copy link
Copy Markdown
Owner

Description

Player-facing copy no longer says Veilweaver.

  • assets/dialogue_intro.toml companion line is now "Spoken like a true thread-binder."
  • The debrief title card in assets/cinematics/debrief_resolution.ron is "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.sh runs in the CI gate and fails if Veilweaver appears in dialogue, quests, echoes, voices, npc lines, or cinematics. astraweave-dialogue has the same check as a unit test. Cell tags stay internal and are not scanned.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Security enhancement

Security Considerations

  • Does this PR introduce new dependencies? If yes, have they been vetted for security issues?
  • Does this PR modify how user input is handled? If yes, has it been validated/sanitized?
  • Does this PR change authentication or authorization mechanisms?
  • Does this PR access sensitive data or modify how it's stored?
  • Does this PR introduce new network communication or modify existing protocols?

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings
  • I have run security checks (cargo audit, cargo deny) locally
Open in Web Open in Cursor 

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>
@cursor

cursor Bot commented Oct 21, 2026

Copy link
Copy Markdown

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: lazyxeon/AstraWeave/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 50d240fc-32b2-41b6-8d67-4bec83c346a9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lazyxeon
lazyxeon marked this pull request as ready for review October 21, 2026 13:08
@lazyxeon
lazyxeon merged commit a9663b8 into main Oct 21, 2026
34 checks passed
@lazyxeon
lazyxeon deleted the cursor/player-name-b23f branch October 21, 2026 13:08
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T13:11:16.479004Z 81f70d2 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +12 to +16
find \
assets/dialogue_intro.toml \
assets/quests_main.toml \
assets/echoes.toml \
assets/voices.toml \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

cursor Bot pushed a commit that referenced this pull request Oct 21, 2026
#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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.toml node n2 is the only runtime string change. Nothing matches the old sentence. examples/dialogue_voice_demo and examples/quest_dialogue_demo read the file as display text. The nineteen replay cases do not. quest_ticks hashes in-memory tick fields (start_time, last_update, generated_at), not assets/quests_main.toml.
  • The debrief edit is a // comment after Cinematic(...) 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.lock is untouched. The gate step is unconditional and runs before the docs-only skip, with contents: read. On this tree the script scans 10 files and exits 0. determinism-replay compare succeeded (run 39532313887). cargo-deny and cargo-audit succeeded. Ubuntu affected tests ran the new unit test against the real assets.
  • aw_doc_lint still 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. Leaving VeilweaverLevel, feature flags, and crate paths in place is the right split.
  • assets/cells/100_0_0.ron still has description: Some("Veilweaver slice start platform at Loom Gate"), and the other Loomspire cells still tag "veilweaver". CellMetadata.description is loaded and stored on the partition cell. The only reads are cell_loader tests. 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.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment on lines +11 to +27
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +261 to +275
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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

lazyxeon added a commit that referenced this pull request Oct 21, 2026
* 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>
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.

2 participants