okstra 0.234.1 → 0.236.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-registry.mjs +7 -0
- package/dist/cli-registry.mjs.map +1 -1
- package/dist/commands/implementation-report/implementation-report.d.mts +1 -0
- package/dist/commands/implementation-report/implementation-report.mjs +73 -0
- package/dist/commands/implementation-report/implementation-report.mjs.map +1 -0
- package/dist/commands/trace/comparison.d.mts +39 -0
- package/dist/commands/trace/comparison.mjs +138 -0
- package/dist/commands/trace/comparison.mjs.map +1 -0
- package/dist/commands/trace/document.d.mts +8 -0
- package/dist/commands/trace/document.mjs +37 -0
- package/dist/commands/trace/document.mjs.map +1 -0
- package/dist/commands/trace/line-counts.d.mts +15 -0
- package/dist/commands/trace/line-counts.mjs +107 -0
- package/dist/commands/trace/line-counts.mjs.map +1 -0
- package/dist/commands/trace/model.d.mts +2 -1
- package/dist/commands/trace/model.mjs +13 -1
- package/dist/commands/trace/model.mjs.map +1 -1
- package/dist/commands/trace/progression.mjs +7 -3
- package/dist/commands/trace/progression.mjs.map +1 -1
- package/dist/commands/trace/task-link.d.mts +3 -0
- package/dist/commands/trace/task-link.mjs.map +1 -1
- package/dist/commands/trace/trace.mjs +64 -44
- package/dist/commands/trace/trace.mjs.map +1 -1
- package/dist/lib/host-registry-client.d.mts +9 -2
- package/dist/lib/host-registry-client.mjs +29 -3
- package/dist/lib/host-registry-client.mjs.map +1 -1
- package/dist/lib/python-helper.d.mts +1 -1
- package/dist/lib/python-helper.mjs +11 -5
- package/dist/lib/python-helper.mjs.map +1 -1
- package/dist/lib/runtime-payload.mjs +1 -0
- package/dist/lib/runtime-payload.mjs.map +1 -1
- package/dist/lib/types.d.mts +1 -0
- package/docs/architecture/storage-model.md +50 -0
- package/docs/architecture.md +1 -1
- package/docs/cli.md +37 -15
- package/docs/project-structure-overview.md +6 -1
- package/package.json +1 -1
- package/runtime/BUILD.json +2 -2
- package/runtime/agents/operations/trace-tests-review.json +6 -0
- package/runtime/bin/lib/okstra/usage.sh +8 -8
- package/runtime/bin/okstra-qwen-exec.sh +5 -0
- package/runtime/prompts/duties/test-reviewer.json +32 -0
- package/runtime/prompts/lead/convergence.md +4 -1
- package/runtime/prompts/lead/okstra-lead-contract.md +3 -3
- package/runtime/prompts/lead/report-writer.md +13 -1
- package/runtime/prompts/profiles/_common-contract.md +10 -1
- package/runtime/prompts/wizard/prompts.ko.json +16 -4
- package/runtime/python/okstra_ctl/adapters/providers/antigravity/adapter.py +10 -2
- package/runtime/python/okstra_ctl/adapters/providers/claude/adapter.py +16 -1
- package/runtime/python/okstra_ctl/adapters/providers/codex/adapter.py +20 -5
- package/runtime/python/okstra_ctl/adapters/providers/kimi/adapter.py +17 -9
- package/runtime/python/okstra_ctl/adapters/providers/qwen/adapter.py +88 -0
- package/runtime/python/okstra_ctl/adapters/providers/qwen/manifest.json +1 -0
- package/runtime/python/okstra_ctl/adapters/providers/qwen/settings.json +12 -0
- package/runtime/python/okstra_ctl/adapters/providers/zai/adapter.py +8 -2
- package/runtime/python/okstra_ctl/agent/invocation.py +109 -56
- package/runtime/python/okstra_ctl/agent/prompt_cli/materialize.py +17 -0
- package/runtime/python/okstra_ctl/attempt_evidence.py +5 -2
- package/runtime/python/okstra_ctl/business_flow/contracts.py +11 -0
- package/runtime/python/okstra_ctl/business_flow/engine.py +90 -32
- package/runtime/python/okstra_ctl/business_flow/hooks.py +4 -2
- package/runtime/python/okstra_ctl/business_flow/source.py +39 -7
- package/runtime/python/okstra_ctl/business_flow/store.py +94 -28
- package/runtime/python/okstra_ctl/code_review_census.py +38 -0
- package/runtime/python/okstra_ctl/code_review_coverage.py +15 -4
- package/runtime/python/okstra_ctl/code_review_prepare.py +15 -3
- package/runtime/python/okstra_ctl/code_review_scope.py +3 -2
- package/runtime/python/okstra_ctl/code_review_target.py +16 -6
- package/runtime/python/okstra_ctl/conformance_evidence.py +44 -21
- package/runtime/python/okstra_ctl/consumers.py +6 -1
- package/runtime/python/okstra_ctl/convergence.py +95 -5
- package/runtime/python/okstra_ctl/convergence_critic_verify_prompt.py +11 -10
- package/runtime/python/okstra_ctl/convergence_engine.py +30 -15
- package/runtime/python/okstra_ctl/convergence_reverify_prompt.py +9 -2
- package/runtime/python/okstra_ctl/coverage_census.py +75 -12
- package/runtime/python/okstra_ctl/design_review.py +6 -26
- package/runtime/python/okstra_ctl/design_review_evidence.py +6 -26
- package/runtime/python/okstra_ctl/dispatch_core.py +9 -2
- package/runtime/python/okstra_ctl/dispatch_state.py +5 -0
- package/runtime/python/okstra_ctl/domain/role.py +1 -0
- package/runtime/python/okstra_ctl/entrypoints/hosts.py +1 -1
- package/runtime/python/okstra_ctl/execution_manifest.py +8 -0
- package/runtime/python/okstra_ctl/implementation_comparison/__init__.py +12 -0
- package/runtime/python/okstra_ctl/implementation_comparison/__main__.py +129 -0
- package/runtime/python/okstra_ctl/implementation_comparison/assembly.py +340 -0
- package/runtime/python/okstra_ctl/implementation_comparison/baseline.py +254 -0
- package/runtime/python/okstra_ctl/implementation_comparison/business_reuse.py +118 -0
- package/runtime/python/okstra_ctl/implementation_comparison/commit_source.py +113 -0
- package/runtime/python/okstra_ctl/implementation_comparison/html.py +49 -0
- package/runtime/python/okstra_ctl/implementation_comparison/inputs.py +348 -0
- package/runtime/python/okstra_ctl/implementation_comparison/model.py +47 -0
- package/runtime/python/okstra_ctl/implementation_comparison/preparation.py +195 -0
- package/runtime/python/okstra_ctl/implementation_comparison/publication.py +317 -0
- package/runtime/python/okstra_ctl/implementation_comparison/run_evidence.py +208 -0
- package/runtime/python/okstra_ctl/implementation_comparison/run_integration.py +198 -0
- package/runtime/python/okstra_ctl/implementation_comparison/source.py +342 -0
- package/runtime/python/okstra_ctl/implementation_comparison/target.py +144 -0
- package/runtime/python/okstra_ctl/implementation_comparison/task_assembly.py +333 -0
- package/runtime/python/okstra_ctl/implementation_comparison/task_selection.py +309 -0
- package/runtime/python/okstra_ctl/implementation_generation_evidence.py +134 -0
- package/runtime/python/okstra_ctl/implementation_outcome.py +2 -2
- package/runtime/python/okstra_ctl/initial_prompt_materialization.py +1 -0
- package/runtime/python/okstra_ctl/json_boundary.py +28 -8
- package/runtime/python/okstra_ctl/lead_progress.py +1 -1
- package/runtime/python/okstra_ctl/model_discovery.py +1 -1
- package/runtime/python/okstra_ctl/models.py +2 -2
- package/runtime/python/okstra_ctl/paths.py +7 -4
- package/runtime/python/okstra_ctl/phases/discussion/profile.md +2 -2
- package/runtime/python/okstra_ctl/phases/error_analysis/profile.md +1 -1
- package/runtime/python/okstra_ctl/phases/implementation_option_selection/profile.md +1 -1
- package/runtime/python/okstra_ctl/phases/implementation_planning/authoring.py +2 -1
- package/runtime/python/okstra_ctl/phases/implementation_planning/instructions/plan-body-verification.md +1 -1
- package/runtime/python/okstra_ctl/phases/implementation_planning/profile.md +3 -3
- package/runtime/python/okstra_ctl/phases/requirements_discovery/profile.md +5 -5
- package/runtime/python/okstra_ctl/plan_run_root.py +8 -4
- package/runtime/python/okstra_ctl/qa_procedures.py +33 -2
- package/runtime/python/okstra_ctl/registry/provider_registry.py +1 -1
- package/runtime/python/okstra_ctl/render.py +4 -0
- package/runtime/python/okstra_ctl/render_final_report.py +1 -1
- package/runtime/python/okstra_ctl/report_execution_evidence.py +88 -15
- package/runtime/python/okstra_ctl/report_finalize.py +18 -4
- package/runtime/python/okstra_ctl/report_html/render.py +46 -7
- package/runtime/python/okstra_ctl/report_html/validation.py +32 -0
- package/runtime/python/okstra_ctl/report_synthesis_packet.py +37 -3
- package/runtime/python/okstra_ctl/report_view_artifacts.py +12 -0
- package/runtime/python/okstra_ctl/review_verdicts.py +9 -0
- package/runtime/python/okstra_ctl/run.py +17 -1
- package/runtime/python/okstra_ctl/run_context.py +18 -3
- package/runtime/python/okstra_ctl/schema_excerpt.py +14 -9
- package/runtime/python/okstra_ctl/stage_done.py +11 -3
- package/runtime/python/okstra_ctl/stage_ledger.py +2 -2
- package/runtime/python/okstra_ctl/stage_map.py +3 -3
- package/runtime/python/okstra_ctl/trace_review.py +1 -0
- package/runtime/python/okstra_ctl/trace_tasks.py +22 -7
- package/runtime/python/okstra_ctl/verdict_blocks.py +7 -2
- package/runtime/python/okstra_ctl/verification_dispatch.py +32 -0
- package/runtime/python/okstra_ctl/verification_evidence.py +23 -3
- package/runtime/python/okstra_ctl/verification_generation.py +3 -2
- package/runtime/python/okstra_ctl/verification_inputs.py +3 -2
- package/runtime/python/okstra_ctl/verification_invocation.py +7 -3
- package/runtime/python/okstra_ctl/wizard/engine.py +28 -1
- package/runtime/python/okstra_ctl/wizard/ids.py +8 -0
- package/runtime/python/okstra_ctl/wizard/picker_navigation.py +64 -2
- package/runtime/python/okstra_ctl/wizard/roles.py +194 -45
- package/runtime/python/okstra_ctl/wizard/sources.py +10 -1
- package/runtime/python/okstra_ctl/wizard/state.py +67 -20
- package/runtime/python/okstra_ctl/wizard/steps_roles.py +6 -3
- package/runtime/python/okstra_ctl/wizard/worker_settings.py +129 -25
- package/runtime/python/okstra_ctl/worker_audit_ledger.py +44 -8
- package/runtime/python/okstra_ctl/worker_prompt_body.py +26 -2
- package/runtime/python/okstra_ctl/worker_prompt_headers.py +12 -9
- package/runtime/python/okstra_token_usage/claude.py +5 -1
- package/runtime/python/okstra_token_usage/collect.py +3 -3
- package/runtime/python/okstra_token_usage/pricing.py +1 -0
- package/runtime/schemas/report-synthesis-packet-v1.0.schema.json +17 -0
- package/runtime/skills/_fragments/wizard-relay-protocol.md +1 -1
- package/runtime/skills/okstra-code-review/SKILL.md +1 -1
- package/runtime/skills/okstra-code-review/references/census-rules.md +1 -1
- package/runtime/skills/okstra-code-review/references/review-calibration.md +1 -1
- package/runtime/skills/okstra-discussion/SKILL.md +1 -1
- package/runtime/skills/okstra-run/SKILL.md +33 -2
- package/runtime/skills/okstra-tdd/SKILL.md +74 -13
- package/runtime/templates/reports/html/assets/implementation-comparison.css +39 -0
- package/runtime/templates/reports/html/assets/implementation-comparison.js +55 -0
- package/runtime/templates/reports/html/i18n/en.json +113 -0
- package/runtime/templates/reports/html/i18n/ko.json +113 -0
- package/runtime/templates/reports/html/implementation-comparison.template.html +77 -0
- package/runtime/templates/reports/implementation-comparison-notes.md +72 -0
- package/runtime/templates/trace/trace.template.md +2 -0
- package/runtime/templates/worker-prompt-preamble.md +12 -2
- package/runtime/validators/validate-report-views.py +4 -36
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Implementation comparison notes
|
|
2
|
+
|
|
3
|
+
Read the baseline and target references supplied by the saved completion or
|
|
4
|
+
synthesis packet. If `notesPath` is null or missing for a trace, refresh the
|
|
5
|
+
same attempt with `okstra trace status --path <trace-path>`. Use the returned
|
|
6
|
+
path only when that response supplies one. If the bridge remains unavailable,
|
|
7
|
+
leave notes unwritten and tell the user that comparison reporting is unavailable,
|
|
8
|
+
including the capture limitations, saved implementation and task synchronization
|
|
9
|
+
status, and report recovery command. A trace path or comparison directory is not
|
|
10
|
+
permission to invent a notes path.
|
|
11
|
+
|
|
12
|
+
When a `notesPath` is supplied, write only that path. A null baseline or target
|
|
13
|
+
reference with an available notes path permits a partial report: preserve the
|
|
14
|
+
null reference and explain which source was not captured. Reuse the original
|
|
15
|
+
implementation explanation and evidence; preserve the saved integration instead
|
|
16
|
+
of advancing it again or collecting a replacement target.
|
|
17
|
+
|
|
18
|
+
Use this shape with the supplied owner and exact references. Keep a missing
|
|
19
|
+
reference `null`. This fictitious example is not evidence of a repository defect.
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"schemaVersion": "1.0",
|
|
24
|
+
"owner": {"kind": "trace", "path": ".okstra/traces/example/attempt.md", "createdAt": "copy the supplied value"},
|
|
25
|
+
"baselineRef": {"path": "copy the supplied path", "digest": "copy the supplied digest"},
|
|
26
|
+
"targetRef": {"path": "copy the supplied path", "digest": "copy the supplied digest"},
|
|
27
|
+
"changes": [{
|
|
28
|
+
"id": "resume-request",
|
|
29
|
+
"title": "Resume a saved request",
|
|
30
|
+
"scenario": "A request is repeated after history synchronization fails",
|
|
31
|
+
"input": "The save succeeded and history synchronization failed",
|
|
32
|
+
"affected": ["Command users"],
|
|
33
|
+
"requirements": [], "useCases": [], "stages": [],
|
|
34
|
+
"limitations": ["An external outage was not reproduced"],
|
|
35
|
+
"before": {"text": "Describe the preserved previous handling, or why it is unknown", "evidence": []},
|
|
36
|
+
"after": {"text": "Describe the observed ending behavior and its limits", "evidence": []},
|
|
37
|
+
"cause": {"text": "Connect the triggering condition to the previous handling", "evidence": []},
|
|
38
|
+
"principle": {"text": "Explain which changed processing alters that outcome", "evidence": []},
|
|
39
|
+
"impact": {"text": "State the supported result and distinguish an unmeasured expectation", "evidence": []}
|
|
40
|
+
}]
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Each claim has nonempty explanatory text and its own evidence references. When
|
|
45
|
+
evidence is absent, explain the limitation; an empty list remains unverified.
|
|
46
|
+
Use either of these reference shapes:
|
|
47
|
+
|
|
48
|
+
- Preserved source: `{"side":"before","path":"src/request.ts","startLine":12,"endLine":20}`.
|
|
49
|
+
Use `after` for ending source. Paths and line numbers belong to the preserved
|
|
50
|
+
inventory and content, not the current working file. Cite the necessary
|
|
51
|
+
excerpt, at most 80 lines; the report displays at most 8 KiB per excerpt.
|
|
52
|
+
- Original record: `{"recordId":"trace:integration:1"}`. Trace IDs use the saved
|
|
53
|
+
step and one-based position in its evidence list. Run records use the IDs in
|
|
54
|
+
the normalized original or synthesis packet; do not guess them.
|
|
55
|
+
|
|
56
|
+
Link requirements, use cases and stages only when they exist in the original.
|
|
57
|
+
`affected` describes the audience or surface. Changed files are derived from
|
|
58
|
+
preserved content and source references; an affected label does not prove a file
|
|
59
|
+
changed. Unlinked changes remain visible as unexplained changes.
|
|
60
|
+
|
|
61
|
+
Do not author hashes, command results, evidence origins, target attribution or
|
|
62
|
+
support grades in claims. The assembler resolves those facts from their owners.
|
|
63
|
+
Trace commands remain session records. RED records missing implementation during
|
|
64
|
+
development, rather than proving a previous user-facing defect. Source inspection
|
|
65
|
+
does not prove runtime behavior; existing independent verification does not
|
|
66
|
+
establish every causal explanation. Identify unmeasured improvements as expected.
|
|
67
|
+
|
|
68
|
+
`implementation_comparison/assembly.py` enforces identity, exact claim fields,
|
|
69
|
+
reference shapes and bounds, checked by
|
|
70
|
+
`tests/report/test_implementation_comparison.py`. Notes are limited to 1 MiB,
|
|
71
|
+
200 changes and 1,000 links per list. Missing or invalid notes produce a partial
|
|
72
|
+
report and do not replace the original implementation result.
|
|
@@ -6,7 +6,7 @@ Your identity is the stored role execution (`executionLabel`). Canonical roles a
|
|
|
6
6
|
|
|
7
7
|
## Required reading
|
|
8
8
|
|
|
9
|
-
Read `analysis-packet.md`, the primary compact input, end-to-end.
|
|
9
|
+
Read `analysis-packet.md`, the primary compact input, end-to-end. The packet is the map, not the evidence: your main work is opening the source, configuration, tests and installed dependencies it points to, and confirming each claim there before you cite it. The fallback and evidence paths it names are starting points, not limits. Do not read `final-report-template.md` or `final-report-schema.json`; analysis workers produce findings, not the final report.
|
|
10
10
|
|
|
11
11
|
### Reading rules
|
|
12
12
|
|
|
@@ -39,12 +39,22 @@ Every item has a worker-local ID and file:line evidence where code evidence exis
|
|
|
39
39
|
|
|
40
40
|
Section 6 judges every cell of the packet's `## Coverage Census`, one line per cell, using the cell id verbatim:
|
|
41
41
|
|
|
42
|
-
- `- <cell-id>: clean — <path:line evidence>`
|
|
42
|
+
- `- <cell-id>: clean — <path:line evidence>` — the cited line is project source, configuration or a test that shows the cell's question has no problem in the current code. The brief and the packet only pose the question; a `clean` that cites nothing but `.okstra/` files counts as unjudged, unless the census question says the brief or okstra records may settle it.
|
|
43
43
|
- `- <cell-id>: finding <worker-local ID>` — the ID of an item in sections 1–5
|
|
44
44
|
- `- <cell-id>: n/a — <reason>`
|
|
45
45
|
|
|
46
46
|
A cell with no line, a `clean` without a `path:line` citation, an `n/a` without a reason, or a `finding` naming an ID your result does not contain counts as unjudged. The lead sends unjudged cells back to you once, in a `census-gapfill` dispatch; whatever stays unjudged after it is reported as a coverage warning. That dispatch narrows this contract: write only Findings (the new items its verdicts point to, or `- none`) and Coverage Verdicts for the cells it lists. When the packet has no `## Coverage Census`, omit section 6.
|
|
47
47
|
|
|
48
|
+
## Before writing the result
|
|
49
|
+
|
|
50
|
+
Check your draft against what you actually opened, and correct it before you write:
|
|
51
|
+
|
|
52
|
+
1. A file, function or test you list as not opened cannot support a `clean`, an `n/a` or a stated fact. Open it, or turn that verdict into a finding or an uncertain point that names what was not read.
|
|
53
|
+
2. Every open question the brief or packet asks has a `path:line` you opened, or appears under Missing Information or Uncertain Points with the reason it stays open.
|
|
54
|
+
3. Every `clean` cites the line that shows the absence of the problem, not a file that exists, and not a line of the brief or packet unless the census question says they may settle it.
|
|
55
|
+
|
|
56
|
+
In a `census-gapfill` dispatch, which allows only Findings and Coverage Verdicts, record what stays unread as a `finding` instead of an uncertain point.
|
|
57
|
+
|
|
48
58
|
## Return message to the lead
|
|
49
59
|
|
|
50
60
|
Begin the inline return with the model identity copied verbatim from the `**Model:** <Role>, <modelExecutionValue>` line in the prompt, followed by the status summary. Never invent or abbreviate the model.
|
|
@@ -53,13 +53,9 @@ from okstra_ctl.report_views import ( # noqa: E402
|
|
|
53
53
|
from okstra_ctl.report_view_artifacts import html_view_path # noqa: E402
|
|
54
54
|
from okstra_ctl.final_report_paths import final_report_data_path # noqa: E402
|
|
55
55
|
from okstra_ctl.report_contract import required_human_fields_for_report # noqa: E402
|
|
56
|
+
from okstra_ctl.report_html.validation import dead_in_page_links, external_resource_errors # noqa: E402
|
|
56
57
|
|
|
57
58
|
|
|
58
|
-
_EXTERNAL_URL_RE = re.compile(
|
|
59
|
-
r'<(?:script|link|img|iframe|source|video|audio)\s[^>]*?(?:src|href)\s*=\s*["\']https?://',
|
|
60
|
-
re.IGNORECASE,
|
|
61
|
-
)
|
|
62
|
-
|
|
63
59
|
_RESPONSE_ID_ATTR_RE = re.compile(r'data-response-id="(C-\d+)"')
|
|
64
60
|
_ANALYSIS_REVIEW_SECTION_RE = re.compile(
|
|
65
61
|
r'<section id="analysis-review">(?P<body>.*?)</section>', re.DOTALL
|
|
@@ -133,38 +129,11 @@ def _validate_v2(report_path: Path, data_path: Path, data: dict) -> list[str]:
|
|
|
133
129
|
failures.append(
|
|
134
130
|
f"Response ID mismatch: data.json has {data_ids}, HTML has {html_ids}"
|
|
135
131
|
)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
failures.extend(_dead_in_page_links(html_text))
|
|
132
|
+
failures.extend(external_resource_errors(html_text))
|
|
133
|
+
failures.extend(dead_in_page_links(html_text))
|
|
139
134
|
return failures
|
|
140
135
|
|
|
141
136
|
|
|
142
|
-
_ANCHOR_HREF_RE = re.compile(r'href="#([^"]+)"')
|
|
143
|
-
_ELEMENT_ID_RE = re.compile(r'\bid="([^"]+)"')
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
def _dead_in_page_links(html_text: str) -> list[str]:
|
|
147
|
-
"""(7) every in-page link lands on an element of this page.
|
|
148
|
-
|
|
149
|
-
The renderer links every id the record defines (`report_html/common.py`
|
|
150
|
-
`anchor_index`); a link to a missing anchor means the index claimed a row
|
|
151
|
-
the template never drew — 2026-09-05 audit of 28 shipped reports found
|
|
152
|
-
`A-`, `UQ-`, `PI-` and `IC-` links dead this way. The cause is always
|
|
153
|
-
renderer-side, so the finding stays with the page, not the author.
|
|
154
|
-
"""
|
|
155
|
-
body = html_text.split("<body", 1)[-1]
|
|
156
|
-
body = re.sub(r"<script.*?</script>|<style.*?</style>", "", body, flags=re.DOTALL)
|
|
157
|
-
ids = set(_ELEMENT_ID_RE.findall(body))
|
|
158
|
-
dead = sorted({target for target in _ANCHOR_HREF_RE.findall(body) if target not in ids})
|
|
159
|
-
if not dead:
|
|
160
|
-
return []
|
|
161
|
-
return [
|
|
162
|
-
"dead in-page link(s): "
|
|
163
|
-
+ ", ".join(f"#{target}" for target in dead[:12])
|
|
164
|
-
+ (f" (+{len(dead) - 12} more)" if len(dead) > 12 else "")
|
|
165
|
-
]
|
|
166
|
-
|
|
167
|
-
|
|
168
137
|
def _no_form_sections(html_body: str) -> list[str]:
|
|
169
138
|
"""Return a list of strings, each being the rendered chunk of a
|
|
170
139
|
no-form section (5.6 / 5.7 / 5.8) up to the next h2/h3. Used to
|
|
@@ -265,8 +234,7 @@ def validate(report_path: Path) -> list[str]:
|
|
|
265
234
|
break
|
|
266
235
|
|
|
267
236
|
# (4) no external URLs in <script src> / <link href> / etc.
|
|
268
|
-
|
|
269
|
-
failures.append("html contains external URL in script/link/img — must be self-contained")
|
|
237
|
+
failures.extend(external_resource_errors(html_text))
|
|
270
238
|
|
|
271
239
|
# (5) Response ID parity: HTML form rows ↔ §1 C-* rows in MD.
|
|
272
240
|
# Bidirectional — catches both "MD has C-* the HTML lost" AND
|