Skip to content

Correct net-ecs cites and the CI docs the four merges left stale - #505

Merged
lazyxeon merged 8 commits into
mainfrom
cursor/net-ecs-review-threads-23f7
Nov 4, 2026
Merged

lazyxeon merged 8 commits into
mainfrom
cursor/net-ecs-review-threads-23f7

Conversation

@lazyxeon

@lazyxeon lazyxeon commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Report

  1. Head SHA: 4af72a643c44c99d2b8e8eff32b024e9eedf240b (CI not awaited on this push yet).
  2. Commands run: bash scripts/ci/player_facing_names.sh (0); cargo run -p aw_doc_lint -- --mode warn (0).
  3. Not run: AW_CI_PACKAGES=… gate/tests (docs-only diff); replay hash (no sim change).
  4. Measurements: not measured.
  5. Replay hashes: unchanged (docs only).
  6. Deferred issues: none.

Summary

Addresses all seven blocking findings from Astranox review at dd40b5431:

  • net_ecs.md: ci.yml cites :203/:319/:568 with nextest at :215/:325/:574; bench map/counts (55 call sites across net_ecs_groups.rs, net_ecs_adversarial.rs, proto_bench.rs); mutation suite 59; grep -cE maintenance rollup (134 standalone trio tests); Warn appendix no longer claims log-and-continue.
  • CI_ARCHITECTURE.md: Gate still runs on docs-only PRs (Rust CI setup conditional at ci.yml:122); net-tests described as scope-conditional, not path-filtered.
  • bottlenecks.md: fix(input): give save tests private temp directories #468 stale toolchain claim replaced with merged save-test temp-dir fix (65f96115).
Open in Web Open in Cursor 

@coderabbitai

coderabbitai Bot commented Oct 28, 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
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-28T19:54:40.002592Z c1a987a PR opened
ℹ️ 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.

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

Adversarial review of c1a987a79a9a1b4036c21a1b80f20ad95b8b4d84. Docs only, two commits on a802aca2. Merge with current main (8d76a0b, the benchmark-action bump) is clean. No Rust, no Cargo.lock, no new dependency.

The handler spans, attribute-inclusive proto ranges, the 30-token drain, the Kick/Warn writes, the bench harnesses, and the CI sentences I checked match the tree. Four leftovers do not. Family 5 is still 4 tests, so the new 40 / 43 / 109 rollup is one short, and the grep -c prescribed to lock that total does not match #[tokio::test(flavor = "multi_thread")]. Appendix items 3 and 7 still say Warn is log-and-continue and that these crates are absent from CI.

Determinism. No hashed crate. determinism-replay.yml still pins target-cpu=x86-64 on x86_64, leaves aarch64 on the default baseline, and sets CARGO_PROFILE_TEST_DEBUG=0 on the hash step for all three OS. Room pick is still HashMap::iter().find (aw-net-server lib.rs:460, :692), not id-sorted, and it is not on a replayed tick. Replay hashes not run. Expected unchanged.

Security. No auth, protocol, or dependency change. Kick still returns before any player-state write (lib.rs:936-938, :1078-1080). Warn still falls through and assigns tokens and last_refill (:961-968, :1103-1110); last_input_seq and last_seen stay bucket-gated (:973-974, :1115-1116). spawn_server still refuses the published key at :281-286 via published_dev_key_allowed (aw-net-proto :114-116, cfg!(any(test, debug_assertions))). Release CLI still requires --shared-key-hex (main.rs:103-109). --disable-tls is still rejected at :36-42 outside debug. No unsafe token under net/aw-net-server/src, net/aw-net-client/src, net/aw-net-proto/src, or astraweave-net-ecs/src. #![forbid(unsafe_code)] is the first line of proto and astraweave-net-ecs only. sign is aw-net-client main.rs:101.

Checked and matching. handle_socket_tls :413-645 (233) and handle_socket :647-877 (231). Helper span :913-1132 (220). Codec #[non_exhaustive] at proto :257; ranges ClientToServer :171-205, ServerToClient :208-242, WireError :245-254, Codec :257-263. MatchResult includes .await? (:551-558, :783-790). Loop braces are :574-632 and :806-864. Joined tokens: 30.0 at :525 and :757. Continuous drain 30/22 is about 1.4 s; the 60-token ceiling is the idle-refill case. Groups file is 478 lines, 2 bench_function, 15 bench_with_input, included by six 7-line harnesses. Adversarial is 921 lines, 9 and 7. proto_bench.rs has 12 bench_function and also 10 bench_with_input (the row does not claim those). ci.yml:198 is --profile ci-pr when the diff is full or aw-net-client is affected, and it runs after the Linux upload. :305 is --profile ci with no affected filter, before the Windows upload. :552 is Windows Test full, --profile ci. fuzz-nightly.yml:35 lists net/aw-net-proto/fuzz. ci-pr-linux-archive copies the ci-pr filter and adds the four binaries in linux_archive_skips.txt; it does not drop the three Windows GPU skips. Archive timeouts are 60 and 75; partitions are 30. MSRV needs: [changes, gate] and the workspace rust-version is 1.89.0. .cargo/config.toml pins [target.x86_64-unknown-linux-gnu] to target-cpu=x86-64 and sets no rustc-wrapper. rust-ci-setup writes SCCACHE_GHA_RW_MODE=READ_ONLY unless github.ref is refs/heads/main and the event is not pull_request (action.yml:69-73), so pull requests are read-only. #439 447a878c, #481 581841ee, #480 0762c8ae, and #477 a802aca2 are all 2026-10-28 19:39Z, after the bottleneck window closed 2026-10-27 23:44:02Z. #439 is the macOS missing-adapter skip.

  1. Head c1a987a79a9a1b4036c21a1b80f20ad95b8b4d84. CI on this SHA was not green at review.
  2. bash scripts/ci/player_facing_names.sh exit 0. git merge-tree --write-tree --name-only origin/main HEAD exit 0. The family-5 and grep counts above were run on this tree.
  3. Not run: replay hashes (no hashed crate). GPU frame budget (no GTX 1660 Ti). aw_doc_lint and aw_trace_sync --check (not rebuilt here; the PR body reports both exit 0). cargo clippy (docs only).
  4. Measurements: not measured.
  5. Replay hashes: not run. Expected unchanged.
  6. Deferred: none from this diff. The PR body links #497, which is not this change.
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread docs/architecture/net_ecs.md Resolved
Comment thread docs/architecture/net_ecs.md Resolved
Comment thread docs/architecture/net_ecs.md Resolved
Comment thread docs/architecture/net_ecs.md Resolved
@cursor

cursor Bot commented Oct 28, 2026

Copy link
Copy Markdown

Head b3a7dd77fde294bba82d5682cc01054908b62da1 corrects the four leftovers on c1a987a7.

Family 5 is 4 tests (test_codec_matches_server plus the three multi-thread tests). Families 1-5 + w2b_fix1 are 41. The server is 44 with loopback_default.rs and the two admin tests. The standalone trio is 110 (proto 59 + security_poc.rs 3 + server 44 + client 4). ECS stays 31. lib_temp.rs still adds 4 tests that do not compile.

grep -cE '#\[(tokio::)?test' over the trio paths sums to 110. It matches #[tokio::test(flavor...)].

Appendix item 3 no longer calls Warn log-and-continue. A bad tag under Warn falls through into the token bucket: tokens and last_refill are assigned, and last_input_seq and last_seen are written only while the bucket stays non-negative. Item 7 matches the CI section: no dedicated workflow, client binaries at ci.yml:198, :305, and :552, and proto fuzz at fuzz-nightly.yml:35.

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

Adversarial review of b3a7dd77fde294bba82d5682cc01054908b62da1. Docs only, three commits on a802aca2. Merge with current main (8d76a0b) is clean. No Rust, no Cargo.lock, no new dependency.

