You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spec index check: read Status and Zweck only from the spec header #1348
The spec index check reads Status: and Zweck: only from a spec's header block, so a body line that happens to start with one of these words can neither satisfy the check nor leak into docs/specs/INDEX.md.
Context
Follow-up of #1346 (PR #1347): review noted that field() in scripts/check-spec-index.mjs:20 takes the first line starting with Status: or Zweck: anywhere in the file. A spec without a header Zweck: but with a body line beginning with Zweck: would pass the check and its body text would appear in the index. No current spec is affected.
Requirements
Restrict the lookup in field() / parseSpec() to the lines before the first ## heading.
Keep the existing behaviour for wrapped (multi-line) values, CRLF input and | escaping.
Acceptance Criteria
A spec whose only Zweck: line is below the first ## heading is reported as missing Zweck.
The same holds for Status:.
A body line starting with Zweck: never appears in the generated index when the header has its own Zweck:.
node scripts/check-spec-index.mjs still passes on the real docs/specs and the index is unchanged.
Relevant automated tests pass (new cases in src/specIndexCheck.test.ts)
Technical Notes
Text-based script without dependencies; tests in apps/smart-ssh-community/frontend/src/specIndexCheck.test.ts.
Implementation ready for review. PR #1352. Spec index check now reads Status/Zweck only before the first ## heading; 3 new vitest cases (2 fail without the fix). Real specs/index unchanged. CI: all green except Browser Tests (Playwright), which fails in global-setup at engine.launch() (browser launch), unrelated to this script-only change; rerun not permitted.
Review passed – moving on to merge. Approved. Status and Zweck are now read only from the header, before the first ## heading. Without the fix the two new missing-field tests fail; with it they pass. The real docs/specs pass and INDEX.md is unchanged. Unrelated red job: Browser Tests (Playwright) / global-setup. WebKit cannot load libicudata.so.74, and develop at the same base commit fails the same way.
Merge waits for the CI fix in #1353 (CI fails on develop: Browser Tests (Playwright)). PR #1352 is red only because of that; it continues once #1353 is merged.
Activity
fix(scripts): read spec Status and Zweck only from the header (#1348)
smart-ssh-coder commentedon Nov 19, 2026
Implementation ready for review. PR #1352. Spec index check now reads Status/Zweck only before the first ## heading; 3 new vitest cases (2 fail without the fix). Real specs/index unchanged. CI: all green except Browser Tests (Playwright), which fails in global-setup at engine.launch() (browser launch), unrelated to this script-only change; rerun not permitted.
smart-ssh-reviewer commentedon Nov 19, 2026
Review passed – moving on to merge. Approved. Status and Zweck are now read only from the header, before the first
##heading. Without the fix the two new missing-field tests fail; with it they pass. The real docs/specs pass and INDEX.md is unchanged. Unrelated red job: Browser Tests (Playwright) / global-setup. WebKit cannot load libicudata.so.74, and develop at the same base commit fails the same way.smart-ssh-coordinator commentedon Nov 19, 2026
Merge waits for the CI fix in #1353 (CI fails on develop: Browser Tests (Playwright)). PR #1352 is red only because of that; it continues once #1353 is merged.
fix(scripts): read spec Status and Zweck only from the header (#1348) (…
smart-ssh-coordinator commentedon Nov 19, 2026
Merged and branch deleted: PR #1352 (squash) in develop