test_wiki_site.py

tests/test_wiki_site.py

The wiki site, round 2 (owner 2026-11-15, after the demo sites): W13, W14, W17, W18.

test_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal

None test_wiki_site.test_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal(tuple[Path, Path] repo, Path tmp_path, pytest.MonkeyPatch monkeypatch)

Undrawable discovered flows are reported, not fatal.

tests/test_wiki_site.py:912

Show on the map →

Called by none

Calls build_wiki

Checks

  • assert "ghost" in flows and "vendor/x.c" in flows and "not drawn" in flows

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-CONFIG-001measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _commit → git_argv
REQ-DDB-CONFIG-003measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _product_section → compose → _root_source → declared_catalog → _is_flat_req_list
REQ-DDB-GUARD-012measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → load_wiki_config → _requirements_section → read_requirements_section
REQ-DDB-GUARD-024inferredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _prose → impact_path → load_guard_config → read_guard_config → load_config → apply_opt_in_languages
REQ-DDB-GUARD-027inferredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _product_section → compose → _walk → _nested_specs → git_text
REQ-DDB-PIPE-003measured
REQ-DDB-PIPE-004measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _all_flows → entry_point_flows → _scripts → console_scripts
REQ-DDB-PIPE-011measured
REQ-DDB-QUERY-001measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → api_pages → connect
REQ-DDB-QUERY-003measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → symbol_pages → table_exists
REQ-DDB-QUERY-004measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → symbol_pages → _owners_by_file → file_owners
REQ-DDB-QUERY-010measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → flow_page → derive_flow → _entry_rowids → function_candidates
REQ-DDB-QUERY-015measured
REQ-DDB-SCHEMA-006measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _product_section → compose → _root_source → declared_catalog → resolve_catalog_path
REQ-DDB-SCHEMA-015inferredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _product_section → compose → _nodes → link_ids
REQ-DDB-WIKI-001measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → flow_page → derive_flow
REQ-DDB-WIKI-002measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → parse_junit
REQ-DDB-WIKI-003measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki
REQ-DDB-WIKI-004measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → nodes_page
REQ-DDB-WIKI-005measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → report_limit
REQ-DDB-WIKI-007inferredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → valid_key
REQ-DDB-WIKI-010measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → parse_features
REQ-DDB-WIKI-011measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _render → sphinx_settings
REQ-DDB-WIKI-012measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → requirements_page
REQ-DDB-WIKI-013measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _burndown → burndown
REQ-DDB-WIKI-014measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → flow_page
REQ-DDB-WIKI-015measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _prose → impact_path
REQ-DDB-WIKI-016measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _coverage → parse_contexts
REQ-DDB-WIKI-017measured
REQ-DDB-WIKI-018measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _all_flows → entry_point_flows
REQ-DDB-WIKI-019measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → build_graph
REQ-DDB-WIKI-020measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → write_quick_views → modal
REQ-DDB-WIKI-021measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → minimap_html
REQ-DDB-WIKI-022measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → requirements_page → requirement_pages
REQ-DDB-WIKI-023measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → flows_index
REQ-DDB-WIKI-024measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → impact_page
REQ-DDB-WIKI-025measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → commit_published
REQ-DDB-WIKI-026measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → gather
REQ-DDB-WIKI-027measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _test_flows
REQ-DDB-WIKI-028measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _fetch_issues → provider_for
REQ-DDB-WIKI-029measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → write_exports
REQ-DDB-WIKI-031measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → find_decisions
REQ-DDB-WIKI-035measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → flow_page → test_node
REQ-DDB-WIKI-036measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → root_name
REQ-DDB-WIKI-040inferredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _product_section → compose
REQ-DDB-WIKI-041measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _slices_by_test
REQ-DDB-WIKI-042measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → requirements_page → requirement_pages → _ears_line
REQ-DDB-WIKI-043measured
REQ-DDB-WIKI-044measured
REQ-DDB-WIKI-045measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → symbol_pages → _section → _activity
REQ-DDB-WIKI-046measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → architecture_page
REQ-DDB-WIKI-047measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → _actor_of
REQ-DDB-WIKI-048measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → write_quick_views
REQ-DDB-WIKI-049inferredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → flow_page → with_values
REQ-DDB-WIKI-050measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → flow_page
REQ-DDB-WIKI-051measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → sbom_page
REQ-DDB-WIKI-052measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → tests_index
REQ-DDB-WIKI-053measuredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → _build_site → api_pages
REQ-DDB-WIKI-054inferredtest_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal → build_wiki → load_wiki_config → _comments → all
Source · 26 lines
def test_a_discovered_flow_that_cannot_be_drawn_is_listed_not_fatal(
    repo: tuple[Path, Path], tmp_path: Path, monkeypatch: pytest.MonkeyPatch
) -> None:
    """FOUND BUILDING ENTROPIC AND SASSAFRAS-CLASS (round 4): one entry point the build discovered
    on its own — a thread entry recorded at its header declaration, a `main` in vendored code —
    could not be derived, and the whole site failed. A DISCOVERED flow that cannot be drawn is
    listed on the Flows page with the reason; a DECLARED one still fails the build, since it is
    the repository's own statement and a typo must not pass silently.

    @brief Undrawable discovered flows are reported, not fatal.
    """
    from clew.wiki import entrypoints
    from clew.wiki.build import build_wiki
    from clew.wiki.config import FlowSpec

    real = entrypoints.entry_point_flows

    def with_a_ghost(db, root, depth):  # noqa: ANN001, ANN202
        return [*real(db, root, depth), FlowSpec(entry="ghost", file="vendor/x.c", depth=depth)]

    monkeypatch.setattr(entrypoints, "entry_point_flows", with_a_ghost)
    html = build_wiki(repo[0], repo[1], tmp_path / "out")
    flows = (html / "flows.html").read_text()
    assert "ghost" in flows and "vendor/x.c" in flows and "not drawn" in flows

Activity · 9 steps
lines 923–923from clew.wiki import entrypointslines 924–924from clew.wiki.build import build_wikilines 925–925from clew.wiki.config import FlowSpeclines 927–927real = entrypoints.entry_point_flowslines 929–930def with_a_ghost(db, root, depth): # noqa: ANN001, ANN202 return [*real(db, root, depth), FlowSpec(entry="ghost", file="vendor/x.c", depth=depth)]lines 932–932monkeypatch.setattr(entrypoints, "entry_point_flows", with_a_ghost)lines 933–933html = build_wiki(repo[0], repo[1], tmp_path / "out")lines 934–934flows = (html / "flows.html").read_text()lines 935–935assert "ghost" in flows and "vendor/x.c" in flows and "not drawn" in flows

test_a_flow_entry_by_file_survives_distinct_identities

None test_wiki_site.test_a_flow_entry_by_file_survives_distinct_identities(tuple[Path, Path] repo, Path tmp_path)

derive_flow(file=...) finds each file's main whichever identity sorts first.

tests/test_wiki_site.py:505

Show on the map →

Called by none

Calls derive_flow

Checks

  • assert flow.steps, file

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-PIPE-003measured
REQ-DDB-PIPE-011measured
REQ-DDB-QUERY-001measuredtest_a_flow_entry_by_file_survives_distinct_identities → derive_flow → connect
REQ-DDB-QUERY-003measuredtest_a_flow_entry_by_file_survives_distinct_identities → derive_flow → qualified_name_of
REQ-DDB-QUERY-010measuredtest_a_flow_entry_by_file_survives_distinct_identities → derive_flow → _entry_rowids → function_candidates
REQ-DDB-QUERY-015measured
REQ-DDB-WIKI-001measuredtest_a_flow_entry_by_file_survives_distinct_identities → derive_flow
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-041measuredtest_a_flow_entry_by_file_survives_distinct_identities → derive_flow
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 30 lines
def test_a_flow_entry_by_file_survives_distinct_identities(
    repo: tuple[Path, Path], tmp_path: Path
) -> None:
    """FOUND IN CI (doxygen 1.9.8; 1.18 locally): the two `main`s can carry DIFFERENT definitions,
    so they are two identities — and `identity_rowids` picked one by its default guess BEFORE the
    file filter, leaving nothing for the other file. 51 wiki tests failed in CI and none locally.
    The file now chooses the identity. Simulated here by giving the rows distinct definitions.

    @brief derive_flow(file=...) finds each file's main whichever identity sorts first.
    """
    import shutil
    import sqlite3

    from clew.wiki.flow import derive_flow

    db = tmp_path / "split.db"
    shutil.copy(repo[1], db)
    conn = sqlite3.connect(db)
    conn.execute(
        "UPDATE memberdef SET definition = 'def ' || ? || '.main' WHERE name = 'main' AND "
        "file_id IN (SELECT rowid FROM path WHERE name LIKE ?)",
        ("tools.other", "%tools/other.py"),
    )
    conn.commit()
    conn.close()
    for file in ("src/cli.py", "tools/other.py"):
        flow = derive_flow(db, repo[0], "main", file=file, depth=1)
        assert flow.steps, file

Activity · 12 steps
lines 515–515import shutillines 516–516import sqlite3lines 518–518from clew.wiki.flow import derive_flowlines 520–520db = tmp_path / "split.db"lines 521–521shutil.copy(repo[1], db)lines 522–522conn = sqlite3.connect(db)lines 523–527conn.execute( "UPDATE memberdef SET definition = 'def ' || ? || '.main' WHERE name = 'main' AND " "file_id IN (SELECT rowid FROM path WHERE name LIKE ?)", ("tools.other", "%tools/other.py"), )lines 528–528conn.commit()lines 529–529conn.close()lines 530–530◇ for file in ("src/cli.py", "tools/other.py")lines 531–531flow = derive_flow(db, repo[0], "main", file=file, depth=1)lines 532–532assert flow.steps, file

test_a_flow_entry_is_selected_by_file

None test_wiki_site.test_a_flow_entry_is_selected_by_file(tuple[Path, Path] repo)

derive_flow(file=...) walks only that file's identity.

tests/test_wiki_site.py:494

Show on the map →

Called by none

Calls derive_flow

Checks

  • assert [s.callee for s in flow.steps] == ["other"]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-PIPE-003measured
REQ-DDB-PIPE-011measured
REQ-DDB-QUERY-001measuredtest_a_flow_entry_is_selected_by_file → derive_flow → connect
REQ-DDB-QUERY-003measuredtest_a_flow_entry_is_selected_by_file → derive_flow → qualified_name_of
REQ-DDB-QUERY-010measuredtest_a_flow_entry_is_selected_by_file → derive_flow → _entry_rowids → function_candidates
REQ-DDB-QUERY-015measured
REQ-DDB-WIKI-001measuredtest_a_flow_entry_is_selected_by_file → derive_flow
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-041measuredtest_a_flow_entry_is_selected_by_file → derive_flow
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 11 lines
def test_a_flow_entry_is_selected_by_file(repo: tuple[Path, Path]) -> None:
    """TWO `main`s SHARE A NAME AND A DEFINITION: selecting by name alone merged their calls.

    @brief derive_flow(file=...) walks only that file's identity.
    """
    from clew.wiki.flow import derive_flow

    flow = derive_flow(repo[1], repo[0], "main", file="tools/other.py", depth=1)
    assert [s.callee for s in flow.steps] == ["other"]

Activity · 3 steps
lines 499–499from clew.wiki.flow import derive_flowlines 501–501flow = derive_flow(repo[1], repo[0], "main", file="tools/other.py", depth=1)lines 502–502assert [s.callee for s in flow.steps] == ["other"]

test_a_flow_page_carries_a_quick_view_per_function

None test_wiki_site.test_a_flow_page_carries_a_quick_view_per_function(dict[str, str] site)

P5.6: quick views on flow pages.

tests/test_wiki_site.py:1081

Show on the map →

Called by none

Calls _flow_page

Checks

  • assert 'data-modal="q-' in quick and ">load</a>" in quick
  • assert template and 'data-view-panel="tests"' in template.group(1)
  • assert "_static/clew-views.js" in page

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 19 lines
def test_a_flow_page_carries_a_quick_view_per_function(site: dict[str, str]) -> None:
    """OWNER (round 5, P5.6): every entity gets a quick-view modal with the view strip. A flow
    page lists a trigger per function on it, each opening its template, and loads the views
    script; `load` is on the fixture's `load` flow.

    @brief P5.6: quick views on flow pages.
    """
    page = _flow_page(site)
    quick = page.split('class="modal-list quick-views"', 1)[1].split("</ul>", 1)[0]
    assert 'data-modal="q-' in quick and ">load</a>" in quick
    template = re.search(
        r'<template id="modal-q-\d+" data-title="load \(src/data\.py\)">(.*?)</template>',
        page,
        re.S,
    )
    assert template and 'data-view-panel="tests"' in template.group(1)
    assert "_static/clew-views.js" in page

Activity · 6 steps
lines 1088–1088page = _flow_page(site)lines 1089–1089quick = page.split('class="modal-list quick-views"', 1)[1].split("</ul>", 1)[0]lines 1090–1090assert 'data-modal="q-' in quick and ">load</a>" in quicklines 1091–1095template = re.search( r'<template id="modal-q-\d+" data-title="load \(src/data\.py\)">(.*?)</template>', page, re.S, )lines 1096–1096assert template and 'data-view-panel="tests"' in template.group(1)lines 1097–1097assert "_static/clew-views.js" in page

test_a_flow_pages_long_lists_fold_under_their_counts

None test_wiki_site.test_a_flow_pages_long_lists_fold_under_their_counts(dict[str, str] site)

Flow page lists fold.

tests/test_wiki_site.py:1226

Show on the map →

Called by none

Calls _flow_page

Checks

  • assert '<details class="fold quick-fold"><summary>' in flow

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 12 lines
def test_a_flow_pages_long_lists_fold_under_their_counts(site: dict[str, str]) -> None:
    """UX review A-1 (owner Q/A 2026-11-22), found measuring the rebuilt dossier flow page: after
    the diagram went into its own box the page was still 11,600 px, of it a recorded run's list of
    discovered calls 5,777 and the quick-view list 3,527. Both fold under their counts; the
    trace's summary line and any failure stay in view.

    @brief Flow page lists fold.
    """
    flow = _flow_page(site)
    assert '<details class="fold quick-fold"><summary>' in flow

Activity · 2 steps
lines 1234–1234flow = _flow_page(site)lines 1235–1235assert '<details class="fold quick-fold"><summary>' in flow

test_a_flow_step_carries_the_requirements_its_callee_implements

None test_wiki_site.test_a_flow_step_carries_the_requirements_its_callee_implements(dict[str, str] site)

Requirement badges on steps, linked to each requirement's page.

tests/test_wiki_site.py:816

Show on the map →

Called by none

Calls _flow_page

Checks

  • assert 'href="req-REQ-X-001.html"' in table
  • assert 'href="req-REQ-W-002.html"' in table

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 14 lines
def test_a_flow_step_carries_the_requirements_its_callee_implements(site: dict[str, str]) -> None:
    """P1e: requirement badges on steps. SPEC CHANGED (UX review D-10, owner Q/A 2026-11-22): each
    badge opens the requirement's OWN page, which round 4 made the requirement's URL (owner:
    "individual links that are self contained"), not an anchor on the index.

    @brief Requirement badges on steps, linked to each requirement's page.
    """
    page = _flow_page(site)
    table = page[page.index('<table class="clew steps"') :]
    table = table[: table.index("</table>")]
    assert 'href="req-REQ-X-001.html"' in table
    assert 'href="req-REQ-W-002.html"' in table

Activity · 5 steps
lines 823–823page = _flow_page(site)lines 824–824table = page[page.index('<table class="clew steps"') :]lines 825–825table = table[: table.index("</table>")]lines 826–826assert 'href="req-REQ-X-001.html"' in tablelines 827–827assert 'href="req-REQ-W-002.html"' in table

test_a_long_test_list_says_how_many_are_direct

None test_wiki_site.test_a_long_test_list_says_how_many_are_direct()

The requirement index's test summary splits direct from reached.

tests/test_wiki_site.py:938

Show on the map →

Called by none

Calls _tests_cell

