← Back to Pull requests

Debug info command #1037

Re-review Required
t9md merged 7 files (635 lines) on Feb 26, 2018 05:33 UTC
View on GitHub
t9md t9md commented on Feb 26, 2018 05:29 UTC
Author

Add two command to make communication in issue handling smoother.

  • vim-mode-plus:clip-debug-info

  • vim-mode-plus:clip-debug-info-with-package-info
  • These command write collected debug info to clipboard.
    Then user can paste it directly in their issue comment.
    Clip is done with foldable(by <details> tag) form so that huge text doesn't mess issue board.

    Below is just pasted output of these two command without any modifications.

    <details>
    <summary>debug info</summary>

    {
      "atom": "1.25.0-beta2",
      "platform": "darwin",
      "release": "17.4.0",
      "vmpVersion": "1.28.1",
      "vmpConfig": {
        "charactersToAddSpaceOnSurround": [
          ")",
          "}",
          "]",
          ">"
        ],
        "debugOutput": "console",
        "debugOutputFilePath": "~/github/atom-vim-mode-plus/debug.log",
        "defaultScrollRowsOnMiniScroll": 4,
        "devReloadPackages": [
          "vim-mode-plus-move-selected-text",
          "vim-mode-plus-jasmine-increase-focus",
          "vim-mode-plus-replace-with-execution",
          "vim-mode-plus-ex-mode",
          "narrow",
          "narrow-git-ls",
          "quick-highlight",
          "demo-mode"
        ],
        "findAcrossLines": true,
        "findCharsMax": 100,
        "findConfirmByTimeout": 200,
        "hideCommandsFromCommandPalette": false,
        "hideStatusBarOnMaximizePane": false,
        "hideTabBarOnMaximizePane": false,
        "highlightSearch": false,
        "highlightSearchExcludeScopes": [
          "narrow"
        ],
        "keymapBackslashToInnerCommentOrParagraphWhenToggleLineCommentsIsPending": true,
        "keymapCCToChangeInnerSmartWord": true,
        "keymapIAndAToInsertAtTargetWhenHasOccurrence": true,
        "keymapSToSelect": true,
        "keymapSemicolonAndCommaToFindPreConfirmedOnFindInput": true,
        "keymapSemicolonToInnerAnyPairInOperatorPendingMode": true,
        "keymapYToYankToLastCharacterOfLine": true,
        "replaceByDiffOnSurround": true,
        "reuseFindForRepeatFind": true,
        "sequentialPaste": true,
        "setCursorToStartOfChangeOnUndoRedo": false,
        "smoothScrollOnFullScrollMotion": true,
        "smoothScrollOnHalfScrollMotion": true,
        "smoothScrollOnMiniScroll": true,
        "smoothScrollOnRedrawCursorLine": true,
        "strictAssertion": true,
        "useSmartcaseForFind": true,
        "useSmartcaseForSearch": true,
        "useSmartcaseForSearchCurrentWord": true,
        "blackholeRegisteredOperators": [],
        "startInInsertModeScopes": [],
        "flashOnOperateBlacklist": []
      }
    }
    

    </details>

    <details>
    <summary>debug info with package info</summary>

    {
      "atom": "1.25.0-beta2",
      "platform": "darwin",
      "release": "17.4.0",
      "vmpVersion": "1.28.1",
      "vmpConfig": {
        "charactersToAddSpaceOnSurround": [
          ")",
          "}",
          "]",
          ">"
        ],
        "debugOutput": "console",
        "debugOutputFilePath": "~/github/atom-vim-mode-plus/debug.log",
        "defaultScrollRowsOnMiniScroll": 4,
        "devReloadPackages": [
          "vim-mode-plus-move-selected-text",
          "vim-mode-plus-jasmine-increase-focus",
          "vim-mode-plus-replace-with-execution",
          "vim-mode-plus-ex-mode",
          "narrow",
          "narrow-git-ls",
          "quick-highlight",
          "demo-mode"
        ],
        "findAcrossLines": true,
        "findCharsMax": 100,
        "findConfirmByTimeout": 200,
        "hideCommandsFromCommandPalette": false,
        "hideStatusBarOnMaximizePane": false,
        "hideTabBarOnMaximizePane": false,
        "highlightSearch": false,
        "highlightSearchExcludeScopes": [
          "narrow"
        ],
        "keymapBackslashToInnerCommentOrParagraphWhenToggleLineCommentsIsPending": true,
        "keymapCCToChangeInnerSmartWord": true,
        "keymapIAndAToInsertAtTargetWhenHasOccurrence": true,
        "keymapSToSelect": true,
        "keymapSemicolonAndCommaToFindPreConfirmedOnFindInput": true,
        "keymapSemicolonToInnerAnyPairInOperatorPendingMode": true,
        "keymapYToYankToLastCharacterOfLine": true,
        "replaceByDiffOnSurround": true,
        "reuseFindForRepeatFind": true,
        "sequentialPaste": true,
        "setCursorToStartOfChangeOnUndoRedo": false,
        "smoothScrollOnFullScrollMotion": true,
        "smoothScrollOnHalfScrollMotion": true,
        "smoothScrollOnMiniScroll": true,
        "smoothScrollOnRedrawCursorLine": true,
        "strictAssertion": true,
        "useSmartcaseForFind": true,
        "useSmartcaseForSearch": true,
        "useSmartcaseForSearchCurrentWord": true,
        "blackholeRegisteredOperators": [],
        "startInInsertModeScopes": [],
        "flashOnOperateBlacklist": []
      },
      "activeCommunityPackages": [
        "duotone-blue-dark-syntax: 1.4.0",
        "atomic-chrome: 0.3.0",
        "autocomplete-emojis: 2.5.0",
        "choose-pane: 0.8.0",
        "clip-history: 0.5.0",
        "cursor-history: 0.13.0",
        "inline-git-diff: 2.3.0",
        "inline-markdown-images: 1.3.0",
        "markdown-toc-auto: 0.8.0",
        "mprettier: 0.6.0",
        "remember-file-positions: 0.2.3",
        "vim-mode-plus-keymaps-for-surround: 0.2.1",
        "language-haskell: 1.17.3",
        "vim-mode-plus: 1.28.1",
        "quick-highlight: 0.12.0"
      ]
    }
    

    </details>

    Diff: 635 lines (+476 / -159) across 7 files Reviewer: None requested Review duration: 4m
    Review confidence threshold not met — re-review recommended
    Residual risk 0.66 = Change Risk (0.72) × (1 − Review Confidence (0.09)). Flagged for follow-up review before production rollout.
    Model 1 · Change Risk (XGBoost)
    Score: 0.72 · 635 lines diff across 7 files
    0.72
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 26% · Reviewer familiarity: 10%
    9%
    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
    Diff Size diff_size
    0.386
    Shallow Review Depth shallow_review_depth
    0.344
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Rapid Merge rapid_merge
    0.100
    Real PR Conversation Timeline
    1 comments
    "LGTM"
    rubber_stamp weight: 0.0
    Reviewers
    None requested
    Assignees
    t9md t9md
    Labels
    risk: high confidence: 9.4% needs-re-review
    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: 72.4% (HIGH) · Higher = larger blast radius
    72.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: 9.4% · Lower = rushed or shallow review
    9.4%
    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: 65.6% · Re-review required
    65.6%