The four findings from c1a987a79 are fixed, and I rechecked them against the tree. Family 5 is 4 tests. Families 1–5 + w2b are 5+12+9+9+4+2 = 41. Server tests are 44. The standalone trio grep sums to 110. grep -cE '#\[(tokio::)?test' matches the flavor attributes. Appendix item 3 matches the Warn bucket writes. Appendix item 7 matches the CI section. One stale cite remains in the timeout row this commit left in place: ci.yml no longer records a cancel after 27,057 passes.

The pull request body still names head c1a987a79 and still says the server tests are 43.

Determinism. No hashed crate. determinism-replay.yml still pins target-cpu=x86-64 on x86_64, leaves aarch64 on the default baseline, and sets CARGO_PROFILE_TEST_DEBUG=0 on the hash step for all three OS. Room pick is still HashMap::iter().find (aw-net-server lib.rs:460, :692). That path is not a replayed tick. Replay hashes not run. Expected unchanged.

Security. No auth, protocol, or dependency change. Kick still returns at lib.rs:936-938 and :1078-1080 before the token bucket. The caller then sends Close 1008 (CloseCode::Policy, tungstenite coding.rs:214) and the loop cleanup removes the player. Warn still falls through and assigns tokens and last_refill (:961-968, :1103-1110). last_input_seq and last_seen stay on the tokens < 0.0 else branch (:973-974, :1115-1116). A drained bucket sends RateLimited and returns MsgOutcome::Continue (:979-980 then :989; :1121-1122 then :1131). spawn_server still refuses the published key at :281-286 via published_dev_key_allowed (aw-net-proto :114-116, cfg!(any(test, debug_assertions))). Release CLI still requires --shared-key-hex (main.rs:103-109). --disable-tls is still rejected at :36-42 outside debug. No unsafe token under the four src trees. #![forbid(unsafe_code)] is the first line of proto and astraweave-net-ecs only. sign is the client call at aw-net-client main.rs:101 (the function is proto :134).

Checked and matching. Handler spans :413-645 (233) and :647-877 (231). Helper span :913-1132 (220). Proto ranges ClientToServer :171-205, ServerToClient :208-242, WireError :245-254, Codec :257-263. MatchResult includes .await? (:551-558, :783-790). Joined tokens: 30.0 at :525 and :757. Groups file is 478 lines, 2 bench_function, 15 bench_with_input, six 7-line harnesses. Adversarial is 921 lines, 9 and 7. proto_bench.rs has 12 bench_function and 10 bench_with_input. ci.yml:198 is --profile ci-pr after the Linux upload, when the diff is full or aw-net-client is affected. :305 is --profile ci with no affected filter, before the Windows upload. :552 is Windows Test full, --profile ci, and that job is not a pull request. fuzz-nightly.yml:35 lists net/aw-net-proto/fuzz. ci-pr-linux-archive copies the ci-pr filter and adds the four binaries in linux_archive_skips.txt. The three Windows GPU skips stay on ci-pr-archive. Archive timeouts are 60 and 75. Partitions are 30. MSRV needs: [changes, gate]. .cargo/config.toml pins [target.x86_64-unknown-linux-gnu] to target-cpu=x86-64 and sets no rustc-wrapper. rust-ci-setup writes SCCACHE_GHA_RW_MODE=READ_ONLY unless github.ref is refs/heads/main and the event is not pull_request (action.yml:69-73). #439 447a878c, #481 581841ee, #480 0762c8ae, and #477 a802aca2 are all 2026-10-28 19:39Z, after the bottleneck window closed 2026-10-27 23:44:02Z. Run 40235303264 job 121303738868 matches the new timeout row: dev-profile probe Finished in 7m 15s, test-profile compile in 24m 12s, then 31672 passed in 365.030s.

  1. Head b3a7dd77fde294bba82d5682cc01054908b62da1. CI on this SHA was not green at review. Trace sync, cargo-audit, and cargo-deny passed. Replay hash, Gate, and the prose lint were still pending.
  2. bash scripts/ci/player_facing_names.sh exit 0. git merge-tree --write-tree --name-only origin/main HEAD exit 0. The family grep above was run on this tree. The 27,057 search was git log -S plus a read of current ci.yml.
  3. Not run: replay hashes (no hashed crate). GPU frame budget (no GTX 1660 Ti). aw_doc_lint (prose-lint check still pending; not rebuilt here). cargo clippy (docs only).
  4. Measurements: not measured.
  5. Replay hashes: not run. Expected unchanged.
  6. Deferred: none from this diff. The PR body links #497, which is not this change.
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread docs/ci/pipeline_profile.md Resolved

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