Checks

  • assert "3 direct · 3 reached through calls" in cell and "6 tests: 6 passed" in cell

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-026inferredtest_a_long_test_list_says_how_many_are_direct → _tests_cell → test_link
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 17 lines
def test_a_long_test_list_says_how_many_are_direct() -> None:
    """ROUND 4: with transitive inference a broad requirement lists hundreds of tests; the index
    says how many are aimed at it directly and how many only reach it through calls.

    @brief The requirement index's test summary splits direct from reached.
    """
    from types import SimpleNamespace

    from clew.wiki.tracepages import _tests_cell

    row = SimpleNamespace(
        tests=tuple((f"t{i}", "passed") for i in range(6)), inferred_tests=("t3", "t4", "t5")
    )
    cell = _tests_cell(row, {})
    assert "3 direct · 3 reached through calls" in cell and "6 tests: 6 passed" in cell

Activity · 5 steps
lines 944–944from types import SimpleNamespacelines 946–946from clew.wiki.tracepages import _tests_celllines 948–950row = SimpleNamespace( tests=tuple((f"t{i}", "passed") for i in range(6)), inferred_tests=("t3", "t4", "t5") )lines 951–951cell = _tests_cell(row, {})lines 952–952assert "3 direct · 3 reached through calls" in cell and "6 tests: 6 passed" in cell

test_a_modal_trigger_carries_its_content_inert_and_escaped

None test_wiki_site.test_a_modal_trigger_carries_its_content_inert_and_escaped()

P1b: modal triggers and templates.

tests/test_wiki_site.py:557

Show on the map →

Called by none

Calls modal

Checks

  • assert 'data-modal="req-R-1"' in html and '<template id="modal-req-R-1"' in html
  • assert 'data-title="R-1 &lt;b&gt;"' in html and "<p>body</p>" in html

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020measuredtest_a_modal_trigger_carries_its_content_inert_and_escaped → modal
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 15 lines
def test_a_modal_trigger_carries_its_content_inert_and_escaped() -> None:
    """REPOSITORY TEXT NEVER BECOMES MARKUP: a trigger names a `<template>` whose content was
    escaped by Python; the script clones it, it does not parse strings.

    @brief P1b: modal triggers and templates.
    """
    from clew.wiki.modal import modal

    html = modal("req-R-1", "R-1", "R-1 <b>", "<p>body</p>")
    assert 'data-modal="req-R-1"' in html and '<template id="modal-req-R-1"' in html
    assert 'data-title="R-1 &lt;b&gt;"' in html and "<p>body</p>" in html
    with pytest.raises(ValueError):
        modal("bad key", "x", "x", "")

Activity · 6 steps
lines 563–563from clew.wiki.modal import modallines 565–565html = modal("req-R-1", "R-1", "R-1 <b>", "<p>body</p>")lines 566–566assert 'data-modal="req-R-1"' in html and '<template id="modal-req-R-1"' in htmllines 567–567assert 'data-title="R-1 &lt;b&gt;"' in html and "<p>body</p>" in htmllines 568–568with pytest.raises(ValueError)lines 569–569modal("bad key", "x", "x", "")

test_a_partner_site_carries_no_call_text

None test_wiki_site.test_a_partner_site_carries_no_call_text(tuple[Path, Path] repo, Path tmp_path)

W18 under `exclude_bodies`.

tests/test_wiki_site.py:416

Show on the map →

Called by none

Calls build_wiki

Checks

  • assert "SECRET_CALL_ARG" not in text and "SECRET_BODY_MARKER" not in text, page

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-CONFIG-001measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _commit → git_argv
REQ-DDB-CONFIG-003measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _product_section → compose → _root_source → declared_catalog → _is_flat_req_list
REQ-DDB-GUARD-012measuredtest_a_partner_site_carries_no_call_text → build_wiki → load_wiki_config → _requirements_section → read_requirements_section
REQ-DDB-GUARD-024inferredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _prose → impact_path → load_guard_config → read_guard_config → load_config → apply_opt_in_languages
REQ-DDB-GUARD-027inferredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _product_section → compose → _walk → _nested_specs → git_text
REQ-DDB-PIPE-003measured
REQ-DDB-PIPE-004measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _all_flows → entry_point_flows → _scripts → console_scripts
REQ-DDB-PIPE-011measured
REQ-DDB-QUERY-001measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → api_pages → connect
REQ-DDB-QUERY-003measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → symbol_pages → table_exists
REQ-DDB-QUERY-004measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → symbol_pages → _owners_by_file → file_owners
REQ-DDB-QUERY-010measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → flow_page → derive_flow → _entry_rowids → function_candidates
REQ-DDB-QUERY-015measured
REQ-DDB-SCHEMA-006measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _product_section → compose → _root_source → declared_catalog → resolve_catalog_path
REQ-DDB-SCHEMA-015inferredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _product_section → compose → _nodes → link_ids
REQ-DDB-WIKI-001measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → flow_page → derive_flow
REQ-DDB-WIKI-002measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → parse_junit
REQ-DDB-WIKI-003measuredtest_a_partner_site_carries_no_call_text → build_wiki
REQ-DDB-WIKI-004measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → nodes_page
REQ-DDB-WIKI-005measuredtest_a_partner_site_carries_no_call_text → build_wiki → report_limit
REQ-DDB-WIKI-007inferredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → valid_key
REQ-DDB-WIKI-010measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → parse_features
REQ-DDB-WIKI-011measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _render → sphinx_settings
REQ-DDB-WIKI-012measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → requirements_page
REQ-DDB-WIKI-013measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _burndown → burndown
REQ-DDB-WIKI-014measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → flow_page
REQ-DDB-WIKI-015measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _prose → impact_path
REQ-DDB-WIKI-016measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _coverage → parse_contexts
REQ-DDB-WIKI-017measured
REQ-DDB-WIKI-018measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _all_flows → entry_point_flows
REQ-DDB-WIKI-019measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → build_graph
REQ-DDB-WIKI-020measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → write_quick_views → modal
REQ-DDB-WIKI-021measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → minimap_html
REQ-DDB-WIKI-022measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → requirements_page → requirement_pages
REQ-DDB-WIKI-023measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → flows_index
REQ-DDB-WIKI-024measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → impact_page
REQ-DDB-WIKI-025measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → commit_published
REQ-DDB-WIKI-026measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → gather
REQ-DDB-WIKI-027measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _test_flows
REQ-DDB-WIKI-028measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _fetch_issues → provider_for
REQ-DDB-WIKI-029measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → write_exports
REQ-DDB-WIKI-031measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → find_decisions
REQ-DDB-WIKI-035measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → flow_page → test_node
REQ-DDB-WIKI-036measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → root_name
REQ-DDB-WIKI-040inferredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _product_section → compose
REQ-DDB-WIKI-041measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _slices_by_test
REQ-DDB-WIKI-042measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → requirements_page → requirement_pages → _ears_line
REQ-DDB-WIKI-044measured
REQ-DDB-WIKI-045measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → symbol_pages → _section → _activity
REQ-DDB-WIKI-046measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → architecture_page
REQ-DDB-WIKI-047measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → _actor_of
REQ-DDB-WIKI-048measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → write_quick_views
REQ-DDB-WIKI-049inferredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → flow_page → with_values
REQ-DDB-WIKI-050measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → flow_page
REQ-DDB-WIKI-051measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → sbom_page
REQ-DDB-WIKI-052measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → tests_index
REQ-DDB-WIKI-053measuredtest_a_partner_site_carries_no_call_text → build_wiki → _build_site → api_pages
REQ-DDB-WIKI-054inferredtest_a_partner_site_carries_no_call_text → build_wiki → load_wiki_config → _comments → all
Source · 13 lines
def test_a_partner_site_carries_no_call_text(repo: tuple[Path, Path], tmp_path: Path) -> None:
    """REDACTION ON THE OUTPUT: the dialog data is source text too.

    @brief W18 under `exclude_bodies`.
    """
    from clew.wiki.build import build_wiki

    html = build_wiki(repo[0], repo[1], tmp_path / "partner", audience="partner")
    for page in html.rglob("*.html"):
        text = page.read_text()
        assert "SECRET_CALL_ARG" not in text and "SECRET_BODY_MARKER" not in text, page

Activity · 5 steps
lines 421–421from clew.wiki.build import build_wikilines 423–423html = build_wiki(repo[0], repo[1], tmp_path / "partner", audience="partner")lines 424–424◇ for page in html.rglob("*.html")lines 425–425text = page.read_text()lines 426–426assert "SECRET_CALL_ARG" not in text and "SECRET_BODY_MARKER" not in text, page

test_a_public_site_keeps_requirement_text_off_the_requirement_page

None test_wiki_site.test_a_public_site_keeps_requirement_text_off_the_requirement_page(tuple[Path, Path] repo, Path tmp_path)

R4: `exclude_requirement_text` reaches the requirement page and the issue link.

tests/test_wiki_site.py:757

Show on the map →

Called by none

Calls build_wiki

Checks

  • assert "Every item is parsed once" not in page and "Load the data" not in page
  • assert 'href="req-REQ-W-001.html"' in page

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-CONFIG-001measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _commit → git_argv
REQ-DDB-CONFIG-003measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _product_section → compose → _root_source → declared_catalog → _is_flat_req_list
REQ-DDB-GUARD-012measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → load_wiki_config → _requirements_section → read_requirements_section
REQ-DDB-GUARD-024inferredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _prose → impact_path → load_guard_config → read_guard_config → load_config → apply_opt_in_languages
REQ-DDB-GUARD-027inferredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _product_section → compose → _walk → _nested_specs → git_text
REQ-DDB-PIPE-003measured
REQ-DDB-PIPE-004measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _all_flows → entry_point_flows → _scripts → console_scripts
REQ-DDB-PIPE-011measured
REQ-DDB-QUERY-001measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → api_pages → connect
REQ-DDB-QUERY-003measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → symbol_pages → table_exists
REQ-DDB-QUERY-004measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → symbol_pages → _owners_by_file → file_owners
REQ-DDB-QUERY-010measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → flow_page → derive_flow → _entry_rowids → function_candidates
REQ-DDB-QUERY-015measured
REQ-DDB-SCHEMA-006measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _product_section → compose → _root_source → declared_catalog → resolve_catalog_path
REQ-DDB-SCHEMA-015inferredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _product_section → compose → _nodes → link_ids
REQ-DDB-WIKI-001measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → flow_page → derive_flow
REQ-DDB-WIKI-002measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → parse_junit
REQ-DDB-WIKI-003measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki
REQ-DDB-WIKI-004measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → nodes_page
REQ-DDB-WIKI-005measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → report_limit
REQ-DDB-WIKI-007inferredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → valid_key
REQ-DDB-WIKI-010measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → parse_features
REQ-DDB-WIKI-011measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _render → sphinx_settings
REQ-DDB-WIKI-012measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → requirements_page
REQ-DDB-WIKI-013measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _burndown → burndown
REQ-DDB-WIKI-014measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → flow_page
REQ-DDB-WIKI-015measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _prose → impact_path
REQ-DDB-WIKI-016measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _coverage → parse_contexts
REQ-DDB-WIKI-017measured
REQ-DDB-WIKI-018measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _all_flows → entry_point_flows
REQ-DDB-WIKI-019measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → build_graph
REQ-DDB-WIKI-020measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → write_quick_views → modal
REQ-DDB-WIKI-021measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → minimap_html
REQ-DDB-WIKI-022measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → requirements_page → requirement_pages
REQ-DDB-WIKI-023measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → flows_index
REQ-DDB-WIKI-024measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → impact_page
REQ-DDB-WIKI-025measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → commit_published
REQ-DDB-WIKI-026measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → gather
REQ-DDB-WIKI-027measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _test_flows
REQ-DDB-WIKI-028measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _fetch_issues → provider_for
REQ-DDB-WIKI-029measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → write_exports
REQ-DDB-WIKI-031measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → find_decisions
REQ-DDB-WIKI-035measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → flow_page → test_node
REQ-DDB-WIKI-036measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → root_name
REQ-DDB-WIKI-040inferredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _product_section → compose
REQ-DDB-WIKI-041measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _slices_by_test
REQ-DDB-WIKI-042measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → requirements_page → requirement_pages → _ears_line
REQ-DDB-WIKI-043measured
REQ-DDB-WIKI-044measured
REQ-DDB-WIKI-045measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → symbol_pages → _section → _activity
REQ-DDB-WIKI-046measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → architecture_page
REQ-DDB-WIKI-047measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → _actor_of
REQ-DDB-WIKI-048measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → write_quick_views
REQ-DDB-WIKI-049inferredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → flow_page → with_values
REQ-DDB-WIKI-050measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → flow_page
REQ-DDB-WIKI-051measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → sbom_page
REQ-DDB-WIKI-052measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → tests_index
REQ-DDB-WIKI-053measuredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → _build_site → api_pages
REQ-DDB-WIKI-054inferredtest_a_public_site_keeps_requirement_text_off_the_requirement_page → build_wiki → load_wiki_config → _comments → all
Source · 12 lines
def test_a_public_site_keeps_requirement_text_off_the_requirement_page(
    repo: tuple[Path, Path], tmp_path: Path
) -> None:
    """@brief R4: `exclude_requirement_text` reaches the requirement page and the issue link."""
    from clew.wiki.build import build_wiki

    html = build_wiki(repo[0], repo[1], tmp_path / "out", audience="public")
    page = (html / "requirements.html").read_text() + (html / "req-REQ-W-001.html").read_text()
    assert "Every item is parsed once" not in page and "Load the data" not in page
    assert 'href="req-REQ-W-001.html"' in page

Activity · 5 steps
lines 761–761from clew.wiki.build import build_wikilines 763–763html = build_wiki(repo[0], repo[1], tmp_path / "out", audience="public")lines 764–764page = (html / "requirements.html").read_text() + (html / "req-REQ-W-001.html").read_text()lines 765–765assert "Every item is parsed once" not in page and "Load the data" not in pagelines 766–766assert 'href="req-REQ-W-001.html"' in page

test_a_recorded_runs_discovered_calls_fold

None test_wiki_site.test_a_recorded_runs_discovered_calls_fold()

A-1: the imported trace keeps its summary, folds what it discovered.

tests/test_wiki_site.py:1238

Checks

  • assert "predicted steps confirmed" in html.split("<details", 1)[0]
  • assert '<details class="fold"><summary>2 discovered calls not in the flow</summary>' in html

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-035measuredtest_a_recorded_runs_discovered_calls_fold → imported_trace → overlay
REQ-DDB-WIKI-036measuredtest_a_recorded_runs_discovered_calls_fold → imported_trace
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-049measuredtest_a_recorded_runs_discovered_calls_fold → imported_trace → overlay → _step_values
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 25 lines
def test_a_recorded_runs_discovered_calls_fold() -> None:
    """@brief A-1: the imported trace keeps its summary, folds what it discovered."""
    from clew.wiki.flow import Flow, Lane, Step
    from clew.wiki.flowpage import imported_trace

    step = Step("m", "m", "a", "a", "x", "x", "x.py", 1, 1)
    flow = Flow("m", "m", 1, "files", (Lane("x", "x"),), (step,))
    otlp = {
        "resourceSpans": [
            {
                "scopeSpans": [
                    {
                        "spans": [
                            {"name": "m", "spanId": "1", "parentSpanId": ""},
                            {"name": "b", "spanId": "2", "parentSpanId": "1"},
                            {"name": "c", "spanId": "3", "parentSpanId": "1"},
                        ]
                    }
                ]
            }
        ]
    }
    html = imported_trace(flow, "t.json", otlp)
    assert "predicted steps confirmed" in html.split("<details", 1)[0]
    assert '<details class="fold"><summary>2 discovered calls not in the flow</summary>' in html

1 more lines, not shown

