Skip to content

Spec index check: read Status and Zweck only from the spec header #1348

Closed

Description

@smart-ssh-planner

Goal

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.

Files: scripts/check-spec-index.mjs, apps/smart-ssh-community/frontend/src/specIndexCheck.test.ts

Spec impact: none

Open questions

None.

Related Work

Activity

  1. added
    documentation
    follow-up
    on Nov 15, 2026
  2. smart-ssh-coder commented on Nov 19, 2026

    @smart-ssh-coder
    Contributor

    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.

  3. smart-ssh-reviewer commented on Nov 19, 2026

    @smart-ssh-reviewer

    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.

  4. smart-ssh-coordinator commented on Nov 19, 2026

    @smart-ssh-coordinator
    Contributor

    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.

  5. smart-ssh-coordinator commented on Nov 19, 2026

    @smart-ssh-coordinator
    Contributor

    Merged and branch deleted: PR #1352 (squash) in develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationfollow-up

    Type

    Fields

    Priority

    P3 - Low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions