Skip to content

docs: define language expansion decision - #456

Merged
mohanagy merged 2 commits into
nextfrom
issue-431-language-expansion-decision
Jun 1, 2026
Merged

mohanagy merged 2 commits into
nextfrom
issue-431-language-expansion-decision

Conversation

@mohanagy

@mohanagy mohanagy commented Jun 1, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • add a decision note that keeps broader language expansion behind stronger TypeScript/Node proof and language-specific benchmark or fixture evidence
  • update the roadmap, claims/evidence map, and language capability matrix so public copy stays conservative about Python/Go/Rust/Java scope
  • lock the new language-expansion guidance in the roadmap and doc-honesty tests

Closes #431

Testing

  • npm run test:run -- tests/unit/roadmap-docs.test.ts tests/unit/why-madar-doc.test.ts
  • npm run typecheck
  • npm run build
  • CI=1 npm run test:run

Summary by CodeRabbit

  • Documentation

    • Added a decision doc and clarified the language-support roadmap with evidence-based gates.
    • Emphasized near-term focus on TypeScript/Node, conservative first-pass Python/Go, and parked/out-of-scope tracks.
    • Explicitly disallowed broad public parity claims until supporting benchmarks/fixtures exist.
  • Tests

    • Added and updated checks to verify documentation consistency and the presence of the new roadmap guidance.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: fef778d3-0665-4e1d-9cc6-a1e66a588276

📥 Commits

Reviewing files that changed from the base of the PR and between b48318f and c31d2b2.

📒 Files selected for processing (1)
  • tests/unit/why-madar-doc.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • tests/unit/why-madar-doc.test.ts

📝 Walkthrough

Walkthrough

This PR records a decision to defer broad language expansion until stronger TypeScript/Node proof and benchmark/fixture evidence exist, updates public docs to reflect evidence-gated language claims and framing, and adds unit tests that enforce these documentation constraints.

Changes

Language Expansion Decision and Documentation Validation

Layer / File(s) Summary
Language expansion decision framework
docs/language-expansion-decision.md
Introduces a new decision document that defers broad language expansion, establishes explicit evidence gates, and categorizes language/framework work into near-term (TypeScript/Node depth, conservative Python/Go fixes), parked (broader parity and new semantic tracks), and out-of-scope buckets with public-facing messaging guidance.
Public documentation updates reflecting the decision
docs/claims-and-evidence.md, docs/language-capability-matrix.md, docs/roadmap.md
docs/claims-and-evidence.md adds bullets gating language expansion on TypeScript/Node proof plus benchmark/fixture evidence and forbids broad parity claims; docs/language-capability-matrix.md clarifies TypeScript/Node priority and frames Python/Go as first-pass support with Java/Rust treated as extractor coverage; docs/roadmap.md adds a parked item describing evidence-gated language expansion.
Documentation-honesty test assertions
tests/unit/roadmap-docs.test.ts, tests/unit/why-madar-doc.test.ts
Adds roadmap assertions for issues/431 and new keywords; extends why-madar tests to assert claims-and-evidence gating, new language-expansion-decision presence and wording, and capability-matrix framing and linkage to the decision doc.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes


Possibly related PRs

  • mohanagy/madar#334: Both PRs expand docs/claims-and-evidence.md and adjust docs-honesty tests to enforce evidence-gated public claims.
  • mohanagy/madar#453: Both PRs update docs/claims-and-evidence.md and extend tests/unit/why-madar-doc.test.ts with additional documentation-honesty assertions.
  • mohanagy/madar#455: Related updates to documentation guardrails and roadmap items; both modify claims/roadmap doc content and corresponding tests.

"I nibble on the roadmap light,
I hop where docs and tests unite,
TypeScript proof sets parity's gate,
Evidence first—then paths we weight.
Rabbit cheers: docs, tests, aligned and bright."

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: adding documentation that defines language expansion decision with evidence gates and scope prioritization.
Description check ✅ Passed The description covers the main changes, testing steps, and includes the required checklist items with all main categories addressed.
Linked Issues check ✅ Passed The PR fully addresses all requirements from issue #431: defines evidence gates, categorizes language work (near-term/parked/out-of-scope), documents the decision, updates roadmap docs, adds tests, and avoids broad parity claims without evidence.
Out of Scope Changes check ✅ Passed All changes are in scope: documentation files defining language expansion policy, roadmap updates, and related doc-honesty tests directly support issue #431 objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-431-language-expansion-decision

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tests/unit/why-madar-doc.test.ts (1)

231-293: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix test suite nesting structure.

The describe('docs/claims-and-evidence.md') block is incorrectly nested inside the describe('docs/proof-workflows.md') block (which starts at line 212). These should be sibling test suites, not parent-child.

🔧 Proposed fix

Move the closing brace from line 230 to after line 293 to close the proof-workflows describe block before the claims-and-evidence describe block begins:

     })
   })

+  describe('docs/claims-and-evidence.md', () => {
+    const content = readDoc('docs/claims-and-evidence.md')
+    const lower = content.toLowerCase()
+
+    it('maps public claims to evidence and tracks unmeasured claims explicitly', () => {
       // ... existing test content ...
-    describe('docs/claims-and-evidence.md', () => {
-      const content = readDoc('docs/claims-and-evidence.md')
-      const lower = content.toLowerCase()
-
-      it('maps public claims to evidence and tracks unmeasured claims explicitly', () => {
-        // ... existing test content ...

This moves the claims-and-evidence describe block to the correct level in the test hierarchy.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/unit/why-madar-doc.test.ts` around lines 231 - 293, The describe block
for 'docs/claims-and-evidence.md' is currently nested inside the
'docs/proof-workflows.md' describe; make them siblings by moving the closing
brace that ends the 'docs/proof-workflows.md' describe (the brace currently
before describe('docs/claims-and-evidence.md')) so it closes that suite before
the describe('docs/claims-and-evidence.md') block begins, ensuring
describe('docs/proof-workflows.md') and describe('docs/claims-and-evidence.md')
are at the same level in the test file.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@tests/unit/why-madar-doc.test.ts`:
- Around line 231-293: The describe block for 'docs/claims-and-evidence.md' is
currently nested inside the 'docs/proof-workflows.md' describe; make them
siblings by moving the closing brace that ends the 'docs/proof-workflows.md'
describe (the brace currently before describe('docs/claims-and-evidence.md')) so
it closes that suite before the describe('docs/claims-and-evidence.md') block
begins, ensuring describe('docs/proof-workflows.md') and
describe('docs/claims-and-evidence.md') are at the same level in the test file.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 4fe2eb1b-115c-4d3a-a789-39ce4783c8c8

📥 Commits

Reviewing files that changed from the base of the PR and between 228f09a and b48318f.

📒 Files selected for processing (6)
  • docs/claims-and-evidence.md
  • docs/language-capability-matrix.md
  • docs/language-expansion-decision.md
  • docs/roadmap.md
  • tests/unit/roadmap-docs.test.ts
  • tests/unit/why-madar-doc.test.ts

@mohanagy

mohanagy commented Jun 1, 2026

Copy link
Copy Markdown
Owner Author

Addressing the CodeRabbit test-structure comment now; I will push a small follow-up once the nesting is fixed and the targeted doc tests are green.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mohanagy

mohanagy commented Jun 1, 2026

Copy link
Copy Markdown
Owner Author

Follow-up pushed: the docs/claims-and-evidence.md test suite is now a sibling of docs/proof-workflows.md, and the targeted doc tests plus full repo verification are green again.

@mohanagy
mohanagy merged commit 08e349f into next Jun 1, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant