Skip to content

fix(scripts): repoint checks at the .adoc files that exist - #58

Merged
hyperpolymath merged 3 commits into
mainfrom
fix/repoint-scripts-at-adoc
Aug 26, 2026
Merged

fix(scripts): repoint checks at the .adoc files that exist#58
hyperpolymath merged 3 commits into
mainfrom
fix/repoint-scripts-at-adoc

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

The .md.adoc documentation migration moved these files but never updated the scripts that read them, so every check naming a .md has been operating on a file that no longer exists.

Repointed: claude.md->claude.adoc

Three failure modes were in play across the estate, all fixed by the same change:

shape effect
check "X.md exists" "[ -f X.md ]" hard fail — can never pass
[ -f X.md ] && ((doc_score++)) silently scores lower
if [ -f X.md ]; then …greps… fi silent skip — the block never runs, so the gate reports success by not checking

Labels are repointed too, so failure messages name the file actually inspected. Where a script did git add … X.md, that is fixed as well — it would have failed at release time.

Only tokens whose .adoc twin exists here were rewritten; anything without a twin was left for separate triage.

Found by an estate-wide sweep of 454 repos: 56 such checks across 18 repos. Same class as hyperpolymath/Axiom.jl#82.

The .md -> .adoc documentation migration moved these files but never updated
the scripts that READ them, so every check naming a .md has been operating on
a file that no longer exists.

Repointed: claude.md->claude.adoc

Three failure modes were in play across the estate, all fixed by the same
change:
  * hard fail   - 'check "X.md exists" "[ -f X.md ]"' can never pass
  * wrong score - '[ -f X.md ] && ((doc_score++))' silently scores lower
  * SILENT SKIP - 'if [ -f X.md ]; then ...greps... fi' skips the whole block,
                  so the checks inside never run and the gate reports success
                  by not checking at all

Human-readable labels are repointed too, so failure messages name the file that
is actually inspected. Where a script did 'git add ... X.md', that is fixed as
well - it would have failed at release time.

Only tokens whose .adoc twin exists in this repository were rewritten; anything
without a twin was left untouched for separate triage.

Found by an estate-wide sweep of 454 repos: 56 such checks across 18 repos.
Same defect class as hyperpolymath/Axiom.jl#82.
@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

Next included review available in 37 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: c2ae0c47-5d34-422d-af0c-f28da455770b

📥 Commits

Reviewing files that changed from the base of the PR and between 459ebd6 and 8c68470.

📒 Files selected for processing (1)
  • tests/validate-framework.sh

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1307a757-1c35-4677-a640-fadf8b253a13

📥 Commits

Reviewing files that changed from the base of the PR and between 2851158 and 459ebd6.

📒 Files selected for processing (1)
  • tests/validate-framework.sh

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (1)
tests/validate-framework.sh (1)

15-15: LGTM!

Also applies to: 25-25, 40-40, 49-49


📝 Walkthrough

Summary by CodeRabbit

  • Tests
    • Updated framework validation checks to use the claude.adoc documentation source.
    • Validation continues to cover PROMPT dimensions, knowledge layers, boundary-object references, and cognitive-science concepts.

Walkthrough

The framework validation script now searches claude.adoc for PROMPT dimensions, knowledge layers, boundary objects, and cognitive-science concepts.

Changes

Framework validation

Layer / File(s) Summary
Update validation search targets
tests/validate-framework.sh
Four checks now search claude.adoc instead of claude.md.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 459eb

This localized change repoints documentation checks to existing files, with no actionable merge-blocking risk remaining beyond normal checks and review.

Poem

A rabbit checks the document trail

PROMPT markers hop without fail
Knowledge layers sit in line
Boundary objects now align
Cognitive concepts pass the test
claude.adoc does the rest

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the script fix and the change from .md files to existing .adoc files.
Description check ✅ Passed The description directly explains the documentation migration issue, the updated references, and the affected failure modes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@gitar-bot

gitar-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@codacy-production

Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

The PR updates the validation script to reference claude.adoc instead of claude.md following a documentation migration. While the primary objective is met, there are discrepancies between the PR description and the provided diff; specifically, referenced updates to labels and git add commands are missing.

Codacy analysis indicates the code is up to standards, but internal consistency in the validation script can be improved. The new grep commands are case-sensitive and use redundant recursive flags, which makes them more brittle compared to other existing checks in the same file. Addressing these minor logic improvements will ensure more robust automated validation.

About this PR

  • The PR description mentions fixing 'git add' commands and repointing labels, but these changes are not present in the diff for 'tests/validate-framework.sh'. Please verify if files were missed in the commit.

Test suggestions

  • Verify that validate-framework.sh fails when a PROMPT dimension is missing from claude.adoc
  • Verify that validate-framework.sh fails when a knowledge layer is missing from claude.adoc
  • Verify that validate-framework.sh fails when a cognitive concept is missing from claude.adoc
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that validate-framework.sh fails when a PROMPT dimension is missing from claude.adoc
2. Verify that validate-framework.sh fails when a knowledge layer is missing from claude.adoc
3. Verify that validate-framework.sh fails when a cognitive concept is missing from claude.adoc
Low confidence findings
  • There is no verification within this PR that 'claude.adoc' has been successfully created/renamed in the repository, which could lead to immediate failures of this script in CI.

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

Comment thread tests/validate-framework.sh Outdated
Comment thread tests/validate-framework.sh Outdated
hyperpolymath and others added 2 commits August 26, 2026 17:14
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 2e29886 into main Aug 26, 2026
1 of 2 checks passed
@hyperpolymath
hyperpolymath deleted the fix/repoint-scripts-at-adoc branch August 26, 2026 16:16
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