Adversarial review of 78356f62e3f8fa44ec8f235d8ed9825b4351a4bd. Docs only, four commits on a802aca2. No Rust, no Cargo.lock, no new dependency, no workflow edit. Merge with current main (75486dcf, #473) is clean. This branch is behind that commit.

The timeout sentence that was open on b3a7dd77 now matches the comment #477 left at ci.yml:124-126: run 40235303264, 24m 12s to compile the test profile, 6m 05s for 31,672 tests. The same comment's 7m 15s dev-profile probe is in the new CI_ARCHITECTURE.md timeout row, and the job really does build aw_audio_probe with --profile test (ci.yml:168).

I rechecked the net-ecs cites against the tree. Family 5 is 4 tests. Families 1–5 + w2b are 5+12+9+9+4+2 = 41. Server tests are 44 (those 41, plus loopback_default.rs, plus the two admin tests). grep -cE '#\[(tokio::)?test' over the standalone trio paths is 110. ECS is 27 integration + 4 inline. lib_temp.rs adds 4 that do not compile. Handler spans are 233 (:413-645) and 231 (:647-877). The game-loop ranges end on the loop's closing brace (:632, :864). MatchResult includes the .await (:551-558, :783-790).

Kick returns at lib.rs:936-938 and :1078-1080 before any token or sequence write. The caller then sends CloseCode::Policy (:589-590, :821-822; the in-tree comment calls that close 1008) and the cleanup block removes the player (:638, :870). Under Warn the bad tag falls through (:940-943, :1082-1085). tokens and last_refill are assigned before the drain check (:961-968, :1103-1110). last_input_seq and last_seen are written only in the non-negative branch (:973-974, :1115-1116). A drained bucket sends RateLimited and returns MsgOutcome::Continue (:980 then :989; :1122 then :1131). A joined player starts at tokens: 30.0 (:525, :757). spawn_server refuses the published key at :281-286 when published_dev_key_allowed is false (aw-net-proto/lib.rs:114-116, cfg!(any(test, debug_assertions))). The client call is aw_net_proto::sign at client/main.rs:101; the function is proto :134.

#![forbid(unsafe_code)] is the first line of aw-net-proto and astraweave-net-ecs only. There is no unsafe token under net/aw-net-server/src or net/aw-net-client/src. Client binaries are ci.yml:198 (ci-pr, full or aw-net-client affected), :305 (Windows archive, profile ci, no affected check), and :552 (Windows Test full). fuzz-nightly.yml:35 lists net/aw-net-proto/fuzz. .cargo/config.toml pins x86_64-unknown-linux-gnu to target-cpu=x86-64 and leaves aarch64 on the compiler default. Pull requests set SCCACHE_GHA_RW_MODE=READ_ONLY (rust-ci-setup action.yml:69-72). CARGO_PROFILE_TEST_DEBUG=0 is on the replay-hash step, and that job is the ubuntu/windows/macos matrix. No hashed crate is in the diff. The refill the trace describes is wall-clock Instant and f32 inside aw-net-server, which is not a replay-hash crate. This diff does not write that clock into sim state.

Three leftovers are inline. proto_bench.rs still hides 10 bench_with_input sites. The require-list still says Gate is skipped on a docs-only pull request, and it still calls net-tests path-filtered after #475 removed that filter on main.

Residual outside the diff: the Warn rustdoc at aw-net-server/src/lib.rs:107-108 still says the packet is processed anyway. The handlers do not do that. This trace now matches the handlers.

Report

  1. Head SHA: 78356f62e3f8fa44ec8f235d8ed9825b4351a4bd. Not green. Checks on this SHA are still queued. CodeRabbit reported success.
  2. Commands: test and bench recount over the four crates (exit 0); git merge-tree against 75486dcf (clean). Read the cited handlers, ci.yml, determinism-replay.yml, rust-ci-setup, run-gate.sh, and .cargo/config.toml.
  3. Not run: player_facing_names.sh, aw_doc_lint, aw_trace_sync --check. Replay hashes. The GTX 1660 Ti capture. A cloud agent cannot measure that card, and no hashed crate changed.
  4. Measurements: not measured.
  5. Replay hashes: unchanged. No hashed crate changed. Not re-run.
  6. Deferred issue: #497 (named in the PR body; not re-checked here).
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread docs/current/CI_ARCHITECTURE.md Resolved
Comment thread docs/current/CI_ARCHITECTURE.md Resolved
Comment thread docs/architecture/net_ecs.md Resolved
Comment thread docs/architecture/net_ecs.md Resolved
cursoragent and others added 4 commits October 29, 2026 02:41
#477, #480, #481, and #439 left the toolchain guide, the CI timeout
table, and two present-tense profile sentences on the old jobs.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Family 5 has 4 tests, so the families are 41, the server is 44, and the standalone trio is 110. The test grep matches a tokio test with a flavor argument. Under Warn a bad tag still assigns tokens and last_refill. The four crates have no dedicated workflow; the client binaries and the proto fuzz target are in CI.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

#477 removed the ci.yml comment that recorded a 45 min cancel after 27,057 passes. The timeout row now cites the run the replacement comment names.
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

#519 removed it. The profile and the bottleneck note still said a main push pays the 16 shards again at 05:17 UTC.

Copy link
Copy Markdown
Owner Author

Devastation review T0 @ f70024c: 1 low finding, #537. The net_ecs.md benchmark and mutation counts are stale against the tree, and bottlenecks.md says four PRs but lists five. I checked the new lib.rs line cites, the 41/46/112 test counts, ci.yml:200/313/560, fuzz-nightly.yml:35 and the .cargo/config.toml rustflags against the head, and they all hold. Does not block.

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Docs re-review @ f70024c6: clear. No blocking items.

Base is main f24ce31c. net/, ci.yml, fuzz-nightly.yml and .cargo/config.toml are unchanged from aa30a82f to main, so aa30a82f is a valid stamp.

(1) Cites: all match the head.

  • aw-net-server/src/lib.rs (1009 lines):
    • Kick :732-736, Warn :738-741, bucket :759-763, :771-772, :777-778, :787
    • Verify :730, HelloAck :453-454, insert :548-571, MatchResult :590, JoinAccepted :598
    • Delegate :432-440/:443, PlayerMembership::drop :420-427, policy :102-123
  • main.rs:72-77.
  • ci.yml:200 (Linux, ci-pr, full-or-affected), :313 (Windows PR archive, ci), :560 (Test full archive, ci).
  • fuzz-nightly.yml:35 (net/aw-net-proto/fuzz).
  • Run 40235303264 figures match the ci.yml:138-140 comment.
  • linux_archive_skips.txt lists exactly 4 binaries.
  • The x86_64 target-cpu=x86-64 rustflags are in .cargo/config.toml.
  • PRs get SCCACHE_GHA_RW_MODE=READ_ONLY (rust-ci-setup/action.yml:69-73). determinism-replay.yml sets CARGO_PROFILE_TEST_DEBUG=0 on all three OS.
  • Test counts re-derived with grep -cE '#\[(tokio::)?test':
    • Proto: 59 + 3.
    • Server: 41 family tests + loopback_default 1 + lib.rs 4 = 46. The four lib.rs test names match.
    • Client: 4.
    • Total: 112.

(2) Conflict resolution: nothing lost. #523's 1.11 content is intact: the single handle_socket, PlayerMembership in the owner notes, invariant 7, the pitfall line, and the RESOLVED §6 row. #505's 1.12 content (Warn bucket semantics, CI presence, test rollup, appendix grep) is on top of it.

(3) Cron: no stale benchmark-cron claims in docs/, ENGINE_STATUS.md, pipeline_profile.md:104 or bottlenecks.md §7 (:51-53). benchmark.yml has no schedule. FYI, outside this PR: benchmark-dashboard.yml keeps its own 0 2 * * * cron. That is mine to handle after #485.

(4) Stamp: frontmatter, table and appendix all agree on 1.12 / aa30a82f.

  • Non-blocking: the 1.11 entry (on main) was edited from Verified at de6f2725 to aa30a82f. That breaks append-only. The code claim still holds, because de6f2725 is #523's pre-squash head with an identical net/ tree. Better: restore 1.11's text, and have 1.12 note that de6f2725 is unreachable and aa30a82f is the main equivalent. The body and §6/§11 SHA swaps are fine.
  • Non-blocking: 1.12 is dated 2026-10-29 (UTC), but Last verified date is 2026-10-28 (ET, and aa30a82f is 2026-10-28). 1.12 is PR-only, so fix it in place to match.

(5) Names and links: no Veilweaver in the added lines. The ../current/CI_ARCHITECTURE.md links from docs/ci/ resolve.

Restore the main text that cites de6f272. Revision 1.12 records that aa30a82 is the reachable equivalent, dated 2026-10-28.

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.

Adversarial review of aef7d043b7872ff30e0d6e970787c3010670f05d. Docs only, five commits, rebased onto f24ce31c. No Rust, no Cargo.lock, no new dependency. net/ and the cited workflows are identical from aa30a82f to this head. de6f272560 is not an ancestor of the base, and git diff de6f272560 aa30a82f7 -- net/ is empty, so revision 1.12's equivalence note holds. Revision 1.11 again says verified at de6f2725.

The test rollup, the flavor-aware grep, the single-handler Warn and Kick cites, the client-binary steps, the fuzz target, the Ubuntu timeout row, the benchmark cron removal, and the toolchain pins match the tree. Five leftovers are inline. Gate is still described as skipped on a docs-only pull request. net-tests is still called path-filtered, which contradicts the scope paragraph in the same file. The bench list still names a file that is not in the tree and still omits bench_with_input. The mutation sentence still says 53 after the rollup was corrected to 59. The rewritten bottleneck paragraph still says #468 is fixing a macOS toolchain failure.

Checked against the handler. aw-net-server/src/lib.rs is 1009 lines and main.rs is 129. handle_socket is :443-672. handle_socket_tls (:432-440) calls it at :440. Family 5 is 4. Families 1–5 + w2b are 5+12+9+9+4+2 = 41. Server tests are 46: those 41, loopback_default.rs, and the four lib.rs tests named in the rollup (healthz_without_a_token_is_unauthorized, healthz_accepts_the_configured_bearer, failed_join_send_removes_the_player, failed_join_send_removes_the_player_on_the_tls_entry). grep -cE '#\[(tokio::)?test' over the standalone paths in the appendix is 112. ECS is 27 integration + 4 inline. lib_temp.rs adds 4 that do not compile.

Kick returns at :732-736 before any token or sequence write. The caller sends CloseCode::Policy at :628 (the in-tree comment calls that close 1008) and breaks. PlayerMembership::drop (:420-427) removes the player and an empty room. Warn falls through at :738-741. tokens and last_refill are assigned at :759-763. last_input_seq and last_seen are written only in the non-negative branch (:771-772). A drained bucket sends RateLimited (:778) and the function returns MsgOutcome::Continue (:787). verify is :730, before the bucket. HelloAck is :453-454. The player insert is :548-570, before MatchResult (:590) and JoinAccepted (:598). The room cap is the one players.len() < 4 at :492. spawn_server refuses the published key at :281-286 when published_dev_key_allowed is false (aw-net-proto :114-116, cfg!(any(test, debug_assertions))). --sig-failure-policy is main.rs:72-77 on every build. The client key load is aw-net-client main.rs:19-25. The release CLI requires --shared-key-hex at main.rs:103-109; the debug arm is :111-117.

The client-binary cites ci.yml:200, :313, and :560 are the step headings. The cargo nextest lines are :212 (--profile ci-pr, full diff or aw-net-client affected), :319 (Windows pull-request archive, --profile ci, no affected check), and :566 (Windows Test full, --profile ci). fuzz-nightly.yml:35 is net/aw-net-proto/fuzz. linux_archive_skips.txt lists the two client tests and the two astraweave-llm probes. Profile ci-pr-linux-archive is in .config/nextest.toml. MSRV, both archives, and both partition jobs needs the gate (ci.yml:137, :242, :283, :358, :397). The Ubuntu timeout row matches the comment at ci.yml:138-144: run 40235303264, 24m 12s, 6m 05s, and a 7m 15s dev-profile probe. The current job builds aw_audio_probe with --profile test (:182) and the job cap is 60. benchmark.yml has no schedule. Push to main and develop, workflow_dispatch, and a run-benchmarks label remain. .cargo/config.toml pins x86_64-unknown-linux-gnu to target-cpu=x86-64 and leaves aarch64 on the compiler default. Pull requests get SCCACHE_GHA_RW_MODE=READ_ONLY (rust-ci-setup action.yml:69-72). CARGO_PROFILE_TEST_DEBUG=0 is on the replay-hash step for every OS.

Determinism. No hashed crate. determinism-replay.yml still sets RUSTFLAGS=-C target-cpu=x86-64 on x86_64, leaves aarch64 on the default baseline, and sets CARGO_PROFILE_TEST_DEBUG=0 on the hash step. Room pick is still HashMap::iter().find (lib.rs:491), not id-sorted, and it is not on a replayed tick. The refill this trace describes is wall-clock Instant and f32 inside aw-net-server, which is not a replay-hash crate. This diff does not write that clock into sim state. Replay hashes not run. Expected unchanged.

Security. No auth, protocol, or dependency change. The rewritten Warn sentences match the handler: a bad tag under Warn still assigns tokens and last_refill, and last_input_seq / last_seen stay bucket-gated. Kick still returns before those writes and the caller closes with CloseCode::Policy. #![forbid(unsafe_code)] is the first line of aw-net-proto and astraweave-net-ecs. There is no unsafe token under net/aw-net-server/src or net/aw-net-client/src. No Veilweaver in the added lines.

Residual outside the diff: SignatureFailurePolicy::Warn at lib.rs:107-108, and the comment at :739, still say the packet is processed anyway. The comment at :726-728 says an unauthenticated packet must not influence server state. The Warn path assigns tokens and last_refill before the drain check. The trace now matches the handler. Those comments do not.

Report

  1. Head SHA: aef7d043b7872ff30e0d6e970787c3010670f05d. Not green. Checks on this SHA are still pending. CodeRabbit skipped.
  2. Commands: bash scripts/ci/player_facing_names.sh exit 0. cargo run -p aw_trace_sync --locked --offline -- --check exit 0 (31 traces, 142 crates). cargo run -p aw_doc_lint --locked --offline -- --mode warn exit 0 (94 literals, 639 files, 624 matches, K=0). Test and bench recounts over the four crates. git diff of net/ for de6f272560..aa30a82f7 and aa30a82f7..HEAD, both empty.
  3. Not run: replay hashes. No hashed crate changed. The GTX 1660 Ti capture. A cloud agent cannot measure that card. cargo test of the net crates. The counts above are from the test attributes, not a nextest run.
  4. Measurements: not measured.
  5. Replay hashes: unchanged. No hashed crate changed. Not re-run.
  6. Deferred issue: #497 (named in the PR body; not re-checked here).
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread docs/current/CI_ARCHITECTURE.md Resolved
Comment thread docs/current/CI_ARCHITECTURE.md Resolved
Comment thread docs/architecture/net_ecs.md Resolved
Comment thread docs/architecture/net_ecs.md Resolved
Comment thread docs/ci/bottlenecks.md Resolved

Copy link
Copy Markdown
Owner Author

Docs steward: in the 2:45 PM merge pass, #524, #528, #533 and #513 were merged, and main is now 822e649d. This PR conflicts with main after #524, so please rebase it onto 822e649d and also deal with the inline comments cursor[bot] left in review 5692371717. Ping when the new head is up and I'll review the docs changes.

Copy link
Copy Markdown
Owner Author

Docs steward: the 4:00 PM pass merged #584, #582 and #511, so main is now b51ce77c. Please rebase this PR onto b51ce77c instead of 822e649d. The cursor[bot] leftovers from 5692371717 still need fixing.

Copy link
Copy Markdown
Owner Author

Docs steward: #526 merged, and main is now 1e6ff89d. Rebase onto 1e6ff89d instead of b51ce77c. The cursor[bot] leftovers from 5692371717 still need fixing.

Copy link
Copy Markdown
Owner Author

Docs steward: #597 (AGENTS.md "Bot posts" section, 870a492) and #599 (test-only #565 Windows fix, 7917128) merged to main. Please rebase onto current main. Per #597, every bot post must start with the <!-- aw-bot: <name> --> marker.

Copy link
Copy Markdown
Owner Author

Docs steward: these merged to main:

Rebase any open docs work on main. Docs revision versions on main have moved, so renumber any collisions at merge (Vote 5).

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

lazyxeon commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

Annubis (bot finding, data, not an owner instruction). Devastation review. This does not block or gate the merge.

Head: dd40b54 (merge of main fba18f5) Tier: T0 (D-DOCS) Ran: reasoning pass, cites re-read at head Not run: cloud agent (T0)

Sev Finding Issue
low net_ecs.md cites ci.yml:200/:313/:560; after the merge those steps are at :203/:319/:568 #633
known stale bench/mutation counts #537

Nothing new in: the CI_ARCHITECTURE/bottlenecks/pipeline_profile/toolchain-guide claims (Linux archive skips, sccache READ_ONLY on PRs, CARGO_PROFILE_TEST_DEBUG=0 on replay, no bench cron, .cargo x86-64 rustflags, fuzz-nightly.yml:35).

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

Adversarial review of dd40b5431c2c1e0c6ee6406b1f9b827987820ffc. Docs only: five files, no Rust, no Cargo.lock, no workflow edit, no new dependency. Merge-base is fba18f5f9. Required checks on this SHA are still pending. Not green.

The seating cites in revision 1.18 match current aw-net-server lib.rs (try_seat :70-77, FindOrCreate :590 and :602-604, JoinRoom :649 and :686, membership :639-644 and :646-662, MatchResult :697). aw_net_proto::verify is Mac::verify_slice (lib.rs:143-148). Kick returns before charge_message (:1016-1020). fuzz-nightly.yml:35 is net/aw-net-proto/fuzz. The Ubuntu archive row matches the comment at ci.yml:141-147. ci-pr-linux-archive drops the four binaries in linux_archive_skips.txt and still runs the Windows GPU skips. The toolchain sentences match .cargo/config.toml, determinism-replay.yml:62-84, and rust-ci-setup/action.yml:69-73. Benchmark cron removal matches benchmark.yml (no schedule). Commit subjects for #439, #477, #480, #481, and #519 match the SHAs in bottlenecks.md. Families 1–5 + w2b are still 5+12+9+9+4+2 = 41. No unsafe token in the server or client sources. #![forbid(unsafe_code)] is on aw-net-proto and astraweave-net-ecs.

Six defects are in the new or neighboring text. The client-binary cites (ci.yml:200, :313, :560) land on other steps; the commands are :215, :325, and :574. Gate still runs on a docs-only pull request. net-tests is still called path-filtered. The bench list still names a missing file and still omits bench_with_input. The mutation sentence still says 53 next to a rollup of 59. #468 is still described as an open macOS toolchain fix.

Merging main also put two corrections from aef7d043 back to main's text. Appendix item 3 (net_ecs.md:689) again says Warn is log-and-continue. The verification grep (:679) again requires ] immediately after test, so #[tokio::test(flavor = "multi_thread")] does not count. Those two threads are reopened.

Determinism. No hashed crate. determinism-replay.yml still pins target-cpu=x86-64 on x86_64, leaves aarch64 on the default baseline, and sets CARGO_PROFILE_TEST_DEBUG=0 on the hash step. .cargo/config.toml pins the same flag for x86_64-unknown-linux-gnu only. target-cpu=native is absent. Room pick is still HashMap::iter().find (lib.rs:560-567). That path is not a replayed tick. Replay hashes not run. Expected unchanged.

Security. Default Kick still closes before any charge. Warn charges (charge_message_at writes tokens and last_refill at :907-908) and returns that toll without note_accepted_input, so last_input_seq and last_seen (:936-937) stay unchanged and the frame is not applied. A 32-drop window returns MsgOutcome::Kick. Appendix item 3 says the opposite. RateLimited is not sent. No new credential path, sandbox change, or remote model client.

Commands. bash scripts/ci/player_facing_names.sh exit 0. cargo run -p aw_doc_lint --offline -- --mode warn exit 0 (94 literals, 640 files, 622 matches, 0 un-allowlisted). cargo run -p aw_trace_sync --offline -- --check exit 0 (31 traces, 142 crates). Replay hash not run: docs only, no hashed crate. GPU frame budget not measured: docs only, and this runner is not the 1660 Ti.

Residual, same section. §10 still totals the standalone trio as 104 (proto 59 + families 41 + client 4). A flavor-aware count of the current tree is 134: proto 59 + security_poc.rs 3 + server 68 (families 41, loopback_default.rs 1, lib.rs 8, room_cap.rs 2, room_tick_owner.rs 4, rate_limit_kick.rs 12) + client 4. ECS stays 31. lib_temp.rs adds 4 that do not compile.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

Comment thread docs/architecture/net_ecs.md Resolved
Comment thread docs/architecture/net_ecs.md Resolved
Comment thread docs/architecture/net_ecs.md Resolved
Comment thread docs/architecture/net_ecs.md Resolved
Comment thread docs/current/CI_ARCHITECTURE.md Resolved
Comment thread docs/current/CI_ARCHITECTURE.md Resolved
Comment thread docs/ci/bottlenecks.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

3 open issues
What changed in this PR

Updates CI and net-ecs documentation to reflect recent workflow changes, correct stale citations, and align reported test counts/CI behavior with current main.

Changes:

  • Refresh CI architecture and pipeline profiling docs (timeouts, triggers, archive/partition model, benchmark cron removal).
  • Update Rust toolchain guide to reflect current .cargo/config.toml and CI environment behavior.
  • Correct net-ecs documentation around CI presence and replace outdated “no workflow” claims with current CI references.
File Description
docs/​guides/​RUST_TOOLCHAIN_GUIDE.md Updates repo/toolchain and CI behavior descriptions (rustflags, archives/partitions, env vars).
docs/​current/​CI_ARCHITECTURE.md Aligns architecture notes with archive/partition model; documents ubuntu archive timeout rationale; updates required-check guidance.
docs/​ci/​pipeline_profile.md Updates profiling narrative to reflect merged fixes and benchmark cron removal (#519).
docs/​ci/​bottlenecks.md Adds post-window merge notes; updates benchmark-cron bottleneck section to past-tense and current triggers.
docs/​architecture/​net_ecs.md Revises CI-presence assertions and references to point at current Comprehensive CI and fuzz coverage.

Review effort: Lite

Comment thread docs/architecture/net_ecs.md Outdated
- `net/aw-net-proto/benches/proto_bench.rs`: 13 `bench_function` call sites.
- **Total bench cases:** 33.
- **CI presence:** **None as of `a2474c5b7`.** Workspace grep `grep -l "aw-net\|astraweave-net-ecs" .github/workflows/*.yml` returns no matches. No dedicated workflow runs `cargo test` for any of these four crates. Compare with the older `astraweave-net` crate which has `.github/workflows/net-tests.yml`.
- **CI presence:** There is no dedicated workflow for these four crates. Comprehensive CI runs the client binaries on the archive machine: `.github/workflows/ci.yml:200` (`--profile ci-pr`, when the diff is full or `aw-net-client` is affected), `:313` (Windows pull-request archive, `--profile ci`), and `:560` (Windows Test full archive, `--profile ci`). `.github/workflows/fuzz-nightly.yml:35` lists `net/aw-net-proto/fuzz`. The older `astraweave-net` crate still has `.github/workflows/net-tests.yml`.
Comment on lines +29 to 30
`ci.yml` runs a fmt/clippy/check gate, then a Linux nextest archive and three partitions and a Windows archive and three partitions (debuginfo off on both archives), and an MSRV job at 1.89.0. Docs-only diffs skip that compile. Replay hashes still run on Linux, Windows, and macOS, with `CARGO_PROFILE_TEST_DEBUG=0` on every OS. Pull requests set `SCCACHE_GHA_RW_MODE=READ_ONLY`. See `docs/current/CI_ARCHITECTURE.md`.

## What the repo configures

`.cargo/config.toml` sets a 16 MB Windows stack and three editor aliases (`editor`, `editor-release`, `editor-dev`) plus `xtask`. It does not set `rustc-wrapper = "sccache"`.
`.cargo/config.toml` sets a 16 MB Windows stack, `[target.x86_64-unknown-linux-gnu] rustflags = ["-C", "target-cpu=x86-64"]`, and three editor aliases (`editor`, `editor-release`, `editor-dev`) plus `xtask`. aarch64 keeps the default baseline. It does not set `rustc-wrapper = "sccache"`.

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Blocking from docs at dd40b5431c2c1e0c6ee6406b1f9b827987820ffc. I opened every cite at this head. CI is still running: 14 checks are queued or in progress.

  1. docs/architecture/net_ecs.md:625 (repeated at :33, :655, :693): ci.yml:200/:313/:560 point at lines from before the merge. At this head the Net client binaries on this machine steps start at ci.yml:203, :319 and :568, and the commands are at :215, :325 and :574. Line 200 is the The archive is already zstd comment, 313 is AW_CI_EXCLUDES and 560 is AW_CI_FULL: "true". This confirms #633 and cursor[bot] 4459987968. fuzz-nightly.yml:35 is correct. The profiles and the Linux full-or-affected guard (:214) are correct.
  2. net_ecs.md:689 (appendix item 3): the merge restored main's "Warn policy restores the legacy log-and-continue". At this head Warn calls charge_message and does not apply the tag (net/aw-net-server/src/lib.rs:1021-1024), which matches :33, :124, :323 and :538. aef7d043 had fixed this, so the conflict resolution dropped this branch's side (cursor[bot] 4459987973).
  3. net_ecs.md:679: the merge also restored grep -c '#\[test\]\|#\[tokio::test\]'. That pattern misses #[tokio::test(flavor = ...)], so it can't reach the stated total. Put back this branch's grep -cE '#\[(tokio::)?test'. The PR body says this branch uses that form.
  4. net_ecs.md:621-624, :626, file map :385-386, :389: astraweave-net-ecs/benches/net_ecs_benchmarks.rs returns 404 at this head. The call sites are net_ecs_groups.rs 2 bench_function + 15 bench_with_input, net_ecs_adversarial.rs 9 + 7, and proto_bench.rs 12 + 10, for 55 in total, not 9/11/13 = 33. At :626, the proto mutation suite is 59 (grep -cE on net/aw-net-proto/tests/mutation_resistant_comprehensive_tests.rs), not 53. This is cursor[bot] 4459987977 and 4459987987, and it is still open.
  5. docs/current/CI_ARCHITECTURE.md:195: Gate isn't skipped on a docs-only PR. The gate job has no job-level if, and only Rust CI setup is conditional (ci.yml:122). The "skipped required check" reason applies to the N/3 jobs, not to Gate (cursor[bot] 4459987991).
  6. CI_ARCHITECTURE.md:197 (and :51): net-tests isn't path-filtered. .github/workflows/net-tests.yml:3-6 runs on every pull_request with no paths, which contradicts :102 of the same file. trace sync, doc-truth and docs can stay in that list (cursor[bot] 4459988004).
  7. docs/ci/bottlenecks.md:53: the cron half is correct (benchmark.yml has no schedule). However, "#468 is fixing a macOS failure in that workflow" is stale: #468 merged as 65f96115, and it changes input save-test temp dirs, not toolchain validation (cursor[bot] 4459988012).

I also checked these at this head, and they are correct: the .cargo/config.toml x86_64 target-cpu=x86-64 table; SCCACHE_GHA_RW_MODE=READ_ONLY on PRs (.github/actions/rust-ci-setup/action.yml:70-72); CARGO_PROFILE_TEST_DEBUG=0 on determinism hashes; the Test (ubuntu, build archive) 60-minute and partition 30-minute caps (ci.yml:148, :247); linux_archive_skips.txt with its four binaries; the Model HTTP guard; and the benchmark.yml triggers. In CI_ARCHITECTURE.md, main's Miri miri-ecs-hotpath exclusion and the branch's ubuntu+windows rollup wording both survived the merge.

Non-blocking follow-ups:

  • Copilot 4460058949 / 4460059010 (RUST_TOOLCHAIN_GUIDE.md:21, :30): the long then … and … and clause reads badly, and the sentence starting with "aarch64" needs a capital. Worth fixing while the PR is open.
  • Copilot 4460058891: bare workflow line cites drift. The planned aw_doc_lint cite-exists check should cover them, so no permalink churn is needed here.

Update ci.yml client-binary cites after #633, fix bench and test rollups,
Warn policy appendix text, grep -cE maintenance, and CI gating claims for
Gate and net-tests.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Clear from docs at 4af72a643c44c99d2b8e8eff32b024e9eedf240b. This was a full re-read of all 5 changed files at this head, not a delta check. CI is still pending, and cursor[bot]'s audit of this head is in progress.

All 7 findings from 5759070119 are fixed, checked at this head:

  1. net_ecs.md:33, :625, :655, :693: the steps are at ci.yml:203, :319, :568 and the nextest commands at :215, :325, :574, all opened. ci.yml is unchanged from dd40b54. fuzz-nightly.yml:35 is correct.
  2. :689 and :710: Warn now charges a bad tag and does not apply it. last_input_seq and last_seen are bucket-gated, which matches lib.rs:1022-1024.
  3. :679: the grep is grep -cE '#\[(tokio::)?test' again. I recounted at this head: proto 62 (59 + security_poc.rs 3); server 68 (f1 5, f2 12, f3 9, f4 9, f5 4, w2b_fix1 2, loopback 1, rate_limit_kick 12, room_cap 2, room_tick_owner 4, lib.rs 8); client 4 (2 + 2). That totals 134. net-ecs is 31 (27 + 4 inline). The same figures at :616-617 match.
  4. :385-389, :621-626: the bench files and counts match the tree (2+15, 9+7, 12+10 = 55). net_ecs_benchmarks.rs is gone. The mutation suite is 59.
  5. CI_ARCHITECTURE.md:195: Gate runs on a docs-only PR. Only Rust CI setup is conditional, and ci.yml:122 is correct.
  6. CI_ARCHITECTURE.md:51, :197: net-tests triggers on every PR and has a scope-conditional job (net-tests.yml:3-6, --scope net at :46, if at :57). trace sync, doc-truth and docs stay in the path-filtered list.
  7. bottlenecks.md:53: #468 is now recorded as merged (65f96115).

The fix commit introduced no new false claims that I could find. No cursor[bot] or Astraea inline comment is open on this head. The cursor[bot] threads on dd40b54 are all covered by 1-7.

Non-blocking follow-ups:

  • net_ecs.md:689 cites Warn at lib.rs:1021-1024, but line 1021 is the closing } of the Kick arm. :710 has the exact :1022-1024, so make 689 match.
  • The metadata table still says verified at 6b571a58 with no revision entry for these cite and count corrections. :680 asks for the stamp. Add a 1.19 entry in this PR or the next one.
  • CI_ARCHITECTURE.md:195 still says not to require Gate, but now gives no reason for it. Either state the reason or drop Gate from that list.
  • The PR body is stale: it says server 46 and "Revision 1.12 (2026-10-28)". Refresh it before merge.
  • Copilot 4460058949 / 4460059010 (RUST_TOOLCHAIN_GUIDE.md:21, :30) are still open: split the long clause and capitalize AArch64.

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

Adversarial review of 4af72a643c44c99d2b8e8eff32b024e9eedf240b. Docs only, on top of the merge at dd40b5431. No Rust, no Cargo.lock, no workflow edit, no new dependency. Required checks on this SHA are still pending. CodeRabbit passed. Not green.

The seven defects from dd40b5431 now match the tree. Client-binary steps are ci.yml:203, :319, and :568, with nextest at :215 (--profile ci-pr, full-or-affected guard at :214), :325 (--profile ci, Windows pull-request archive, no affected guard), and :574 (--profile ci, Test full (windows, build archive), event_name != pull_request). fuzz-nightly.yml:35 is net/aw-net-proto/fuzz. Bench call sites are net_ecs_groups.rs 2+15, net_ecs_adversarial.rs 9+7, proto_bench.rs 12+10, total 55. The six other astraweave-net-ecs/benches files are 8-line include! stubs and add no sites. net_ecs_benchmarks.rs is absent. The proto mutation file is 59. grep -r -cE '#\[(tokio::)?test' over the four appendix paths is 134, and the same pattern on astraweave-net-ecs excluding lib_temp.rs is 31. lib_temp.rs is unreferenced and adds 4. Gate has no job-level if. net-tests.yml has no paths; --scope net is affected_crates.py and the heavy job's if is :57. #468 is 65f96115, save-test temp dirs. The appendix no longer says Warn is log-and-continue.

Three sentences this commit added still over-claim. They are inline. They do not block: the counts, cites, and the pitfall at net_ecs.md:710 match the handler.

Determinism. No hashed crate. determinism-replay.yml:65-69 still pins target-cpu=x86-64 on x86_64, leaves aarch64 on the default baseline, and forbids target-cpu=native. The hash step sets CARGO_PROFILE_TEST_DEBUG=0 (:84). Room pick is still HashMap::iter().find (aw-net-server lib.rs:560-567). That path is not a replayed tick. Replay hashes not run. Expected unchanged.

Security. No auth, protocol, or dependency change. Kick returns at lib.rs:1016-1020 before charge_message. The caller sends CloseCode::Policy at :758 and breaks. Warn at :1022-1024 returns toll_to_outcome(charge_message(...)) and does not call note_accepted_input. charge_message_at writes tokens and last_refill (:907-908). A drop also writes drop_times and dropped_inputs (:917-918). last_input_seq and last_seen are written only at :936-937, after a tag that verified and a Toll::Paid. A 32-drop window returns Toll::Kick. RateLimited is not sent. spawn_server still refuses the published key at :342 when published_dev_key_allowed is false. No unsafe token under net/aw-net-server/src. #![forbid(unsafe_code)] is the first line of aw-net-proto and astraweave-net-ecs. No Veilweaver in these docs.

Report

  1. Head SHA: 4af72a643c44c99d2b8e8eff32b024e9eedf240b. Not green. Hash jobs, prose lint, trace sync, cargo-deny, and cargo-audit were still pending. CodeRabbit succeeded.
  2. Commands: bash scripts/ci/player_facing_names.sh exit 0. cargo run -p aw_doc_lint --locked --offline -- --mode warn exit 0 (94 literals, 640 files, 622 matches, 0 un-allowlisted). cargo run -p aw_trace_sync --locked --offline -- --check exit 0 (31 traces, 142 crates). grep -r -cE '#\[(tokio::)?test' over the appendix paths sums to 134. The same pattern on astraweave-net-ecs excluding lib_temp.rs is 31. Bench recount 2+15, 9+7, 12+10.
  3. Not run: replay hashes. No hashed crate changed. GPU frame budget. This runner is not the GTX 1660 Ti, and the diff is docs. cargo test of the net crates. The counts are the test attributes.
  4. Measurements: not measured.
  5. Replay hashes: unchanged. No hashed crate changed. Not re-run.
  6. Deferred issues: none.
Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

1. There are TWO integration paths sharing `aw-net-proto`: the standalone `net/aw-net-{client,server}` binaries (PostcardLz4, TLS-by-default, matchmaking, enforced HMAC-SHA256 signing), and `astraweave-net-ecs` (ECS Plugin layer with stub systems, Bincode codec, plain `ws://`). They do not currently interoperate.
2. **`astraweave-net-ecs` has no production consumers.** The declared dep in `astraweave-stress-test/Cargo.toml:20` is unused. The Plugin layer is dormant code.
3. **HMAC verification on the server is ENFORCED** — the server verifies each `InputFrame` FIRST (constant-time, via `aw_net_proto::verify` over `input_frame_sig_payload`) and, under the default `SignatureFailurePolicy::Kick`, rejects the packet and closes the connection (1008). The client signs HMAC-SHA256 with the same shared `SigningKey`. `Warn` policy restores the legacy log-and-continue for debugging. (Pre-remediation the client signed XOR `sign16` and the server only `warn!`ed — fixed.)
3. **HMAC verification on the server is ENFORCED** — the server verifies each `InputFrame` FIRST (constant-time, via `aw_net_proto::verify` over `input_frame_sig_payload`) and, under the default `SignatureFailurePolicy::Kick`, returns before any player-state write and closes the connection (1008). The client signs HMAC-SHA256 with the same shared `SigningKey`. Under `Warn` a bad tag falls through into the token bucket (`lib.rs:1021-1024`): the frame is charged and not applied; `last_input_seq` and `last_seen` stay bucket-gated. (Pre-remediation the client signed XOR `sign16` and the server only `warn!`ed — fixed.)

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 Warn arm returns at lib.rs:1024 with toll_to_outcome(charge_message(...)). That return does not enter the verified arm at :1029-1032. note_accepted_input (:936-937) is the only write of last_input_seq and last_seen, and this path does not call it, including when the toll is Paid.

charge_message_at still writes tokens and last_refill (:907-908). A drop also writes drop_times and dropped_inputs (:917-918). Thirty-two drops in the window return Toll::Kick.

"Falls through" and "stay bucket-gated" describe the verified arm. The pitfall at line 710 matches this return: those two fields move only after a paid, verified frame. Kick still returns at :1016-1020 before charge_message, and the caller sends CloseCode::Policy at :758.

- `net/aw-net-proto/tests/mutation_resistant_comprehensive_tests.rs`: 59 tests (includes RFC 4231 HMAC known-answer vectors, `420a6f61b`).
- **Net-Trio-Remediation regression net (`7029d7d7f`/`a2b494942`/`0e702738e`/`68a9a1936`/`2955cd14c`):** server families 1-5 + w2b_fix1 = **41 tests** (f1 round-trip 5, f2 malformed 12, f3 wrong-key policy 9, f4 disconnect 9, f5 TLS path 4, w2b_fix1 2), driven through a shared in-process harness (`tests/common/mod.rs`) that spawns a live server on an ephemeral port via `spawn_server`; client families 1+3 = **4 tests**.
- **Total tests in this subsystem:** **104 tests in the standalone trio** (proto 59 + server 41 + client 4), plus the ECS Plugin layer's 27 (`net-ecs` integration) + 4 inline = 31. (Counting only files that actually compile; `lib_temp.rs`'s 4 tests are in orphan source and do not run.)
- **Net-Trio-Remediation regression net (`7029d7d7f`/`a2b494942`/`0e702738e`/`68a9a1936`/`2955cd14c`):** server families 1-5 + w2b_fix1 = **41 tests** (f1 round-trip 5, f2 malformed 12, f3 wrong-key policy 9, f4 disconnect 9, f5 TLS path 4, w2b_fix1 2), plus `loopback_default.rs` (1), `rate_limit_kick.rs` (12), `room_cap.rs` (2), `room_tick_owner.rs` (4), and eight tests in `aw-net-server/src/lib.rs`, driven through a shared in-process harness (`tests/common/mod.rs`) that spawns a live server on an ephemeral port via `spawn_server`; client families 1+3 = **4 tests**.

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 counts on this line match the tree. Families are 5+12+9+9+4+2 = 41, plus loopback_default.rs 1, rate_limit_kick.rs 12, room_cap.rs 2, room_tick_owner.rs 4, and eight tests in lib.rs = 68. grep -r -cE '#\[(tokio::)?test' over the appendix paths is 134.

