M21: Sync README.md Verbatim Tables, demo.tape Scene 4 & demo.gif to v0.2.0 Un-Ellipsized Output¶
- Task ID:
M21 - Priority:
P1(Master Rank#10, Track B — Simple Fixes, Docs & CI Hygiene) - Status:
Done - Dependencies:
M9,M10,M11 - Target Repository:
/Users/ivan/Project/3t.tools.intellij/verityredteam-free(verity-redteam-core) - GitHub Project #5: Verity RedTeam Free Task Board
1. Context & Problem Statement¶
README.md documents two "verified" terminal tables that were captured before M11 disabled
Rich column wrapping (no_wrap=True) on the findings table. They still contain ellipsized rule
IDs that the CLI no longer emits:
- Workstation audit table (
README.mdlines 76–104):SEC-STATIC-SECRET-IN-CONF…,SEC-STATIC-UNSAFE-SHELL-W…. - Schema screen table (
README.mdlines 206–218):VERITY-STATIC-INJECTION-O…,VERITY-STATIC-TOOL-POISON…,VERITY-STATIC-EXFIL-WEBHO…,VERITY-STATIC-METADATA-SS….
The authoritative, un-ellipsized captures already exist in
tests/e2e_containers/snapshots/01_workstation_scan.txt and
tests/e2e_containers/snapshots/02_schema_scan.txt. The README blocks drifted from them.
Additionally, docs/assets/demo.tape Scene 4 (line 68) still runs
verity test --demo --target sqlite-basic, which produces a single-target result table that no
longer matches the README's four-target demo proof (sqlite-basic, postgres-basic,
mongo-basic, code-exec-basic). The rendered docs/assets/demo.gif is stale as a result.
2. Requirements & Target Files¶
- README Table Sync: Replace the two ellipsized terminal blocks in
README.md(lines 76–104 and 206–218) with the verbatim contents oftests/e2e_containers/snapshots/01_workstation_scan.txtandtests/e2e_containers/snapshots/02_schema_scan.txtrespectively — full rule IDs, no…. - Demo Tape Fidelity: Update
docs/assets/demo.tapeScene 4 (line 68) toType "verity test --demo"(drop--target sqlite-basic), matching the four-target demo table documented in the README. - GIF Re-Record: Regenerate
docs/assets/demo.gifviascripts/record_demo_gif.sh(vhs + gifsicle), preserving the documented invariants: animated,<= 900x480,>= 100frames,< 2.5MB. - Docs Parity Guard: Extend
tests/unit/test_documentation_parity.pywith tests that assert zero ellipsized rule IDs inREADME.mdand that thedemo.tapeScene 4 command is exactlyverity test --demo.
3. Automated Tests to Verify (tests/unit/test_documentation_parity.py)¶
test_readme_workstation_table_matches_snapshot— the fencedtextblock following the "Verified Result" for scenario 1 equalstests/e2e_containers/snapshots/01_workstation_scan.txt(byte-for-byte).test_readme_schema_table_matches_snapshot— the<details>schema screen block equalstests/e2e_containers/snapshots/02_schema_scan.txt.test_readme_has_no_ellipsized_rule_ids— assert the…ellipsis character never appears inside anyVERITY-*orSEC-*rule ID fragment inREADME.md, and that everySTATIC_RULE_IDSvalue appears verbatim.test_demo_tape_scene4_uses_full_demo— parsedocs/assets/demo.tape, assert Scene 4 containsverity test --demoand does not contain--target.test_demo_gif_present_and_not_stale— assertdocs/assets/demo.gifexists and is referenced byREADME.md.
4. Acceptance Scenario in Clean Container with Real CLI Output¶
Inside the existing empty-container suite (tests/e2e_containers/verify_all_scenarios.sh):
1. Run verity scan --config-file "$HOME/.cursor/mcp.json" and
verity scan --schema-file vendor_tools.json; capture output.
2. Assert the rendered rule IDs match 01_workstation_scan.txt /
02_schema_scan.txt exactly (no truncation, no …).
3. Run ./scripts/record_demo_gif.sh inside a Docker-enabled CI runner (the script itself
builds the recorder image and runs vhs/gifsicle).
4. Assertions: exit 0; produced docs/assets/demo.gif is animated, <= 900x480,
>= 100 frames, < 2.5MB; scan_for_leaks finds no raw secrets in any output; full
INSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.sh passes.
5. Verification Commands¶
cd /Users/ivan/Project/3t.tools.intellij/verityredteam-free
uv run ruff check src tests
uv run pytest tests/unit/test_documentation_parity.py -v
uv run pytest tests/
./scripts/record_demo_gif.sh
INSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.sh
6. Acceptance Criteria¶
- [ ] Both README terminal tables are byte-for-byte identical to snapshots
01and02, with zero ellipsized rule IDs. - [ ]
docs/assets/demo.tapeScene 4 runsverity test --demo(no--target). - [ ]
docs/assets/demo.gifre-recorded and validated (animated,<= 900x480,>= 100frames,< 2.5MB). - [ ] New parity tests in
tests/unit/test_documentation_parity.pypass, along with fullpytest tests/,ruff check src tests, and container E2E.