Activity · 8 steps
lines 1240–1240from clew.wiki.flow import Flow, Lane, Steplines 1241–1241from clew.wiki.flowpage import imported_tracelines 1243–1243step = Step("m", "m", "a", "a", "x", "x", "x.py", 1, 1)lines 1244–1244flow = Flow("m", "m", 1, "files", (Lane("x", "x"),), (step,))lines 1245–1259otlp = { "resourceSpans": [ { "scopeSpans": [ { "spans": [ {"name": "m", "spanId": "1", "parentSpanId": ""}, {"name": "b", "spanId": "2", "parentSpanId": "1"}, {"name": "c", "spanId": "3", "parentSpanId": "1"}, ] } ] } ] }lines 1260–1260html = imported_trace(flow, "t.json", otlp)lines 1261–1261assert "predicted steps confirmed" in html.split("<details", 1)[0]lines 1262–1262assert '<details class="fold"><summary>2 discovered calls not in the flow</summary>' in html

test_a_requirement_has_its_own_page_with_its_whole_trace

None test_wiki_site.test_a_requirement_has_its_own_page_with_its_whole_trace(dict[str, str] site)

R4: the requirement page and its issue link.

tests/test_wiki_site.py:726

Show on the map →

Called by none

Calls none

Checks

  • assert "<summary>acceptance</summary>" not in page
  • assert 'href="req-REQ-W-001.html"' in page
  • assert '<template id="modal-req-' not in page
  • assert "Every item is parsed once" in body
  • assert "src/data.py" in body and "test_load" in body
  • assert 'href="flow-load.html"' in body
  • assert "test_load" in tests and "of 1" in tests
  • assert "REQ-W-001" in query["title"][0] and query["labels"] == ["req:REQ-W-001"]
  • assert "clew-req: REQ-W-001" in query["body"][0]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 31 lines
def test_a_requirement_has_its_own_page_with_its_whole_trace(site: dict[str, str]) -> None:
    """THE ACCEPTANCE TEXT LEAVES THE TABLE (owner: the drop-down was noise) and lives on the
    requirement's OWN PAGE with everything else that requirement links to: implementers, tests
    with their link kind and extent, the flows passing through its implementers, and a prefilled
    issue link that carries the id three ways — in the title, as a `req:` label, and as a marker
    line. ROUND 4, R4 (owner 2026-11-16: "Dont show things by one giant scrolling page, but
    individual links that are self contained"): a page per requirement replaces the modal.

    @brief R4: the requirement page and its issue link.
    """
    from html import unescape
    from urllib.parse import parse_qs, urlsplit

    page = site["requirements.html"]
    assert "<summary>acceptance</summary>" not in page
    assert 'href="req-REQ-W-001.html"' in page
    assert '<template id="modal-req-' not in page
    body = site["req-REQ-W-001.html"]
    assert "Every item is parsed once" in body
    assert "src/data.py" in body and "test_load" in body
    assert 'href="flow-load.html"' in body
    tests = body[body.index('class="clew req-tests') :]
    assert "test_load" in tests and "of 1" in tests
    href = unescape(
        re.search(r'href="(https://github\.com/acme/demo/issues/new\?[^"]+)"', body).group(1)
    )
    query = parse_qs(urlsplit(href).query)
    assert "REQ-W-001" in query["title"][0] and query["labels"] == ["req:REQ-W-001"]
    assert "clew-req: REQ-W-001" in query["body"][0]

Activity · 16 steps
lines 736–736from html import unescapelines 737–737from urllib.parse import parse_qs, urlsplitlines 739–739page = site["requirements.html"]lines 740–740assert "<summary>acceptance</summary>" not in pagelines 741–741assert 'href="req-REQ-W-001.html"' in pagelines 742–742assert '<template id="modal-req-' not in pagelines 743–743body = site["req-REQ-W-001.html"]lines 744–744assert "Every item is parsed once" in bodylines 745–745assert "src/data.py" in body and "test_load" in bodylines 746–746assert 'href="flow-load.html"' in bodylines 747–747tests = body[body.index('class="clew req-tests') :]lines 748–748assert "test_load" in tests and "of 1" in testslines 749–751href = unescape( re.search(r'href="(https://github\.com/acme/demo/issues/new\?[^"]+)"', body).group(1) )lines 752–752query = parse_qs(urlsplit(href).query)lines 753–753assert "REQ-W-001" in query["title"][0] and query["labels"] == ["req:REQ-W-001"]lines 754–754assert "clew-req: REQ-W-001" in query["body"][0]

test_a_requirement_page_draws_its_evidence_chain

None test_wiki_site.test_a_requirement_page_draws_its_evidence_chain(dict[str, str] site)

P5.4: the implementers → tests → result diagram.

tests/test_wiki_site.py:1005

Show on the map →

Called by none

Calls none

Checks

  • assert 'role="img"' in svg and "aria-label=" in svg
  • assert ">load</text>" in svg and ">test_load</text>" in svg and ">passed</text>" in svg
  • assert 'data-edge="test_load→load"' in svg

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 16 lines
def test_a_requirement_page_draws_its_evidence_chain(site: dict[str, str]) -> None:
    """OWNER (round 5, P5.4): the requirement's evidence as a diagram — implementers → tests →
    result. Edges come from the row's `extent` (which implementers each test exercises), so a
    drawn line is a measured or tagged link, never a guess. REQ-W-001: `test_load` passed and
    exercises `load`.

    @brief P5.4: the implementers → tests → result diagram.
    """
    page = site["req-REQ-W-001.html"]
    svg = page[page.index('<svg class="req-evidence"') :]
    svg = svg[: svg.index("</svg>")]
    assert 'role="img"' in svg and "aria-label=" in svg
    assert ">load</text>" in svg and ">test_load</text>" in svg and ">passed</text>" in svg
    assert 'data-edge="test_load→load"' in svg

Activity · 6 steps
lines 1013–1013page = site["req-REQ-W-001.html"]lines 1014–1014svg = page[page.index('<svg class="req-evidence"') :]lines 1015–1015svg = svg[: svg.index("</svg>")]lines 1016–1016assert 'role="img"' in svg and "aria-label=" in svglines 1017–1017assert ">load</text>" in svg and ">test_load</text>" in svg and ">passed</text>" in svglines 1018–1018assert 'data-edge="test_load→load"' in svg

test_a_step_brief_is_plain_text_and_the_home_card_counts_every_flow

None test_wiki_site.test_a_step_brief_is_plain_text_and_the_home_card_counts_every_flow(dict[str, str] site)

Brief markup and the flow count.

tests/test_wiki_site.py:627

Show on the map →

Called by none

Calls _flow_page, all

Checks

  • assert any(s["brief"] for s in steps)
  • assert all("<" not in s["brief"] and "para>" not in s["brief"] for s in steps)
  • assert f"{count} sequence diagrams" in site["index.html"]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
REQ-DDB-WIKI-054inferredtest_a_step_brief_is_plain_text_and_the_home_card_counts_every_flow → all
Source · 16 lines
def test_a_step_brief_is_plain_text_and_the_home_card_counts_every_flow(
    site: dict[str, str],
) -> None:
    """FOUND ON THE ROUND-3 SCREENSHOTS: the step modal printed doxygen's `<para>…</para>` around
    the brief, and the Flows card counted only declared flows ("2" on a site with 30).

    @brief Brief markup and the flow count.
    """
    blob = re.search(r'<script type="application/json"[^>]*>(.*?)</script>', _flow_page(site), re.S)
    steps = json.loads(blob.group(1))
    assert any(s["brief"] for s in steps)
    assert all("<" not in s["brief"] and "para>" not in s["brief"] for s in steps)
    count = sum(1 for n in site if n.startswith("flow-") and n.endswith(".html"))
    assert f"{count} sequence diagrams" in site["index.html"]

Activity · 6 steps
lines 635–635blob = re.search(r'<script type="application/json"[^>]*>(.*?)</script>', _flow_page(site), re.S)lines 636–636steps = json.loads(blob.group(1))lines 637–637assert any(s["brief"] for s in steps)lines 638–638assert all("<" not in s["brief"] and "para>" not in s["brief"] for s in steps)lines 639–639count = sum(1 for n in site if n.startswith("flow-") and n.endswith(".html"))lines 640–640assert f"{count} sequence diagrams" in site["index.html"]

test_a_step_opens_a_dialog_with_the_data_it_carries

None test_wiki_site.test_a_step_opens_a_dialog_with_the_data_it_carries(dict[str, str] site)

W18: per-step data (call text, callee signature, call-site link) and controls.

tests/test_wiki_site.py:401

Show on the map →

Called by none

Calls _flow_page

Checks

  • assert "<dialog" in page and 'data-flow-control="play"' in page
  • assert 'data-flow-control="pause"' in page and 'data-flow-control="step"' in page
  • assert 'parse(item, "SECRET_CALL_ARG")' in parse["call"]
  • assert "raw, tag" in parse["signature"]
  • assert parse["site"].startswith("src/data.py:") and "example.invalid" in parse["link"]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 15 lines
def test_a_step_opens_a_dialog_with_the_data_it_carries(site: dict[str, str]) -> None:
    """@brief W18: per-step data (call text, callee signature, call-site link) and controls."""
    page = _flow_page(site)
    assert "<dialog" in page and 'data-flow-control="play"' in page
    assert 'data-flow-control="pause"' in page and 'data-flow-control="step"' in page
    blob = re.search(r'<script type="application/json"[^>]*>(.*?)</script>', page, re.S)
    steps = json.loads(
        blob.group(1).replace("&lt;", "<").replace("&gt;", ">").replace("&amp;", "&")
    )
    parse = next(s for s in steps if s["callee"] == "parse")
    assert 'parse(item, "SECRET_CALL_ARG")' in parse["call"]
    assert "raw, tag" in parse["signature"]
    assert parse["site"].startswith("src/data.py:") and "example.invalid" in parse["link"]

Activity · 9 steps
lines 403–403page = _flow_page(site)lines 404–404assert "<dialog" in page and 'data-flow-control="play"' in pagelines 405–405assert 'data-flow-control="pause"' in page and 'data-flow-control="step"' in pagelines 406–406blob = re.search(r'<script type="application/json"[^>]*>(.*?)</script>', page, re.S)lines 407–409steps = json.loads( blob.group(1).replace("&lt;", "<").replace("&gt;", ">").replace("&amp;", "&") )lines 410–410parse = next(s for s in steps if s["callee"] == "parse")lines 411–411assert 'parse(item, "SECRET_CALL_ARG")' in parse["call"]lines 412–412assert "raw, tag" in parse["signature"]lines 413–413assert parse["site"].startswith("src/data.py:") and "example.invalid" in parse["link"]

test_a_test_has_its_own_page_saying_what_it_checks_and_reaches

None test_wiki_site.test_a_test_has_its_own_page_saying_what_it_checks_and_reaches(dict[str, str] site)

R6/R7: the test page.

tests/test_wiki_site.py:889

Show on the map →

Called by none

Calls none

Checks

  • assert 'href="test-tests-test_data-py-test_load.html"' in req
  • assert "Passed in the packaged run." in page
  • assert "assert load([]) == 1" in page
  • assert ">test_load" in proof and ">load<" in proof and "REQ-W-001" in proof
  • assert "Reaching is not proving" in page
  • assert "flow-test_load" not in page and "replay" not in page

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 23 lines
def test_a_test_has_its_own_page_saying_what_it_checks_and_reaches(site: dict[str, str]) -> None:
    """OWNER 2026-11-16: tests did not link through from requirements, and "at minimum, I want to
    see visually what a test is PROVING". A requirement's test links to the test's OWN page: the
    packaged run's result, its checks, and a drawn chain from the test through its calls to each
    implementer it reaches — labelled as reaching, not proving, without mutation records.

    @brief R6/R7: the test page.
    """
    req = site["req-REQ-W-001.html"]
    assert 'href="test-tests-test_data-py-test_load.html"' in req
    page = site["test-tests-test_data-py-test_load.html"]
    assert "Passed in the packaged run." in page
    assert "assert load([]) == 1" in page
    proof = page[page.index('<svg class="proof') :]
    proof = proof[: proof.index("</svg>")]
    assert ">test_load" in proof and ">load<" in proof and "REQ-W-001" in proof
    assert "Reaching is not proving" in page
    ## OWNER 2026-11-17 (round 5): "a test itself doesn't need a sequence diagram" — without a
    ## packaged run a test has no flow of its own (its slices of the master flows need per-test
    ## coverage, which this fixture does not give; tests/test_wiki_testslices.py covers them).
    assert "flow-test_load" not in page and "replay" not in page

Activity · 10 steps
lines 897–897req = site["req-REQ-W-001.html"]lines 898–898assert 'href="test-tests-test_data-py-test_load.html"' in reqlines 899–899page = site["test-tests-test_data-py-test_load.html"]lines 900–900assert "Passed in the packaged run." in pagelines 901–901assert "assert load([]) == 1" in pagelines 902–902proof = page[page.index('<svg class="proof') :]lines 903–903proof = proof[: proof.index("</svg>")]lines 904–904assert ">test_load" in proof and ">load<" in proof and "REQ-W-001" in prooflines 905–905assert "Reaching is not proving" in pagelines 909–909assert "flow-test_load" not in page and "replay" not in page

test_a_test_page_draws_its_call_flow_boxes

None test_wiki_site.test_a_test_page_draws_its_call_flow_boxes(dict[str, str] site)

P5.5: `test_load` → a box for `load`, linking its activity diagram.

tests/test_wiki_site.py:1051

Show on the map →

Called by none

Calls none

Checks

  • assert "#act-s-load" in flow and ">load</a>" in flow

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 7 lines
def test_a_test_page_draws_its_call_flow_boxes(site: dict[str, str]) -> None:
    """@brief P5.5: `test_load` → a box for `load`, linking its activity diagram."""
    (name,) = [k for k in site if k.startswith("test-") and k.endswith("test_load.html")]
    flow = site[name].split('<div class="callflow">', 1)[1].split("</div>", 1)[0]
    assert "#act-s-load" in flow and ">load</a>" in flow

Activity · 3 steps
lines 1053–1053(name,) = [k for k in site if k.startswith("test-") and k.endswith("test_load.html")]lines 1054–1054flow = site[name].split('<div class="callflow">', 1)[1].split("</div>", 1)[0]lines 1055–1055assert "#act-s-load" in flow and ">load</a>" in flow

test_a_test_page_pins_each_check_to_what_it_observes

None test_wiki_site.test_a_test_page_pins_each_check_to_what_it_observes(dict[str, str] site)

P5.5: the pinned check on the test's page.

tests/test_wiki_site.py:1026

Show on the map →

Called by none

Calls none

Checks

  • assert "<code>assert load([]) == 1</code>" in item
  • assert '<span class="pin pin-direct">observes <code>load</code></span>' in item

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 13 lines
def test_a_test_page_pins_each_check_to_what_it_observes(site: dict[str, str]) -> None:
    """OWNER (round 5, P5.5): checks pinned by syntax tree. `test_load`'s one check,
    `assert load([]) == 1`, observes `load` directly.

    @brief P5.5: the pinned check on the test's page.
    """
    (name,) = [k for k in site if k.startswith("test-") and k.endswith("test_load.html")]
    page = site[name]
    item = page.split('<ol class="asserts">', 1)[1].split("</ol>", 1)[0]
    assert "<code>assert load([]) == 1</code>" in item
    assert '<span class="pin pin-direct">observes <code>load</code></span>' in item

Activity · 5 steps
lines 1032–1032(name,) = [k for k in site if k.startswith("test-") and k.endswith("test_load.html")]lines 1033–1033page = site[name]lines 1034–1034item = page.split('<ol class="asserts">', 1)[1].split("</ol>", 1)[0]lines 1035–1035assert "<code>assert load([]) == 1</code>" in itemlines 1036–1036assert '<span class="pin pin-direct">observes <code>load</code></span>' in item

test_a_test_page_says_how_the_product_reaches_what_it_tests

None test_wiki_site.test_a_test_page_says_how_the_product_reaches_what_it_tests(dict[str, str] site)

P5.5: the product's path to the tested code.

tests/test_wiki_site.py:1039

Show on the map →

Called by none

Calls none

