Skip to content

[pull] main from PaulDuvall:main#23

Merged
pull[bot] merged 6 commits into
TheTechOddBug:mainfrom
PaulDuvall:main
May 22, 2026
Merged

[pull] main from PaulDuvall:main#23
pull[bot] merged 6 commits into
TheTechOddBug:mainfrom
PaulDuvall:main

Conversation

@pull

@pull pull Bot commented May 22, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Paul Duvall added 6 commits May 22, 2026 10:47
Pair deterministic detectors with LLM remediators in an event-driven
loop so codified rule violations are caught and fixed automatically
before the AI session continues.

- README.md: pattern section, reference-table row, overview diagram
  node, Pattern Dependencies diagram node, cross-links from Event
  Automation, Error Resolution, and Guided Refactoring; pattern count
  29
- patterns.yaml: autonomous-remediation entry
- index.html: overview diagram sync (new node + click link)
- examples/autonomous-remediation/: working PostToolUse hook with AST
  smell detectors, secret scanner, fix-hint dictionary, retry budget,
  skip-list config

Source: paulmduvall.com Feb 24, 2026 post on Claude Code hooks.
Add a callout in the Readiness Assessment pattern pointing readers to
the free scorecard at redactedventures.com/scorecard so they can score
themselves against the framework instead of doing it manually.

Also fix a broken anti-pattern anchor in the autonomous-remediation
example README (sub-headings under a pattern don't get their own
anchors).
CI's pattern-count check caught that scripts/update-pattern-count.py
needed to bump the index.html badge after the Autonomous Remediation
pattern landed. Re-ran the script so README and index.html agree.

Closes #17
The previous Choice Generation pattern reduced to 'ask one model for N
options' — table stakes in 2026 since every IDE assistant ships
alternative-completions natively. Reframe around running the same task
across multiple frontier models (Claude/GPT-5/Gemini) where the
disagreement is the eval signal.

- README.md: rewritten pattern body with fan-out shell script,
  results-reading table, anti-patterns 'Single-Model Bias' and
  'Voting Theater'. Old one-model-multiple-options content preserved
  as a 'Single-Model Alternatives' subsection. Updated reference
  table, top overview + decision-tree Mermaid diagrams (CG -> CMV),
  Pattern Selection prose, Success Metrics list, and 8 cross-pattern
  Related Patterns lines.
- patterns.yaml: id/anchor/description/related-list updated.
- index.html: overview diagram + Quick Start sync.
- experiments/README.md + asynchronous-research/README.md: 3
  cross-document links rewritten.
- PATTERN_MIGRATION_GUIDE.md: appended rename + anchor mapping rows so
  the audit trail stays continuous.

Pattern count unchanged at 29.
Following the catalog review, five patterns whose standalone slot was no
longer load-bearing have been merged, demoted, or archived:

- Question Generation -> merged into Planned Implementation as the
  'Interview Phase' opening section. Same idea at a different zoom
  level; Planned Implementation already began with 'Problem Definition.'
- Constrained Generation -> merged into Planned Implementation as the
  'Constrain Phase' between interview and plan. Standalone was a 25-line
  stub with zero incoming dependents.
- Automated Traceability -> merged into Spec-Driven Development as the
  'Automated Traceability' subsection. Traceability is already implicit
  in Spec-Driven's anchor + footnote system.
- Guided Architecture -> demoted to experiments/README.md (orphan, broad
  'apply DDD with AI' framing that needs tightening before promotion).
- Baseline Management -> archived. 20-line stub on AI-set CloudWatch
  thresholds; no incoming dependents and no plan to develop further.

Plus structural cleanup:
- Reference table: 5 rows removed, Planned Implementation row rewritten
- Top overview mermaid: 4 nodes removed (AT, CnG, GA, BM)
- Pattern Dependencies mermaid: Phase 3 trimmed, decision tree updated
- Pattern Selection prose: 8 cross-references rewired
- Related Patterns lines on 3 surviving patterns updated
- Operations section: empty Deployment + Monitoring subcategory headers
  removed (single remaining pattern didn't justify subcategories)
- index.html: overview diagram + Quick Start synced
- patterns.yaml: 5 entries removed, planned-implementation rewritten
- Pattern count badge: 29 -> 24

External documentation that referenced the deleted anchors has been
rewired to surviving patterns (docs/, examples/, experiments/).

PATTERN_MIGRATION_GUIDE.md records every rename and anchor mapping so
the audit trail stays continuous.

tests/test_diagram.py: REQUIRED_DIAGRAM_PATTERNS class attribute now
holds the list instead of a redundant {name: name} dict, dropping
test_diagram_includes_all_patterns from 27 lines to 4. Pre-existing
unrelated violations in the same file (duplicate fixtures across three
test classes, three long unrelated test functions) are tracked
separately.
Dependabot flagged two open advisories for pytest < 9.0.3 (vulnerable
tmpdir handling) in:
- examples/spec-driven-development/requirements.txt
- examples/security-sandbox/requirements-sandbox.txt

These are illustrative requirements files for the examples — not on the
project's CI test path — but they're the version pins readers copy when
they clone an example. Strict == pins meant Dependabot couldn't auto-
upgrade them.

Loosened all pins to >= ranges (matching the style of requests>=2.32.4
already present in the sandbox file). Floors set to current versions
with known CVE fixes so new clones don't pick up known-vulnerable
versions on day one. Bumped at the same time:
- pytest-cov 4.1 -> 5.0
- pytest-mock 3.12 -> 3.14
- flake8 6.1 -> 7.0
- mypy 1.7 -> 1.11
- pre-commit 3.6 -> 3.7.1
- pydantic 2.5 -> 2.7.4
- ipython 8.17 -> 8.26
- rich 13.7 -> 13.7.1

Closes GHSA-7w4j (Dependabot alerts #11 and #12 on PaulDuvall/ai-development-patterns).
@pull pull Bot locked and limited conversation to collaborators May 22, 2026
@pull pull Bot added the ⤵️ pull label May 22, 2026
@pull pull Bot merged commit 8df69f7 into TheTechOddBug:main May 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants