M28: Fix Retired verity-core Package Name in AGENTS.md & Extend Documentation Parity Guard¶
- Task ID:
M28 - Priority:
P3(Master Rank#17, Track B — Simple Fixes, Docs & CI Hygiene) - Status:
Done - Dependencies:
M10 - 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¶
AGENTS.md still identifies the repository by its retired distribution name verity-core
on line 5 (project identity block) and again in the plugin/MCP section, even though the
package now ships as verity-redteam-core. The same block also hardcodes the stale task
range "Tasks M1–M6", which no longer reflects the live board.
tests/unit/test_documentation_parity.py::test_no_stale_package_references guards against
this drift, but its _STALE_PACKAGE_RE scan iterates only over README.md and
docs/extensibility.md. AGENTS.md is never validated, so the retired name survives every
CI run.
Result: agent-facing documentation contradicts pyproject.toml and the README, and the
parity guard does not cover the one file agents read first.
2. Requirements & Target Files¶
- Rename in
AGENTS.md: replace everyverity-coreoccurrence withverity-redteam-corein the Project Identity header (line 5) and the open-core plugin boundary section (line 12), keeping the parenthetical repo path unchanged. - Task board reference: replace the hardcoded "Tasks M1–M6" range with a
non-stale pointer to
TASK_BOARD.md/ GitHub Project #5. - Extend the parity guard: in
tests/unit/test_documentation_parity.py, extendtest_no_stale_package_referencesto includeREPO_ROOT / "AGENTS.md", and introduce anAGENTS_PATHconstant alongsideREADME_PATHandEXTENSIBILITY_PATHso future docs are added in one place. - Optional hardening: teach
_extract_verity_commands()to also parse YAML (yaml) fenced blocks inREADME.md, validating theverity scan/verity testcommand lines inside the GitHub Actions CI snippet, not only shell fences. - Zero behavioural change: no
src/edits; documentation and test guard only.
3. Automated Tests to Verify (tests/unit/test_documentation_parity.py)¶
test_no_stale_package_referencesparametrized over[README_PATH, EXTENSIBILITY_PATH, AGENTS_PATH]→ asserts_STALE_PACKAGE_REdoes not match any of the three files.test_agents_md_documents_current_package_name→AGENTS.mdcontainsverity-redteam-coreat least once and contains noverity-coretoken.test_agents_md_has_no_stale_task_range→ asserts the literalTasks M1–M6sentinel is absent andTASK_BOARD.mdis referenced instead.test_readme_yaml_snippet_commands_are_valid(optional) → extracts commands from theyamlCI fence and feeds each throughbuild_parser().parse_args().- Regression parity:
_extract_verity_commands()still returns the same command count for existing shell fences (no drops from the YAML addition).
4. Acceptance Scenario in Clean Container with Real Documentation Checkout¶
Extend tests/e2e_containers/verify_all_scenarios.sh with a documentation-parity scenario:
- Inside the built wheel container, copy the repository
README.md,docs/extensibility.md, andAGENTS.mdinto/tmp/docslab/. - Run:
- Assertions: exit
0; grep forverity-redteam-corein the AGENTS.md copy returns at least one hit and grep forverity-corereturns zero hits; the relative-link check findsTASK_BOARD.mdresolvable; fullINSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.shpasses.
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/
INSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.sh
6. Acceptance Criteria¶
- [ ]
AGENTS.mdno longer contains the retiredverity-coretoken in any section; identity and plugin-boundary text useverity-redteam-core. - [ ] The stale "Tasks M1–M6" range is replaced by a live task-board pointer.
- [ ]
test_no_stale_package_referencescoversREADME.md,docs/extensibility.md, andAGENTS.md, and fails ifverity-corereappears in any of them. - [ ] Optional YAML-fence CLI validation (if implemented) rejects invalid documented commands.
- [ ]
tests/unit/test_documentation_parity.py, fullpytest tests/,ruff check src tests, and the container E2E scenario pass cleanly.