← Back to Pull requests

fix(knowledge): ignore Markdown code when parsing wikilinks #770

Open
unknown opened this pull request with 114 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 09, 2026 16:29 UTC
Author

Summary


Mask fenced, blockquoted, indented, and inline Markdown code before extracting wikilinks from articles and index.md, preventing code examples from creating false graph edges while preserving real links.

Linked issue(s)


Refs #769; this PR addresses the code-sample false positives only and leaves the reported edge-type concern separate.

How I tested this


  • python3 -m unittest discover -s tests/skill/knowledge -p 'test_*.py' -v — 17 passed.

  • git diff --check — passed.

  • pnpm lint, pnpm --filter @understand-anything/core test, and pnpm test — not run because dependencies were absent; no dependencies were installed.

  • Manual end-to-end smoke test — not run; the Python suite exercises the parser regression directly.
  • Versioning


    Bumped all seven manifests to 2.9.9 as required by CLAUDE.md; the MCP package had been 2.9.7 while the other six were 2.9.8.

    Diff: 114 lines (+85 / -29) across 1 files Reviewer: thejesh23 Review duration: 30632m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 114 lines diff across 1 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.284
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #770"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.4% (MEDIUM) · Higher = larger blast radius
    36.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.4% · Safe to merge
    19.4%