M29: Populate Exact GitHub Project #5 Item IDs & Links Across TASK_BOARD.md (M1–M29)¶
- Task ID:
M29 - Priority:
P3(Master Rank#18, 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¶
The Task Matrix in TASK_BOARD.md links rows M1–M11 only to the generic Project #5 root URL
(https://github.com/users/JMartynov/projects/5), while rows M12–M29 carry the exact item id
([View Item #M12](https://github.com/users/JMartynov/projects/5) (\PVTI_…`)). The same gap exists
in the detailed### Msections: their#### Task Specblocks forM1–M10omit theGitHub Project #5 Item: `PVTI_…`identifier thatM11–M29` use.
Consequences:
- A reader cannot navigate from a board row to the concrete project item; the link always lands on Project #5 view 1.
- Nothing prevents the same drift when new rows are added, because no test asserts the matrix/detailed-section/id relationship.
- Manual reconciliation (search by title in the GitHub UI) is required after every board edit.
2. Requirements & Target Files¶
- Harvest canonical item ids (execution time, never guessed). Run
gh project item-list 5 --owner JMartynov --format json --limit 100and persist the payload (e.g./tmp/project5_items.json), then map each task rowM<n>to its item by matching the task key/title prefix (e.g.M11:) in the item content title. Record the itemidfield verbatim (shapePVTI_…). Do not invent, reorder or truncate ids. If an existing row has no matching item, stop and report it instead of writing a placeholder. - Matrix normalization in
TASK_BOARD.mdforM1–M11and for any other matrix row missing an id: follow the exact convention already used byM12–M29—[View Item #M<n>](https://github.com/users/JMartynov/projects/5) (\PVTI_…`)` — keeping the root URL and appending the id in backticks. Do not alter other columns, ordering or wording. - Detailed-section normalization: for every
### M<n>:heading whose#### Task Spec/ reference block lacks it, addGitHub Project #5 Item: \PVTI_…``. Preserve all existing spec text; the id must equal the matrix id for the same row. - Scope guard. All added validation must discover rows dynamically from
TASK_BOARD.md(regex such as^\| \*\*M(\d+)\*\* \|and^### M(\d+):) so the guarantees hold automatically across all rowsM1–M29. - Parity test in
tests/unit/test_documentation_parity.py(new or extended, no new dependencies) covering every discovered row: - matrix row contains an id matching
PVTI_[A-Za-z0-9_-]{10,}; - matrix row links to
https://github.com/users/JMartynov/projects/5; - the spec link resolves to an existing
docs/tasks/*.mdfile, or is the documentedInline belowmarker with a matching### M<n>:heading in the same file; - the detailed section for that row exists and contains the same id;
- ids are unique across rows; the matrix row set equals the detailed heading set.
- No runtime/source changes, no new dependencies, no report-format changes.
3. Automated Tests to Verify (tests/unit/test_documentation_parity.py)¶
test_task_matrix_rows_carry_project_item_ids— parametrized over rows discovered in the Task Matrix; each row'sPVTI_…id matchesPVTI_[A-Za-z0-9_-]{10,}.test_task_matrix_rows_link_to_project_5— each row links tohttps://github.com/users/JMartynov/projects/5and is not a bare root link without an id.test_task_matrix_spec_links_resolve—docs/tasks/…mdtargets exist on disk;Inline belowis accepted only when the matching### M<n>:heading exists.test_detailed_sections_carry_project_item_ids— every### M<n>:section includes itsPVTI_…item id.test_matrix_and_detailed_sections_are_in_sync— matrix row ids equal detailed-section ids perM<n>; matrix row set equals detailed heading set.test_project_item_ids_are_unique— no id repeated across rows or sections.
4. Acceptance Scenario with Live GitHub Project #5 and Container Regression Check¶
- Run the harvest command, persist
/tmp/project5_items.json, and confirm the mapping report lists one item id per board row that exists. - Confirm
TASK_BOARD.mdrowsM1–M29all render as[View Item #M<n>](https://github.com/users/JMartynov/projects/5) (\PVTI_…`)` and their detailed sections list the same ids. - Verify the ids against Project #5 via
gh project item-list 5 --owner JMartynov --format json(id present, title contains the matchingM<n>key) — no id may be absent from the project. - Assertions:
tests/unit/test_documentation_parity.pypasses; the fullpytest tests/suite stays green; no file undersrc/changes (git diff --stat src/is empty). - Container regression check: since this is a docs/test-only change, run
INSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.shonce and confirm it remains green (proves the packaging/manifests are unaffected).
5. Verification Commands¶
cd /Users/ivan/Project/3t.tools.intellij/verityredteam-free
gh project item-list 5 --owner JMartynov --format json --limit 100 > /tmp/project5_items.json
uv run pytest tests/unit/test_documentation_parity.py -v
uv run ruff check src tests && uv run pytest tests/ && INSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.sh
6. Acceptance Criteria¶
- [ ] Every row present in the
TASK_BOARD.mdTask Matrix carries an exact, project-verifiedPVTI_…item id and links to Project #5; rowsM1–M11are backfilled. - [ ] Every matching
### M<n>:detailed section states the samePVTI_…id. - [ ] No placeholder, guessed or duplicated ids; ids are sourced verbatim from
gh project item-list 5 --owner JMartynov --format json. - [ ]
tests/unit/test_documentation_parity.pyenforces row/id/spec-link consistency over dynamically discovered rows and passes alongsideruff check src tests, fullpytest tests/, and the container E2E run.