[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C2B4N5A986K6TDKWG95ZQM":3,"skill-same:01M6C2B4N5A986K6TDKWG95ZQM":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6C2B4N5A986K6TDKWG95ZQM","regression-bisect","回归问题二分定位","Identify the commit that introduced a regression using git bisect with automated test execution and blame context","使用 git bisect 结合自动化测试执行和 blame 上下文，定位引入回归问题的提交","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fregression-bisect\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42],"bisect","regression","regression bisect","test","commit","git","execution","context","test execution","git bisect","Using git","with","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: regression-bisect\nplatforms: [all]\ndescription: Identify the commit that introduced a regression using git bisect with automated test execution and blame context\n\n---\n\n# regression-bisect\n\nAutomatically identify the commit that introduced a regression using git bisect.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"git bisect\" → binary search for regression commit\n- \"when did this break\" → regression commit discovery\n\n## Purpose\n\nThis skill automates regression root cause analysis by:\n- Using git bisect to binary search commit history\n- Running automated tests at each bisect point\n- Identifying the exact commit that introduced a failure\n- Providing blame information and diff context\n- Suggesting potential fixes based on the breaking change\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Validates prerequisites**:\n   - Confirms reproducible failure exists\n   - Verifies test automation is available\n   - Ensures clean working directory\n   - Identifies good and bad commits\n\n2. **Executes git bisect**:\n   - Starts bisect with known good\u002Fbad commits\n   - Runs test suite at each bisect point\n   - Marks commits as good\u002Fbad based on test results\n   - Continues until breaking commit is found\n\n3. **Analyzes breaking commit**:\n   - Shows commit message and metadata\n   - Displays full diff of the breaking change\n   - Identifies changed files and functions\n   - Maps to requirements\u002Fissues if available\n\n4. **Provides context**:\n   - Shows blame information for affected code\n   - Lists related commits in the area\n   - Identifies potential reviewers (commit authors)\n   - Suggests rollback or fix strategies\n\n5. **Documents findings**:\n   - Creates regression analysis report\n   - Links to issue tracker if available\n   - Updates regression baseline with findings\n   - Generates timeline of when regression was introduced\n\n## Bisect Configuration\n\n### Manual Bisect\n\n```yaml\nbisect_manual:\n  mode: interactive\n  good_commit: v1.2.0  # Known good state\n  bad_commit: HEAD     # Known bad state\n  test_command: \"npm test -- auth.test.ts\"\n\n  workflow:\n    - git bisect start\n    - git bisect bad HEAD\n    - git bisect good v1.2.0\n    - git bisect run npm test -- auth.test.ts\n```\n\n### Automated Bisect\n\n```yaml\nbisect_automated:\n  mode: automated\n  detect_good: auto  # Use last passing CI build\n  detect_bad: auto   # Use current failing state\n  test_command: \"npm test\"\n  timeout: 600       # 10 minutes per commit test\n\n  auto_detection:\n    - check_ci_history\n    - find_last_green_build\n    - set_as_good_commit\n    - use_current_as_bad\n```\n\n### Bisect with Custom Test\n\n```yaml\nbisect_custom:\n  mode: custom\n  test_script: scripts\u002Fregression-test.sh\n  success_exit_code: 0\n  failure_exit_code: 1\n\n  test_script_template: |\n    #!\u002Fbin\u002Fbash\n    # Custom regression test\n    npm run build || exit 1\n    npm test -- specific-test.ts || exit 1\n    .\u002Fvalidate-output.sh || exit 1\n    exit 0\n```\n\n## Bisect Report Format\n\n```markdown\n# Regression Bisect Report\n\n**Date**: 2026-01-28\n**Issue**: Authentication fails on login\n**Analyzer**: regression-bisect skill\n\n## Executive Summary\n\n**Breaking Commit**: abc123def456\n**Author**: John Developer \u003Cjohn@example.com>\n**Date**: 2026-01-15 14:32:00\n**Bisect Duration**: 8 commits tested, 12 minutes\n\n**Root Cause**: Token validation logic changed to require `iss` claim\n\n## Bisect Results\n\n### Commit Range\n\n- **Good**: v1.2.0 (2026-01-10) - 50 commits ago\n- **Bad**: HEAD (2026-01-28) - Current state\n- **Breaking**: abc123def456 (2026-01-15) - 25 commits into range\n\n### Bisect Log\n\n| Commit | Status | Test Result | Duration |\n|--------|--------|-------------|----------|\n| abc123 | ❌ Bad | auth.test.ts failed | 45s |\n| def789 | ❌ Bad | auth.test.ts failed | 42s |\n| ghi012 | ✅ Good | all tests passed | 48s |\n| jkl345 | ✅ Good | all tests passed | 46s |\n| mno678 | ❌ Bad | auth.test.ts failed | 44s |\n| **pqr901** | **❌ Breaking** | **First failure** | **43s** |\n| stu234 | ✅ Good | all tests passed | 47s |\n| vwx567 | ✅ Good | all tests passed | 45s |\n\n## Breaking Commit Analysis\n\n### Commit Details\n\n```\ncommit pqr901xyz\nAuthor: John Developer \u003Cjohn@example.com>\nDate:   Mon Jan 15 14:32:00 2026 +0000\n\n    feat(auth): add JWT issuer validation\n\n    - Require `iss` claim in JWT tokens\n    - Validate issuer against whitelist\n    - Update token generation to include issuer\n\n    Closes #456\n```\n\n### Files Changed\n\n| File | Changes | Impact |\n|------|---------|--------|\n| src\u002Fauth\u002Fvalidate-token.ts | +15\u002F-5 | High - Core validation logic |\n| src\u002Fauth\u002Fgenerate-token.ts | +8\u002F-2 | Medium - Token generation |\n| test\u002Fauth\u002Ftoken.test.ts | +25\u002F-0 | Low - Test updates |\n\n### Diff Analysis\n\n```diff\ndiff --git a\u002Fsrc\u002Fauth\u002Fvalidate-token.ts b\u002Fsrc\u002Fauth\u002Fvalidate-token.ts\nindex abc123..def456 100644\n--- a\u002Fsrc\u002Fauth\u002Fvalidate-token.ts\n+++ b\u002Fsrc\u002Fauth\u002Fvalidate-token.ts\n@@ -15,6 +15,11 @@ export function validateToken(token: string): TokenPayload {\n     throw new Error('Invalid token signature');\n   }\n\n+  \u002F\u002F NEW: Require issuer claim\n+  if (!payload.iss) {\n+    throw new Error('Token missing issuer claim');\n+  }\n+\n   return payload;\n }\n```\n\n**Breaking Change**: The new validation requires `iss` claim, but existing tokens don't include it.\n\n## Root Cause\n\nThe commit added mandatory `iss` (issuer) claim validation without:\n1. Updating existing token generation (added in same commit but missed migration)\n2. Providing backward compatibility for existing tokens\n3. Coordinating with deployment to invalidate old sessions\n\n**Impact**: All existing user sessions became invalid immediately.\n\n## Affected Components\n\n- **Authentication**: Token validation fails for all existing sessions\n- **API Gateway**: 401 errors on all authenticated endpoints\n- **User Experience**: Force logout of all active users\n\n## Related Information\n\n### Traceability\n\n- **Issue**: #456 - \"Add JWT issuer validation for security\"\n- **Requirement**: @.aiwg\u002Frequirements\u002Fuse-cases\u002FUC-AUTH-003-jwt-security.md\n- **Review**: PR #789 - Merged without integration testing\n\n### Similar Issues\n\nGit history shows related changes:\n- commit xyz789 (2026-01-10): Initial JWT implementation\n- commit uvw456 (2026-01-12): Add JWT expiration validation\n- commit pqr901 (2026-01-15): Add JWT issuer validation ← BREAKING\n\n### Code Ownership\n\n```\nsrc\u002Fauth\u002Fvalidate-token.ts:\n  85% John Developer \u003Cjohn@example.com>\n  10% Jane Reviewer \u003Cjane@example.com>\n   5% Bob Maintainer \u003Cbob@example.com>\n```\n\n## Recommendations\n\n### Immediate (Hotfix)\n\n- [ ] **Option A**: Revert commit pqr901 to restore service\n- [ ] **Option B**: Make `iss` validation optional with feature flag\n- [ ] **Option C**: Deploy token refresh that includes `iss` claim\n\n**Recommended**: Option B - Feature flag allows gradual rollout\n\n### Short-term (This Sprint)\n\n- [ ] Add integration tests for auth changes\n- [ ] Add backward compatibility tests for token validation\n- [ ] Update deployment runbook for auth changes\n- [ ] Add session migration logic for breaking changes\n\n### Ongoing\n\n- [ ] Require integration tests for auth PRs\n- [ ] Add \"breaking change\" checklist to PR template\n- [ ] Schedule auth regression suite in CI\n- [ ] Document token format in API docs\n\n## Fix Strategy\n\n### Proposed Fix\n\n```typescript\n\u002F\u002F src\u002Fauth\u002Fvalidate-token.ts\nexport function validateToken(token: string): TokenPayload {\n  const payload = jwt.verify(token, SECRET_KEY);\n\n  if (!payload.sub) {\n    throw new Error('Invalid token signature');\n  }\n\n  \u002F\u002F FIXED: Make issuer validation optional during migration\n  if (featureFlags.requireIssuer && !payload.iss) {\n    throw new Error('Token missing issuer claim');\n  }\n\n  return payload;\n}\n```\n\n### Migration Path\n\n1. Deploy fix with `requireIssuer: false`\n2. Update token generation to include `iss`\n3. Wait for all old tokens to expire (24 hours)\n4. Enable `requireIssuer: true`\n5. Remove feature flag after validation\n\n## Timeline\n\n```\n2026-01-10: v1.2.0 released (working)\n2026-01-15: Commit pqr901 merged (breaking change introduced)\n2026-01-15: No CI failure (tests didn't catch integration issue)\n2026-01-16: Deployed to production\n2026-01-16: User reports started (authentication failures)\n2026-01-28: Bisect identified root cause\n```\n\n**Time to Detection**: 13 days\n**Time to Root Cause**: Immediate (via bisect)\n\n## Prevention\n\nThis regression could have been prevented by:\n1. Integration test covering token validation end-to-end\n2. Staged rollout with feature flag\n3. Backward compatibility review in PR checklist\n4. Session invalidation notice to users\n\n## References\n\n- Bisect documentation: docs\u002Fdebugging\u002Fgit-bisect-guide.md\n- Breaking change policy: docs\u002Fdevelopment\u002Fbreaking-changes.md\n- Auth architecture: @.aiwg\u002Farchitecture\u002Fauth-architecture.md\n```\n\n## Usage Examples\n\n### Basic Regression Bisect\n\n```\nUser: \"Find which commit broke authentication\"\n\nSkill executes:\n1. Identify current failure: auth tests failing\n2. Find last known good: v1.2.0 (CI history)\n3. Run git bisect with test: npm test -- auth.test.ts\n4. Test 8 commits in 12 minutes\n5. Identify breaking commit: pqr901\n\nOutput:\n\"Regression Bisect Complete\n\nBreaking Commit: pqr901xyz\nAuthor: John Developer\nDate: 2026-01-15 14:32:00\nMessage: feat(auth): add JWT issuer validation\n\nRoot Cause: Required `iss` claim without backward compatibility\n\nFiles Changed:\n- src\u002Fauth\u002Fvalidate-token.ts (+15\u002F-5)\n- src\u002Fauth\u002Fgenerate-token.ts (+8\u002F-2)\n\nRecommendation: Make validation optional with feature flag\n\nFull report: .aiwg\u002Ftesting\u002Fregression-bisect-auth.md\"\n```\n\n### Bisect with Custom Test\n\n```\nUser: \"Bisect the payment processing regression\"\n\nSkill asks:\n\"What is a good commit (when it worked)?\"\nUser: \"v2.1.0\"\n\nSkill executes:\n1. git bisect start\n2. git bisect bad HEAD\n3. git bisect good v2.1.0\n4. git bisect run scripts\u002Fpayment-test.sh\n\nOutput:\n\"Breaking Commit: def456\nBroke payment refund logic\nChanged: src\u002Fpayments\u002Frefund.ts\n\nBisected 45 commits in 32 minutes\nSee .aiwg\u002Ftesting\u002Fregression-bisect-payment.md\"\n```\n\n### Automatic Good\u002FBad Detection\n\n```\nUser: \"When did the API start returning 500 errors?\"\n\nSkill analyzes:\n- Current state: 500 errors on \u002Fapi\u002Fusers\n- CI history: Last green build was 2 days ago\n- Auto-detect good: commit xyz789 (last green)\n- Auto-detect bad: HEAD (current failing)\n\nRuns bisect automatically.\n\nOutput:\n\"Regression introduced in commit abc123\n2 days ago by Jane Developer\nChanged database query logic\n\nBreaking change: Added JOIN without NULL check\nSee full analysis in .aiwg\u002Ftesting\u002Fregression-api-500.md\"\n```\n\n## Integration\n\nThis skill uses:\n- `regression-baseline`: Load known good states\n- `project-awareness`: Detect test commands and CI configuration\n- `test-coverage`: Identify relevant test suites\n- Git tools: For bisect operations and history analysis\n\n## Agent Orchestration\n\n```yaml\nagents:\n  analysis:\n    agent: debugger\n    focus: Root cause analysis and blame\n\n  testing:\n    agent: test-engineer\n    focus: Test execution and validation\n\n  documentation:\n    agent: technical-writer\n    focus: Report generation\n```\n\n## Configuration\n\n### Bisect Presets\n\n```yaml\nbisect_presets:\n  auth_regression:\n    test_command: npm test -- auth.test.ts\n    timeout: 300\n    auto_detect_good: true\n\n  api_regression:\n    test_command: npm run test:api\n    timeout: 600\n    auto_detect_good: true\n\n  performance_regression:\n    test_command: npm run benchmark\n    threshold: \"response_time \u003C 1000ms\"\n    timeout: 900\n```\n\n### Timeout Strategy\n\n```yaml\ntimeout_config:\n  per_commit_test: 600     # 10 minutes\n  total_bisect: 3600       # 1 hour max\n  on_timeout: skip_commit  # or fail_bisect\n```\n\n## Error Handling\n\n### Unstable Tests\n\nIf test results are inconsistent:\n1. Run test 3 times per commit\n2. Require 2\u002F3 passes to mark as good\n3. Flag flaky tests in report\n4. Recommend test stabilization\n\n### Build Failures\n\nIf commit doesn't build:\n1. Skip commit and mark as bad\n2. Continue bisect with next commit\n3. Flag build issues in report\n4. Note potential false positive\n\n### Timeout Exceeded\n\nIf bisect takes too long:\n1. Stop bisect at timeout\n2. Report progress so far\n3. Suggest narrowing commit range\n4. Offer to resume later\n\n## Output Locations\n\n- Bisect reports: `.aiwg\u002Ftesting\u002Fregression-bisect-{issue}.md`\n- Bisect logs: `.aiwg\u002Ftesting\u002Fbisect-logs\u002F`\n- Fix recommendations: `.aiwg\u002Fworking\u002Fregression-fixes\u002F`\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fschemas\u002Ftest\u002Fregression-schema.yaml\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fcommands\u002Fregression-test.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Fdebugger.md\n","# regression-bisect\n\nAutomatically identify the commit that introduced a regression using git bisect.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"git bisect\" → binary search for regression commit\n- \"when did this break\" → regression commit discovery\n\n## Purpose\n\nThis skill automates regression root cause analysis by:\n- Using git bisect to binary search commit history\n- Running automated tests at each bisect point\n- Identifying the exact commit that introduced a failure\n- Providing blame information and diff context\n- Suggesting potential fixes based on the breaking change\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Validates prerequisites**:\n   - Confirms reproducible failure exists\n   - Verifies test automation is available\n   - Ensures clean working directory\n   - Identifies good and bad commits\n\n2. **Executes git bisect**:\n   - Starts bisect with known good\u002Fbad commits\n   - Runs test suite at each bisect point\n   - Marks commits as good\u002Fbad based on test results\n   - Continues until breaking commit is found\n\n3. **Analyzes breaking commit**:\n   - Shows commit message and metadata\n   - Displays full diff of the breaking change\n   - Identifies changed files and functions\n   - Maps to requirements\u002Fissues if available\n\n4. **Provides context**:\n   - Shows blame information for affected code\n   - Lists related commits in the area\n   - Identifies potential reviewers (commit authors)\n   - Suggests rollback or fix strategies\n\n5. **Documents findings**:\n   - Creates regression analysis report\n   - Links to issue tracker if available\n   - Updates regression baseline with findings\n   - Generates timeline of when regression was introduced\n\n## Bisect Configuration\n\n### Manual Bisect\n\n```yaml\nbisect_manual:\n  mode: interactive\n  good_commit: v1.2.0  # Known good state\n  bad_commit: HEAD     # Known bad state\n  test_command: \"npm test -- auth.test.ts\"\n\n  workflow:\n    - git bisect start\n    - git bisect bad HEAD\n    - git bisect good v1.2.0\n    - git bisect run npm test -- auth.test.ts\n```\n\n### Automated Bisect\n\n```yaml\nbisect_automated:\n  mode: automated\n  detect_good: auto  # Use last passing CI build\n  detect_bad: auto   # Use current failing state\n  test_command: \"npm test\"\n  timeout: 600       # 10 minutes per commit test\n\n  auto_detection:\n    - check_ci_history\n    - find_last_green_build\n    - set_as_good_commit\n    - use_current_as_bad\n```\n\n### Bisect with Custom Test\n\n```yaml\nbisect_custom:\n  mode: custom\n  test_script: scripts\u002Fregression-test.sh\n  success_exit_code: 0\n  failure_exit_code: 1\n\n  test_script_template: |\n    #!\u002Fbin\u002Fbash\n    # Custom regression test\n    npm run build || exit 1\n    npm test -- specific-test.ts || exit 1\n    .\u002Fvalidate-output.sh || exit 1\n    exit 0\n```\n\n## Bisect Report Format\n\n```markdown\n# Regression Bisect Report\n\n**Date**: 2026-01-28\n**Issue**: Authentication fails on login\n**Analyzer**: regression-bisect skill\n\n## Executive Summary\n\n**Breaking Commit**: abc123def456\n**Author**: John Developer \u003Cjohn@example.com>\n**Date**: 2026-01-15 14:32:00\n**Bisect Duration**: 8 commits tested, 12 minutes\n\n**Root Cause**: Token validation logic changed to require `iss` claim\n\n## Bisect Results\n\n### Commit Range\n\n- **Good**: v1.2.0 (2026-01-10) - 50 commits ago\n- **Bad**: HEAD (2026-01-28) - Current state\n- **Breaking**: abc123def456 (2026-01-15) - 25 commits into range\n\n### Bisect Log\n\n| Commit | Status | Test Result | Duration |\n|--------|--------|-------------|----------|\n| abc123 | ❌ Bad | auth.test.ts failed | 45s |\n| def789 | ❌ Bad | auth.test.ts failed | 42s |\n| ghi012 | ✅ Good | all tests passed | 48s |\n| jkl345 | ✅ Good | all tests passed | 46s |\n| mno678 | ❌ Bad | auth.test.ts failed | 44s |\n| **pqr901** | **❌ Breaking** | **First failure** | **43s** |\n| stu234 | ✅ Good | all tests passed | 47s |\n| vwx567 | ✅ Good | all tests passed | 45s |\n\n## Breaking Commit Analysis\n\n### Commit Details\n\n```\ncommit pqr901xyz\nAuthor: John Developer \u003Cjohn@example.com>\nDate:   Mon Jan 15 14:32:00 2026 +0000\n\n    feat(auth): add JWT issuer validation\n\n    - Require `iss` claim in JWT tokens\n    - Validate issuer against whitelist\n    - Update token generation to include issuer\n\n    Closes #456\n```\n\n### Files Changed\n\n| File | Changes | Impact |\n|------|---------|--------|\n| src\u002Fauth\u002Fvalidate-token.ts | +15\u002F-5 | High - Core validation logic |\n| src\u002Fauth\u002Fgenerate-token.ts | +8\u002F-2 | Medium - Token generation |\n| test\u002Fauth\u002Ftoken.test.ts | +25\u002F-0 | Low - Test updates |\n\n### Diff Analysis\n\n```diff\ndiff --git a\u002Fsrc\u002Fauth\u002Fvalidate-token.ts b\u002Fsrc\u002Fauth\u002Fvalidate-token.ts\nindex abc123..def456 100644\n--- a\u002Fsrc\u002Fauth\u002Fvalidate-token.ts\n+++ b\u002Fsrc\u002Fauth\u002Fvalidate-token.ts\n@@ -15,6 +15,11 @@ export function validateToken(token: string): TokenPayload {\n     throw new Error('Invalid token signature');\n   }\n\n+  \u002F\u002F NEW: Require issuer claim\n+  if (!payload.iss) {\n+    throw new Error('Token missing issuer claim');\n+  }\n+\n   return payload;\n }\n```\n\n**Breaking Change**: The new validation requires `iss` claim, but existing tokens don't include it.\n\n## Root Cause\n\nThe commit added mandatory `iss` (issuer) claim validation without:\n1. Updating existing token generation (added in same commit but missed migration)\n2. Providing backward compatibility for existing tokens\n3. Coordinating with deployment to invalidate old sessions\n\n**Impact**: All existing user sessions became invalid immediately.\n\n## Affected Components\n\n- **Authentication**: Token validation fails for all existing sessions\n- **API Gateway**: 401 errors on all authenticated endpoints\n- **User Experience**: Force logout of all active users\n\n## Related Information\n\n### Traceability\n\n- **Issue**: #456 - \"Add JWT issuer validation for security\"\n- **Requirement**: @.aiwg\u002Frequirements\u002Fuse-cases\u002FUC-AUTH-003-jwt-security.md\n- **Review**: PR #789 - Merged without integration testing\n\n### Similar Issues\n\nGit history shows related changes:\n- commit xyz789 (2026-01-10): Initial JWT implementation\n- commit uvw456 (2026-01-12): Add JWT expiration validation\n- commit pqr901 (2026-01-15): Add JWT issuer validation ← BREAKING\n\n### Code Ownership\n\n```\nsrc\u002Fauth\u002Fvalidate-token.ts:\n  85% John Developer \u003Cjohn@example.com>\n  10% Jane Reviewer \u003Cjane@example.com>\n   5% Bob Maintainer \u003Cbob@example.com>\n```\n\n## Recommendations\n\n### Immediate (Hotfix)\n\n- [ ] **Option A**: Revert commit pqr901 to restore service\n- [ ] **Option B**: Make `iss` validation optional with feature flag\n- [ ] **Option C**: Deploy token refresh that includes `iss` claim\n\n**Recommended**: Option B - Feature flag allows gradual rollout\n\n### Short-term (This Sprint)\n\n- [ ] Add integration tests for auth changes\n- [ ] Add backward compatibility tests for token validation\n- [ ] Update deployment runbook for auth changes\n- [ ] Add session migration logic for breaking changes\n\n### Ongoing\n\n- [ ] Require integration tests for auth PRs\n- [ ] Add \"breaking change\" checklist to PR template\n- [ ] Schedule auth regression suite in CI\n- [ ] Document token format in API docs\n\n## Fix Strategy\n\n### Proposed Fix\n\n```typescript\n\u002F\u002F src\u002Fauth\u002Fvalidate-token.ts\nexport function validateToken(token: string): TokenPayload {\n  const payload = jwt.verify(token, SECRET_KEY);\n\n  if (!payload.sub) {\n    throw new Error('Invalid token signature');\n  }\n\n  \u002F\u002F FIXED: Make issuer validation optional during migration\n  if (featureFlags.requireIssuer && !payload.iss) {\n    throw new Error('Token missing issuer claim');\n  }\n\n  return payload;\n}\n```\n\n### Migration Path\n\n1. Deploy fix with `requireIssuer: false`\n2. Update token generation to include `iss`\n3. Wait for all old tokens to expire (24 hours)\n4. Enable `requireIssuer: true`\n5. Remove feature flag after validation\n\n## Timeline\n\n```\n2026-01-10: v1.2.0 released (working)\n2026-01-15: Commit pqr901 merged (breaking change introduced)\n2026-01-15: No CI failure (tests didn't catch integration issue)\n2026-01-16: Deployed to production\n2026-01-16: User reports started (authentication failures)\n2026-01-28: Bisect identified root cause\n```\n\n**Time to Detection**: 13 days\n**Time to Root Cause**: Immediate (via bisect)\n\n## Prevention\n\nThis regression could have been prevented by:\n1. Integration test covering token validation end-to-end\n2. Staged rollout with feature flag\n3. Backward compatibility review in PR checklist\n4. Session invalidation notice to users\n\n## References\n\n- Bisect documentation: docs\u002Fdebugging\u002Fgit-bisect-guide.md\n- Breaking change policy: docs\u002Fdevelopment\u002Fbreaking-changes.md\n- Auth architecture: @.aiwg\u002Farchitecture\u002Fauth-architecture.md\n```\n\n## Usage Examples\n\n### Basic Regression Bisect\n\n```\nUser: \"Find which commit broke authentication\"\n\nSkill executes:\n1. Identify current failure: auth tests failing\n2. Find last known good: v1.2.0 (CI history)\n3. Run git bisect with test: npm test -- auth.test.ts\n4. Test 8 commits in 12 minutes\n5. Identify breaking commit: pqr901\n\nOutput:\n\"Regression Bisect Complete\n\nBreaking Commit: pqr901xyz\nAuthor: John Developer\nDate: 2026-01-15 14:32:00\nMessage: feat(auth): add JWT issuer validation\n\nRoot Cause: Required `iss` claim without backward compatibility\n\nFiles Changed:\n- src\u002Fauth\u002Fvalidate-token.ts (+15\u002F-5)\n- src\u002Fauth\u002Fgenerate-token.ts (+8\u002F-2)\n\nRecommendation: Make validation optional with feature flag\n\nFull report: .aiwg\u002Ftesting\u002Fregression-bisect-auth.md\"\n```\n\n### Bisect with Custom Test\n\n```\nUser: \"Bisect the payment processing regression\"\n\nSkill asks:\n\"What is a good commit (when it worked)?\"\nUser: \"v2.1.0\"\n\nSkill executes:\n1. git bisect start\n2. git bisect bad HEAD\n3. git bisect good v2.1.0\n4. git bisect run scripts\u002Fpayment-test.sh\n\nOutput:\n\"Breaking Commit: def456\nBroke payment refund logic\nChanged: src\u002Fpayments\u002Frefund.ts\n\nBisected 45 commits in 32 minutes\nSee .aiwg\u002Ftesting\u002Fregression-bisect-payment.md\"\n```\n\n### Automatic Good\u002FBad Detection\n\n```\nUser: \"When did the API start returning 500 errors?\"\n\nSkill analyzes:\n- Current state: 500 errors on \u002Fapi\u002Fusers\n- CI history: Last green build was 2 days ago\n- Auto-detect good: commit xyz789 (last green)\n- Auto-detect bad: HEAD (current failing)\n\nRuns bisect automatically.\n\nOutput:\n\"Regression introduced in commit abc123\n2 days ago by Jane Developer\nChanged database query logic\n\nBreaking change: Added JOIN without NULL check\nSee full analysis in .aiwg\u002Ftesting\u002Fregression-api-500.md\"\n```\n\n## Integration\n\nThis skill uses:\n- `regression-baseline`: Load known good states\n- `project-awareness`: Detect test commands and CI configuration\n- `test-coverage`: Identify relevant test suites\n- Git tools: For bisect operations and history analysis\n\n## Agent Orchestration\n\n```yaml\nagents:\n  analysis:\n    agent: debugger\n    focus: Root cause analysis and blame\n\n  testing:\n    agent: test-engineer\n    focus: Test execution and validation\n\n  documentation:\n    agent: technical-writer\n    focus: Report generation\n```\n\n## Configuration\n\n### Bisect Presets\n\n```yaml\nbisect_presets:\n  auth_regression:\n    test_command: npm test -- auth.test.ts\n    timeout: 300\n    auto_detect_good: true\n\n  api_regression:\n    test_command: npm run test:api\n    timeout: 600\n    auto_detect_good: true\n\n  performance_regression:\n    test_command: npm run benchmark\n    threshold: \"response_time \u003C 1000ms\"\n    timeout: 900\n```\n\n### Timeout Strategy\n\n```yaml\ntimeout_config:\n  per_commit_test: 600     # 10 minutes\n  total_bisect: 3600       # 1 hour max\n  on_timeout: skip_commit  # or fail_bisect\n```\n\n## Error Handling\n\n### Unstable Tests\n\nIf test results are inconsistent:\n1. Run test 3 times per commit\n2. Require 2\u002F3 passes to mark as good\n3. Flag flaky tests in report\n4. Recommend test stabilization\n\n### Build Failures\n\nIf commit doesn't build:\n1. Skip commit and mark as bad\n2. Continue bisect with next commit\n3. Flag build issues in report\n4. Note potential false positive\n\n### Timeout Exceeded\n\nIf bisect takes too long:\n1. Stop bisect at timeout\n2. Report progress so far\n3. Suggest narrowing commit range\n4. Offer to resume later\n\n## Output Locations\n\n- Bisect reports: `.aiwg\u002Ftesting\u002Fregression-bisect-{issue}.md`\n- Bisect logs: `.aiwg\u002Ftesting\u002Fbisect-logs\u002F`\n- Fix recommendations: `.aiwg\u002Fworking\u002Fregression-fixes\u002F`\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fschemas\u002Ftest\u002Fregression-schema.yaml\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fcommands\u002Fregression-test.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Fdebugger.md\n",{"name":5,"namespace":48,"platforms":49,"description":7},"aiwg",[50],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fregression-bisect",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add jmagly\u002Faiwg --skill regression-bisect",{"tool":67,"command":68},"bunx","bunx skills add jmagly\u002Faiwg --skill regression-bisect",{"tool":70,"command":71},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill regression-bisect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fregression-bisect\u002FSKILL.md",true,[],[76,84,89,116,136,141],{"skillNo":77,"name":78,"nameZh":17,"description":79,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":83},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":85,"name":78,"nameZh":17,"description":79,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":83},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":17,"description":92,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":43},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":117,"name":118,"nameZh":17,"description":119,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":43},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[123,124,125,126,127,128,101,129,107,114,109,130,97,131,111,132,133,115,134,135],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":137,"name":91,"nameZh":17,"description":92,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":43},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[96,97,98,113,114,115,108,112,104,100,101,102,103,105,106,107,99,109,110,111],{"skillNo":142,"name":118,"nameZh":17,"description":119,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":43},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[123,124,135,134,127,133,132,111,126,128,101,129,107,125,109,130,97,115,114,131]]