Checks

  • assert "<code>main</code> → <code>load</code>" in context
  • assert 'href="flow-' in context

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 12 lines
def test_a_test_page_says_how_the_product_reaches_what_it_tests(site: dict[str, str]) -> None:
    """OWNER (round 5, P5.5): context paths. `test_load` calls `load`; the product flow from
    `main` reaches it, so the page shows that path and links the flow.

    @brief P5.5: the product's path to the tested code.
    """
    (name,) = [k for k in site if k.startswith("test-") and k.endswith("test_load.html")]
    context = site[name].split('<div class="context">', 1)[1].split("</div>", 1)[0]
    assert "<code>main</code> → <code>load</code>" in context
    assert 'href="flow-' in context

Activity · 4 steps
lines 1045–1045(name,) = [k for k in site if k.startswith("test-") and k.endswith("test_load.html")]lines 1046–1046context = site[name].split('<div class="context">', 1)[1].split("</div>", 1)[0]lines 1047–1047assert "<code>main</code> → <code>load</code>" in contextlines 1048–1048assert 'href="flow-' in context

test_adr_status_is_read_in_every_common_shape

None test_wiki_site.test_adr_status_is_read_in_every_common_shape()

P3c-2: `Status:` inline, a `## Status` section, MADR front matter.

tests/test_wiki_site.py:864

Show on the map →

Called by none

Calls parse_adr

Checks

  • assert (inline.number, inline.title, inline.status, inline.date) == ("2", "X", "Proposed", "2026-02-01", )
  • assert (section.number, section.status) == ("3", "Superseded by 4")
  • assert (madr.title, madr.status, madr.date) == ("Z", "accepted", "2026-03-03")

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031measuredtest_adr_status_is_read_in_every_common_shape → parse_adr
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 17 lines
def test_adr_status_is_read_in_every_common_shape() -> None:
    """@brief P3c-2: `Status:` inline, a `## Status` section, MADR front matter."""
    from clew.wiki.adr import parse_adr

    inline = parse_adr("0002-x.md", "# 2. X\n\nStatus: Proposed\nDate: 2026-02-01\n")
    section = parse_adr("0003-y.md", "# Y\n\n## Status\n\nSuperseded by 4\n")
    madr = parse_adr("0004-z.md", "---\nstatus: accepted\ndate: 2026-03-03\n---\n# Z\n")
    assert (inline.number, inline.title, inline.status, inline.date) == (
        "2",
        "X",
        "Proposed",
        "2026-02-01",
    )
    assert (section.number, section.status) == ("3", "Superseded by 4")
    assert (madr.title, madr.status, madr.date) == ("Z", "accepted", "2026-03-03")

Activity · 7 steps
lines 866–866from clew.wiki.adr import parse_adrlines 868–868inline = parse_adr("0002-x.md", "# 2. X\n\nStatus: Proposed\nDate: 2026-02-01\n")lines 869–869section = parse_adr("0003-y.md", "# Y\n\n## Status\n\nSuperseded by 4\n")lines 870–870madr = parse_adr("0004-z.md", "---\nstatus: accepted\ndate: 2026-03-03\n---\n# Z\n")lines 871–876assert (inline.number, inline.title, inline.status, inline.date) == ( "2", "X", "Proposed", "2026-02-01", )lines 877–877assert (section.number, section.status) == ("3", "Superseded by 4")lines 878–878assert (madr.title, madr.status, madr.date) == ("Z", "accepted", "2026-03-03")

test_an_empty_cell_reads_as_a_dash_and_an_empty_column_is_dropped

None test_wiki_site.test_an_empty_cell_reads_as_a_dash_and_an_empty_column_is_dropped()

The shared table helper.

tests/test_wiki_site.py:467

Show on the map →

Called by none

Calls table

Checks

  • assert re.findall(r"<th[^>]*>(\w)</th>", html) == ["a", "b"]
  • assert html.count('class="none"') == 2 and re.search(r'<td class="n"[^>]*>y</td>', html)

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012measuredtest_an_empty_cell_reads_as_a_dash_and_an_empty_column_is_dropped → table
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 11 lines
def test_an_empty_cell_reads_as_a_dash_and_an_empty_column_is_dropped() -> None:
    """@brief The shared table helper."""
    from clew.wiki.htmltable import table

    html = table(["a", "b", "c"], [["x", "", ""], ["", "y", ""]], numeric=("b",))
    assert re.findall(r"<th[^>]*>(\w)</th>", html) == ["a", "b"]
    # Fixture string loosened (round 3, P1b): a cell now also carries its column's `data-label`
    # for the narrow-screen card layout; the property asserted — right-aligned numeric — is unchanged.
    assert html.count('class="none"') == 2 and re.search(r'<td class="n"[^>]*>y</td>', html)

Activity · 4 steps
lines 469–469from clew.wiki.htmltable import tablelines 471–471html = table(["a", "b", "c"], [["x", "", ""], ["", "y", ""]], numeric=("b",))lines 472–472assert re.findall(r"<th[^>]*>(\w)</th>", html) == ["a", "b"]lines 475–475assert html.count('class="none"') == 2 and re.search(r'<td class="n"[^>]*>y</td>', html)

test_an_unknown_doc_kind_is_a_problem

None test_wiki_site.test_an_unknown_doc_kind_is_a_problem(Path tmp_path)

P3c-2: doc kinds are a closed set.

tests/test_wiki_site.py:881

Checks

  • assert load_wiki_config(tmp_path)[1]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-GUARD-012measuredtest_an_unknown_doc_kind_is_a_problem → load_wiki_config → _requirements_section → read_requirements_section
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
REQ-DDB-WIKI-054inferredtest_an_unknown_doc_kind_is_a_problem → load_wiki_config → _comments → all
Source · 8 lines
def test_an_unknown_doc_kind_is_a_problem(tmp_path: Path) -> None:
    """@brief P3c-2: doc kinds are a closed set."""
    from clew.wiki.config import load_wiki_config

    (tmp_path / ".clew.yaml").write_text("wiki:\n  doc_kinds: {README.md: novel}\n")
    assert load_wiki_config(tmp_path)[1]

Activity · 3 steps
lines 883–883from clew.wiki.config import load_wiki_configlines 885–885(tmp_path / ".clew.yaml").write_text("wiki:\n doc_kinds: {README.md: novel}\n")lines 886–886assert load_wiki_config(tmp_path)[1]

test_another_installed_theme_can_be_named

None test_wiki_site.test_another_installed_theme_can_be_named(Path tmp_path)

W13: `theme.name` selects a Sphinx theme; the clew stylesheet is then not imposed.

tests/test_wiki_site.py:269

Checks

  • assert settings["html_theme"] == "alabaster" and "html_theme_path" not in settings

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011measuredtest_another_installed_theme_can_be_named → sphinx_settings
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 9 lines
def test_another_installed_theme_can_be_named(tmp_path: Path) -> None:
    """@brief W13: `theme.name` selects a Sphinx theme; the clew stylesheet is then not imposed."""
    from clew.wiki.config import ThemeSpec
    from clew.wiki.theme import sphinx_settings

    settings = sphinx_settings(ThemeSpec(name="alabaster"), tmp_path, tmp_path)
    assert settings["html_theme"] == "alabaster" and "html_theme_path" not in settings

Activity · 4 steps
lines 271–271from clew.wiki.config import ThemeSpeclines 272–272from clew.wiki.theme import sphinx_settingslines 274–274settings = sphinx_settings(ThemeSpec(name="alabaster"), tmp_path, tmp_path)lines 275–275assert settings["html_theme"] == "alabaster" and "html_theme_path" not in settings

test_check_refuses_an_unknown_palette_token

None test_wiki_site.test_check_refuses_an_unknown_palette_token(tuple[Path, Path] repo, Path tmp_path)

A misspelled token would otherwise be a silent no-op.

tests/test_wiki_site.py:278

Show on the map →

Called by none

Calls check_wiki

Checks

  • assert "'acent'" in problems and "'nope.css' does not exist" in problems

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-CONFIG-001inferredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → pin_problems → git_text → git_argv
REQ-DDB-CONFIG-003inferredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → composite_problems → compose → _root_source → declared_catalog → _is_flat_req_list
REQ-DDB-GUARD-012measuredtest_check_refuses_an_unknown_palette_token → check_wiki → load_wiki_config → _requirements_section → read_requirements_section
REQ-DDB-GUARD-024inferredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → composite_problems → compose → _root_source → declared_catalog → load_guard_config → read_guard_config → load_config → apply_opt_in_languages
REQ-DDB-GUARD-027inferredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → catalog_requirements → read_catalog_at
REQ-DDB-QUERY-001measuredtest_check_refuses_an_unknown_palette_token → check_wiki → _flow_problems → connect
REQ-DDB-QUERY-003measuredtest_check_refuses_an_unknown_palette_token → check_wiki → _flow_problems → identity_rowids
REQ-DDB-QUERY-010inferredtest_check_refuses_an_unknown_palette_token → check_wiki → _flow_problems → identity_rowids
REQ-DDB-SCHEMA-006inferredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → composite_problems → compose → _root_source → declared_catalog → resolve_catalog_path
REQ-DDB-SCHEMA-015inferredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → composite_problems → compose → _nodes → link_ids
REQ-DDB-WIKI-003measuredtest_check_refuses_an_unknown_palette_token → check_wiki
REQ-DDB-WIKI-004measuredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → load_nodes
REQ-DDB-WIKI-005measuredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems
REQ-DDB-WIKI-006inferredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → _mutation_problems → parse_mutations
REQ-DDB-WIKI-010inferredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → _mapping_problems → parse_mapping
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalogtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → composite_problems → compose → _root_source → declared_catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-040inferredtest_check_refuses_an_unknown_palette_token → check_wiki → trace_problems → composite_problems
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
REQ-DDB-WIKI-054inferredtest_check_refuses_an_unknown_palette_token → check_wiki → load_wiki_config → _comments → all
Source · 12 lines
def test_check_refuses_an_unknown_palette_token(repo: tuple[Path, Path], tmp_path: Path) -> None:
    """@brief A misspelled token would otherwise be a silent no-op."""
    from clew.wiki.check import check_wiki

    cfg = tmp_path / "w.yaml"
    cfg.write_text(
        "wiki:\n  docs: [README.md]\n  theme:\n    palette: {acent: '#000'}\n    css: nope.css\n"
    )
    problems = "\n".join(check_wiki(repo[0], repo[1], cfg))
    assert "'acent'" in problems and "'nope.css' does not exist" in problems

Activity · 5 steps
lines 280–280from clew.wiki.check import check_wikilines 282–282cfg = tmp_path / "w.yaml"lines 283–285cfg.write_text( "wiki:\n docs: [README.md]\n theme:\n palette: {acent: '#000'}\n css: nope.css\n" )lines 286–286problems = "\n".join(check_wiki(repo[0], repo[1], cfg))lines 287–287assert "'acent'" in problems and "'nope.css' does not exist" in problems

test_decisions_are_listed_and_reach_the_requirements_they_name

None test_wiki_site.test_decisions_are_listed_and_reach_the_requirements_they_name(dict[str, str] site)

P3c-2: ADRs — a Decisions page (number, title, status, date, requirements named) and a Decisions section on each named requirement's page.

tests/test_wiki_site.py:851

Show on the map →

Called by none

Calls none

Checks

  • assert "Accepted" in row and "2026-01-02" in row and 'href="requirements.html#REQ-W-001"' in row
  • assert "adr/0001-use-sqlite" in page
  • assert "<h4>Decisions</h4>" in body and "Use SQLite for the store" in body

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 13 lines
def test_decisions_are_listed_and_reach_the_requirements_they_name(site: dict[str, str]) -> None:
    """@brief P3c-2: ADRs — a Decisions page (number, title, status, date, requirements named) and
    a Decisions section on each named requirement's page."""
    page = site["decisions.html"]
    table = page[page.index('<table class="clew"') :]
    row = table[table.index("Use SQLite for the store") :].split("</tr>")[0]
    assert "Accepted" in row and "2026-01-02" in row and 'href="requirements.html#REQ-W-001"' in row
    assert "adr/0001-use-sqlite" in page
    ## Round 4, R4: the requirement's own page holds what its modal did.
    body = site["req-REQ-W-001.html"]
    assert "<h4>Decisions</h4>" in body and "Use SQLite for the store" in body

Activity · 7 steps
lines 854–854page = site["decisions.html"]lines 855–855table = page[page.index('<table class="clew"') :]lines 856–856row = table[table.index("Use SQLite for the store") :].split("</tr>")[0]lines 857–857assert "Accepted" in row and "2026-01-02" in row and 'href="requirements.html#REQ-W-001"' in rowlines 858–858assert "adr/0001-use-sqlite" in pagelines 860–860body = site["req-REQ-W-001.html"]lines 861–861assert "<h4>Decisions</h4>" in body and "Use SQLite for the store" in body

test_docs_are_grouped_by_kind_and_agent_docs_are_included

None test_wiki_site.test_docs_are_grouped_by_kind_and_agent_docs_are_included(dict[str, str] site)

P3c-2: doc kinds.

tests/test_wiki_site.py:830

Show on the map →

Called by none

Calls none

Checks

  • assert found is not None, name
  • assert "prose/README" in kind("tutorial") and "prose/AGENTS" in kind("agents")
  • assert page.index('data-kind="tutorial"') < page.index('data-kind="agents"')
  • assert "prose/AGENTS.html" in site

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 21 lines
def test_docs_are_grouped_by_kind_and_agent_docs_are_included(site: dict[str, str]) -> None:
    """DIÁTAXIS, AND HUMAN VS AGENT DOCS (owner 2026-11-15): the Docs page groups the repository's
    prose by declared kind; AGENTS.md is included without being listed and kept apart, as
    agent-facing.

    @brief P3c-2: doc kinds.
    """
    page = site["docs.html"]

    def kind(name: str) -> str:
        found = re.search(
            rf'<section class="doc-kind" data-kind="{name}">(.*?)</section>', page, re.S
        )
        assert found is not None, name
        return found.group(1)

    assert "prose/README" in kind("tutorial") and "prose/AGENTS" in kind("agents")
    assert page.index('data-kind="tutorial"') < page.index('data-kind="agents"')
    assert "prose/AGENTS.html" in site

Activity · 5 steps
lines 837–837page = site["docs.html"]lines 839–844def kind(name: str) -> str: found = re.search( rf'<section class="doc-kind" data-kind="{name}">(.*?)</section>', page, re.S ) assert found is not None, name return found.group(1)lines 846–846assert "prose/README" in kind("tutorial") and "prose/AGENTS" in kind("agents")lines 847–847assert page.index('data-kind="tutorial"') < page.index('data-kind="agents"')lines 848–848assert "prose/AGENTS.html" in site

test_each_requirement_group_has_its_own_page

None test_wiki_site.test_each_requirement_group_has_its_own_page(dict[str, str] site)

P5.4: one page per requirement group.

tests/test_wiki_site.py:702

Show on the map →

Called by none

Calls none

Checks

  • assert "REQ-W-001" in w and "REQ-W-002" in w and "REQ-X-001" not in w
  • assert "REQ-X-001" in x and "REQ-W-001" not in x
  • assert 'href="req-REQ-W-001.html"' in w
  • assert 'class="seg c-PASS"' in w and "2 requirements" in w
  • assert 'href="requirements.html"' in w, "a group page leads back to the index"

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 15 lines
def test_each_requirement_group_has_its_own_page(site: dict[str, str]) -> None:
    """OWNER (round 5, P5.4): requirement groups get pages, and the group cards link to them. A
    group page is a URL a reader can share: its tier bar, its counts, and ONLY its own
    requirements, each linking to the requirement's page.

    @brief P5.4: one page per requirement group.
    """
    w, x = site["reqgroup-REQ-W.html"], site["reqgroup-REQ-X.html"]
    assert "REQ-W-001" in w and "REQ-W-002" in w and "REQ-X-001" not in w
    assert "REQ-X-001" in x and "REQ-W-001" not in x
    assert 'href="req-REQ-W-001.html"' in w
    assert 'class="seg c-PASS"' in w and "2 requirements" in w
    assert 'href="requirements.html"' in w, "a group page leads back to the index"

Activity · 6 steps
lines 709–709w, x = site["reqgroup-REQ-W.html"], site["reqgroup-REQ-X.html"]lines 710–710assert "REQ-W-001" in w and "REQ-W-002" in w and "REQ-X-001" not in wlines 711–711assert "REQ-X-001" in x and "REQ-W-001" not in xlines 712–712assert 'href="req-REQ-W-001.html"' in wlines 713–713assert 'class="seg c-PASS"' in w and "2 requirements" in wlines 714–714assert 'href="requirements.html"' in w, "a group page leads back to the index"

