Skip to content

Commit 2c80cb5

Browse files
authored
feat(patterns) author Tolerant Reader, Dual LLM Pattern, Lethal Trifecta (#417)
Three new entries across families 06-enterprise-application-architecture and 15-security, all 18 dimensions, live-fetched citations only. Tolerant Reader. sourced from Martin Fowler's own bliki article, Postel's Law applied to service interface evolution, corroborated by RFC 1122 and the Wikipedia robustness-principle overview. cross-references the already-published Consumer-Driven Contract Test entry in family 10-microservices, which the source itself names as the provider-side companion practice. Dual LLM Pattern. sourced from Simon Willison's own blog, the privileged and quarantined LLM split for resisting prompt injection, honestly reporting the pattern's own self-stated cost ("it's pretty bad") and its explicit limitation against social engineering of the human operator. Lethal Trifecta Threat Model. sourced from Simon Willison's own blog, the three named conditions, private data access, untrusted content exposure, external communication, whose combination (not any single one) is the danger. cross-references Dual LLM Pattern as one concrete architecture for avoiding the combination. Manually cross-checked both security entries against the already-published Prompt Injection Defense and Sub-Agent Isolation entries in family 17-ai-agentic and confirmed distinct scope (defense catalogue and parallel-worker context isolation respectively, neither the same privileged/quarantined security split), rather than trusting the duplicate-checker's keyword heuristic alone, per the lesson from the prior batch's near-miss. Generators re-run in order, indexes, by-problem and by-language, the three queue entries removed, refs re-validated, catalogue status regenerated. README badges and both affected family table rows synced against the real file count, family 06, 48 to 49 published, 12 to 11 remaining. family 15, 35 to 37 published, 3 to 1 remaining. Queue at 26 of 892.
1 parent 87c216d commit 2c80cb5

13 files changed

Lines changed: 948 additions & 50 deletions

File tree

‎.ref-cache.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,6 +1990,7 @@
19901990
"https://en.wikipedia.org/wiki/Reinventing_the_square_wheel": 200,
19911991
"https://en.wikipedia.org/wiki/Rendezvous_hashing": 200,
19921992
"https://en.wikipedia.org/wiki/Robert_C._Martin": 200,
1993+
"https://en.wikipedia.org/wiki/Robustness_principle": 200,
19931994
"https://en.wikipedia.org/wiki/Rule_of_three_(computer_programming)": 200,
19941995
"https://en.wikipedia.org/wiki/SOLID": 200,
19951996
"https://en.wikipedia.org/wiki/Semaphore_(programming)": 200,
@@ -3255,6 +3256,7 @@
32553256
"https://martinfowler.com/bliki/TellDontAsk.html": 200,
32563257
"https://martinfowler.com/bliki/TestDouble.html": 200,
32573258
"https://martinfowler.com/bliki/TestPyramid.html": 200,
3259+
"https://martinfowler.com/bliki/TolerantReader.html": 200,
32583260
"https://martinfowler.com/bliki/UbiquitousLanguage.html": 200,
32593261
"https://martinfowler.com/bliki/UnitTest.html": 200,
32603262
"https://martinfowler.com/bliki/ValueObject.html": 200,
@@ -3968,6 +3970,7 @@
39683970
"https://simonwillison.net/2022/Sep/12/prompt-injection/": 200,
39693971
"https://simonwillison.net/2023/Apr/25/dual-llm-pattern/": 200,
39703972
"https://simonwillison.net/2024/Aug/6/openai-structured-outputs/": 200,
3973+
"https://simonwillison.net/2025/Apr/11/camel/": 200,
39713974
"https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/": 200,
39723975
"https://sinonjs.org/": 200,
39733976
"https://sinonjs.org/concepts/spies/": 200,

‎README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ primary sources, carries eighteen mandatory dimensions, and cites every claim.
55

66
![License](https://img.shields.io/badge/license-CC%20BY%204.0-blue)
77
![Families](https://img.shields.io/badge/families-29-informational)
8-
![Entries](https://img.shields.io/badge/entries-863%20published%20%2F%20892%20planned-yellow)
8+
![Entries](https://img.shields.io/badge/entries-866%20published%20%2F%20892%20planned-yellow)
99
![Dimensions per entry](https://img.shields.io/badge/dimensions%20per%20entry-18-green)
1010
![Citations](https://img.shields.io/badge/citations-verified%20in%20CI-brightgreen)
1111
![Original prose](https://img.shields.io/badge/prose-100%25%20original-brightgreen)
@@ -14,10 +14,10 @@ primary sources, carries eighteen mandatory dimensions, and cites every claim.
1414
<!-- BADGES:AUTOGEN:START -->
1515
![CI](https://github.com/mjmirza/patterns/actions/workflows/ci.yml/badge.svg?branch=main)
1616
![Schema version](https://img.shields.io/badge/schema-v1.0-informational)
17-
![Published entries](https://img.shields.io/badge/published-863-brightgreen)
18-
![Planned entries](https://img.shields.io/badge/planned-29-lightgrey)
19-
![Catalogue completion](https://img.shields.io/badge/completion-96.7%25-yellow)
20-
![References checked](https://img.shields.io/badge/references%20checked-5030-brightgreen)
17+
![Published entries](https://img.shields.io/badge/published-866-brightgreen)
18+
![Planned entries](https://img.shields.io/badge/planned-26-lightgrey)
19+
![Catalogue completion](https://img.shields.io/badge/completion-97.1%25-yellow)
20+
![References checked](https://img.shields.io/badge/references%20checked-5033-brightgreen)
2121
![Stale entries](https://img.shields.io/badge/stale%20entries-0-brightgreen)
2222
![Code examples tested](https://img.shields.io/badge/code%20examples-compiled%20in%20CI-brightgreen)
2323
<!-- BADGES:AUTOGEN:END -->
@@ -97,7 +97,7 @@ A folder's slug always matches the slug linked here, enforced in CI. See
9797
| 03 | [Refactoring Techniques](patterns/03-refactoring/) | Fowler, Refactoring 2nd ed | 66 | 0 | 66 |
9898
| 04 | [Principles and Laws](patterns/04-principles-and-laws/) | Martin, Larman, Brewer, Conway | 42 | 0 | 42 |
9999
| 05 | [Architectural Patterns](patterns/05-architectural/) | Buschmann POSA 1, Bass SEI | 31 | 0 | 31 |
100-
| 06 | [Enterprise Application Architecture](patterns/06-enterprise-application-architecture/) | Fowler, PoEAA | 48 | 12 | 60 |
100+
| 06 | [Enterprise Application Architecture](patterns/06-enterprise-application-architecture/) | Fowler, PoEAA | 49 | 11 | 60 |
101101
| 07 | [Enterprise Integration](patterns/07-integration/) | Hohpe and Woolf | 54 | 0 | 54 |
102102
| 08 | [Cloud and Distributed](patterns/08-cloud-distributed/) | Azure Architecture Center | 44 | 0 | 44 |
103103
| 09 | [Concurrency and Parallelism](patterns/09-concurrency/) | Schmidt POSA 2 | 40 | 0 | 40 |
@@ -106,7 +106,7 @@ A folder's slug always matches the slug linked here, enforced in CI. See
106106
| 12 | [Data and Storage](patterns/12-data-storage/) | Kleppmann | 41 | 4 | 45 |
107107
| 13 | [Frontend and UI](patterns/13-frontend-ui/) | Framework documentation | 34 | 0 | 34 |
108108
| 14 | [Testing](patterns/14-testing/) | Meszaros, xUnit Test Patterns | 30 | 0 | 30 |
109-
| 15 | [Security](patterns/15-security/) | OWASP ASVS | 35 | 3 | 38 |
109+
| 15 | [Security](patterns/15-security/) | OWASP ASVS | 37 | 1 | 38 |
110110
| 16 | [Functional Programming](patterns/16-functional/) | Category theory in practice | 39 | 0 | 39 |
111111
| 17 | [AI and Agentic](patterns/17-ai-agentic/) | Papers and vendor engineering, 2023 to 2026 | 58 | 7 | 65 |
112112
| 18 | [Anti-Patterns](patterns/18-anti-patterns/) | Brown et al, AntiPatterns | 51 | 0 | 51 |

‎dist/catalogue-status.csv‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ family,name,published,planned,target,percent
44
03-refactoring,Refactoring Techniques,66,0,66,100.0
55
04-principles-and-laws,Principles and Laws,42,0,42,100.0
66
05-architectural,Architectural Patterns,31,0,31,100.0
7-
06-enterprise-application-architecture,Enterprise Application Architecture,48,12,60,80.0
7+
06-enterprise-application-architecture,Enterprise Application Architecture,49,11,60,81.7
88
07-integration,Enterprise Integration,54,0,54,100.0
99
08-cloud-distributed,Cloud and Distributed,44,0,44,100.0
1010
09-concurrency,Concurrency and Parallelism,40,0,40,100.0
@@ -13,7 +13,7 @@ family,name,published,planned,target,percent
1313
12-data-storage,Data and Storage,41,4,45,91.1
1414
13-frontend-ui,Frontend and UI,34,0,34,100.0
1515
14-testing,Testing,30,0,30,100.0
16-
15-security,Security,35,3,38,92.1
16+
15-security,Security,37,1,38,97.4
1717
16-functional,Functional Programming,39,0,39,100.0
1818
17-ai-agentic,AI and Agentic,58,7,65,89.2
1919
18-anti-patterns,Anti-Patterns,51,0,51,100.0

‎dist/catalogue-status.json‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"generated_by": "tools/gen-catalogue-status.py",
3-
"published_total": 863,
3+
"published_total": 866,
44
"target_total": 892,
55
"families_total": 29,
66
"families_complete": 22,
77
"stale_entries": 0,
8-
"references_checked": 5030,
8+
"references_checked": 5033,
99
"rows": [
1010
{
1111
"family": "01-design-patterns-gof",
@@ -78,13 +78,13 @@
7878
"family": "06-enterprise-application-architecture",
7979
"name": "Enterprise Application Architecture",
8080
"origin": "Fowler, PoEAA",
81-
"published": 48,
82-
"planned": 12,
81+
"published": 49,
82+
"planned": 11,
8383
"target": 60,
84-
"percent": 80.0,
84+
"percent": 81.7,
8585
"maturity": {
8686
"canonical": 43,
87-
"established": 5
87+
"established": 6
8888
}
8989
},
9090
{
@@ -198,14 +198,14 @@
198198
"family": "15-security",
199199
"name": "Security",
200200
"origin": "OWASP ASVS",
201-
"published": 35,
202-
"planned": 3,
201+
"published": 37,
202+
"planned": 1,
203203
"target": 38,
204-
"percent": 92.1,
204+
"percent": 97.4,
205205
"maturity": {
206206
"established": 27,
207207
"canonical": 7,
208-
"emerging": 1
208+
"emerging": 3
209209
}
210210
},
211211
{

‎docs/AUTHORING-QUEUE.json‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -83,34 +83,13 @@
8383
"path": "patterns/06-enterprise-application-architecture/intercepting-filter.md",
8484
"focus": ""
8585
},
86-
{
87-
"name": "Tolerant Reader",
88-
"slug": "tolerant-reader",
89-
"category": "enterprise application architecture",
90-
"path": "patterns/06-enterprise-application-architecture/tolerant-reader.md",
91-
"focus": ""
92-
},
9386
{
9487
"name": "Collecting Parameter",
9588
"slug": "collecting-parameter",
9689
"category": "enterprise application architecture",
9790
"path": "patterns/06-enterprise-application-architecture/collecting-parameter.md",
9891
"focus": ""
9992
},
100-
{
101-
"name": "Dual LLM Pattern",
102-
"slug": "dual-llm-pattern",
103-
"category": "security",
104-
"path": "patterns/15-security/dual-llm-pattern.md",
105-
"focus": ""
106-
},
107-
{
108-
"name": "Lethal Trifecta Threat Model",
109-
"slug": "lethal-trifecta-threat-model",
110-
"category": "security",
111-
"path": "patterns/15-security/lethal-trifecta-threat-model.md",
112-
"focus": ""
113-
},
11493
{
11594
"name": "Egress Lockdown",
11695
"slug": "egress-lockdown",

‎docs/BY-LANGUAGE.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ This matrix tracks which patterns provide runnable code examples in each languag
250250
| [Table Data Gateway](../patterns/06-enterprise-application-architecture/table-data-gateway.md) | Enterprise Application Architecture | | | Yes | | | Yes | | | Yes |
251251
| [Table Module](../patterns/06-enterprise-application-architecture/table-module.md) | Enterprise Application Architecture | | | Yes | | | Yes | | | Yes |
252252
| [Template View](../patterns/06-enterprise-application-architecture/template-view.md) | Enterprise Application Architecture | | | Yes | | | Yes | | | Yes |
253+
| [Tolerant Reader](../patterns/06-enterprise-application-architecture/tolerant-reader.md) | Enterprise Application Architecture | | | Yes | | | Yes | | | Yes |
253254
| [Transaction Script](../patterns/06-enterprise-application-architecture/transaction-script.md) | Enterprise Application Architecture | | | Yes | | | Yes | | | Yes |
254255
| [Transform View](../patterns/06-enterprise-application-architecture/transform-view.md) | Enterprise Application Architecture | | | Yes | | | Yes | | | Yes |
255256
| [Two Step View](../patterns/06-enterprise-application-architecture/two-step-view.md) | Enterprise Application Architecture | | | Yes | | | Yes | | | Yes |
@@ -589,13 +590,15 @@ This matrix tracks which patterns provide runnable code examples in each languag
589590
| [Complete Mediation](../patterns/15-security/complete-mediation.md) | Security | | | Yes | | | Yes | | | Yes |
590591
| [Content Security Policy](../patterns/15-security/content-security-policy.md) | Security | | | Yes | | | Yes | | | Yes |
591592
| [Defense in Depth](../patterns/15-security/defense-in-depth.md) | Security | | | Yes | | | Yes | | | Yes |
593+
| [Dual LLM Pattern](../patterns/15-security/dual-llm-pattern.md) | Security | | | Yes | | | Yes | | | Yes |
592594
| [Envelope Encryption](../patterns/15-security/envelope-encryption.md) | Security | | | Yes | | | Yes | | | Yes |
593595
| [Fail Securely](../patterns/15-security/fail-securely.md) | Security | | | Yes | | | Yes | Yes | | |
594596
| [Idempotency Key](../patterns/15-security/idempotency-key.md) | Security | | | Yes | | | Yes | | | Yes |
595597
| [Input Validation](../patterns/15-security/input-validation.md) | Security | | | Yes | | | Yes | | | Yes |
596598
| [JWT](../patterns/15-security/jwt.md) | Security | | | Yes | | | Yes | | Yes | |
597599
| [Key Rotation](../patterns/15-security/key-rotation.md) | Security | | | Yes | | | Yes | | | Yes |
598600
| [Least Privilege](../patterns/15-security/least-privilege.md) | Security | | | Yes | | | Yes | | | Yes |
601+
| [Lethal Trifecta Threat Model](../patterns/15-security/lethal-trifecta-threat-model.md) | Security | | | Yes | | | Yes | | | Yes |
599602
| [Mutual TLS](../patterns/15-security/mutual-tls.md) | Security | | | Yes | | | Yes | | | Yes |
600603
| [OAuth 2.1 Flows](../patterns/15-security/oauth-2-1-flows.md) | Security | | | Yes | | | Yes | | | Yes |
601604
| [OpenID Connect](../patterns/15-security/openid-connect.md) | Security | | | Yes | | | Yes | | | Yes |
@@ -1221,6 +1224,7 @@ These patterns contain runnable code examples written in Go:
12211224
- [Domain-based](../patterns/04-principles-and-laws/domain-based.md) (Principles and Laws)
12221225
- [Double-Checked Locking](../patterns/09-concurrency/double-checked-locking.md) (Concurrency and Parallelism)
12231226
- [Drift Detection](../patterns/25-mlops/drift-detection.md) (MLOps)
1227+
- [Dual LLM Pattern](../patterns/15-security/dual-llm-pattern.md) (Security)
12241228
- [Dummy](../patterns/14-testing/dummy.md) (Testing)
12251229
- [Duplicate Code](../patterns/02-code-smells/duplicate-code.md) (Code Smells)
12261230
- [Durable Execution](../patterns/23-workflow-orchestration/durable-execution.md) (Workflow and Orchestration)
@@ -1347,6 +1351,7 @@ These patterns contain runnable code examples written in Go:
13471351
- [Least Privilege](../patterns/15-security/least-privilege.md) (Security)
13481352
- [Least to Most](../patterns/17-ai-agentic/least-to-most.md) (AI and Agentic)
13491353
- [Lens](../patterns/16-functional/lens.md) (Functional Programming)
1354+
- [Lethal Trifecta Threat Model](../patterns/15-security/lethal-trifecta-threat-model.md) (Security)
13501355
- [Liskov Substitution Principle](../patterns/04-principles-and-laws/liskov-substitution-principle.md) (Principles and Laws)
13511356
- [Load Balancing](../patterns/08-cloud-distributed/load-balancing.md) (Cloud and Distributed)
13521357
- [Lock Striping](../patterns/09-concurrency/lock-striping.md) (Concurrency and Parallelism)
@@ -1658,6 +1663,7 @@ These patterns contain runnable code examples written in Go:
16581663
- [Token Binding and DPoP](../patterns/15-security/token-binding-and-dpop.md) (Security)
16591664
- [Token Budget](../patterns/17-ai-agentic/token-budget.md) (AI and Agentic)
16601665
- [Token-based Authentication](../patterns/15-security/token-based-authentication.md) (Security)
1666+
- [Tolerant Reader](../patterns/06-enterprise-application-architecture/tolerant-reader.md) (Enterprise Application Architecture)
16611667
- [Tombstone](../patterns/12-data-storage/tombstone.md) (Data and Storage)
16621668
- [Tool Result Caching](../patterns/17-ai-agentic/tool-result-caching.md) (AI and Agentic)
16631669
- [Training-Serving Skew Guard](../patterns/25-mlops/training-serving-skew-guard.md) (MLOps)
@@ -2941,6 +2947,7 @@ These patterns contain runnable code examples written in Python:
29412947
- [Double Buffering](../patterns/28-embedded-hardware/double-buffering.md) (Embedded and Hardware-Software)
29422948
- [Double-Checked Locking](../patterns/09-concurrency/double-checked-locking.md) (Concurrency and Parallelism)
29432949
- [Drift Detection](../patterns/25-mlops/drift-detection.md) (MLOps)
2950+
- [Dual LLM Pattern](../patterns/15-security/dual-llm-pattern.md) (Security)
29442951
- [Dummy](../patterns/14-testing/dummy.md) (Testing)
29452952
- [Duplicate Code](../patterns/02-code-smells/duplicate-code.md) (Code Smells)
29462953
- [Durable Execution](../patterns/23-workflow-orchestration/durable-execution.md) (Workflow and Orchestration)
@@ -3122,6 +3129,7 @@ These patterns contain runnable code examples written in Python:
31223129
- [Least Privilege](../patterns/15-security/least-privilege.md) (Security)
31233130
- [Least to Most](../patterns/17-ai-agentic/least-to-most.md) (AI and Agentic)
31243131
- [Lens](../patterns/16-functional/lens.md) (Functional Programming)
3132+
- [Lethal Trifecta Threat Model](../patterns/15-security/lethal-trifecta-threat-model.md) (Security)
31253133
- [Liskov Substitution Principle](../patterns/04-principles-and-laws/liskov-substitution-principle.md) (Principles and Laws)
31263134
- [Load Balancing](../patterns/08-cloud-distributed/load-balancing.md) (Cloud and Distributed)
31273135
- [Log Aggregation](../patterns/10-microservices/log-aggregation.md) (Microservices)
@@ -3511,6 +3519,7 @@ These patterns contain runnable code examples written in Python:
35113519
- [Token Binding and DPoP](../patterns/15-security/token-binding-and-dpop.md) (Security)
35123520
- [Token Budget](../patterns/17-ai-agentic/token-budget.md) (AI and Agentic)
35133521
- [Token-based Authentication](../patterns/15-security/token-based-authentication.md) (Security)
3522+
- [Tolerant Reader](../patterns/06-enterprise-application-architecture/tolerant-reader.md) (Enterprise Application Architecture)
35143523
- [Tombstone](../patterns/12-data-storage/tombstone.md) (Data and Storage)
35153524
- [Tool Result Caching](../patterns/17-ai-agentic/tool-result-caching.md) (AI and Agentic)
35163525
- [Training-Serving Skew Guard](../patterns/25-mlops/training-serving-skew-guard.md) (MLOps)
@@ -4773,6 +4782,7 @@ These patterns contain runnable code examples written in TypeScript:
47734782
- [Domain-Specific Protocol](../patterns/10-microservices/domain-specific-protocol.md) (Microservices)
47744783
- [Domain-based](../patterns/04-principles-and-laws/domain-based.md) (Principles and Laws)
47754784
- [Drift Detection](../patterns/25-mlops/drift-detection.md) (MLOps)
4785+
- [Dual LLM Pattern](../patterns/15-security/dual-llm-pattern.md) (Security)
47764786
- [Dummy](../patterns/14-testing/dummy.md) (Testing)
47774787
- [Duplicate Code](../patterns/02-code-smells/duplicate-code.md) (Code Smells)
47784788
- [Durable Execution](../patterns/23-workflow-orchestration/durable-execution.md) (Workflow and Orchestration)
@@ -4929,6 +4939,7 @@ These patterns contain runnable code examples written in TypeScript:
49294939
- [Least Privilege](../patterns/15-security/least-privilege.md) (Security)
49304940
- [Least to Most](../patterns/17-ai-agentic/least-to-most.md) (AI and Agentic)
49314941
- [Lens](../patterns/16-functional/lens.md) (Functional Programming)
4942+
- [Lethal Trifecta Threat Model](../patterns/15-security/lethal-trifecta-threat-model.md) (Security)
49324943
- [Liskov Substitution Principle](../patterns/04-principles-and-laws/liskov-substitution-principle.md) (Principles and Laws)
49334944
- [Load Balancing](../patterns/08-cloud-distributed/load-balancing.md) (Cloud and Distributed)
49344945
- [Lock Striping](../patterns/09-concurrency/lock-striping.md) (Concurrency and Parallelism)
@@ -5288,6 +5299,7 @@ These patterns contain runnable code examples written in TypeScript:
52885299
- [Token Binding and DPoP](../patterns/15-security/token-binding-and-dpop.md) (Security)
52895300
- [Token Budget](../patterns/17-ai-agentic/token-budget.md) (AI and Agentic)
52905301
- [Token-based Authentication](../patterns/15-security/token-based-authentication.md) (Security)
5302+
- [Tolerant Reader](../patterns/06-enterprise-application-architecture/tolerant-reader.md) (Enterprise Application Architecture)
52915303
- [Tombstone](../patterns/12-data-storage/tombstone.md) (Data and Storage)
52925304
- [Tool Result Caching](../patterns/17-ai-agentic/tool-result-caching.md) (AI and Agentic)
52935305
- [Training-Serving Skew Guard](../patterns/25-mlops/training-serving-skew-guard.md) (MLOps)

0 commit comments

Comments
 (0)