No test checks that a page's facts have code-map items

Open
#114 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
testing

Research direction

Read tests/docs/test_anchors.py and inspect the depth-2 pages and their adjacent CONTEXT.md files to understand the existing code-map checks. The proposal defines facts as code spans naming a symbol, path, or input, but leaves the detection and matching rules to decide. Done means a check can detect when such a fact has no corresponding code-map item.

Written by the indexing model from the issue text.

Description

tech debt
Description of Technical Debt

Every depth-2 page's anchors live in the ## Code map of the CONTEXT.md beside it. tests/docs/test_anchors.py
checks that each anchor resolves and that every depth-2 page has a code map, not that each fact on the page has an
item; review samples it. The same holds in every repository that copied the page checks.

Impact of Technical Debt
  • A fact can lose its code anchor unnoticed.
Category

Testing / Test Coverage

Priority

Low - Nice to have

Proposed Solution

If a review or a gate finds a fact with no code-map item: define what counts as a fact (a code span naming a symbol, path or input) and check each has an item.

Effort Estimate

2 days

Dependencies / Related

No response

Additional Context

Measured 2026-11-12 at living-doc-toolkit fea9aa6 (v0.1.0). Re-check:

grep -n 'def test_' tests/docs/test_anchors.py

Dominant language
Python
Stars
0
Forks
0
Avg merge
1d 7h
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AbsaOSS/living-doc-toolkit

All issues in AbsaOSS/living-doc-toolkit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.