test_entry_points_become_flows_without_being_declared

None test_wiki_site.test_entry_points_become_flows_without_being_declared(dict[str, str] site)

Auto-derived entry-point flows.

tests/test_wiki_site.py:478

Show on the map →

Called by none

Calls none

Checks

  • assert "flow-load" in flows
  • assert ">load<" in cli and ">other<" not in cli
  • assert ">other<" in other and ">load<" not in other
  • assert "demo" in cli # the console script's name titles its flow

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 16 lines
def test_entry_points_become_flows_without_being_declared(site: dict[str, str]) -> None:
    """ENTIRELY GENERATED (owner 2026-11-15: two flows for clew was not comprehensive): every
    entry point the repository has — a console script, a `main` outside test code, a thread's
    entry — gets a flow; declared flows (roots chosen in `.clew.yaml`) are added on top.

    @brief Auto-derived entry-point flows.
    """
    flows = site["flows.html"]
    assert "flow-load" in flows
    cli = next(t for n, t in site.items() if n.startswith("flow-main-src-cli"))
    other = next(t for n, t in site.items() if n.startswith("flow-main-tools-other"))
    assert ">load<" in cli and ">other<" not in cli
    assert ">other<" in other and ">load<" not in other
    assert "demo" in cli  # the console script's name titles its flow

Activity · 7 steps
lines 485–485flows = site["flows.html"]lines 486–486assert "flow-load" in flowslines 487–487cli = next(t for n, t in site.items() if n.startswith("flow-main-src-cli"))lines 488–488other = next(t for n, t in site.items() if n.startswith("flow-main-tools-other"))lines 489–489assert ">load<" in cli and ">other<" not in clilines 490–490assert ">other<" in other and ">load<" not in otherlines 491–491assert "demo" in cli

test_every_page_carries_the_minimap_with_its_components_lit

None test_wiki_site.test_every_page_carries_the_minimap_with_its_components_lit(dict[str, str] site)

P1c-2: the sidebar minimap.

tests/test_wiki_site.py:655

Show on the map →

Called by none

Calls none

Checks

  • assert '<nav class="minimap"' in site["flow-load.html"]
  • assert '<nav class="minimap"' not in site[name], name
  • assert lit == ["src"]
  • assert re.search(r'href="map\.html#b=\d+"[^>]*data-comp="src"', flow)
  • assert re.search(r'data-comp="src"[^>]*>.*?<span class="mm-name">src</span>', flow, re.S)

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 25 lines
def test_every_page_carries_the_minimap_with_its_components_lit(site: dict[str, str]) -> None:
    """CROSS-TALK (owner 2026-11-15): the sidebar holds the system's block diagram on every page;
    a flow page lights the components its steps pass through, and each box opens that
    component on the map.

    @brief P1c-2: the sidebar minimap.
    """
    ## ROUND 4, R2 (owner 2026-11-16: the unlabelled sidebar boxes were "easier to simply click
    ## into map"): the sidebar is now a LABELLED block list, in the web's order, each block a link
    ## to that block on the web. The property — every page carries it, a flow lights its blocks —
    ## is unchanged.
    ## SPEC CHANGED (UX review E-12, owner Q/A 2026-11-22, superseding "every page" of 2026-11-15):
    ## the block list sits on pages ABOUT the system — a page that lights its blocks, Flows,
    ## Architecture, Change impact — not on Docs or the index pages (the home page is the map).
    assert '<nav class="minimap"' in site["flow-load.html"]
    for name in ("index.html", "requirements.html"):
        assert '<nav class="minimap"' not in site[name], name
    flow = site["flow-load.html"]
    lit = re.findall(r'\.minimap \[data-comp="([^"]+)"\]', flow)
    assert lit == ["src"]
    assert re.search(r'href="map\.html#b=\d+"[^>]*data-comp="src"', flow)
    assert re.search(r'data-comp="src"[^>]*>.*?<span class="mm-name">src</span>', flow, re.S)
    ## (requirements.html carries no block list at all now, so nothing on it is lit.)

Activity · 8 steps
lines 669–669assert '<nav class="minimap"' in site["flow-load.html"]lines 670–670◇ for name in ("index.html", "requirements.html")lines 671–671assert '<nav class="minimap"' not in site[name], namelines 672–672flow = site["flow-load.html"]lines 673–673lit = re.findall(r'\.minimap \[data-comp="([^"]+)"\]', flow)lines 674–674assert lit == ["src"]lines 675–675assert re.search(r'href="map\.html#b=\d+"[^>]*data-comp="src"', flow)lines 676–676assert re.search(r'data-comp="src"[^>]*>.*?<span class="mm-name">src</span>', flow, re.S)

test_every_recognised_test_is_found_not_only_the_linked

None test_wiki_site.test_every_recognised_test_is_found_not_only_the_linked(repo)

`None` resolves every test the index recognises, a superset of the linked names.

tests/test_wiki_site.py:1161

Checks

  • assert linked == {"test_load"} and linked <= every

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-QUERY-001measuredtest_every_recognised_test_is_found_not_only_the_linked → connect
REQ-DDB-QUERY-003measuredtest_every_recognised_test_is_found_not_only_the_linked → _test_definitions → table_exists
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-017measured
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-026measuredtest_every_recognised_test_is_found_not_only_the_linked → _test_definitions
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 12 lines
def test_every_recognised_test_is_found_not_only_the_linked(repo) -> None:
    """@brief `None` resolves every test the index recognises, a superset of the linked names."""
    from clew.query._common import connect
    from clew.wiki.testpages import _test_definitions

    _root, db = repo
    with connect(db) as conn:
        every = {d.name for d in _test_definitions(conn, None)}
        linked = {d.name for d in _test_definitions(conn, {"test_load"})}
    assert linked == {"test_load"} and linked <= every

Activity · 7 steps
lines 1163–1163from clew.query._common import connectlines 1164–1164from clew.wiki.testpages import _test_definitionslines 1166–1166_root, db = repolines 1167–1167with connect(db) as connlines 1168–1168every = {d.name for d in _test_definitions(conn, None)}lines 1169–1169linked = {d.name for d in _test_definitions(conn, {"test_load"})}lines 1170–1170assert linked == {"test_load"} and linked <= every

test_flows_are_grouped_by_role

None test_wiki_site.test_flows_are_grouped_by_role(dict[str, str] site)

P1e: flows by role.

tests/test_wiki_site.py:791

Show on the map →

Called by none

Calls none

Checks

  • assert found is not None, name
  • assert "flow-load.html" in product and "flow-main-src-cli-py.html" in product
  • assert "flow-main-tools-other-py.html" in tooling and "<details" in tooling
  • assert "flow-main-tools-other-py.html" not in product
  • assert 'data-role="threads"' not in page
  • assert page.index('data-role="product"') < page.index('data-role="tooling"')

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 25 lines
def test_flows_are_grouped_by_role(site: dict[str, str]) -> None:
    """OWNER 2026-11-15: "a bunch of scripts, not much by way of core function". The Flows page
    groups flows by role — PRODUCT (console scripts, declared roots, mains outside tooling),
    THREADS (thread entries; absent here, so no section), TOOLING (scripts/, acceptance/, tools/
    by default) folded away.

    @brief P1e: flows by role.
    """
    page = site["flows.html"]

    def role(name: str) -> str:
        found = re.search(
            rf'<section class="flow-role" data-role="{name}">(.*?)</section>', page, re.S
        )
        assert found is not None, name
        return found.group(1)

    product, tooling = role("product"), role("tooling")
    assert "flow-load.html" in product and "flow-main-src-cli-py.html" in product
    assert "flow-main-tools-other-py.html" in tooling and "<details" in tooling
    assert "flow-main-tools-other-py.html" not in product
    assert 'data-role="threads"' not in page
    assert page.index('data-role="product"') < page.index('data-role="tooling"')

Activity · 8 steps
lines 799–799page = site["flows.html"]lines 801–806def role(name: str) -> str: found = re.search( rf'<section class="flow-role" data-role="{name}">(.*?)</section>', page, re.S ) assert found is not None, name return found.group(1)lines 808–808product, tooling = role("product"), role("tooling")lines 809–809assert "flow-load.html" in product and "flow-main-src-cli-py.html" in productlines 810–810assert "flow-main-tools-other-py.html" in tooling and "<details" in toolinglines 811–811assert "flow-main-tools-other-py.html" not in productlines 812–812assert 'data-role="threads"' not in pagelines 813–813assert page.index('data-role="product"') < page.index('data-role="tooling"')

test_one_modal_component_serves_every_page

None test_wiki_site.test_one_modal_component_serves_every_page(dict[str, str] site)

P1b: the shared modal.

tests/test_wiki_site.py:541

Show on the map →

Called by none

Calls _flow_page

Checks

  • assert '<dialog id="clew-modal"' in text, name
  • assert 'aria-labelledby="clew-modal-title"' in text, name
  • assert "_static/clew.js" in text, name
  • assert "dialog.flow-step" not in page and '<dialog class="flow-step"' not in page
  • assert page.count("<dialog") == 1

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 16 lines
def test_one_modal_component_serves_every_page(site: dict[str, str]) -> None:
    """ONE COMPONENT: every content page carries the same labelled `<dialog>` and the script that
    drives it; the flow page's step dialog is that component, not a second one.

    @brief P1b: the shared modal.
    """
    for name, text in site.items():
        if name.endswith(".html") and name not in ("search.html", "genindex.html"):
            assert '<dialog id="clew-modal"' in text, name
            assert 'aria-labelledby="clew-modal-title"' in text, name
            assert "_static/clew.js" in text, name
    page = _flow_page(site)
    assert "dialog.flow-step" not in page and '<dialog class="flow-step"' not in page
    assert page.count("<dialog") == 1

Activity · 8 steps
lines 547–547◇ for name, text in site.items()lines 548–548◇ if name.endswith(".html") and name not in ("search.html", "genindex.html")lines 549–549assert '<dialog id="clew-modal"' in text, namelines 550–550assert 'aria-labelledby="clew-modal-title"' in text, namelines 551–551assert "_static/clew.js" in text, namelines 552–552page = _flow_page(site)lines 553–553assert "dialog.flow-step" not in page and '<dialog class="flow-step"' not in pagelines 554–554assert page.count("<dialog") == 1

test_only_a_heading_that_leads_with_a_version_is_a_milestone

None test_wiki_site.test_only_a_heading_that_leads_with_a_version_is_a_milestone(Path tmp_path)

Roadmap milestone detection.

tests/test_wiki_site.py:451

Checks

  • assert [v for v, _h in roadmap_milestones(road)] == ["v0.8.0", "v0.9", "1.0.0"]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013measuredtest_only_a_heading_that_leads_with_a_version_is_a_milestone → roadmap_milestones
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 16 lines
def test_only_a_heading_that_leads_with_a_version_is_a_milestone(tmp_path: Path) -> None:
    """A VERSION MENTIONED IN PASSING is not a milestone: "Adopting design_master v1.0.28" names
    another project's release.

    @brief Roadmap milestone detection.
    """
    from clew.wiki.charts import roadmap_milestones

    road = tmp_path / "ROADMAP.md"
    road.write_text(
        "# Roadmap to v0.8.0\n## A. Tooling\n### Adopting design_master v1.0.28, in order\n"
        "## Proposed v0.8.0 cut\n## v0.9 — later\n## Milestone 1.0.0\n"
    )
    assert [v for v, _h in roadmap_milestones(road)] == ["v0.8.0", "v0.9", "1.0.0"]

Activity · 4 steps
lines 457–457from clew.wiki.charts import roadmap_milestoneslines 459–459road = tmp_path / "ROADMAP.md"lines 460–463road.write_text( "# Roadmap to v0.8.0\n## A. Tooling\n### Adopting design_master v1.0.28, in order\n" "## Proposed v0.8.0 cut\n## v0.9 — later\n## Milestone 1.0.0\n" )lines 464–464assert [v for v, _h in roadmap_milestones(road)] == ["v0.8.0", "v0.9", "1.0.0"]

test_requirement_and_test_charts_are_drawn

None test_wiki_site.test_requirement_and_test_charts_are_drawn(dict[str, str] site)

W14: donuts of requirement tiers and test statuses, with their counts.

tests/test_wiki_site.py:290

Show on the map →

Called by none

Calls none

Checks

  • assert page.count('class="donut"') == 2
  • assert 'data-label="PASS" data-count="2"' in page and 'data-label="GAP" data-count="1"' in page
  • assert ('data-label="passed" data-count="1"' in page and 'data-label="failed" data-count="1"' in page )

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 12 lines
def test_requirement_and_test_charts_are_drawn(site: dict[str, str]) -> None:
    """@brief W14: donuts of requirement tiers and test statuses, with their counts."""
    page = site["requirements.html"]
    assert page.count('class="donut"') == 2
    # REQ-X-001 has no tagged test; test_load reaches `parse` in one call, so it is INFERRED.
    assert 'data-label="PASS" data-count="2"' in page and 'data-label="GAP" data-count="1"' in page
    assert (
        'data-label="passed" data-count="1"' in page
        and 'data-label="failed" data-count="1"' in page
    )

Activity · 4 steps
lines 292–292page = site["requirements.html"]lines 293–293assert page.count('class="donut"') == 2lines 295–295assert 'data-label="PASS" data-count="2"' in page and 'data-label="GAP" data-count="1"' in pagelines 296–299assert ( 'data-label="passed" data-count="1"' in page and 'data-label="failed" data-count="1"' in page )

test_requirement_groups_are_cards_that_filter_the_list

None test_wiki_site.test_requirement_groups_are_cards_that_filter_the_list(dict[str, str] site)

P1d: group cards.

tests/test_wiki_site.py:687

Show on the map →

Called by none

Calls none

Checks

  • assert cards == ["REQ-W", "REQ-X"]
  • assert page.index('class="group-card"') < page.index('<table class="clew trace"')
  • assert re.findall(r'<tr data-group="([^"]+)"', page) == ["REQ-W", "REQ-W", "REQ-X"]
  • assert 'class="seg c-PASS"' in w[: w.index("</button>")]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 15 lines
def test_requirement_groups_are_cards_that_filter_the_list(site: dict[str, str]) -> None:
    """OWNER 2026-11-15: requirements front and centre, groups linked. Each group is a card with
    its tier progress; the card filters the requirement list to that group.

    @brief P1d: group cards.
    """
    page = site["requirements.html"]
    cards = re.findall(r'<button[^>]*class="group-card"[^>]*data-req-filter="([^"]+)"', page)
    assert cards == ["REQ-W", "REQ-X"]
    assert page.index('class="group-card"') < page.index('<table class="clew trace"')
    assert re.findall(r'<tr data-group="([^"]+)"', page) == ["REQ-W", "REQ-W", "REQ-X"]
    w = page[page.index('data-req-filter="REQ-W"') :]
    assert 'class="seg c-PASS"' in w[: w.index("</button>")]

Activity · 7 steps
lines 693–693page = site["requirements.html"]lines 694–694cards = re.findall(r'<button[^>]*class="group-card"[^>]*data-req-filter="([^"]+)"', page)lines 695–695assert cards == ["REQ-W", "REQ-X"]lines 696–696assert page.index('class="group-card"') < page.index('<table class="clew trace"')lines 697–697assert re.findall(r'<tr data-group="([^"]+)"', page) == ["REQ-W", "REQ-W", "REQ-X"]lines 698–698w = page[page.index('data-req-filter="REQ-W"') :]lines 699–699assert 'class="seg c-PASS"' in w[: w.index("</button>")]

test_section_cards_carry_an_icon

None test_wiki_site.test_section_cards_carry_an_icon()

P1b: the inline icon set — currentColor, hidden from assistive tech; unknown names refuse.

tests/test_wiki_site.py:616

Show on the map →

Called by none

Calls icon

Checks

  • assert svg.startswith("<svg") and 'aria-hidden="true"' in svg and "currentColor" in svg

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 11 lines
def test_section_cards_carry_an_icon() -> None:
    """@brief P1b: the inline icon set — currentColor, hidden from assistive tech; unknown names
    refuse."""
    from clew.wiki.icons import icon

    svg = icon("requirements")
    assert svg.startswith("<svg") and 'aria-hidden="true"' in svg and "currentColor" in svg
    with pytest.raises(KeyError):
        icon("nope")

