Skip to content

chore: delete banner-divider comments - #56

Open
mfw78 wants to merge 2 commits into
fix/venue-id-whitespacefrom
chore/delete-banners
Open

chore: delete banner-divider comments#56
mfw78 wants to merge 2 commits into
fix/venue-id-whitespacefrom
chore/delete-banners

Conversation

@mfw78

@mfw78 mfw78 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What

Deletes all seven banner-divider comments the repo carries on the stack tip: six in crates/videre-host/tests/platform.rs (fixtures + assembly, world contract, intent-status subscription E2E, echo round trip, venue-adapter trap recovery, service-missing unknown-venue) and one in crates/videre-host/src/registry.rs (status watch + polling). Each deletion collapses to a single blank line, no code moved and no behaviour change. Adds an AGENTS.md house rule (two lines after the em-dash rule): do not use a banner or section-divider line comment, a section is a module boundary, split the file or add nothing. Extends .claude/hooks/content-lint.sh with a second check call reusing the existing net-increase-vs-HEAD semantics, matching a box-drawing run or an ASCII comment divider in .rs/.md files while excluding a markdown table separator.

Why

Part of #27. Implements #44, which called for removing banner comments across the codebase in line with the house rule that a section boundary should be a module split, not a divider comment. The base branch carried six banners in platform.rs plus one in registry.rs, not the eight the issue text claimed, so that count was stale; this PR removes every banner actually present and adds hook enforcement plus a written house rule so none return.

Testing

Independent gate run on a fresh clone of nullislabs/videre-nexum-module, detached at origin/chore/delete-banners, toolchain rustc/cargo 1.94.0, with RUSTFLAGS="-D warnings" and --locked to mirror .github/workflows/ci.yml. The diff under review touches 4 files (+6/-15): .claude/hooks/content-lint.sh, AGENTS.md, crates/videre-host/src/registry.rs, crates/videre-host/tests/platform.rs, with videre-host the only touched crate.

  • cargo clippy -p videre-host --all-targets --all-features --locked -- -D warnings clean, exit 0.
  • cargo test --doc -p videre-host --all-features --locked exit 0: 0 passed, 0 failed, 0 ignored (crate declares no doctests).
  • Independent re-derivation of the deletion scope by scanning every file type in the tree, not just .rs/.md, for box-drawing runs and ASCII comment dividers, confirming zero remaining after the change.

AI Assistance

claude-fable-5 implemented, claude-opus-5 red-teamed, claude-sonnet-5 wrote this PR.

mfw78 added 2 commits August 6, 2026 20:55
Delete the seven banner-divider comments in platform.rs and registry.rs.
Add the AGENTS.md house rule and extend content-lint.sh to block a newly added banner line in a .rs or .md file.

AI Assistance: Claude Code deleted the banners, wrote the rule, and extended the hook.
Exclude a pipe on either side of the ASCII divider run, so a markdown table separator in a doc comment is not read as a banner, and add the block-comment prefix so a `/* ----- */` divider is caught.
Note the banner check in the AGENTS.md hook summary, which still described content-lint.sh as an em-dash check only.

AI Assistance: Claude Code found the false positive and wrote the fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant