Skip to content

Latest commit

 

History

History
326 lines (229 loc) · 32.1 KB

roadmap.md

File metadata and controls

326 lines (229 loc) · 32.1 KB

Roadmap

What grund plans to ship next, in priority order. Each item has a stable ID — RM-<slug> under this repo's [id] format (§FS-config.3.2); RM is a configured [[kinds]] prefix (§FS-config.3.4), so grund check validates §RM-… citations like any other. Items may be cited from anywhere — commits, PRs, the changelog, other specs. A shipped item is removed: its record is the changelog and the spec it landed in, and whatever cited the milestone cites that spec instead. A cancelled item stays in place with a ~~strikethrough~~ title and a one-line reason. Where an item has a GitHub issue, the item names it.

The check engine, the retrieval surface (grund <ID>, grund refs, including E2E case manifests), the coverage index (grund cover), bulk normalization (grund fmt, including --marker and --cross-refs), config loading (grund.toml plus grund config show / grund config validate), grund init, grund id, the opt-in grounding floor (§FS-check.3.6), the token-cheap read surfaces (§DF-show-default-token-cheap), the e2e corpus, the benchmark baseline/gate (§AR-benchmarks), the live registry-name guard (§FS-distribution.4), the grund-core / grund-cli workspace split with data-returning core APIs (§AR-bindings.2), the optional Cargo LSP server (§FS-lsp), and parallel per-file scanning (§AR-scanner.1) are all shipped — see docs/changelog.md. Two arcs remain. The distribution arc: publish on npm and PyPI alongside cargo, including the npm/PyPI LSP packages, and add grund check --watch. And the grounding arc (the third layer of §GOAL-agent-grounding.1, diff-gated enforcement): build on §FS-check.3.6 and §FS-cover toward a diff-aware co-change gate — implementation cannot change without the spec it grounds in and without a test of it — via a pre-commit / CI recipe that consumes grund cover (§RM-cochange-gate). Five standalone items sit outside both arcs (§RM-doc-comment-declarations, the sixth, is absorbed by v2's [schema.sources] declarations): §RM-lsp-completion-tab adds LSP ID completion that works with editor Tab acceptance, §RM-lsp-trigger-conversion-fix fixes the LSP $$ trigger conversion, §RM-positioning keeps the README/landing pitch paired with the benchmark story, §RM-gap-report inverts the §FS-cover index into an orphan / uncovered-ID report, and §RM-positioning-trace-tools extends the README positioning to the requirements-traceability neighbourhood (OFT, Sphinx-Needs, TRLC, Doorstop, Duvet, SARA). The IDed milestones below project both arcs onto reviewable units of work.

RM-unmarked-heading-error: make unmarked Markdown headings errors in 0.16.0

This milestone shipped in grund 0.16.0: unmarked-heading is an error, and its record is the compatibility notice that landed it, §DF-unmarked-markdown-headings.release-note, together with §FS-declarations.checks.unmarked-heading. The item's own plan is removed, as a shipped item's is; this address, heading text included, is kept while released changelogs still cite it.

RM-off-grammar-declaration-error: make off-grammar declarations a check error in 0.16.0

This milestone shipped in grund 0.16.0: declaration-near-miss is an error, and its record is the compatibility notice that landed it, §DF-off-grammar-declaration-compatibility.release-note, together with §FS-declarations.checks.declaration-near-miss. The item's own plan is removed, as a shipped item's is; this address, heading text included, is kept while released changelogs still cite it.

RM-unreached-declaration-error: make the unreached-declaration warning an error in 0.16.0

This milestone shipped in grund 0.16.0: unreached-declaration is an error on the ordinary must channel, and its record is the compatibility notice that landed it, §DF-chapter-rule-reaches-every-declaration.release-note, together with §FS-rules.checks.unreached-declaration. The item's own plan is removed, as a shipped item's is; this address, heading text included, is kept while the changelog and that notice still cite it — #362's bullet in the 0.15.0 release, written before the promotion, and the notice, which the 0.16.0 release publishes (§FS-distribution.4.6.4). Retiring the address is a change of its own: the notice is a section of a decision record and may be reworded like any other, so the repoint the lead above prescribes need not wait for a release. It is not a deadline item.

GitHub: #368.

RM-one-grammar-flip: end the one-grammar window in 0.19.0

This milestone shipped in grund 0.19.0: the two refusals of §FS-errors.2.5.1 and §FS-rule-refusals.sentences.order print their reasons alone, and a pinned or */ [citations] target the run cannot accept fails the load (§FS-config.3.9.5). Its record is the compatibility notice that landed it, §DF-one-grammar-lands-in-0-19.release-note. The item's own plan is removed, as a shipped item's is; this address, heading text included, is kept while the decisions and specifications written before it still cite it.

GitHub: #881, which landed it; #599 shipped the window, and #680 flipped the window #671 opened for the homeless kind code, ahead of the rest, under §DF-homeless-code-declares-no-ids.

1. What

The legacy prefix and the ; this wording changes in grund 0.19.0 suffix went, so the two reasons are the final templates of §FS-errors.2.5.1 and §FS-rule-refusals.sentences.order, and each [citations] warning of §FS-config.3.9.5 became an error: that fails the load with exit 2, its text ending in ; this became an error in grund 0.19.0. The release constant went with them, and the canonical config of §DF-directions-render.3, which pinned api/AR in a project that declared no [workspace], gained the workspace that lets it load. The homeless kind code flipped first, under §DF-homeless-code-declares-no-ids; the rest landed under §DF-one-grammar-lands-in-0-19.

RM-doc-comment-relative-headings: give a relative heading in a doc-comment its meaning in 0.19.0

This milestone shipped in grund 0.19.0: a relative heading in a source doc-comment declaration body, and a heading whose path puts a name under a number there, is a section, and parse-moves is gone. Its record is the compatibility notice that landed it, §DF-one-parse-answers-from-0-19.release-note, together with §FS-declarations.section.relative.form. The item's own plan is removed, as a shipped item's is; this address, heading text included, is kept while the decisions and specifications written before it still cite it.

GitHub: #639.

RM-mixed-path-citation-error: make a citation of a name under a number that resolves to nothing an error in 0.19.0

Implemented for grund 0.19.0: unresolved mixed citations and required rule or [citations] findings only they raise use ordinary errors, and unrecorded mixed addresses lose their historical suffix. The record is §DF-mixed-path-citation-errors.release-note, together with §FS-citations.checks.mixed-path and §FS-rules.5.1. The shared floor prevents a release below 0.19.0 (§FS-distribution.release-floor). The milestone address and heading remain for existing citations; its plan is complete.

GitHub: #710, filed from #662.

RM-distribution: cargo + npm + pypi from one engine

Per §FS-distribution and §AR-bindings. Builds on the shipped workspace split (§AR-bindings.2).

1. What

napi-rs binding for npm; PyO3 binding for PyPI; CI publish jobs for all three registries (grund-core first, in dependency order). Each publish job builds the CLI binary with profile-guided optimization via scripts/pgo-build.sh (§DA-pgo-release, §FS-distribution.4) — wired for the crates.io grund and grund-lsp packages already, extended to the prebuilt npm and PyPI CLI/LSP binaries here.

2. Why now

grund is only viable as a CI dependency for non-Rust projects once it ships on their native package manager (§GOAL-multi-language).

3. Measurable

Integration test runs the same spec corpus through all three bindings and asserts byte-identical reports (§AR-goal-measurement.2).

RM-watch: implement grund check --watch

Per §FS-check.6. The terminal "every save" loop §GOAL-fast-feedback exists for — re-run grund check on effective local-input changes, with terminal screen ownership governed by §FS-check.6.2.2.

Together with §FS-lsp, this ships the live feedback loop: LSP for editor users, grund check --watch for terminal users and editor setups that do not speak LSP.

1. What

--watch on grund check: filesystem-notification-driven, debounced, no polling and no configurable interval. Each run is byte-identical to a plain grund check on the tree's current state; on Ctrl-C the process exits with the last completed run's exit code. Non-interactive — no TUI, no key bindings (§FS-non-goals.10), no network (§FS-non-goals.11).

2. Why now

grund-lsp (§FS-lsp) covers editor users; --watch covers everyone else with zero editor configuration, and it is small now that the engine is a library (§AR-bindings.2). The watcher calls grund-core::scan/check rather than re-implementing the walk.

3. Measurable

Bounded subprocess tests start grund check --watch and compare the immediate and subsequent reports with one-shot checks: clean text prints success, a dangling citation prints the ordinary finding, and repair returns to success. SIGINT returns the last fully flushed status. JSON emits only ordinary finding NDJSON; clean runs and some run boundaries are invisible (§FS-check.6.2.1). A private test-build completion observer proves empty JSON recovery without changing production streams (§AR-bindings.3).

Fake-clock/event and barrier tests pin 100 ms quiet / 500 ms maximum debounce, startup coverage and serialized pending work. Real filesystem tests cover atomic saves, creation/rename/deletion, effective config/ignore/catalog/member/link changes and root replacement. Injected backend failures and PTYs pin loss recovery, fatal exit, interrupt cleanup and independent-stream screen restoration (§FS-check.6.1, §FS-check.6.3, §FS-check.6.2.2). Existing one-shot goldens stay authoritative; help and captures follow implementation.

RM-lsp-completion-tab: LSP ID autocomplete accepted with Tab

Implemented in source under §FS-lsp.1.6: type a marker or trigger prefix, narrow to the ID, and accept one canonical citation with the editor's acceptance key. Core and protocol acceptance coverage is present; execution and release validation remain pending. This does not assign release membership or timing.

1. What

grund-lsp returns completion items for declared IDs in the document's resolved project config. Completion triggers include the configured marker prefix (§F under defaults), the configured typing trigger prefix ($$F under defaults), and a partially typed ID immediately after either prefix. Applying a completion replaces only the active prefix/token range with the configured marker plus the chosen ID; it does not touch surrounding prose, existing markdown links, or another citation on the same line. Completion details show the declaration title and source path, and items sort by exact prefix match, then kind order, then ID for deterministic output (§FS-lsp.1.6). Clients own their acceptance keys: the setup guide records default bindings and optional mappings for Helix, Neovim, Zed, VSCode, and eglot/lsp-mode. Helix cycles with Tab and accepts with Enter.

2. Why now

The shipped LSP already gives diagnostics, navigation, hover, links, and trigger formatting (§FS-lsp). The remaining daily friction is remembering exact IDs while writing a citation. Completion turns the LSP from a checker into an authoring aid without changing the CLI contract.

3. Measurable

LSP tests open a fixture workspace, request completions after §F, $$F, and a longer prefix, and assert the returned labels, sort order, and text-edit ranges. Applying the edit produces exactly one canonical §<ID> citation, grund check resolves it, and the same fixture covers a workspace member with a non-default marker/trigger.

RM-lsp-trigger-conversion-fix: fix the LSP trigger conversion

Completion interaction coverage is implemented alongside §FS-lsp.1.6. Baseline investigation reproduced no generic trigger defect, so the shipped live transform §FS-lsp.1.4 retains its behavior. The new request-sequence tests await execution; this is not a release commitment.

1. What

textDocument/onTypeFormatting converts the configured typing trigger ($$ by default) to the configured marker only when the text after the trigger is a valid citation start for the document's resolved config. It must handle the common typing paths: $$FS-foo typed continuously, $$ followed by a completion choice, trigger text at the start of a line, trigger text inside a comment, and trigger text next to another citation on the same line. The returned edit is minimal, UTF-16-correct, idempotent, and never rewrites literal money/prose $$ that is not followed by a recognized ID prefix. Workspace-member config and non-default markers/triggers follow the same lookup path as grund fmt and diagnostics (§FS-workspace.5).

2. Why now

§FS-lsp.1.4 is what makes § practical to type without leaving the keyboard. If the conversion is flaky, the LSP's most basic authoring workflow feels broken even when diagnostics and navigation are correct.

3. Measurable

Focused LSP tests cover continuous typing, completion-adjacent typing, line-start and comment positions, UTF-16 ranges, adjacent citations, non-default trigger/marker config, and negative $$ prose cases. The same fixture should pass grund fmt --check after applying the LSP edit, proving live conversion and bulk normalization agree.

RM-cochange-gate: an opt-in commit-msg / CI recipe for spec and test edits

The optional discipline serves §GOAL-agent-grounding.1: every changed configured source file must directly cite an eligible, resolved declaration, and the comparison must contain both a declaring-file edit and a configured test-file edit for one shared target, unless bounded commit trailers waive the missing evidence. §FS-cochange-recipe specifies this file-level recipe. Git comparison and Grund queries inspect the same exact trees; the recipe lives outside the engine under §FS-non-goals.6 and §FS-non-goals.12. Ordinary §FS-check.3.6 remains independent.

GitHub: #474, following #26.

§FS-cover supplies citation facts, not changed-line coverage. This workflow reports related edits and visible waiver reasons; it proves neither semantic correctness nor test execution.

1. What

A copyable Python recipe under examples/cochange/, documented beside README hook/CI guidance, supports Grund 0.16.1. Commit-msg evaluates an isolated index tree with an explicit base and supplied final message; CI evaluates the whole PR from a unique merge base and reads its commits. Direct targets match by project and declaration root. Both evidence classes must match one shared target. JSON Grund-Cochange: trailers name exact changed paths, missing spec/test obligations and reasons (§FS-cochange-recipe.waivers). They never waive eligible grounding, ordinary checks or incomplete data. No shipped command, core history API, rule-language extension or standing verdict changes are introduced.

2. Why now

File-level evidence can accept an unrelated edit inside a matched file and reject a valid unchanged-contract fix until explicitly waived (§FS-cochange-recipe.evidence). An unchanged-contract fix supplies a related test edit and a reason-bearing spec waiver. A refactor may waive both evidence classes, but still needs eligible grounding. Runtime test results stay with CI. Adoption is explicit; demonstrations in Grund CI do not enable this gate for Grund contributions.

3. Measurable

Shared-runner goldens and synthetic Git tests exercise missing grounding/evidence, spec-only and test-only refusals, unrelated and split targets, complete evidence, bounded waiver remedies, exact staged/CI parity and truthful data refusals (§FS-cochange-recipe.examples). The maintained walkthrough enters CI through §FS-examples.5.4. The broader matrix includes histories, renames/deletions, workspace identities and malformed/stale trailers.

RM-doc-comment-declarations: declarations only in class/method doc-comments

This item is absorbed by the v2 configuration rather than shipped as a [scan] switch: a v2 project's [schema.sources] declarations = "doc-comments", its default, recognizes a source declaration only inside a comment block its language's doc profile calls documentation, through one gate that answers before every recognizer (§FS-config-v2.schema.sources.declarations), and declarations = "any-comment" keeps the earlier reading. A v1 project keeps it unchanged. The plan this item carried, a v1 [scan] key, is removed; this address, heading text included, is kept while released changelogs still cite it.

RM-positioning: the Lychee contrast and the instruction-count framing in README and landing copy

grund and Lychee run together in this repository's CI (§FS-non-goals.1, §AR-ci.3). The README already explains their different jobs. This documentation milestone keeps that explanation factual and connects the archival measurements to current reporting; it adds no benchmark machinery or measurements (§REQ-readme.evidence).

1. What

Reuse the existing README paragraph, correcting Lychee's scope to Markdown and HTML as supported by the primary-source ledger in §REL-traceability-tools.work. Describe Grund's citation resolution and declared constraints without implying proof of semantic implementation correctness.

Retire the undated throughput badge and give a short path to the archival report: the 2026-05-20 local elapsed-time run and historical instruction-count snapshot remain available with their provenance. Explain current generated-fixture reporting (§AR-benchmarks.1.1) against the PR base branch (§AR-ci.5.1). Instruction count is a workload-cost proxy under binary/input/build assumptions, including PGO comparability (§AR-benchmarks.2, §AR-benchmarks.5); regression limits fail the build (§AR-ci.5.2).

2. Why now

Readers need to distinguish link validation from citation checking, and historical timing evidence from current CI reporting. Reusing the introduction and linking to the detailed evidence keeps the common path concise (§REQ-readme.1).

3. Measurable

The README links to the archive and current reporting, with no throughput badge or duplicate introductory block. The report preserves measured data and explains unlike workloads, build assumptions and unenforced instruction-regression limits. Future measurement instructions write elsewhere. Factual review and link/citation checks support the text regression checks (§REQ-readme.evidence).

RM-gap-report: orphan and uncovered ID reports

A proposed inverse of §FS-cover.2: instead of "what does this file cite?" it would answer "which declared IDs have nothing climbing into them?" The command below is design work, not a shipped capability or a commitment to parity with another tool. Current retrieval and checking tasks are described in §REL-traceability-tools.work.matrix.

The orphan half already exists as grund list --unused (§FS-list), which lists the declarations nothing cites; what remains is the unclimbed view and the report shape below. GitHub: #89 asks for the deliberately-uncited marker that lets that list be driven to zero.

1. What

A new read-only command, grund gap [--kind <K[,...]>] [--format text|json], that re-uses the existing citation graph and reports:

  • orphans: declared IDs with zero inbound citations, ignoring kinds at the top of the climbing chain (GRUND, GOAL under the default config).
  • unclimbed: declared IDs whose only inbound citations come from kinds that violate the climbing rule — e.g. an FS- that no AR-, E2E-, or code site cites.

Output is sorted lexicographically by (kind, id) for byte-identical reproducibility (§FS-errors.4). The command never changes its exit code on found gaps — it is a report, not a check; severity/exit-code customization stays out of the engine (§FS-non-goals.9). CI use is a recipe (same shape as §RM-cochange-gate): pipe the JSON, gate on the count. Dangling citations are already grund check errors and are not duplicated here.

2. Why now

§FS-cover.2 groups citations by scanned file, including files with no citations, without judging sufficient coverage. An inverted view could help a reader inspect inbound relationships directly. Its usefulness must be assessed on that task, independently of the documentation correction in §RM-positioning-trace-tools.

3. Measurable

E2E fixtures: a clean tree returns no orphans; deleting an E2E- that cited an FS- makes that FS- show up as unclimbed in the next grund gap. --format=json emits one NDJSON record per gap, sorted as above. Run on this repo, grund gap is silent (the repo self-hosts the floor).

RM-positioning-trace-tools: position grund against requirements-traceability tools in README

§RM-positioning covers links and performance evidence. This milestone connects the README to the existing requirements-traceability explanation, organised around reader tasks (§REL-traceability-tools.work.matrix). It corrects documentation, not product behavior.

1. What

Add one concise README link and reuse the existing resolver examples. In the related work, replace rankings and historical generalisations with sourced task-oriented prose: read a cited section (§FS-show.2.2), check citation targets (§FS-check.3.1, §FS-check.3.2), and query citations by scanned file (§FS-cover.2). Resolving a citation does not prove semantic implementation correctness or sufficient coverage.

Describe supported chapter and citation constraints (§FS-rules.3.1, §FS-rules.3.2, §FS-rules.3.3, §FS-rules.3.4) separately from fixed severity (§FS-non-goals.9) and absent arbitrary engine scripting (§FS-non-goals.12.1). Do not derive a new interchange policy from those boundaries. The gap command above and the design work in #458/#468 remain proposals, not shipped capabilities or prerequisites for this correction.

2. Why now

Concrete tasks let a reader assess Grund beside an existing requirements tool without blanket claims about that tool's purpose or data model. The detailed home already exists; a short README path makes it discoverable without duplicating it (§REQ-readme.1).

3. Measurable

The README links to the existing comparison. Each retained competitor capability claim has scoped primary-source support with a checked date and version or unversioned status. The prose preserves published section coordinates, describes shipped tasks and precise boundaries, and makes no future gap or coverage-parity promise. Review the claims and validate citations and links alongside text regression checks (§REQ-readme.evidence).

RM-workspace-absorbed-scan-error: flip the absorbed-scan warning to an error

This milestone shipped in grund 0.16.0: a [workspace] block whose members swallow its own scan is a members-line config error, and its record is the compatibility notice that landed it, §DF-absorbed-scan-warning.release-note, together with §FS-check.3.30. The item's own plan is removed, as a shipped item's is; this address, heading text included, is kept while released changelogs still cite it.