Activity · 5 steps
lines 619–619from clew.wiki.icons import iconlines 621–621svg = icon("requirements")lines 622–622assert svg.startswith("<svg") and 'aria-hidden="true"' in svg and "currentColor" in svglines 623–623with pytest.raises(KeyError)lines 624–624icon("nope")

test_source_bodies_and_diagrams_are_not_in_the_search_index

None test_wiki_site.test_source_bodies_and_diagrams_are_not_in_the_search_index(dict[str, str] site)

P5.1b: the search index holds names and prose, not bodies.

tests/test_wiki_site.py:1065

Show on the map →

Called by none

Calls none

Checks

  • assert "secret_body_mark" not in index.lower() and "secret_body_marker" not in index.lower()
  • assert '"pars' in index, "the function's own name must stay searchable"

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 16 lines
def test_source_bodies_and_diagrams_are_not_in_the_search_index(site: dict[str, str]) -> None:
    """P5.1b (2.0.0, page weight). MEASURED on clew's own site: searchindex.js was 8.2 MB, 6.35 MB
    of it 80,285 terms, because Sphinx's indexer strips the tags off RAW HTML and indexes the text —
    every folded source body, activity statement and SVG label. A function is found by its heading,
    signature and brief; code text is what the index's own code search is for. `SECRET_BODY_MARKER`
    lives only in `parse`'s body; `parse` itself must stay findable.

    @brief P5.1b: the search index holds names and prose, not bodies.
    """
    import pathlib

    index = (pathlib.Path(site["__html__"]) / "searchindex.js").read_text()
    assert "secret_body_mark" not in index.lower() and "secret_body_marker" not in index.lower()
    assert '"pars' in index, "the function's own name must stay searchable"

Activity · 4 steps
lines 1074–1074import pathliblines 1076–1076index = (pathlib.Path(site["__html__"]) / "searchindex.js").read_text()lines 1077–1077assert "secret_body_mark" not in index.lower() and "secret_body_marker" not in index.lower()lines 1078–1078assert '"pars' in index, "the function's own name must stay searchable"

test_tables_become_cards_and_diagrams_pan_on_a_narrow_screen

None test_wiki_site.test_tables_become_cards_and_diagrams_pan_on_a_narrow_screen(dict[str, str] site)

P1b: responsive tables (a cell names its column) and pan/zoom diagram wrappers.

tests/test_wiki_site.py:605

Show on the map →

Called by none

Calls _flow_page, table

Checks

  • assert 'data-label="Name"' in html and 'data-label="Count"' in html
  • assert "@media(max-width:760px)" in css and "attr(data-label)" in css
  • assert "data-pz" in _flow_page(site)

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012measuredtest_tables_become_cards_and_diagrams_pan_on_a_narrow_screen → table
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 11 lines
def test_tables_become_cards_and_diagrams_pan_on_a_narrow_screen(site: dict[str, str]) -> None:
    """@brief P1b: responsive tables (a cell names its column) and pan/zoom diagram wrappers."""
    from clew.wiki.htmltable import table

    html = table(["Name", "Count"], [["a", "1"]], numeric=("Count",))
    assert 'data-label="Name"' in html and 'data-label="Count"' in html
    css = site["_static/clew.css"]
    assert "@media(max-width:760px)" in css and "attr(data-label)" in css
    assert "data-pz" in _flow_page(site)

Activity · 6 steps
lines 607–607from clew.wiki.htmltable import tablelines 609–609html = table(["Name", "Count"], [["a", "1"]], numeric=("Count",))lines 610–610assert 'data-label="Name"' in html and 'data-label="Count"' in htmllines 611–611css = site["_static/clew.css"]lines 612–612assert "@media(max-width:760px)" in css and "attr(data-label)" in csslines 613–613assert "data-pz" in _flow_page(site)

test_the_default_theme_is_bundled_and_self_contained

None test_wiki_site.test_the_default_theme_is_bundled_and_self_contained(dict[str, str] site)

W13: the clew theme's stylesheet, tokens and fonts.

tests/test_wiki_site.py:244

Show on the map →

Called by none

Calls none

Checks

  • assert "--paper:" in css and "--acc:" in css
  • assert "@font-face" in site["_static/fonts/clew-fonts.css"]
  • assert {"manrope.ttf", "newsreader.ttf", "jetbrains-mono.ttf"} <= set(site["__fonts__"].split())
  • assert "OFL" in site["__licenses__"]
  • assert "fonts.googleapis" not in text and "https://cdn" not in text, name
  • assert "_static/clew.css" in text, name

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 16 lines
def test_the_default_theme_is_bundled_and_self_contained(site: dict[str, str]) -> None:
    """THE FONTS SHIP WITH THEIR LICENCES and load same-origin; nothing on any page is remote.

    @brief W13: the clew theme's stylesheet, tokens and fonts.
    """
    css = site["_static/clew.css"]
    assert "--paper:" in css and "--acc:" in css
    assert "@font-face" in site["_static/fonts/clew-fonts.css"]
    assert {"manrope.ttf", "newsreader.ttf", "jetbrains-mono.ttf"} <= set(site["__fonts__"].split())
    assert "OFL" in site["__licenses__"]
    for name, text in site.items():
        if name.endswith(".html"):
            assert "fonts.googleapis" not in text and "https://cdn" not in text, name
            assert "_static/clew.css" in text, name

Activity · 9 steps
lines 249–249css = site["_static/clew.css"]lines 250–250assert "--paper:" in css and "--acc:" in csslines 251–251assert "@font-face" in site["_static/fonts/clew-fonts.css"]lines 252–252assert {"manrope.ttf", "newsreader.ttf", "jetbrains-mono.ttf"} <= set(site["__fonts__"].split())lines 253–253assert "OFL" in site["__licenses__"]lines 254–254◇ for name, text in site.items()lines 255–255◇ if name.endswith(".html")lines 256–256assert "fonts.googleapis" not in text and "https://cdn" not in text, namelines 257–257assert "_static/clew.css" in text, name

test_the_home_page_opens_on_the_map

None test_wiki_site.test_the_home_page_opens_on_the_map(dict[str, str] site)

Home = map, then summary, then cards.

tests/test_wiki_site.py:1185

Show on the map →

Called by none

Calls none

Checks

  • assert "data-web" in home and "data-web-legend" in home
  • assert home.index("data-web") < home.index('class="charts"') < home.index('class="cards"')

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 11 lines
def test_the_home_page_opens_on_the_map(site: dict[str, str]) -> None:
    """Owner Q/A 2026-11-22 ("the map is home"): the home page opens on the map and its legend,
    with the status donuts and the section cards below it.

    @brief Home = map, then summary, then cards.
    """
    home = site["index.html"]
    assert "data-web" in home and "data-web-legend" in home
    assert home.index("data-web") < home.index('class="charts"') < home.index('class="cards"')

Activity · 3 steps
lines 1191–1191home = site["index.html"]lines 1192–1192assert "data-web" in home and "data-web-legend" in homelines 1193–1193assert home.index("data-web") < home.index('class="charts"') < home.index('class="cards"')

test_the_home_page_says_what_it_is_and_where_to_go_before_the_map

None test_wiki_site.test_the_home_page_says_what_it_is_and_where_to_go_before_the_map(dict[str, str] site)

Home: purpose and doorways first.

tests/test_wiki_site.py:1213

Show on the map →

Called by none

Calls none

Checks

  • assert 'class="home-lead"' in home and 'class="doorways"' in home
  • assert home.index('class="home-lead"') < home.index('class="doorways"') < home.index("data-web")
  • assert 'href="requirements.html"' in doors and 'href="flows.html"' in doors

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 13 lines
def test_the_home_page_says_what_it_is_and_where_to_go_before_the_map(site: dict[str, str]) -> None:
    """UX review E-13 (owner Q/A 2026-11-22): home opened on a complex chart with no orienting
    sentence. A one-line purpose and the main doorways come before the map.

    @brief Home: purpose and doorways first.
    """
    home = site["index.html"]
    assert 'class="home-lead"' in home and 'class="doorways"' in home
    assert home.index('class="home-lead"') < home.index('class="doorways"') < home.index("data-web")
    doors = home.split('class="doorways"', 1)[1].split("</nav>", 1)[0]
    assert 'href="requirements.html"' in doors and 'href="flows.html"' in doors

Activity · 5 steps
lines 1219–1219home = site["index.html"]lines 1220–1220assert 'class="home-lead"' in home and 'class="doorways"' in homelines 1221–1221assert home.index('class="home-lead"') < home.index('class="doorways"') < home.index("data-web")lines 1222–1222doors = home.split('class="doorways"', 1)[1].split("</nav>", 1)[0]lines 1223–1223assert 'href="requirements.html"' in doors and 'href="flows.html"' in doors

test_the_home_page_shows_requirements_and_tests_by_status

None test_wiki_site.test_the_home_page_shows_requirements_and_tests_by_status(dict[str, str] site)

The status charts are on the home page.

tests/test_wiki_site.py:1173

Show on the map →

Called by none

Calls none

Checks

  • assert 'class="charts"' in home and "Requirements by tier" in home and "Tests by status" in home
  • assert 'href="requirements.html"' in home

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 12 lines
def test_the_home_page_shows_requirements_and_tests_by_status(site: dict[str, str]) -> None:
    """X-5 (owner review 2, 2026-11-22): "that pie graph chart of requirements/tests by status needs
    to be top level viewable". The home page carries the same two donuts as the Requirements page,
    linked to it.

    @brief The status charts are on the home page.
    """
    home = site["index.html"]
    assert 'class="charts"' in home and "Requirements by tier" in home and "Tests by status" in home
    assert 'href="requirements.html"' in home

Activity · 3 steps
lines 1180–1180home = site["index.html"]lines 1181–1181assert 'class="charts"' in home and "Requirements by tier" in home and "Tests by status" in homelines 1182–1182assert 'href="requirements.html"' in home

test_the_map_is_a_section_between_flows_and_docs

None test_wiki_site.test_the_map_is_a_section_between_flows_and_docs(dict[str, str] site)

P1c: the system map page, in the top bar after Flows, with its lens controls.

tests/test_wiki_site.py:643

Show on the map →

Called by none

Calls none

Checks

  • assert positions == sorted(positions)
  • assert 'class="web"' in page and "data-web-lens" in page and 'class="clew web-table"' in page

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 12 lines
def test_the_map_is_a_section_between_flows_and_docs(site: dict[str, str]) -> None:
    """@brief P1c: the system map page, in the top bar after Flows, with its lens controls."""
    index = site["index.html"]
    nav = index[index.index('<nav class="nav"') : index.index("</nav>")]
    positions = [nav.index(f">{s}<") for s in ("Requirements", "Flows", "Map", "Docs")]
    assert positions == sorted(positions)
    page = site["map.html"]
    ## ROUND 4, R3: the map page is the repository web (canvas, lens picker, block table) — the
    ## box map's `comp` groups and lens buttons were replaced by owner ruling 2026-11-16.
    assert 'class="web"' in page and "data-web-lens" in page and 'class="clew web-table"' in page

Activity · 6 steps
lines 645–645index = site["index.html"]lines 646–646nav = index[index.index('<nav class="nav"') : index.index("</nav>")]lines 647–647positions = [nav.index(f">{s}<") for s in ("Requirements", "Flows", "Map", "Docs")]lines 648–648assert positions == sorted(positions)lines 649–649page = site["map.html"]lines 652–652assert 'class="web"' in page and "data-web-lens" in page and 'class="clew web-table"' in page

test_the_repository_overrides_palette_and_adds_css

None test_wiki_site.test_the_repository_overrides_palette_and_adds_css(dict[str, str] site)

W13: `wiki.theme.palette` and `wiki.theme.css` reach every page.

tests/test_wiki_site.py:260

Show on the map →

Called by none

Calls none

Checks

  • assert "--acc:#123456" in site["_static/clew-theme.css"]
  • assert ".repo-extra" in site["_static/extra.css"]
  • assert ("_static/clew-theme.css" in site["index.html"] and "_static/extra.css" in site["index.html"] )

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 9 lines
def test_the_repository_overrides_palette_and_adds_css(site: dict[str, str]) -> None:
    """@brief W13: `wiki.theme.palette` and `wiki.theme.css` reach every page."""
    assert "--acc:#123456" in site["_static/clew-theme.css"]
    assert ".repo-extra" in site["_static/extra.css"]
    assert (
        "_static/clew-theme.css" in site["index.html"] and "_static/extra.css" in site["index.html"]
    )

Activity · 3 steps
lines 262–262assert "--acc:#123456" in site["_static/clew-theme.css"]lines 263–263assert ".repo-extra" in site["_static/extra.css"]lines 264–266assert ( "_static/clew-theme.css" in site["index.html"] and "_static/extra.css" in site["index.html"] )

test_the_requirements_page_summarises_each_requirement_group

None test_wiki_site.test_the_requirements_page_summarises_each_requirement_group(dict[str, str] site)

W14: per group — requirements, implemented, tested, tiers, below the layer minimum.

tests/test_wiki_site.py:302

Show on the map →

Called by none

Calls none

Checks

  • assert "summary.html" not in site
  • assert cells("REQ-W")[:10] == ["2", "2", "2", "1", "1", "0", "0", "0", "0", "1"]
  • assert cells("REQ-X")[:10] == ["1", "1", "1", "1", "0", "0", "0", "0", "0", "1"]
  • assert "only by call-graph inference" in page
  • assert page.index('data-req-filter="REQ-W"') < page.index("REQ-W-001")

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 25 lines
def test_the_requirements_page_summarises_each_requirement_group(site: dict[str, str]) -> None:
    """ONE PAGE FOR THE TRACE (owner 2026-11-15: requirements and summary filled the same role):
    the group counts sit above the per-requirement table. A requirement tested in fewer layers than
    `min_layers` is counted, so one-layer coverage is visible rather than reading as tested.

    @brief W14: per group — requirements, implemented, tested, tiers, below the layer minimum.
    """
    page = site["requirements.html"]
    assert "summary.html" not in site

    def cells(group: str) -> list[str]:
        row = page.split(f"<td>{group}</td>", 1)[1].split("</tr>")[0]
        return re.findall(r"<td[^>]*>([^<]*)</td>", row)

    # requirements, implemented, tested, PASS, GAP, TARGET, NOT_RUN, MISSING, EXEMPT, below min
    # layers. EXEMPT column added in round 4 (R8); the counts asserted are unchanged.
    # REQ-W-002 spans two layers once test_load is inferred for `finish` (bdd + unit).
    assert cells("REQ-W")[:10] == ["2", "2", "2", "1", "1", "0", "0", "0", "0", "1"]
    assert cells("REQ-X")[:10] == ["1", "1", "1", "1", "0", "0", "0", "0", "0", "1"]
    assert "only by call-graph inference" in page
    # Round 3, P1d: the group CARDS now lead the page and the counts table sits below the list;
    # the property — group counts come before the per-requirement rows — is held by the cards.
    assert page.index('data-req-filter="REQ-W"') < page.index("REQ-W-001")

Activity · 7 steps
lines 309–309page = site["requirements.html"]lines 310–310assert "summary.html" not in sitelines 312–314def cells(group: str) -> list[str]: row = page.split(f"<td>{group}</td>", 1)[1].split("</tr>")[0] return re.findall(r"<td[^>]*>([^<]*)</td>", row)lines 319–319assert cells("REQ-W")[:10] == ["2", "2", "2", "1", "1", "0", "0", "0", "0", "1"]lines 320–320assert cells("REQ-X")[:10] == ["1", "1", "1", "1", "0", "0", "0", "0", "0", "1"]lines 321–321assert "only by call-graph inference" in pagelines 324–324assert page.index('data-req-filter="REQ-W"') < page.index("REQ-W-001")

test_the_script_is_budgeted_and_no_theme_asset_is_remote

None test_wiki_site.test_the_script_is_budgeted_and_no_theme_asset_is_remote()

P1b: clew.js budget, nothing remote.

tests/test_wiki_site.py:572

Show on the map →

Called by none

Calls none

Checks

  • assert js.stat().st_size <= _JS_BUDGET
  • assert "http://" not in text and "https://" not in text, path
  • assert "#m=" in source and "popstate" in source

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 19 lines
def test_the_script_is_budgeted_and_no_theme_asset_is_remote() -> None:
    """SELF-CONTAINED: no theme stylesheet, layout or script names an http(s) URL, and the one
    script stays under its byte budget. Deep links and the back button are the script's job:
    it reads the `#m=` hash and closes on `popstate`.

    @brief P1b: clew.js budget, nothing remote.
    """
    from clew.wiki.theme import THEMES

    js = THEMES / "clew" / "static" / "clew.js"
    assert js.stat().st_size <= _JS_BUDGET
    for path in THEMES.rglob("*"):
        if path.suffix in (".css", ".js", ".html"):
            text = path.read_text(encoding="utf-8")
            assert "http://" not in text and "https://" not in text, path
    source = js.read_text(encoding="utf-8")
    assert "#m=" in source and "popstate" in source

Activity · 9 steps
lines 579–579from clew.wiki.theme import THEMESlines 581–581js = THEMES / "clew" / "static" / "clew.js"lines 582–582assert js.stat().st_size <= _JS_BUDGETlines 583–583◇ for path in THEMES.rglob("*")lines 584–584◇ if path.suffix in (".css", ".js", ".html")lines 585–585text = path.read_text(encoding="utf-8")lines 586–586assert "http://" not in text and "https://" not in text, pathlines 587–587source = js.read_text(encoding="utf-8")lines 588–588assert "#m=" in source and "popstate" in source

test_the_sequence_diagram_is_uml_proper

None test_wiki_site.test_the_sequence_diagram_is_uml_proper(dict[str, str] site)

W18: activation bars, a return arrow for the cross-lane call, a drawn loop frame, numbered steps, and lane heads at top and bottom.

tests/test_wiki_site.py:387

Show on the map →

Called by none

Calls _flow_page

Checks

  • assert 'class="act"' in svg and 'class="ret"' in svg
  • assert 'class="frame"' in svg and ">loop<" in svg
  • assert re.findall(r'class="num"[^>]*>(\d+)<', svg) == ["1", "2"]
  • assert ">parse<" in svg and ">finish<" in svg
  • assert svg.count('class="head"') == 2 * svg.count('class="lane"')

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 14 lines
def test_the_sequence_diagram_is_uml_proper(site: dict[str, str]) -> None:
    """@brief W18: activation bars, a return arrow for the cross-lane call, a drawn loop frame,
    numbered steps, and lane heads at top and bottom."""
    page = _flow_page(site)
    # Locator narrowed (round 3, P1b): the top bar's menu icon is now the page's first <svg>.
    start = page.index('<svg class="seq"')
    svg = page[start : page.index("</svg>", start)]
    assert 'class="act"' in svg and 'class="ret"' in svg
    assert 'class="frame"' in svg and ">loop<" in svg
    assert re.findall(r'class="num"[^>]*>(\d+)<', svg) == ["1", "2"]
    assert ">parse<" in svg and ">finish<" in svg
    assert svg.count('class="head"') == 2 * svg.count('class="lane"')

Activity · 8 steps
lines 390–390page = _flow_page(site)lines 392–392start = page.index('<svg class="seq"')lines 393–393svg = page[start : page.index("</svg>", start)]lines 394–394assert 'class="act"' in svg and 'class="ret"' in svglines 395–395assert 'class="frame"' in svg and ">loop<" in svglines 396–396assert re.findall(r'class="num"[^>]*>(\d+)<', svg) == ["1", "2"]lines 397–397assert ">parse<" in svg and ">finish<" in svglines 398–398assert svg.count('class="head"') == 2 * svg.count('class="lane"')

test_the_sidebar_puts_the_page_first_and_the_system_only_where_it_belongs

None test_wiki_site.test_the_sidebar_puts_the_page_first_and_the_system_only_where_it_belongs(dict[str, str] site)

Sidebar: contents first, system in context.

tests/test_wiki_site.py:1196

Show on the map →

Called by none

Calls _flow_page

Checks

  • assert "minimap-block" not in docs
  • assert "minimap-block" in flow
  • assert side.index("Table of Contents") < side.index("minimap-block")

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 17 lines
def test_the_sidebar_puts_the_page_first_and_the_system_only_where_it_belongs(
    site: dict[str, str],
) -> None:
    """UX review E-12 (owner Q/A 2026-11-22): the system block list sat on every page, Docs included,
    above the page's own contents (clipped). The page's contents come first; the block list shows
    on pages about the system (a page that lights its blocks, Flows, Architecture, Change impact).

    @brief Sidebar: contents first, system in context.
    """
    docs = site["docs.html"]
    assert "minimap-block" not in docs
    flow = _flow_page(site)
    assert "minimap-block" in flow
    side = flow[flow.index('class="sphinxsidebar"') :]
    assert side.index("Table of Contents") < side.index("minimap-block")

Activity · 6 steps
lines 1205–1205docs = site["docs.html"]lines 1206–1206assert "minimap-block" not in docslines 1207–1207flow = _flow_page(site)lines 1208–1208assert "minimap-block" in flowlines 1209–1209side = flow[flow.index('class="sphinxsidebar"') :]lines 1210–1210assert side.index("Table of Contents") < side.index("minimap-block")

test_the_site_has_an_architecture_tab

None test_wiki_site.test_the_site_has_an_architecture_tab(dict[str, str] site)

P5.6: the C4 page is built and the home page links it.

tests/test_wiki_site.py:1058

Show on the map →

Called by none

Calls all

Checks

  • assert all(f'id="c4-l{n}"' in page for n in (1, 2, 3, 4))
  • assert 'href="architecture.html"' in site["index.html"]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
REQ-DDB-WIKI-054inferredtest_the_site_has_an_architecture_tab → all
Source · 7 lines
def test_the_site_has_an_architecture_tab(site: dict[str, str]) -> None:
    """@brief P5.6: the C4 page is built and the home page links it."""
    page = site["architecture.html"]
    assert all(f'id="c4-l{n}"' in page for n in (1, 2, 3, 4))
    assert 'href="architecture.html"' in site["index.html"]

Activity · 3 steps
lines 1060–1060page = site["architecture.html"]lines 1061–1061assert all(f'id="c4-l{n}"' in page for n in (1, 2, 3, 4))lines 1062–1062assert 'href="architecture.html"' in site["index.html"]

test_the_site_has_an_sbom_page

None test_wiki_site.test_the_site_has_an_sbom_page(dict[str, str] site)

#70 (P5.8): the page is built and linked; the fixture has no SBOM, which it says.

tests/test_wiki_site.py:1126

Show on the map →

Called by none

Calls none

Checks

  • assert "No SBOM was found" in page and "This repository" in page
  • assert 'href="sbom.html"' in site["index.html"]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 7 lines
def test_the_site_has_an_sbom_page(site: dict[str, str]) -> None:
    """@brief #70 (P5.8): the page is built and linked; the fixture has no SBOM, which it says."""
    page = site["sbom.html"]
    assert "No SBOM was found" in page and "This repository" in page
    assert 'href="sbom.html"' in site["index.html"]

Activity · 3 steps
lines 1128–1128page = site["sbom.html"]lines 1129–1129assert "No SBOM was found" in page and "This repository" in pagelines 1130–1130assert 'href="sbom.html"' in site["index.html"]

test_the_step_table_and_the_diagram_stay_in_sync

None test_wiki_site.test_the_step_table_and_the_diagram_stay_in_sync(dict[str, str] site)

P5.6: live sync.

tests/test_wiki_site.py:1110

Show on the map →

Called by none

Calls _flow_page

Checks

  • assert re.findall(r'<tr data-step="(\d+)"', table)[:2] == ["0", "1"]
  • assert needle in page, needle
  • assert "scrollIntoView" not in page

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 16 lines
def test_the_step_table_and_the_diagram_stay_in_sync(site: dict[str, str]) -> None:
    """OWNER (round 5; Q/A 2026-11-20 "live sync" = diagram ↔ step table): each table row names its
    step, and the page script lights the row as the diagram plays or steps, and opens the step from
    a row. SPEC CHANGED (owner review 2026-11-22, W-7): the row is NO LONGER scrolled into view —
    on the dossier flow that scrolled the page and hid the diagram it was following.

    @brief P5.6: live sync.
    """
    page = _flow_page(site)
    table = page.split('<table class="clew steps"', 1)[1].split("</table>", 1)[0]
    assert re.findall(r'<tr data-step="(\d+)"', table)[:2] == ["0", "1"]
    for needle in ("animationstart", "tr[data-step]"):
        assert needle in page, needle
    assert "scrollIntoView" not in page

Activity · 6 steps
lines 1118–1118page = _flow_page(site)lines 1119–1119table = page.split('<table class="clew steps"', 1)[1].split("</table>", 1)[0]lines 1120–1120assert re.findall(r'<tr data-step="(\d+)"', table)[:2] == ["0", "1"]lines 1121–1121◇ for needle in ("animationstart", "tr[data-step]")lines 1122–1122assert needle in page, needlelines 1123–1123assert "scrollIntoView" not in page

test_the_tests_tab_lists_every_test_with_a_filter

None test_wiki_site.test_the_tests_tab_lists_every_test_with_a_filter(dict[str, str] site)

Tests tab.

tests/test_wiki_site.py:1133

Show on the map →

Called by none

Calls none

Checks

  • assert re.search(r'<a href="test-[^"]*test_load\.html"><code>test_load</code></a>', table)
  • assert 'data-filter-table="tests-all"' in page and "_static/clew-views.js" in page
  • assert 'href="tests.html"' in site["index.html"]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 13 lines
def test_the_tests_tab_lists_every_test_with_a_filter(site: dict[str, str]) -> None:
    """OWNER (Q/A 2026-11-20): tests are their own category. The Tests tab lists every test the
    index recognises — linked or not — each linked to its page when it has one, with a filter box.

    @brief Tests tab.
    """
    page = site["tests.html"]
    table = page.split('<table class="clew tests-all"', 1)[1].split("</table>", 1)[0]
    assert re.search(r'<a href="test-[^"]*test_load\.html"><code>test_load</code></a>', table)
    assert 'data-filter-table="tests-all"' in page and "_static/clew-views.js" in page
    assert 'href="tests.html"' in site["index.html"]

Activity · 5 steps
lines 1139–1139page = site["tests.html"]lines 1140–1140table = page.split('<table class="clew tests-all"', 1)[1].split("</table>", 1)[0]lines 1141–1141assert re.search(r'<a href="test-[^"]*test_load\.html"><code>test_load</code></a>', table)lines 1142–1142assert 'data-filter-table="tests-all"' in page and "_static/clew-views.js" in pagelines 1143–1143assert 'href="tests.html"' in site["index.html"]

test_the_top_bar_is_ordered_and_collapses_to_a_menu

None test_wiki_site.test_the_top_bar_is_ordered_and_collapses_to_a_menu(dict[str, str] site)

P1b: section order and the mobile menu.

tests/test_wiki_site.py:591

Show on the map →

Called by none

Calls none

Checks

  • assert positions == sorted(positions)
  • assert 'class="menu-toggle"' in index and 'aria-controls="clew-nav"' in index
  • assert 'aria-expanded="false"' in index and 'id="clew-nav"' in nav

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 14 lines
def test_the_top_bar_is_ordered_and_collapses_to_a_menu(site: dict[str, str]) -> None:
    """OWNER 2026-11-15: requirements front and centre. The sections run Requirements · Flows ·
    (Change impact · Map) · Docs · Model entries; on a phone a labelled button opens them.

    @brief P1b: section order and the mobile menu.
    """
    index = site["index.html"]
    nav = index[index.index('<nav class="nav"') : index.index("</nav>")]
    positions = [nav.index(f">{s}<") for s in ("Requirements", "Flows", "Docs")]
    assert positions == sorted(positions)
    assert 'class="menu-toggle"' in index and 'aria-controls="clew-nav"' in index
    assert 'aria-expanded="false"' in index and 'id="clew-nav"' in nav

Activity · 6 steps
lines 597–597index = site["index.html"]lines 598–598nav = index[index.index('<nav class="nav"') : index.index("</nav>")]lines 599–599positions = [nav.index(f">{s}<") for s in ("Requirements", "Flows", "Docs")]lines 600–600assert positions == sorted(positions)lines 601–601assert 'class="menu-toggle"' in index and 'aria-controls="clew-nav"' in indexlines 602–602assert 'aria-expanded="false"' in index and 'id="clew-nav"' in nav

test_the_traceability_checklist_states_each_requirements_evidence

None test_wiki_site.test_the_traceability_checklist_states_each_requirements_evidence(dict[str, str] site)

P5.4 / S4: the traceability checklist page.

tests/test_wiki_site.py:955

Show on the map →

Called by none

Calls none

Checks

  • assert "supports evidence" in page and "compliant" not in page.lower()
  • assert ('data-check="rationale" class="ok"' in w1 and 'data-check="verification" class="ok"' in w1 )
  • assert 'data-check="rationale" class="gap"' in x1
  • assert 'data-check="implemented" class="ok"' in w1
  • assert "1 of 3 carry a rationale" in page
  • assert 'href="traceability.html"' in site["requirements.html"], "the checklist is reachable"

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 24 lines
def test_the_traceability_checklist_states_each_requirements_evidence(site: dict[str, str]) -> None:
    """S4 (owner-approved, 2026-11-17): an IEEE 29148 traceability checklist — per requirement,
    which attributes it carries (rationale, verification method, parent) and whether it is
    implemented, tested and passing. Worded as SUPPORTING EVIDENCE, never as compliance: the page
    measures what a catalogue and an index show, and a standard's conformance is an assessor's call.

    @brief P5.4 / S4: the traceability checklist page.
    """
    page = site["traceability.html"]
    assert "supports evidence" in page and "compliant" not in page.lower()

    def row(req: str) -> str:
        return page.split(f'<tr data-req="{req}"', 1)[1].split("</tr>", 1)[0]

    w1, x1 = row("REQ-W-001"), row("REQ-X-001")
    assert (
        'data-check="rationale" class="ok"' in w1 and 'data-check="verification" class="ok"' in w1
    )
    assert 'data-check="rationale" class="gap"' in x1
    assert 'data-check="implemented" class="ok"' in w1
    assert "1 of 3 carry a rationale" in page
    assert 'href="traceability.html"' in site["requirements.html"], "the checklist is reachable"

Activity · 9 steps
lines 963–963page = site["traceability.html"]lines 964–964assert "supports evidence" in page and "compliant" not in page.lower()lines 966–967def row(req: str) -> str: return page.split(f'<tr data-req="{req}"', 1)[1].split("</tr>", 1)[0]lines 969–969w1, x1 = row("REQ-W-001"), row("REQ-X-001")lines 970–972assert ( 'data-check="rationale" class="ok"' in w1 and 'data-check="verification" class="ok"' in w1 )lines 973–973assert 'data-check="rationale" class="gap"' in x1lines 974–974assert 'data-check="implemented" class="ok"' in w1lines 975–975assert "1 of 3 carry a rationale" in pagelines 976–976assert 'href="traceability.html"' in site["requirements.html"], "the checklist is reachable"

test_the_views_script_is_budgeted

None test_wiki_site.test_the_views_script_is_budgeted()

Owner Q/A 2026-11-20: clew-views.js has its own budget, and names nothing remote.

tests/test_wiki_site.py:1100

Show on the map →

Called by none

Calls none

Checks

  • assert js.stat().st_size <= _VIEWS_JS_BUDGET
  • assert "http://" not in text and "https://" not in text

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 10 lines
def test_the_views_script_is_budgeted() -> None:
    """@brief Owner Q/A 2026-11-20: clew-views.js has its own budget, and names nothing remote."""
    from clew.wiki.theme import THEMES

    js = THEMES / "clew" / "static" / "clew-views.js"
    assert js.stat().st_size <= _VIEWS_JS_BUDGET
    text = js.read_text()
    assert "http://" not in text and "https://" not in text

Activity · 5 steps
lines 1102–1102from clew.wiki.theme import THEMESlines 1104–1104js = THEMES / "clew" / "static" / "clew-views.js"lines 1105–1105assert js.stat().st_size <= _VIEWS_JS_BUDGETlines 1106–1106text = js.read_text()lines 1107–1107assert "http://" not in text and "https://" not in text

test_versions_burn_down_toward_roadmap_milestones