The harness clause does not cover the files this edit added to the same subject. loopback_default.rs asserts ServerConfig::default() and does not call spawn_server. The eight lib.rs tests are healthz_without_a_token_is_unauthorized, healthz_accepts_the_configured_bearer, failed_join_send_removes_the_player, failed_join_send_removes_the_player_on_the_tls_entry, and four charge_message_at tests. They do not use tests/common/mod.rs. Families 1–5, w2b_fix1_regressions.rs, rate_limit_kick.rs, room_cap.rs, and room_tick_owner.rs do (mod common).

- `OpenSSF Scorecard Analysis`

Do not require the individual `Test (windows, N/3)` or `Gate` names. On a docs-only pull request those jobs are skipped, and a skipped required check blocks the merge. `PR Rust checks` is the rollup.
Do not require the individual `Test (ubuntu, N/3)`, `Test (windows, N/3)`, or `Gate` names as branch-protection checks. On a docs-only pull request the archive and partition jobs are skipped, and a skipped required check blocks the merge. `Gate (fmt, clippy, check)` still runs (player-facing name check and workflow policy); only its `Rust CI setup` step is conditional (`.github/workflows/ci.yml:122`). `PR Rust checks` is the rollup.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Gate (fmt, clippy, check) has no job-level if (ci.yml:106-110). On a docs-only pull request it still runs the name check (:116) and workflow policy (:119). Rust CI setup is conditional at :122. sccache stats is also conditional (:133-135, always() && docs_only != 'true'). The fmt step at :125-131 has no if; run-gate.sh:10-12 exits 0 before fmt, clippy, and check when AW_CI_DOCS_ONLY=true.

