Skip to content

Instantly share code, notes, and snippets.

View danmoseley's full-sized avatar
:shipit:

Dan Moseley danmoseley

:shipit:
  • Microsoft
  • Jackson, WY
  • 15:19 (UTC -06:00)
View GitHub Profile
@danmoseley
danmoseley / stj-ai-issue-resolution-plan.md
Last active March 7, 2026 06:37
AI-Driven Issue Resolution for System.Text.Json: Strategic Analysis & Plan

AI-Driven Issue Resolution for System.Text.Json: Strategic Analysis & Plan

The Landscape (262 open issues)

Category Count Notes
Bugs 30 Core correctness issues
Enhancements 55 Behavior improvements, not new API
API Suggestions 76 Need API review process
API Approved 6 Ready to implement
@danmoseley
danmoseley / dotnet-nonbacktracking-regex-engine-guide.md
Created March 6, 2026 06:07
The .NET NonBacktracking Regex Engine: A Deep Dive

The .NET NonBacktracking Regex Engine: A Deep Dive

Audience: You understand regex patterns and how the standard backtracking engine works (try branches, backtrack on failure). This guide explains everything else from scratch.


Table of Contents

  1. The Big Idea: Why a Different Engine?
@danmoseley
danmoseley / gist-aspire.md
Last active February 28, 2026 09:11
Top 10 actionable PRs — dotnet/aspire

Top 10 Actionable PRs — dotnet/aspire

Generated 2026-02-28 by pr-triage skill

Note: "Who" shows "—" for most PRs because dotnet/aspire has no docs/area-owners.md.

Score PR Title Who Next Action CI Author Why
8.2 #14409 Increase az aks update timeout from 3 to 5 minutes in AKS E2E tests Maintainer: review needed @mitchdenny ✅ CI passed · 👍 approved (non-owner) · 📦 small change
8 #11706 Fix UpdateConfig property types for Docker Compose serialization Maintainer: review needed @app/copilot-swe-agent ✅ CI passed · 👍 approved (non-owner) · 📦 small change · 🕰️ old (152d)
@danmoseley
danmoseley / gist-net.md
Last active February 28, 2026 09:21
area-System.Net PR triage — dotnet/runtime

area-System.Net PR Triage — dotnet/runtime

Generated 2026-02-28 by pr-triage skill

Score PR Title Who Next Action CI Author Why
7.9 #124424 Fix Ping RoundtripTime returning 0 for TtlExpired replies @karelz Maintainer: review needed @🌐lufen ✅ CI passed · 👍 approved (non-owner) · 🌐 community · 📦 small change
7.1 #123662 [release/8.0-staging] Deny unmasked frame receive for WebSocket Server @liveans Author: fix CI failures @liveans ❌ CI failing · 👍 owner approved · 📦 small change · ⏳ stale (25d)
6.5 #123360 Align HttpListener.GetContext() exception across platforms for Stop/Ab @wfurt Author: respond to 3 thread(s) from @stephentoub, @rzikm @app/copilot-swe-ag
@danmoseley
danmoseley / gist-codegen.md
Last active February 28, 2026 09:21
area-CodeGen-coreclr PR triage — dotnet/runtime

area-CodeGen-coreclr PR Triage — dotnet/runtime

Generated 2026-02-28 by pr-triage skill

Score PR Title Who Next Action CI Author Why
7.7 #124880 [Wasm RyuJit] annotate (some) local accesses with var nums @AndyAyersMS Author: respond to 2 thread(s) from @SingleAccretion @AndyAyersMS ✅ CI passed · 👍 approved (non-owner) · 💬 2 unresolved · 📦 small change
7.4 #123546 arm64: Remove widening casts before truncating @JulieLeeMSFT Maintainer: review needed @🌐jonathandavies-arm ✅ CI passed · 👍 approved (non-owner) · 🌐 community · 📦 large (3 files, 724 lines)
7.3 #122533 Fix #74020: Optimize consecutive shifts in JIT Morph @csa7mdm Author: respond to 7 thread(s) from @Ego
@danmoseley
danmoseley / copilot-instructions.md
Last active February 23, 2026 21:02
dotnet/runtime copilot-instructions.md

NEVER post comments to GitHub PRs or issues (via gh, API, or any other mechanism) without first showing the exact text to the user and getting explicit approval.

NEVER push to a remote without explicit approval. Prefer new commits over amending (exceptions: asked to amend, or minor fix to an unpushed broken commit). Never squash or force-push unless explicitly told.

When creating PR/issue comments or descriptions containing non-ASCII characters (em-dashes, μ, etc.), write the content to a temp file with the create tool and use --body-file to avoid UTF-8/codepage corruption on Windows. Use | entity for literal | inside markdown table cells. Avoid PowerShell expandable strings (@"..."@) for markdown with backticks; use literal here-strings (@'...'@).

Objective: Using MCP tools as appropriate I want you to analyze active issues in dotnet/runtime repo to perform a detailed analysis, categorization, scoring, frustration analysis, and generate a roadmap. The categorization should be based on keyword matching, semantic understanding of the issue description, and comment analysis. The content of the issue bodies and comments should not be included in the output, aside from the metadata used for categorization.
Final Engagement Score Formula
Use the following formula to calculate the Engagement Score for each issue:
[
S = \frac{w_c \cdot C^{1.5} \cdot C_{penalty} \cdot w_d \cdot (D + 0.1) \cdot (1 + w_l \cdot A) \cdot (1 + w_u \cdot U)}{1 + w_a \cdot \sqrt{A + \epsilon}}
]
Where:
C:\git\aspnetcore\src\Components\Components\src\Routing\Router.cs:95 -
C:\git\aspnetcore\src\Components\Components\src\Routing\Router.cs:74 -
C:\git\aspnetcore\src\Components\Web\src\Forms\InputFile\RemoteBrowserFileStreamOptions.cs:12 - public class RemoteBrowserFileStreamOptions
C:\git\aspnetcore\src\Components\Web\src\Web\WebEventCallbackFactoryEventArgsExtensions.cs:19 -
C:\git\aspnetcore\src\Components\Web\src\Web\WebEventCallbackFactoryEventArgsExtensions.cs:35 -
C:\git\aspnetcore\src\Components\Web\src\Web\WebEventCallbackFactoryEventArgsExtensions.cs:51 -
C:\git\aspnetcore\src\Components\Web\src\Web\WebEventCallbackFactoryEventArgsExtensions.cs:67 -
C:\git\aspnetcore\src\Components\Web\src\Web\WebEventCallbackFactoryEventArgsExtensions.cs:83 -
C:\git\aspnetcore\src\Components\Web\src\Web\WebEventCallbackFactoryEventArgsExtensions.cs:99 -
C:\git\aspnetcore\src\Components\Web\src\Web\WebEventCallbackFactoryEventArgsExtensions.cs:115 -
@danmoseley
danmoseley / triage.ps1
Last active July 22, 2025 19:22
triage query (no milestone+rc1+p7)
# GitHub Issue Label Counter for dotnet/aspnetcore
# Counts issues by label in 10.0-rc1, 10.0-preview7 milestones, or no milestone
# GitHub Personal Access Token (set this to your token)
$GitHubToken = $env:GITHUB_TOKEN
if (-not $GitHubToken) {
$GitHubToken = Read-Host "Enter your GitHub Personal Access Token" -AsSecureString
$GitHubToken = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($GitHubToken))
}
@echo off
setlocal enabledelayedexpansion
set "inputfile=combos"
for /f "usebackq delims=" %%a in ("%inputfile%") do (
rd /s/q Foo
echo ========================
md Foo
pushd Foo
echo Running: ########## %%a #############