None test_wiki_site.test_versions_burn_down_toward_roadmap_milestones(tuple[Path, Path] repo, Path tmp_path)

W17: open requirements per recorded version, milestones from ROADMAP.md.

tests/test_wiki_site.py:429

Show on the map →

Called by none

Calls build_wiki

Checks

  • assert chart.count('class="pt"') == 2
  • assert ">v1.0<" in chart and ">v1.5<" in chart and ">v2.0<" in chart
  • assert 'class="milestone"' in chart
  • assert 'class="burndown"' in trace

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-CONFIG-001measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _commit → git_argv
REQ-DDB-CONFIG-003measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _product_section → compose → _root_source → declared_catalog → _is_flat_req_list
REQ-DDB-GUARD-012measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → load_wiki_config → _requirements_section → read_requirements_section
REQ-DDB-GUARD-024inferredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _prose → impact_path → load_guard_config → read_guard_config → load_config → apply_opt_in_languages
REQ-DDB-GUARD-027inferredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _product_section → compose → _walk → _nested_specs → git_text
REQ-DDB-PIPE-003measured
REQ-DDB-PIPE-004measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _all_flows → entry_point_flows → _scripts → console_scripts
REQ-DDB-PIPE-011measured
REQ-DDB-QUERY-001measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → api_pages → connect
REQ-DDB-QUERY-003measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → symbol_pages → table_exists
REQ-DDB-QUERY-004measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → symbol_pages → _owners_by_file → file_owners
REQ-DDB-QUERY-010measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → flow_page → derive_flow → _entry_rowids → function_candidates
REQ-DDB-QUERY-015measured
REQ-DDB-SCHEMA-006measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _product_section → compose → _root_source → declared_catalog → resolve_catalog_path
REQ-DDB-SCHEMA-015inferredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _product_section → compose → _nodes → link_ids
REQ-DDB-WIKI-001measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → flow_page → derive_flow
REQ-DDB-WIKI-002measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → parse_junit
REQ-DDB-WIKI-003measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki
REQ-DDB-WIKI-004measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → nodes_page
REQ-DDB-WIKI-005measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → report_limit
REQ-DDB-WIKI-007measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → valid_key
REQ-DDB-WIKI-010measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → parse_features
REQ-DDB-WIKI-011measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _render → sphinx_settings
REQ-DDB-WIKI-012measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → requirements_page
REQ-DDB-WIKI-013measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _burndown → burndown
REQ-DDB-WIKI-014measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → flow_page
REQ-DDB-WIKI-015measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _prose → impact_path
REQ-DDB-WIKI-016measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _coverage → parse_contexts
REQ-DDB-WIKI-017measured
REQ-DDB-WIKI-018measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _all_flows → entry_point_flows
REQ-DDB-WIKI-019measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → build_graph
REQ-DDB-WIKI-020measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → write_quick_views → modal
REQ-DDB-WIKI-021measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → minimap_html
REQ-DDB-WIKI-022measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → requirements_page → requirement_pages
REQ-DDB-WIKI-023measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → flows_index
REQ-DDB-WIKI-024measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → impact_page
REQ-DDB-WIKI-025measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → commit_published
REQ-DDB-WIKI-026measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → gather
REQ-DDB-WIKI-027measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _test_flows
REQ-DDB-WIKI-028measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _fetch_issues → provider_for
REQ-DDB-WIKI-029measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → write_exports
REQ-DDB-WIKI-031measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → find_decisions
REQ-DDB-WIKI-035measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → flow_page → test_node
REQ-DDB-WIKI-036measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → root_name
REQ-DDB-WIKI-040inferredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _product_section → compose
REQ-DDB-WIKI-041measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _slices_by_test
REQ-DDB-WIKI-042measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → requirements_page → requirement_pages → _ears_line
REQ-DDB-WIKI-043measured
REQ-DDB-WIKI-044measured
REQ-DDB-WIKI-045measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → symbol_pages → _section → _activity
REQ-DDB-WIKI-046measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → architecture_page
REQ-DDB-WIKI-047measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → _actor_of
REQ-DDB-WIKI-048measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → write_quick_views
REQ-DDB-WIKI-049inferredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → flow_page → with_values
REQ-DDB-WIKI-050measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → flow_page
REQ-DDB-WIKI-051measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → sbom_page
REQ-DDB-WIKI-052measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → tests_index
REQ-DDB-WIKI-053measuredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → _build_site → api_pages
REQ-DDB-WIKI-054inferredtest_versions_burn_down_toward_roadmap_milestones → build_wiki → load_wiki_config → _comments → all
Source · 22 lines
def test_versions_burn_down_toward_roadmap_milestones(
    repo: tuple[Path, Path], tmp_path: Path
) -> None:
    """A ROADMAP HEADING NAMING A VERSION is a milestone; one not yet recorded is drawn ahead.

    @brief W17: open requirements per recorded version, milestones from ROADMAP.md.
    """
    from clew.wiki.build import build_wiki

    out = tmp_path / "versions"
    build_wiki(repo[0], repo[1], out, version="v1.0")
    build_wiki(repo[0], repo[1], out, version="v1.5")
    index = (out / "index.html").read_text()
    chart = index[index.index('<svg class="burndown"') :]
    chart = chart[: chart.index("</svg>")]
    assert chart.count('class="pt"') == 2
    assert ">v1.0<" in chart and ">v1.5<" in chart and ">v2.0<" in chart
    assert 'class="milestone"' in chart
    trace = (out / "v1.5" / "html" / "requirements.html").read_text()
    assert 'class="burndown"' in trace

Activity · 12 steps
lines 436–436from clew.wiki.build import build_wikilines 438–438out = tmp_path / "versions"lines 439–439build_wiki(repo[0], repo[1], out, version="v1.0")lines 440–440build_wiki(repo[0], repo[1], out, version="v1.5")lines 441–441index = (out / "index.html").read_text()lines 442–442chart = index[index.index('<svg class="burndown"') :]lines 443–443chart = chart[: chart.index("</svg>")]lines 444–444assert chart.count('class="pt"') == 2lines 445–445assert ">v1.0<" in chart and ">v1.5<" in chart and ">v2.0<" in chartlines 446–446assert 'class="milestone"' in chartlines 447–447trace = (out / "v1.5" / "html" / "requirements.html").read_text()lines 448–448assert 'class="burndown"' in trace

test_wiki_check_prints_ears_notes_without_failing_on_them

None test_wiki_site.test_wiki_check_prints_ears_notes_without_failing_on_them(repo, capsys)

P5.4 / S9: EARS notes from `clew wiki check`.

tests/test_wiki_site.py:988

Checks

  • assert "note: REQ-W-001 is in no EARS pattern:" in err
  • assert "note:" not in out, "notes are not problems"
  • assert rc == (1 if check_wiki(root, db) else 0)

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-CLI-001inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → report_stats
REQ-DDB-CLI-002inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → _doxygen_or_partial → _doxygen_stage → _run_doxygen_from_args → run_doxygen → doxygen_supports_sqlite3
REQ-DDB-CONFIG-001inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → trace_problems → pin_problems → git_text → git_argv
REQ-DDB-CONFIG-003inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → trace_problems → composite_problems → compose → _root_source → declared_catalog → _is_flat_req_list
REQ-DDB-CONFIG-004inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor
REQ-DDB-CONFIG-005inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig
REQ-DDB-CONFIG-006inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit
REQ-DDB-CONFIG-007inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature
REQ-DDB-CONFIG-009inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config
REQ-DDB-GUARD-012measuredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → load_wiki_config → _requirements_section → read_requirements_section
REQ-DDB-GUARD-019inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags
REQ-DDB-GUARD-024inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief
REQ-DDB-GUARD-027inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → trace_problems → catalog_requirements → read_catalog_at
REQ-DDB-INDEX-001inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns
REQ-DDB-INDEX-002inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → build_lock
REQ-DDB-INDEX-003inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage
REQ-DDB-INDEX-004inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols
REQ-DDB-INDEX-005inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance
REQ-DDB-INDEX-006inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main
REQ-DDB-INDEX-007inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners
REQ-DDB-INDEX-008inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses
REQ-DDB-INDEX-009inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc
REQ-DDB-INDEX-010inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes
REQ-DDB-INDEX-011inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys
REQ-DDB-MCP-001inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → target_for
REQ-DDB-PIPE-001inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database
REQ-DDB-PIPE-003inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges
REQ-DDB-PIPE-004inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds
REQ-DDB-PIPE-005inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature
REQ-DDB-PIPE-006inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env
REQ-DDB-PIPE-007inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates
REQ-DDB-PIPE-008inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs
REQ-DDB-PIPE-009inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges
REQ-DDB-PIPE-010inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges
REQ-DDB-PIPE-011inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _harvest_one_file → _parseable_file
REQ-DDB-PIPE-012inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester
REQ-DDB-PIPE-013inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings
REQ-DDB-PIPE-014inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo
REQ-DDB-PIPE-015inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults
REQ-DDB-QUERY-001measuredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → _flow_problems → connect
REQ-DDB-QUERY-003measuredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → _flow_problems → identity_rowids
REQ-DDB-QUERY-004inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → symbol_pages → _owners_by_file → file_owners
REQ-DDB-QUERY-010measuredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → _flow_problems → identity_rowids
REQ-DDB-QUERY-011inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables
REQ-DDB-SCHEMA-001inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads
REQ-DDB-SCHEMA-002inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map
REQ-DDB-SCHEMA-003inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table
REQ-DDB-SCHEMA-004inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest
REQ-DDB-SCHEMA-005inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes
REQ-DDB-SCHEMA-006inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml
REQ-DDB-SCHEMA-007inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table
REQ-DDB-SCHEMA-009inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges
REQ-DDB-SCHEMA-011inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts
REQ-DDB-SCHEMA-012inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin
REQ-DDB-SCHEMA-013inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys
REQ-DDB-SCHEMA-014inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → refresh_main → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table
REQ-DDB-SCHEMA-015inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → trace_problems → composite_problems → compose → _nodes → link_ids
REQ-DDB-WIKI-001measuredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main
REQ-DDB-WIKI-002inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _trace → requirement_evidence
REQ-DDB-WIKI-003measuredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki
REQ-DDB-WIKI-004measuredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → trace_problems → load_nodes
REQ-DDB-WIKI-005measuredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → trace_problems
REQ-DDB-WIKI-006inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → trace_problems → _mutation_problems → parse_mutations
REQ-DDB-WIKI-007inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _diff → diff_versions
REQ-DDB-WIKI-010inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → trace_problems → _mapping_problems → parse_mapping
REQ-DDB-WIKI-011catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → _render → sphinx_settings
REQ-DDB-WIKI-012catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → requirements_page
REQ-DDB-WIKI-013catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → _burndown → burndown
REQ-DDB-WIKI-014catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → flow_page
REQ-DDB-WIKI-015catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → trace_problems → composite_problems → compose → _root_source → declared_catalog
REQ-DDB-WIKI-016inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → _coverage → parse_contexts
REQ-DDB-WIKI-018catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → _all_flows → entry_point_flows
REQ-DDB-WIKI-019inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → build_graph
REQ-DDB-WIKI-020catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → write_quick_views → modal
REQ-DDB-WIKI-021catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → minimap_html
REQ-DDB-WIKI-022catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → requirements_page → requirement_pages
REQ-DDB-WIKI-023catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → flows_index
REQ-DDB-WIKI-024inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → impact_page
REQ-DDB-WIKI-025catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → commit_published
REQ-DDB-WIKI-026inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → gather
REQ-DDB-WIKI-027inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → _test_flows
REQ-DDB-WIKI-028inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → _fetch_issues → provider_for
REQ-DDB-WIKI-029inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → write_exports
REQ-DDB-WIKI-031catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → find_decisions
REQ-DDB-WIKI-035inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _trace_run
REQ-DDB-WIKI-036inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → root_name
REQ-DDB-WIKI-037inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → open_main
REQ-DDB-WIKI-038inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → _markdown
REQ-DDB-WIKI-040inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → trace_problems → composite_problems
REQ-DDB-WIKI-041inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _flow → _flow_object → derive_flow
REQ-DDB-WIKI-042measuredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → _ears_notes
REQ-DDB-WIKI-043inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _propose_modes
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-045inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → symbol_pages → _section → _activity
REQ-DDB-WIKI-046inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → architecture_page
REQ-DDB-WIKI-047inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → _actor_of
REQ-DDB-WIKI-048inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → write_quick_views
REQ-DDB-WIKI-049inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _trace_run → overlay → _step_values
REQ-DDB-WIKI-050catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → flow_page
REQ-DDB-WIKI-051inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → sbom_page
REQ-DDB-WIKI-052catalogtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → tests_index
REQ-DDB-WIKI-053inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → wiki_main → _site → build_wiki → _build_site → api_pages
REQ-DDB-WIKI-054inferredtest_wiki_check_prints_ears_notes_without_failing_on_them → check_wiki → load_wiki_config → _comments → all
Source · 17 lines
def test_wiki_check_prints_ears_notes_without_failing_on_them(repo, capsys) -> None:
    """S9: never a gate. `clew wiki check` prints a note for each requirement in no EARS pattern,
    on stderr, and its exit code is exactly what the problems alone decide.

    @brief P5.4 / S9: EARS notes from `clew wiki check`.
    """
    from clew.wiki.check import check_wiki
    from clew.wiki.command import wiki_main

    root, db = repo
    rc = wiki_main(["check", "--repo-root", str(root), "--index", str(db)])
    out, err = capsys.readouterr()
    assert "note: REQ-W-001 is in no EARS pattern:" in err
    assert "note:" not in out, "notes are not problems"
    assert rc == (1 if check_wiki(root, db) else 0)

Activity · 8 steps
lines 994–994from clew.wiki.check import check_wikilines 995–995from clew.wiki.command import wiki_mainlines 997–997root, db = repolines 998–998rc = wiki_main(["check", "--repo-root", str(root), "--index", str(db)])lines 999–999out, err = capsys.readouterr()lines 1000–1000assert "note: REQ-W-001 is in no EARS pattern:" in errlines 1001–1001assert "note:" not in out, "notes are not problems"lines 1002–1002assert rc == (1 if check_wiki(root, db) else 0)

test_with_ears_on_a_requirement_page_shows_its_pattern

None test_wiki_site.test_with_ears_on_a_requirement_page_shows_its_pattern(dict[str, str] site)

P5.4 / S9: the EARS badge.

tests/test_wiki_site.py:979

Show on the map →

Called by none

Calls none

Checks

  • assert '<span class="ears ears-none">not EARS</span>' in site["req-REQ-W-001.html"]

Result: passed

Verifies

requirementlinkedpath to the implementer
REQ-DDB-WIKI-011catalog
REQ-DDB-WIKI-012catalog
REQ-DDB-WIKI-013catalog
REQ-DDB-WIKI-014catalog
REQ-DDB-WIKI-015catalog
REQ-DDB-WIKI-018catalog
REQ-DDB-WIKI-020catalog
REQ-DDB-WIKI-021catalog
REQ-DDB-WIKI-022catalog
REQ-DDB-WIKI-023catalog
REQ-DDB-WIKI-025catalog
REQ-DDB-WIKI-031catalog
REQ-DDB-WIKI-044catalog
REQ-DDB-WIKI-050catalog
REQ-DDB-WIKI-052catalog
Source · 9 lines
def test_with_ears_on_a_requirement_page_shows_its_pattern(site: dict[str, str]) -> None:
    """S9 (owner-approved 2026-11-17): opt-in, never a gate. REQ-W-001's acceptance text ("Every
    item is parsed once, then the load finishes.") follows no EARS pattern, so its page says so.

    @brief P5.4 / S9: the EARS badge.
    """
    assert '<span class="ears ears-none">not EARS</span>' in site["req-REQ-W-001.html"]

Activity · 1 steps
lines 985–985assert '<span class="ears ears-none">not EARS</span>' in site["req-REQ-W-001.html"]