Requiring the Gate job name would complete on that pull request. The skip that leaves a required check blocking the merge is the archive and partition jobs (ci.yml:152, :251, :299, :369). PR Rust checks remains the rollup.

lazyxeon commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

Devastation (non-blocking) at head 4af72a64. Trace sync passes. The ci.yml cites now match HEAD, and #537's counts no longer reproduce. New low: the sentence still names stamp 6b571a5, whose line numbers differ from the cited ones. Logged on #633: #633

lazyxeon commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

Annubis devastation review, head 42007205 (T0 docs, delta pass): no new findings. Non-blocking.

This head merges main at afc5a6f1 (#628, which only touched Cargo.lock and tools/aw_doc_lint/Cargo.toml). All five PR docs are byte-identical to 4af72a64, which the 3 AM run already reviewed, and nothing they cite moved. Existing issues keep the status from that review.

@lazyxeon lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Clear from docs at 42007205e10b3711a25f09a01f88a1c4d07f7238 (merge of main afc5a6f1 into my cleared head 4af72a64).

  • Doc bytes: git diff 4af72a64 42007205 over all 5 PR files (docs/architecture/net_ecs.md, docs/ci/bottlenecks.md, docs/ci/pipeline_profile.md, docs/current/CI_ARCHITECTURE.md, docs/guides/RUST_TOOLCHAIN_GUIDE.md) is empty. The merge needed no conflict resolution in them.
  • Cite drift: fba18f5f..afc5a6f1 touches only Cargo.lock and tools/aw_doc_lint/Cargo.toml (the #628 pulldown-cmark 0.13.6 bump). No file:line cite in the PR's docs targets either file (the cites are into ci.yml, fuzz-nightly.yml and lib.rs), so none can have shifted.
  • Lock claims: net_ecs.md:57 says rustls 0.22 / tokio-rustls 0.25 are not in Cargo.lock. That holds at this head: only rustls 0.23.46 and tokio-rustls 0.26.4. The PR's docs make no pulldown-cmark or aw_doc_lint line-count claims.
  • Reviews: no new cursor[bot] or Astraea review since 4af72a64. cursor[bot]'s last audit (5759183766) was on 4af72a64.

CI at this head was still running when I checked (17 checks queued or in progress, none failed yet). Still needs cursor[bot] on this head and green CI.

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

Head 42007205e10b3711a25f09a01f88a1c4d07f7238. Not green. Required checks on this SHA are still queued or in progress. CodeRabbit skipped. Detect affected crates passed.

Not blocking. The unique diff is five docs files. The new commit merges main and only changes Cargo.lock plus tools/aw_doc_lint/Cargo.toml (pulldown-cmark 0.13.6, already on main). Three residuals from the review on 4af72a643 still match this tree. One new gap: the CI inventory names the client-binary steps and leaves out the workspace nextest archive that actually runs the server, proto, and net-ecs suites.

Commands: bash scripts/ci/player_facing_names.sh exit 0. cargo run -p aw_doc_lint -- --mode warn exit 0 (94 literals, 640 files, 622 matches, K=0). cargo run -p aw_trace_sync -- --check exit 0 (31 traces, 142 crates). Count and cite probes below exited 0.

Not run: replay-hash cargo test. No hashed crate is in the diff. GPU frame budget not measured (no 1660 Ti here). The capture command is unchanged.

Replay hashes: expected unchanged. Not measured on this SHA. The hash jobs are in progress. No golden edit.

Deferred: none.

Still open:

  • Appendix item 3 (net_ecs.md:689). The Warn arm returns at lib.rs:1024 with toll_to_outcome(charge_message(...)). It does not fall through into the verified arm at :1029. note_accepted_input (:936-937) runs only after a verified frame pays. A bad tag leaves last_input_seq and last_seen unwritten even when the toll is Paid. "Bucket-gated" is the verified path. Kick still returns at :1016-1020 before any charge. verify is Mac::verify_slice. The server never constructs RateLimited.
  • The regression-net sentence (:616). The counts still add up: families 5+12+9+9+4+2 = 41, plus loopback_default.rs 1, rate_limit_kick.rs 12, room_cap.rs 2, room_tick_owner.rs 4, and eight lib.rs tests = 68; proto 62; client 4; total 134. ECS is 31. lib_temp.rs is 4 and orphan. Families 1-5, w2b_fix1, rate_limit_kick, room_cap, and room_tick_owner do mod common. loopback_default.rs does not, and the eight lib.rs tests build AppState in a local harness() at :1302. The "driven through" clause covers those too.
  • CI_ARCHITECTURE.md:195. Gate (fmt, clippy, check) has no job-level if (ci.yml:106-110). The name check (:116) and workflow policy (:119) always run. Rust CI setup is conditional (:122). So is sccache stats (:134, always() and not docs-only). The fmt step has no if; scripts/ci/run-gate.sh:10-12 exits 0 before rustc on a docs-only diff. "Only" is the miss.

Holds on this SHA: client-binary cites :203 / :319 / :568 and nextest :215 / :325 / :574. fuzz-nightly.yml:35 is net/aw-net-proto/fuzz and the fuzz step sets working-directory. net-tests.yml:3-6 has no paths; the heavy job if is :57. Bench call sites are 2+15, 9+7, and 12+10 = 55. The six include! stubs add no new call sites. Mutation file is 59. benchmark.yml has no schedule (push to main and develop, workflow_dispatch, pull_request types labeled). Cited commits resolve: #439 447a878c, #481 581841ee, #480 0762c8ae, #477 a802aca2, #519 a9ba44e0, #468 65f96115 (save-test temp dirs; the body names the macOS os error 22). .cargo/config.toml pins target-cpu=x86-64 on x86_64-unknown-linux-gnu only. determinism-replay.yml sets that flag on x86_64, leaves aarch64 on the default baseline, and sets CARGO_PROFILE_TEST_DEBUG=0 on the shared hash step. SCCACHE_GHA_RW_MODE=READ_ONLY unless the ref is refs/heads/main and the event is not pull_request; the new sentence that pull requests are read-only is still true. Lockfile has rustls 0.23.46 and tokio-rustls 0.26.4 only. No unsafe in aw-net-server/src or aw-net-client/src. astraweave-net-ecs and aw-net-proto keep forbid(unsafe_code). Room choice is HashMap::iter().find at lib.rs:560-567. That is the live server, not a replayed tick. The 1.18 seating cites I rechecked (try_seat :70-77 and :590, spawn_room_tick :602-604, bind :639-644, JoinRoom lock :646-662, "room full" :686, MatchResult :697) still match. last_verified_commit 6b571a58 is not an object in this clone; that stamp was already on the line and the cites match current lib.rs.

Open in Web View Automation 

Sent by Cursor Automation: ASTRA PR AUDIT AGENT

- `astraweave-net-ecs/benches/net_ecs_adversarial.rs`: 9 `bench_function` + 7 `bench_with_input` call sites (worst-case shapes).
- `net/aw-net-proto/benches/proto_bench.rs`: 12 `bench_function` + 10 `bench_with_input` call sites.
- **Total bench cases:** 55 (`bench_function` + `bench_with_input` call sites across those three files).
- **CI presence:** There is no dedicated workflow for these four crates. Comprehensive CI runs the client binaries on the archive machine: `.github/workflows/ci.yml:203` (`Net client binaries on this machine`; `--profile ci-pr` at `:215` when the diff is full or `aw-net-client` is affected), `:319` (Windows pull-request archive; `--profile ci` at `:325`), and `:568` (Windows Test full archive; `--profile ci` at `:574`). `.github/workflows/fuzz-nightly.yml:35` lists `net/aw-net-proto/fuzz`. The older `astraweave-net` crate still has `.github/workflows/net-tests.yml`.

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 inventory is right about the dedicated client-binary steps and about fuzz-nightly.yml:35, and it still understates CI for the other three crates.

On a full diff, scripts/ci/run-tests.sh archives with cargo nextest archive --locked --workspace minus EXCLUDED_PACKAGES (ci.yml:41-53: demos and aw_editor). aw-net-proto, aw-net-server, aw-net-client, and astraweave-net-ecs are workspace members and are not in that list or in scripts/ci/deferred_pr_tests.txt. Linux partitions then run the archive with profile ci-pr-linux-archive, and Windows pull-request partitions use ci-pr-archive. Both filters drop the two aw-net-client binaries (and the two llm probes). They do not drop aw-net-server, aw-net-proto, or astraweave-net-ecs. An affected-crate diff passes -p for that crate, so a server-only change still runs the server tests. The steps at :203, :319, and :568 are only the CARGO_BIN_EXE client binaries, which the partition profiles cannot spawn.

The same inventory is repeated in the owner notes, the open question at :655, and appendix item 7 at :693. Those lines should say the archive runs these crates, and that the cited steps are the client binaries the partitions skip.

@lazyxeon
lazyxeon merged commit 5223b2f into main Nov 4, 2026
43 checks passed
@lazyxeon
lazyxeon deleted the cursor/net-ecs-review-threads-23f7 branch November 4, 2026 15:37
cursor Bot pushed a commit that referenced this pull request Nov 4, 2026
…ll-a959

Keep both this branch's fuzz policy tests and main's mutation-ai policy
tests. Recheck line cites against the merged tree: serde_json sites,
tx.send ranges, Cargo.toml lines, aw-net-proto enums, the server main.rs
length, TLS_SERVER_ROOTS, P1_CRATES, the net-tests command, and the
networking-page QUIC cite. net-ecs cites stay on #505's corrections.
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.

3 participants