clarent-methods 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. clarent/__init__.py +2 -0
  2. clarent/__main__.py +5 -0
  3. clarent/_methods/ach/CARD.md +46 -0
  4. clarent/_methods/ach/clarent_ach/__init__.py +6 -0
  5. clarent/_methods/ach/clarent_ach/__main__.py +5 -0
  6. clarent/_methods/ach/clarent_ach/cli.py +123 -0
  7. clarent/_methods/ach/clarent_ach/engine.py +214 -0
  8. clarent/_methods/ach/clarent_ach/i18n.py +160 -0
  9. clarent/_methods/ach/clarent_ach/model.py +174 -0
  10. clarent/_methods/ach/clarent_ach/render.py +72 -0
  11. clarent/_methods/ach/examples/flaky-test.es.json +156 -0
  12. clarent/_methods/ach/examples/flaky-test.json +156 -0
  13. clarent/_methods/ach/method.toml +43 -0
  14. clarent/_methods/ach/skill/SKILL.md +58 -0
  15. clarent/_methods/ach/tests/test_ach.py +231 -0
  16. clarent/_methods/redteam/CARD.md +66 -0
  17. clarent/_methods/redteam/clarent_redteam/__init__.py +6 -0
  18. clarent/_methods/redteam/clarent_redteam/__main__.py +5 -0
  19. clarent/_methods/redteam/clarent_redteam/catalog.py +192 -0
  20. clarent/_methods/redteam/clarent_redteam/cli.py +189 -0
  21. clarent/_methods/redteam/clarent_redteam/engine.py +281 -0
  22. clarent/_methods/redteam/clarent_redteam/i18n.py +199 -0
  23. clarent/_methods/redteam/clarent_redteam/model.py +320 -0
  24. clarent/_methods/redteam/clarent_redteam/render.py +103 -0
  25. clarent/_methods/redteam/examples/design-doc/design.es.md +27 -0
  26. clarent/_methods/redteam/examples/design-doc/design.md +27 -0
  27. clarent/_methods/redteam/examples/design-doc/findings.es.json +132 -0
  28. clarent/_methods/redteam/examples/design-doc/findings.json +132 -0
  29. clarent/_methods/redteam/examples/design-doc/findings.rejected.json +130 -0
  30. clarent/_methods/redteam/examples/pr/change.diff +34 -0
  31. clarent/_methods/redteam/examples/pr/description.md +13 -0
  32. clarent/_methods/redteam/examples/pr/findings.json +114 -0
  33. clarent/_methods/redteam/method.toml +43 -0
  34. clarent/_methods/redteam/skill/SKILL.md +52 -0
  35. clarent/_methods/redteam/tests/test_redteam.py +640 -0
  36. clarent/_methods/triz-matrix/CARD.md +50 -0
  37. clarent/_methods/triz-matrix/clarent_triz/__init__.py +6 -0
  38. clarent/_methods/triz-matrix/clarent_triz/__main__.py +5 -0
  39. clarent/_methods/triz-matrix/clarent_triz/cli.py +184 -0
  40. clarent/_methods/triz-matrix/clarent_triz/data/DATA_LICENSE.md +51 -0
  41. clarent/_methods/triz-matrix/clarent_triz/data/catalog.json +89 -0
  42. clarent/_methods/triz-matrix/clarent_triz/data/matrix.json +11920 -0
  43. clarent/_methods/triz-matrix/clarent_triz/engine.py +103 -0
  44. clarent/_methods/triz-matrix/clarent_triz/i18n.py +134 -0
  45. clarent/_methods/triz-matrix/clarent_triz/model.py +179 -0
  46. clarent/_methods/triz-matrix/clarent_triz/render.py +101 -0
  47. clarent/_methods/triz-matrix/examples/search-api.es.json +9 -0
  48. clarent/_methods/triz-matrix/examples/search-api.json +9 -0
  49. clarent/_methods/triz-matrix/method.toml +58 -0
  50. clarent/_methods/triz-matrix/skill/SKILL.md +50 -0
  51. clarent/_methods/triz-matrix/tests/test_triz.py +306 -0
  52. clarent/cli.py +95 -0
  53. clarent/registry.py +175 -0
  54. clarent_methods-0.1.0.dist-info/METADATA +227 -0
  55. clarent_methods-0.1.0.dist-info/RECORD +59 -0
  56. clarent_methods-0.1.0.dist-info/WHEEL +4 -0
  57. clarent_methods-0.1.0.dist-info/entry_points.txt +2 -0
  58. clarent_methods-0.1.0.dist-info/licenses/LICENSE +202 -0
  59. clarent_methods-0.1.0.dist-info/licenses/NOTICE +12 -0
@@ -0,0 +1,50 @@
1
+ # TRIZ Contradiction Matrix — methodology card
2
+
3
+ ## Origin
4
+ TRIZ was developed in the USSR by Genrikh Altshuller and Rafael Shapiro from 1946 onward, by studying patents to find recurring ways inventors resolve a *technical contradiction*: improving one property of a system worsens another. The contradiction matrix maps a pair (parameter to improve, parameter that worsens), chosen from 39 engineering parameters, to up to four of 40 inventive principles. The Altshuller Foundation presents the table as Appendix 1 of Altshuller's *Algorithm of Invention* (Moscow, 1973); later editions and translations differ in small ways (see Limitations).
5
+
6
+ ## Sources
7
+ - G.S. Altshuller Foundation, table of principles for technical contradictions — https://www.altshuller.ru/triz/technique2.asp — `read` (parsed cell by cell with `tools/triz_crosscheck.py`; used for verification only, not copied).
8
+ - Altshuller, *Creativity as an Exact Science* (Gordon and Breach, 1984), ISBN 0-677-21230-5 — `exists` (catalog record only; not opened).
9
+ - Five MIT-licensed transcriptions of the matrix, pinned by commit in `clarent_triz/data/matrix.json` — `read`. Licenses, copyright holders and what is *not* verified about their upstream: `clarent_triz/data/DATA_LICENSE.md`.
10
+
11
+ ## Problem it solves
12
+ Engineers usually trade one property for another and stop at the compromise. The matrix points to patterns that have been used to remove the trade-off instead, which widens the set of ideas you consider before settling.
13
+
14
+ ## When to use / when NOT to use
15
+ - Use: a design is stuck because improving A makes B worse (latency vs. complexity, flexibility vs. simplicity, speed vs. reliability) and you want idea prompts beyond "add a cache".
16
+ - Do not use: the problem has a single objective to optimize, the same property must take opposite values (a *physical* contradiction; the engine says so and does not apply the matrix), or you need a ready-made solution. The matrix returns prompts for ideas, never a design.
17
+
18
+ ## How it maps to software work
19
+ The 39 parameters are physical (weight, speed, temperature, …). Clarent adds a **software reading** for each (for example *Speed* → latency or throughput; *Device complexity* → components, dependencies and code paths) and a **software example** for each of the 40 principles. Both are Clarent's own adaptation, not Altshuller's, and are meant to help you map your problem; the principles themselves were derived from mechanical and physical patents, so some map to software loosely. Typical uses: architecture trade-offs, performance vs. operability, flexibility vs. complexity.
20
+
21
+ ## Inputs and outputs
22
+ - Input: a pair (improving, worsening) given as a number, an English or Spanish name, or a software word such as `latency` (ambiguous words are rejected with the candidates listed, never guessed); or a JSON file with several pairs (`examples/search-api.json`).
23
+ - Output: the principles in the order the matrix lists them, each with a description and a software example; the cell's verification status; the reverse cell; and, for several pairs, principles ranked by how many contradictions list them. Markdown or JSON.
24
+ - Example (3 lines): `clarent triz-matrix lookup latency "Device complexity"` → *Speed* vs. *Device complexity* → principles 10, 28, 4, 34 (Preliminary action, Mechanics substitution, Asymmetry, Discarding and recovering), cell verified against the 1973 table.
25
+
26
+ ## Algorithm (what is deterministic)
27
+ Everything the engine does is deterministic and needs no LLM:
28
+ - **Resolve** a name to one of 39 parameters: number → exact name (either language, or alias) → unique substring → unique match in the software reading; anything ambiguous is an error that lists candidates.
29
+ - **Look up** the cell (improving, worsening) and report its status: `verified` (the consensus of the voting sources equals the 1973 table), `contested` (it differs; both readings are shown) or `consensus` (the 1973 page was unreadable for that cell). Same parameter on both sides is reported as a physical contradiction; an empty cell is reported as such with the reverse cell.
30
+ - **Rank** principles across several contradictions by count, then by mean position in the cells.
31
+ - The *dataset* is built reproducibly by `tools/triz_crosscheck.py`: a cell is accepted when a strict majority of five independent transcriptions agree on the set of principles.
32
+
33
+ What the engine does **not** do: generate or evaluate solutions. That is the agent's job, with the skill's rules.
34
+
35
+ ## Limitations
36
+ - The matrix is a heuristic from patents, with known typos across editions. 29 of 1 248 cells are `contested`; a check against the book has not been done.
37
+ - The chain of title behind the transcriptions is **not** established (see `DATA_LICENSE.md`). Use `--data DIR` with your own `matrix.json` if you need a clean chain.
38
+ - Principles are suggestions, not solutions; software readings and examples are Clarent's adaptation.
39
+ - Order inside a cell is the most common order among the sources, which is by Altshuller's suggested priority in the transcriptions we compared; sources occasionally differ on order, and order is not checked against the 1973 table.
40
+ - The classic 39-parameter matrix dates from before software engineering existed; newer matrices with more parameters exist and are not included.
41
+
42
+ ## Prior art (GitHub scan)
43
+ Scanned 2026-11-24. At least eight small repositories (mostly MIT) ship a TRIZ contradiction matrix as an agent skill or tool: `Antropocosmist/triz-engineering-solver` (24 stars), `ironyjk/triz-agents` (5), `magery-ai/triz-skill` (4), `SharathSPhD/triz-engine` (6), `seogineer/triz-solver` (0), `luchi2333/triz-worker-innovation-research` (3), `sampil/triz-skill` (license not detected) and `ayoub-elkhader/llm-triz-dfx` (1). `ironyjk/strategy-frameworks` (47) includes TRIZ among 30 frameworks and `jenson500/triz-prompt-engineering` (41) is a prompt format, not a matrix. Most are markdown-first. The space is **crowded**; this method's contribution is the cross-checked dataset with per-cell status, a stdlib engine with tests, bilingual output and software readings. See `research/novelty.md`.
44
+
45
+ ## Worked example
46
+ `examples/search-api.json` (**synthetic**, English) and `examples/search-api.es.json` (Spanish):
47
+ `python -m clarent_triz analyze examples/search-api.json` → three contradictions about making a search API faster; principle 28 (Mechanics substitution) appears in all three.
48
+
49
+ ## Evaluation
50
+ Not yet measured. The data quality is measured (see `DATA_LICENSE.md`: 1 218 of 1 248 cells match the 1973 table). Whether the tool helps people find better designs is not: planned as a comparison of design options produced with and without the skill on 10 real architecture trade-offs, rated blind, published even if null.
@@ -0,0 +1,6 @@
1
+ """TRIZ contradiction matrix: parameter pair -> inventive principles, with software examples."""
2
+ from .cli import main, register # noqa: F401
3
+ from .engine import lookup, rank # noqa: F401
4
+ from .model import TrizError, load, resolve # noqa: F401
5
+
6
+ __all__ = ["main", "register", "lookup", "rank", "load", "resolve", "TrizError"]
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ sys.exit(main())
@@ -0,0 +1,184 @@
1
+ """TRIZ contradiction-matrix command line. Two ways to use it:
2
+ - standalone: python -m clarent_triz lookup Speed "Device complexity"
3
+ - via core: clarent triz-matrix lookup Speed "Device complexity"
4
+
5
+ Commands: lookup, rank, analyze, params, principles, info.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ import argparse
10
+ import json
11
+ import sys
12
+ from pathlib import Path
13
+
14
+ from . import engine, i18n, render
15
+ from .i18n import t
16
+ from .model import TrizError, load
17
+
18
+
19
+ def _template() -> dict:
20
+ return {
21
+ "title": t("t_title"),
22
+ "context": t("t_context"),
23
+ "pairs": [{"improving": "Speed", "worsening": "Device complexity", "note": ""}],
24
+ }
25
+
26
+
27
+ def register(sub: argparse._SubParsersAction) -> None:
28
+ def common(p, fmt=True):
29
+ p.add_argument("--data", metavar="DIR", help="folder with your own matrix.json and/or catalog.json")
30
+ if fmt:
31
+ p.add_argument("--format", choices=("md", "json"), default="md")
32
+
33
+ p = sub.add_parser("lookup", help="principles for one contradiction")
34
+ p.add_argument("improving", help="parameter to improve: number, name (en/es) or a software word like 'latency'")
35
+ p.add_argument("worsening", help="parameter that gets worse")
36
+ common(p)
37
+ p.set_defaults(func=_lookup)
38
+
39
+ p = sub.add_parser("rank", help="rank principles across several contradictions")
40
+ p.add_argument("--pair", action="append", required=True, metavar="IMPROVING:WORSENING")
41
+ common(p)
42
+ p.set_defaults(func=_rank)
43
+
44
+ p = sub.add_parser("analyze", help="analyze a JSON file with several contradictions")
45
+ p.add_argument("path")
46
+ p.add_argument("--out", help="write the report to this file")
47
+ common(p)
48
+ p.set_defaults(func=_analyze)
49
+
50
+ p = sub.add_parser("init", help="create an analysis template")
51
+ p.add_argument("path")
52
+ p.add_argument("--force", action="store_true")
53
+ p.set_defaults(func=_init)
54
+
55
+ for name, hlp in (("params", "list the 39 parameters"), ("principles", "list the 40 principles"),
56
+ ("info", "describe the bundled data and its provenance")):
57
+ p = sub.add_parser(name, help=hlp)
58
+ common(p, fmt=(name != "info"))
59
+ p.set_defaults(func=globals()[f"_{name}"])
60
+
61
+
62
+ def _emit(a, text: str) -> int:
63
+ out = getattr(a, "out", None)
64
+ if out:
65
+ Path(out).write_text(text, encoding="utf-8", newline="\n")
66
+ print(f"report written to {out}")
67
+ else:
68
+ print(text)
69
+ return 0
70
+
71
+
72
+ def _matrix(a):
73
+ m = load(Path(a.data) if getattr(a, "data", None) else None)
74
+ return m
75
+
76
+
77
+ def _lookup(a) -> int:
78
+ m = _matrix(a)
79
+ lk = engine.lookup(m, a.improving, a.worsening)
80
+ if a.format == "json":
81
+ return _emit(a, json.dumps(engine.lookup_dict(lk), indent=2, ensure_ascii=False))
82
+ return _emit(a, render.lookup_markdown(lk, (a.improving, a.worsening)))
83
+
84
+
85
+ def _pairs_from_args(specs: list[str]) -> list[tuple[str, str]]:
86
+ out = []
87
+ for p in specs:
88
+ if ":" not in p:
89
+ raise TrizError(t("err_pair_syntax", p=p))
90
+ a, b = p.split(":", 1)
91
+ out.append((a.strip(), b.strip()))
92
+ return out
93
+
94
+
95
+ def _rank(a) -> int:
96
+ m = _matrix(a)
97
+ pairs = _pairs_from_args(a.pair)
98
+ an = engine.rank(m, pairs)
99
+ if a.format == "json":
100
+ return _emit(a, json.dumps(engine.analysis_dict(an), indent=2, ensure_ascii=False))
101
+ return _emit(a, render.analysis_markdown(an, queries=pairs))
102
+
103
+
104
+ def _analyze(a) -> int:
105
+ try:
106
+ data = json.loads(Path(a.path).read_text(encoding="utf-8"))
107
+ except FileNotFoundError:
108
+ raise TrizError(t("err_no_file", path=a.path))
109
+ except json.JSONDecodeError as e:
110
+ raise TrizError(t("err_bad_json", path=a.path, e=e))
111
+ pairs_raw = data.get("pairs") if isinstance(data, dict) else None
112
+ if not isinstance(pairs_raw, list) or not pairs_raw:
113
+ raise TrizError(t("err_bad_input", path=a.path, msg=t("err_need_pairs")))
114
+ pairs, notes = [], []
115
+ for i, p in enumerate(pairs_raw):
116
+ if not isinstance(p, dict) or not p.get("improving") or not p.get("worsening"):
117
+ raise TrizError(t("err_bad_input", path=a.path, msg=t("err_pair_fields", i=i)))
118
+ pairs.append((str(p["improving"]), str(p["worsening"])))
119
+ notes.append(str(p.get("note", "")))
120
+ an = engine.rank(_matrix(a), pairs)
121
+ if a.format == "json":
122
+ d = engine.analysis_dict(an)
123
+ d["title"], d["context"] = data.get("title", ""), data.get("context", "")
124
+ return _emit(a, json.dumps(d, indent=2, ensure_ascii=False))
125
+ return _emit(a, render.analysis_markdown(an, str(data.get("title", "")), str(data.get("context", "")), notes, pairs))
126
+
127
+
128
+ def _init(a) -> int:
129
+ path = Path(a.path)
130
+ if path.exists() and not a.force:
131
+ print(f"error: {path} already exists (use --force)", file=sys.stderr)
132
+ return 2
133
+ path.parent.mkdir(parents=True, exist_ok=True)
134
+ path.write_text(json.dumps(_template(), indent=2, ensure_ascii=False) + "\n", encoding="utf-8", newline="\n")
135
+ print(f"template created: {path}")
136
+ return 0
137
+
138
+
139
+ def _params(a) -> int:
140
+ m = _matrix(a)
141
+ if a.format == "json":
142
+ return _emit(a, json.dumps([{"id": p.id, "name": p.name(), "software_reading": p.software()}
143
+ for p in m.params.values()], indent=2, ensure_ascii=False))
144
+ return _emit(a, render.params_markdown(m))
145
+
146
+
147
+ def _principles(a) -> int:
148
+ m = _matrix(a)
149
+ if a.format == "json":
150
+ return _emit(a, json.dumps([engine.principle_dict(p) for p in m.principles.values()], indent=2, ensure_ascii=False))
151
+ return _emit(a, render.principles_markdown(m))
152
+
153
+
154
+ def _info(a) -> int:
155
+ m = _matrix(a)
156
+ c = m.meta.get("counts", {})
157
+ print(t("info_line", filled=c.get("filled_cells", len(m.cells)), verified=c.get("verified", 0),
158
+ contested=c.get("contested", 0), consensus=c.get("consensus", 0), built=m.meta.get("built_on", "?")))
159
+ print(t("info_sources", n=len(m.meta.get("voting_sources", []))))
160
+ for s in m.meta.get("voting_sources", []):
161
+ print(f" {s['key']} {s['repo']} @{s['commit'][:10]} {s['license']}")
162
+ ref = m.meta.get("reference_source")
163
+ if ref:
164
+ print(f" ref {ref['url']} ({ref['cites']})")
165
+ if getattr(a, "data", None):
166
+ print(t("data_override", dir=a.data))
167
+ return 0
168
+
169
+
170
+ def main(argv: list[str] | None = None) -> int:
171
+ ap = argparse.ArgumentParser(prog="clarent-triz", description="TRIZ contradiction matrix")
172
+ ap.add_argument("--lang", choices=sorted(i18n.M), default=i18n.get_lang(),
173
+ help="output language (default: $CLARENT_LANG or en)")
174
+ register(ap.add_subparsers(dest="cmd", required=True))
175
+ args = ap.parse_args(argv)
176
+ i18n.set_lang(args.lang)
177
+ for stream in (sys.stdout, sys.stderr):
178
+ if hasattr(stream, "reconfigure"):
179
+ stream.reconfigure(encoding="utf-8")
180
+ try:
181
+ return args.func(args)
182
+ except TrizError as e:
183
+ print(f"error: {e}", file=sys.stderr)
184
+ return 2
@@ -0,0 +1,51 @@
1
+ # Data license and provenance
2
+
3
+ This folder holds three kinds of content with different origins. Read this file before redistributing the data.
4
+
5
+ | File | What it is | License / status |
6
+ |------|------------|------------------|
7
+ | `catalog.json` | Names of the 39 parameters and 40 principles; descriptions, software readings and software examples in English and Spanish | Names are the standard published names (taken from source E; source A differs only in wording for three principles; aliases cover wording variants of parameters). Descriptions, readings and examples are **Clarent's own wording**, Apache-2.0. They are not Altshuller's text. |
8
+ | `matrix.json` | The 39x39 contradiction matrix: a **consensus** of five independent transcriptions, each cell compared with the Altshuller Foundation's 1973 table | Derived from the MIT-licensed works listed below; see "What is and is not verified". |
9
+ | this file | Notices | Apache-2.0 (own text) plus the MIT notices required below. |
10
+
11
+ ## Voting sources (all MIT; the `LICENSE` file of each repository was read on 2026-11-24)
12
+
13
+ A cell is accepted when a strict majority of these sources agree on the set of principles. Commits and file hashes are pinned in `matrix.json` (`meta.voting_sources`) and reproducible with `tools/triz_crosscheck.py`.
14
+
15
+ | Key | Repository | File used | Copyright notice in its LICENSE |
16
+ |-----|------------|-----------|---------------------------------|
17
+ | A | https://github.com/Antropocosmist/triz-engineering-solver | `resources/contradiction_matrix.json` | Copyright (c) 2026 useful-skills contributors |
18
+ | B | https://github.com/SharathSPhD/triz-engine | `triz-engine/data/triz-matrix.json` | Copyright (c) 2026 triz-engine contributors |
19
+ | C | https://github.com/seogineer/triz-solver | `skills/triz-analysis/data/contradiction-matrix.json` | Copyright (c) 2026 DoGyeong Seo |
20
+ | D | https://github.com/magery-ai/triz-skill | `skills/triz/data/contradiction-matrix.csv` | Copyright (c) 2026 magery.ai |
21
+ | E | https://github.com/luchi2333/triz-worker-innovation-research | `triz-worker-innovation-research/references/contradiction-matrix.json` | Copyright (c) 2026 luchi2333 |
22
+
23
+ ### MIT License (applies to the data taken from the five repositories above)
24
+
25
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
26
+
27
+ The above copyright notices and this permission notice shall be included in all copies or substantial portions of the Software.
28
+
29
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
+
31
+ ## Verification reference (not redistributed)
32
+
33
+ The consensus was compared cell by cell with the table on the official site of the G.S. Altshuller Foundation, <https://www.altshuller.ru/triz/technique2.asp>, which cites G. S. Altshuller, *Algorithm of Invention* (Moscow, Moskovsky Rabochy, 1973), Appendix 1. That page is **not** copied into this repository. For the cells where the two disagree, `matrix.json` records the 1973 reading (`alt`: a list of principle numbers) so you can see both. Principle numbers are facts, not creative text; if the Foundation objects to even that, delete the `alt` fields.
34
+
35
+ ## What is and is not verified
36
+
37
+ **Verified in this repository (2026-11-24):**
38
+ - Each voting source's repository has a `LICENSE` file with the MIT text above.
39
+ - 1 218 of 1 248 filled cells have the same set of principles as the 1973 table; 29 cells differ (status `contested`); 1 cell could not be read on the 1973 page because of a defect on the page (status `consensus`).
40
+ - No cell is `disputed` among the voting sources (every cell has a strict majority).
41
+
42
+ **Not verified, and what that means for you:**
43
+ - The chain of title *behind* the five repositories. Repository A states that it imported the matrix from `kamil-szczepanik/TRIZ-Agents` (a 2007 transcription by Casey Perno of Altshuller 1985). That upstream repository's README says "MIT" but it has **no LICENSE file** and GitHub reports it as unlicensed. Repository D cites triz40.com and the `pytriz` package; repository E cites triz-consulting.de and the same TRIZ-Agents spreadsheet. We could not establish the terms of those original transcriptions.
44
+ - Whether a compilation of Altshuller's published research results is protected by copyright, and by whom. The matrix records the results of Altshuller's analysis of patents (1946 onward); the individual cells are factual associations, but we cannot give legal advice and make no claim either way.
45
+ - That the matrix is *correct*. It is the classical table, which has known typos in print and online copies. The 29 `contested` cells are exactly where our sources and the 1973 table disagree. A comparison with the book (Altshuller, *40 Principles*, Shulyak and Rodman translation, 1997) has not been done.
46
+
47
+ **If you need a clean chain of title,** do not use the bundled `matrix.json`. Supply your own with `--data DIR` (it must contain a `matrix.json` in the same format; `catalog.json` falls back to the bundled one). The engine, the catalog texts and the tests do not depend on the bundled matrix.
48
+
49
+ ## Reporting a problem
50
+
51
+ Open an issue in the Clarent repository if you hold rights to any of this data and want it removed or credited differently, or if you find a wrong cell (include the cell, the source and the page).
@@ -0,0 +1,89 @@
1
+ {
2
+ "meta": {
3
+ "note": "Names are the standard published names of Altshuller's 39 parameters and 40 principles, as listed in source E; sources A and B differ only in wording for a few (e.g. 'Nested doll (Matryoshka)' for 'Nesting'). The descriptions, software examples and software readings are Clarent's own wording and adaptation, released under Apache-2.0; they are NOT Altshuller's text.",
4
+ "software_reading": "Each parameter lists a software reading: Clarent's adaptation of a physical parameter to software work. It is a suggestion to help you map your problem, not part of the classical matrix."
5
+ },
6
+ "parameters": [
7
+ {"id": 1, "en": "Weight of moving object", "es": "Peso de un objeto móvil", "sw_en": "memory footprint or payload size of running (hot) components", "sw_es": "huella de memoria o tamaño de carga de los componentes en ejecución", "aliases": []},
8
+ {"id": 2, "en": "Weight of stationary object", "es": "Peso de un objeto fijo", "sw_en": "size at rest: binary, container image, repository, stored artifacts", "sw_es": "tamaño en reposo: binario, imagen de contenedor, repositorio, artefactos almacenados", "aliases": []},
9
+ {"id": 3, "en": "Length of moving object", "es": "Longitud de un objeto móvil", "sw_en": "length of the execution path: call-chain depth, number of hops of a request", "sw_es": "longitud del camino de ejecución: profundidad de llamadas, saltos de una petición", "aliases": []},
10
+ {"id": 4, "en": "Length of stationary object", "es": "Longitud de un objeto fijo", "sw_en": "extent of static structure: file or module length, schema width", "sw_es": "extensión de la estructura estática: largo de archivos o módulos, ancho de un esquema", "aliases": []},
11
+ {"id": 5, "en": "Area of moving object", "es": "Área de un objeto móvil", "sw_en": "surface exposed by a running service: API surface, attack surface", "sw_es": "superficie expuesta por un servicio en ejecución: superficie de API o de ataque", "aliases": []},
12
+ {"id": 6, "en": "Area of stationary object", "es": "Área de un objeto fijo", "sw_en": "footprint of static code: modules or files touched, lines of code", "sw_es": "huella del código estático: módulos o archivos afectados, líneas de código", "aliases": []},
13
+ {"id": 7, "en": "Volume of moving object", "es": "Volumen de un objeto móvil", "sw_en": "volume of data in flight or in the working set", "sw_es": "volumen de datos en tránsito o en el conjunto de trabajo", "aliases": []},
14
+ {"id": 8, "en": "Volume of stationary object", "es": "Volumen de un objeto fijo", "sw_en": "volume of stored data: database, logs, backups", "sw_es": "volumen de datos almacenados: base de datos, logs, respaldos", "aliases": []},
15
+ {"id": 9, "en": "Speed", "es": "Velocidad", "sw_en": "latency, response time or throughput of an operation", "sw_es": "latencia, tiempo de respuesta o rendimiento de una operación", "aliases": []},
16
+ {"id": 10, "en": "Force (intensity)", "es": "Fuerza (intensidad)", "sw_en": "intensity of an effect on the system: applied load, blast radius of an action", "sw_es": "intensidad de un efecto sobre el sistema: carga aplicada, radio de impacto de una acción", "aliases": ["Force", "Force (Intensity)"]},
17
+ {"id": 11, "en": "Stress or pressure", "es": "Tensión o presión", "sw_en": "resource pressure on a component: requests per instance, memory pressure", "sw_es": "presión de recursos sobre un componente: peticiones por instancia, presión de memoria", "aliases": ["Pressure", "Stress"]},
18
+ {"id": 12, "en": "Shape", "es": "Forma", "sw_en": "shape of interfaces and data: schema, API contract, topology", "sw_es": "forma de interfaces y datos: esquema, contrato de API, topología", "aliases": []},
19
+ {"id": 13, "en": "Stability of the object's composition", "es": "Estabilidad de la composición del objeto", "sw_en": "stability of the system's structure: compatibility, dependency stability, consistency", "sw_es": "estabilidad de la estructura del sistema: compatibilidad, estabilidad de dependencias, consistencia", "aliases": ["Stability of object's composition", "Stability"]},
20
+ {"id": 14, "en": "Strength", "es": "Resistencia", "sw_en": "robustness: resistance to overload, failure or misuse", "sw_es": "robustez: resistencia a sobrecarga, fallos o mal uso", "aliases": []},
21
+ {"id": 15, "en": "Duration of action of moving object", "es": "Duración de la acción de un objeto móvil", "sw_en": "lifetime of a running process, connection or session", "sw_es": "duración de un proceso, conexión o sesión en ejecución", "aliases": ["Duration of action by moving object"]},
22
+ {"id": 16, "en": "Duration of action of stationary object", "es": "Duración de la acción de un objeto fijo", "sw_en": "durability of persisted state: data retention, longevity of artifacts", "sw_es": "durabilidad del estado persistido: retención de datos, longevidad de artefactos", "aliases": ["Duration of action by stationary object"]},
23
+ {"id": 17, "en": "Temperature", "es": "Temperatura", "sw_en": "activity level or heat: CPU load, hot paths, contention", "sw_es": "nivel de actividad o calor: carga de CPU, rutas calientes, contención", "aliases": []},
24
+ {"id": 18, "en": "Illumination intensity", "es": "Intensidad de iluminación", "sw_en": "visibility into the system: logging and telemetry detail", "sw_es": "visibilidad del sistema: detalle de logs y telemetría", "aliases": ["Brightness"]},
25
+ {"id": 19, "en": "Use of energy by moving object", "es": "Uso de energía de un objeto móvil", "sw_en": "compute consumed by running work: CPU time, runtime cost", "sw_es": "cómputo consumido por trabajo en ejecución: tiempo de CPU, costo de ejecución", "aliases": ["Use of energy by moving object"]},
26
+ {"id": 20, "en": "Use of energy by stationary object", "es": "Uso de energía de un objeto fijo", "sw_en": "standing cost: idle or reserved capacity, always-on resources", "sw_es": "costo permanente: capacidad ociosa o reservada, recursos siempre encendidos", "aliases": []},
27
+ {"id": 21, "en": "Power", "es": "Potencia", "sw_en": "rate of work: compute capacity, throughput per unit time", "sw_es": "tasa de trabajo: capacidad de cómputo, rendimiento por unidad de tiempo", "aliases": []},
28
+ {"id": 22, "en": "Loss of energy", "es": "Pérdida de energía", "sw_en": "wasted compute: retries, idle spinning, overhead", "sw_es": "cómputo desperdiciado: reintentos, espera activa, sobrecarga", "aliases": []},
29
+ {"id": 23, "en": "Loss of substance", "es": "Pérdida de sustancia", "sw_en": "loss of data or state: dropped messages, leaks, data loss", "sw_es": "pérdida de datos o estado: mensajes descartados, fugas, pérdida de datos", "aliases": []},
30
+ {"id": 24, "en": "Loss of information", "es": "Pérdida de información", "sw_en": "lost signal: dropped logs or telemetry, lossy compression, lost precision", "sw_es": "señal perdida: logs o telemetría descartados, compresión con pérdida, precisión perdida", "aliases": []},
31
+ {"id": 25, "en": "Loss of time", "es": "Pérdida de tiempo", "sw_en": "wasted time: waiting, blocking, queueing, downtime", "sw_es": "tiempo desperdiciado: esperas, bloqueos, colas, caídas de servicio", "aliases": []},
32
+ {"id": 26, "en": "Quantity of substance/the matter", "es": "Cantidad de sustancia o materia", "sw_en": "quantity of resources: instances, dependencies, records, components", "sw_es": "cantidad de recursos: instancias, dependencias, registros, componentes", "aliases": ["Quantity of substance or matter", "Quantity of substance"]},
33
+ {"id": 27, "en": "Reliability", "es": "Fiabilidad", "sw_en": "reliability and availability", "sw_es": "fiabilidad y disponibilidad", "aliases": ["Availability"]},
34
+ {"id": 28, "en": "Measurement accuracy", "es": "Precisión de medición", "sw_en": "accuracy of metrics, monitoring and test results", "sw_es": "exactitud de métricas, monitoreo y resultados de pruebas", "aliases": []},
35
+ {"id": 29, "en": "Manufacturing precision", "es": "Precisión de fabricación", "sw_en": "fidelity of build, deploy and implementation to the spec: reproducibility", "sw_es": "fidelidad de la compilación, el despliegue y la implementación respecto de la especificación: reproducibilidad", "aliases": []},
36
+ {"id": 30, "en": "External harm affects the object", "es": "Factores dañinos externos que afectan al objeto", "sw_en": "exposure to external threats and faults: hostile input, upstream failures", "sw_es": "exposición a amenazas y fallos externos: entradas hostiles, fallos de dependencias", "aliases": ["Object-affected harmful factors"]},
37
+ {"id": 31, "en": "Object-generated harmful factors", "es": "Factores dañinos generados por el objeto", "sw_en": "harmful side effects the system produces: alert noise, tech debt, cost imposed on others", "sw_es": "efectos secundarios dañinos que produce el sistema: ruido de alertas, deuda técnica, costos para otros", "aliases": []},
38
+ {"id": 32, "en": "Ease of manufacture", "es": "Facilidad de fabricación", "sw_en": "ease of building: build simplicity, time to implement", "sw_es": "facilidad de construcción: simplicidad del build, tiempo de implementación", "aliases": []},
39
+ {"id": 33, "en": "Ease of operation", "es": "Facilidad de operación", "sw_en": "ease of use and operation: usability, developer experience, operability", "sw_es": "facilidad de uso y operación: usabilidad, experiencia de desarrollo, operabilidad", "aliases": []},
40
+ {"id": 34, "en": "Ease of repair", "es": "Facilidad de reparación", "sw_en": "maintainability: debuggability, time to fix, time to recover", "sw_es": "mantenibilidad: capacidad de depuración, tiempo de corrección, tiempo de recuperación", "aliases": []},
41
+ {"id": 35, "en": "Adaptability or versatility", "es": "Adaptabilidad o versatilidad", "sw_en": "flexibility: configurability, extensibility, range of use cases", "sw_es": "flexibilidad: configurabilidad, extensibilidad, variedad de casos de uso", "aliases": []},
42
+ {"id": 36, "en": "Device complexity", "es": "Complejidad del dispositivo", "sw_en": "system complexity: number of components, dependencies, code paths", "sw_es": "complejidad del sistema: número de componentes, dependencias, rutas de código", "aliases": ["Complexity"]},
43
+ {"id": 37, "en": "Difficulty of detecting and measuring", "es": "Dificultad de detección y medición", "sw_en": "difficulty of testing, observing and debugging", "sw_es": "dificultad para probar, observar y depurar", "aliases": []},
44
+ {"id": 38, "en": "Extent of automation", "es": "Grado de automatización", "sw_en": "degree of automation: CI/CD, self-healing, auto-scaling", "sw_es": "grado de automatización: CI/CD, autorreparación, autoescalado", "aliases": []},
45
+ {"id": 39, "en": "Productivity", "es": "Productividad", "sw_en": "output per unit of time: team or system throughput", "sw_es": "producción por unidad de tiempo: rendimiento del equipo o del sistema", "aliases": []}
46
+ ],
47
+ "principles": [
48
+ {"id": 1, "en": "Segmentation", "es": "Segmentación", "desc_en": "Divide an object into independent parts, make it easy to take apart, or increase how finely it is divided.", "desc_es": "Dividir un objeto en partes independientes, facilitar su desarme o aumentar su grado de fragmentación.", "sw_en": "Split a monolith into modules or services; shard a database; run a long test suite as parallel shards.", "sw_es": "Dividir un monolito en módulos o servicios; particionar una base de datos; ejecutar una suite larga de pruebas en fragmentos paralelos."},
49
+ {"id": 2, "en": "Taking out", "es": "Extracción", "desc_en": "Separate the part or property that interferes, or extract only the part that is needed.", "desc_es": "Separar la parte o propiedad que estorba, o extraer solo la parte necesaria.", "sw_en": "Move heavy logging or report generation out of the request path into a background worker; extract secrets from application config.", "sw_es": "Sacar del camino de la petición el logging pesado o la generación de reportes hacia un worker en segundo plano; extraer los secretos de la configuración de la aplicación."},
50
+ {"id": 3, "en": "Local quality", "es": "Calidad local", "desc_en": "Replace uniform structure or conditions with non-uniform ones, so each part works in the conditions that suit it best.", "desc_es": "Reemplazar una estructura o condiciones uniformes por otras no uniformes, de modo que cada parte trabaje en las condiciones que mejor le convienen.", "sw_en": "Per-endpoint cache TTLs and rate limits instead of one global setting; hot, warm and cold storage tiers.", "sw_es": "TTL de caché y límites de tasa por endpoint en lugar de una configuración global; almacenamiento en niveles caliente, tibio y frío."},
51
+ {"id": 4, "en": "Asymmetry", "es": "Asimetría", "desc_en": "Replace a symmetrical form with an asymmetrical one, or increase existing asymmetry.", "desc_es": "Reemplazar una forma simétrica por una asimétrica, o aumentar la asimetría existente.", "sw_en": "Separate read and write paths (CQRS); one writer with many read replicas; asymmetric roles in a protocol.", "sw_es": "Separar los caminos de lectura y escritura (CQRS); un escritor con muchas réplicas de lectura; roles asimétricos en un protocolo."},
52
+ {"id": 5, "en": "Merging", "es": "Combinación", "desc_en": "Bring identical or related objects or operations together in space or in time.", "desc_es": "Reunir objetos u operaciones idénticos o relacionados en el espacio o en el tiempo.", "sw_en": "Batch many small writes or requests into one; connection pooling; merge CI jobs that share the same setup.", "sw_es": "Agrupar muchas escrituras o peticiones pequeñas en una; pool de conexiones; unir jobs de CI que comparten la misma preparación."},
53
+ {"id": 6, "en": "Universality", "es": "Universalidad", "desc_en": "Make one object perform several functions so other objects are no longer needed.", "desc_es": "Hacer que un objeto cumpla varias funciones para que otros objetos dejen de ser necesarios.", "sw_en": "One gateway that handles auth, rate limiting and routing; one generic component reused by several features.", "sw_es": "Un gateway que resuelve autenticación, límites de tasa y enrutamiento; un componente genérico reutilizado por varias funcionalidades."},
54
+ {"id": 7, "en": "Nesting", "es": "Anidamiento", "desc_en": "Place one object inside another, or pass one through a cavity of another.", "desc_es": "Colocar un objeto dentro de otro, o hacer pasar uno por una cavidad del otro.", "sw_en": "Middleware chains and decorators; containers inside VMs; pipelines of composable stages.", "sw_es": "Cadenas de middleware y decoradores; contenedores dentro de máquinas virtuales; pipelines de etapas componibles."},
55
+ {"id": 8, "en": "Anti-weight", "es": "Contrapeso", "desc_en": "Compensate the weight of an object by combining it with something that provides lift, or use the environment to carry the load.", "desc_es": "Compensar el peso de un objeto combinándolo con algo que aporte sustentación, o usar el entorno para soportar la carga.", "sw_en": "Offload traffic to a CDN or edge cache; absorb bursts with a queue so the origin is not overloaded.", "sw_es": "Descargar tráfico hacia una CDN o caché de borde; absorber ráfagas con una cola para no sobrecargar el origen."},
56
+ {"id": 9, "en": "Preliminary anti-action", "es": "Contra-acción previa", "desc_en": "If an action has harmful effects, apply in advance the opposite action that controls them.", "desc_es": "Si una acción tiene efectos dañinos, aplicar de antemano la acción contraria que los controle.", "sw_en": "Validate input and set rate limits before abuse arrives; circuit breakers; resource quotas defined up front.", "sw_es": "Validar entradas y fijar límites de tasa antes de que llegue el abuso; circuit breakers; cuotas de recursos definidas de antemano."},
57
+ {"id": 10, "en": "Preliminary action", "es": "Acción previa", "desc_en": "Carry out the required change, fully or partly, before it is needed.", "desc_es": "Realizar el cambio necesario, total o parcialmente, antes de que haga falta.", "sw_en": "Precompute results; warm caches; ahead-of-time compilation; pre-pulled images and pre-provisioned environments.", "sw_es": "Precalcular resultados; calentar cachés; compilación anticipada; imágenes precargadas y entornos pre-aprovisionados."},
58
+ {"id": 11, "en": "Beforehand cushioning", "es": "Amortiguación previa", "desc_en": "Prepare emergency means in advance to compensate for the low reliability of an object.", "desc_es": "Preparar de antemano medios de emergencia que compensen la baja fiabilidad de un objeto.", "sw_en": "Retries with backoff, fallbacks, redundancy, backups, and kill switches behind feature flags.", "sw_es": "Reintentos con backoff, alternativas de respaldo, redundancia, copias de seguridad e interruptores de emergencia tras feature flags."},
59
+ {"id": 12, "en": "Equipotentiality", "es": "Equipotencialidad", "desc_en": "Change the conditions so that the object no longer has to be raised or lowered against a potential.", "desc_es": "Cambiar las condiciones para que el objeto no tenga que subirse ni bajarse contra un potencial.", "sw_en": "Move the computation to the data instead of the data to the computation; keep services next to their data.", "sw_es": "Llevar el cómputo a los datos en lugar de los datos al cómputo; mantener los servicios junto a sus datos."},
60
+ {"id": 13, "en": "The other way round", "es": "Inversión", "desc_en": "Do the opposite: invert the action, or make fixed parts movable and movable parts fixed.", "desc_es": "Hacer lo contrario: invertir la acción, o volver móviles las partes fijas y fijas las móviles.", "sw_en": "Pull instead of push (GitOps pull-based deploys); invert dependencies; write the test before the code.", "sw_es": "Extraer en lugar de empujar (despliegues GitOps por pull); invertir dependencias; escribir la prueba antes que el código."},
61
+ {"id": 14, "en": "Spheroidality and curvature", "es": "Esfericidad y curvatura", "desc_en": "Replace linear parts and motions with curved or rotating ones.", "desc_es": "Reemplazar partes y movimientos lineales por otros curvos o rotatorios.", "sw_en": "Ring buffers; round-robin scheduling; consistent-hash rings instead of linear structures.", "sw_es": "Buffers circulares; planificación round-robin; anillos de hash consistente en lugar de estructuras lineales."},
62
+ {"id": 15, "en": "Dynamics", "es": "Dinamismo", "desc_en": "Let the characteristics of an object adjust to be optimal at each stage; make a rigid object flexible or adaptive.", "desc_es": "Permitir que las características de un objeto se ajusten para ser óptimas en cada etapa; volver flexible o adaptable un objeto rígido.", "sw_en": "Autoscaling; adaptive timeouts; dynamic configuration and feature flags; adaptive batch sizes.", "sw_es": "Autoescalado; timeouts adaptativos; configuración dinámica y feature flags; tamaños de lote adaptativos."},
63
+ {"id": 16, "en": "Partial or excessive actions", "es": "Acciones parciales o excesivas", "desc_en": "If 100% of an effect is hard to get, do slightly less or slightly more to make the problem much simpler.", "desc_es": "Si es difícil lograr el 100 % de un efecto, hacer algo menos o algo más para simplificar mucho el problema.", "sw_en": "Approximate algorithms (HyperLogLog, sampling); return partial results; trace only 1% of requests.", "sw_es": "Algoritmos aproximados (HyperLogLog, muestreo); devolver resultados parciales; trazar solo el 1 % de las peticiones."},
64
+ {"id": 17, "en": "Another dimension", "es": "Otra dimensión", "desc_en": "Move the object into an extra dimension, use multi-layer arrangements, or use the other side.", "desc_es": "Mover el objeto a una dimensión adicional, usar disposiciones en varias capas o aprovechar el otro lado.", "sw_en": "Add a time dimension with versioned data or event sourcing; layered caches; a new sharding axis; a secondary index.", "sw_es": "Añadir la dimensión tiempo con datos versionados o event sourcing; cachés en capas; un nuevo eje de particionado; un índice secundario."},
65
+ {"id": 18, "en": "Mechanical vibration", "es": "Vibración mecánica", "desc_en": "Make the object oscillate, raise the frequency, or use resonance.", "desc_es": "Hacer oscilar el objeto, aumentar la frecuencia o usar la resonancia.", "sw_en": "Fuzzing and chaos testing to shake out latent defects; heartbeats; jitter in retries and schedules.", "sw_es": "Fuzzing y pruebas de caos para sacar a la luz defectos latentes; heartbeats; jitter en reintentos y programaciones."},
66
+ {"id": 19, "en": "Periodic action", "es": "Acción periódica", "desc_en": "Replace a continuous action with a periodic or pulsed one, or change its frequency.", "desc_es": "Reemplazar una acción continua por una periódica o pulsante, o cambiar su frecuencia.", "sw_en": "Batch jobs or cron instead of continuous processing; tuned polling intervals; periodic compaction.", "sw_es": "Jobs por lotes o cron en lugar de procesamiento continuo; intervalos de polling ajustados; compactación periódica."},
67
+ {"id": 20, "en": "Continuity of useful action", "es": "Continuidad de la acción útil", "desc_en": "Keep all parts working at full load all the time; remove idle and intermittent work.", "desc_es": "Mantener todas las partes trabajando a plena carga todo el tiempo; eliminar el trabajo ocioso e intermitente.", "sw_en": "Stream processing instead of batches with idle gaps; keep connections warm; pipeline work so workers never wait.", "sw_es": "Procesamiento en streaming en lugar de lotes con huecos ociosos; mantener conexiones calientes; encadenar el trabajo para que los workers nunca esperen."},
68
+ {"id": 21, "en": "Skipping", "es": "Aceleración (saltar etapas)", "desc_en": "Run a process, or its harmful stages, at very high speed.", "desc_es": "Ejecutar un proceso, o sus etapas dañinas, a muy alta velocidad.", "sw_en": "Fast path for the common case; early exits and short-circuiting; skip validation on trusted internal calls.", "sw_es": "Camino rápido para el caso común; salidas tempranas y cortocircuito; omitir validaciones en llamadas internas de confianza."},
69
+ {"id": 22, "en": "Blessing in disguise", "es": "Convertir el daño en beneficio", "desc_en": "Use harmful factors to get a useful effect, or amplify a harmful factor until it stops being harmful.", "desc_es": "Usar los factores dañinos para obtener un efecto útil, o amplificar un factor dañino hasta que deje de serlo.", "sw_en": "Treat failures as signals (error budgets, chaos engineering); use backpressure from overload as a control signal.", "sw_es": "Tratar los fallos como señales (presupuestos de error, ingeniería del caos); usar la contrapresión por sobrecarga como señal de control."},
70
+ {"id": 23, "en": "Feedback", "es": "Retroalimentación", "desc_en": "Introduce feedback, or change its strength or how it is used.", "desc_es": "Introducir retroalimentación, o cambiar su intensidad o la forma de usarla.", "sw_en": "Autoscaling loops; health checks; adaptive rate limits; fast CI feedback on every change.", "sw_es": "Bucles de autoescalado; health checks; límites de tasa adaptativos; retroalimentación rápida de CI en cada cambio."},
71
+ {"id": 24, "en": "Intermediary", "es": "Mediador", "desc_en": "Use an intermediary object or process, or temporarily connect an easily removable one.", "desc_es": "Usar un objeto o proceso intermediario, o conectar temporalmente uno fácil de retirar.", "sw_en": "Message queue or broker; API gateway; adapter or facade; caching proxy.", "sw_es": "Cola de mensajes o broker; API gateway; adaptador o fachada; proxy con caché."},
72
+ {"id": 25, "en": "Self-service", "es": "Autoservicio", "desc_en": "Make the object serve itself by doing helpful auxiliary functions, and make use of waste resources.", "desc_es": "Hacer que el objeto se sirva a sí mismo realizando funciones auxiliares útiles, y aprovechar los recursos de desecho.", "sw_en": "Self-healing services; self-registering instances; self-serve developer platform; use idle CI time for nightly fuzzing.", "sw_es": "Servicios que se autorreparan; instancias que se autorregistran; plataforma de autoservicio para desarrollo; usar el tiempo ocioso de CI para fuzzing nocturno."},
73
+ {"id": 26, "en": "Copying", "es": "Copia", "desc_en": "Use simple, cheap copies instead of an object that is complex, fragile, expensive or hard to reach.", "desc_es": "Usar copias simples y baratas en lugar de un objeto complejo, frágil, caro o de difícil acceso.", "sw_en": "Test doubles and simulators; anonymized snapshots of production data; staging replicas.", "sw_es": "Dobles de prueba y simuladores; instantáneas anonimizadas de datos de producción; réplicas de staging."},
74
+ {"id": 27, "en": "Cheap short-living objects", "es": "Objetos baratos y desechables", "desc_en": "Replace an expensive durable object with several cheap disposable ones, accepting some loss of quality.", "desc_es": "Reemplazar un objeto caro y durable por varios baratos y desechables, aceptando cierta pérdida de calidad.", "sw_en": "Ephemeral containers and VMs; spot instances; disposable preview environments; immutable infrastructure.", "sw_es": "Contenedores y máquinas virtuales efímeros; instancias spot; entornos de vista previa desechables; infraestructura inmutable."},
75
+ {"id": 28, "en": "Mechanics substitution", "es": "Sustitución de sistemas mecánicos", "desc_en": "Replace the way the parts interact with a different kind of channel or field.", "desc_es": "Reemplazar la forma en que interactúan las partes por otro tipo de canal o de campo.", "sw_en": "Replace polling with events or webhooks; replace manual review with automated static analysis.", "sw_es": "Reemplazar el polling por eventos o webhooks; reemplazar la revisión manual por análisis estático automatizado."},
76
+ {"id": 29, "en": "Pneumatics and hydraulics", "es": "Neumática e hidráulica", "desc_en": "Replace rigid parts with gas or liquid ones that fill, flow or cushion.", "desc_es": "Reemplazar partes rígidas por partes gaseosas o líquidas que llenan, fluyen o amortiguan.", "sw_en": "Elastic or serverless pools instead of fixed allocations; streams instead of fixed-size buffers.", "sw_es": "Pools elásticos o serverless en lugar de asignaciones fijas; streams en lugar de buffers de tamaño fijo."},
77
+ {"id": 30, "en": "Flexible shells and thin films", "es": "Membranas flexibles y películas delgadas", "desc_en": "Use flexible shells and thin films instead of bulky structures, and use them to isolate the object from its environment.", "desc_es": "Usar membranas flexibles y películas delgadas en lugar de estructuras voluminosas, y emplearlas para aislar el objeto de su entorno.", "sw_en": "A thin anti-corruption layer around a legacy system; sandboxes; lightweight shims and API version adapters.", "sw_es": "Una capa anticorrupción delgada alrededor de un sistema heredado; sandboxes; adaptadores ligeros y de versiones de API."},
78
+ {"id": 31, "en": "Porous materials", "es": "Materiales porosos", "desc_en": "Make an object porous or add porous elements, and fill the pores with something useful.", "desc_es": "Volver poroso un objeto o añadirle elementos porosos, y llenar los poros con algo útil.", "sw_en": "Leave extension points (plugins, hooks, middleware slots) in a core; sparse data structures.", "sw_es": "Dejar puntos de extensión (plugins, hooks, ranuras de middleware) en un núcleo; estructuras de datos dispersas."},
79
+ {"id": 32, "en": "Color and optical changes", "es": "Cambio de color y propiedades ópticas", "desc_en": "Change the colour or transparency of an object or its surroundings so it can be seen or sensed.", "desc_es": "Cambiar el color o la transparencia de un objeto o su entorno para poder verlo o percibirlo.", "sw_en": "Make internals observable: structured logs, distributed traces, status badges, colour-coded dashboards.", "sw_es": "Volver observable lo interno: logs estructurados, trazas distribuidas, insignias de estado, paneles codificados por color."},
80
+ {"id": 33, "en": "Homogeneity", "es": "Homogeneidad", "desc_en": "Make objects that interact with a given object out of the same, or a similar, material.", "desc_es": "Hacer que los objetos que interactúan con otro dado sean del mismo material, o de uno similar.", "sw_en": "One language and runtime; shared base image; uniform service templates; the same build everywhere.", "sw_es": "Un solo lenguaje y runtime; imagen base compartida; plantillas de servicio uniformes; el mismo build en todas partes."},
81
+ {"id": 34, "en": "Discarding and recovering", "es": "Descarte y regeneración", "desc_en": "Let parts that have done their job go away or change during operation, and restore used-up parts straight away.", "desc_es": "Hacer que las partes que cumplieron su función desaparezcan o cambien durante la operación, y restaurar de inmediato las partes consumidas.", "sw_en": "Garbage collection; cache eviction and TTLs; log rotation; automatic cleanup of ephemeral environments; compaction.", "sw_es": "Recolección de basura; expulsión de caché y TTL; rotación de logs; limpieza automática de entornos efímeros; compactación."},
82
+ {"id": 35, "en": "Parameter changes", "es": "Cambio de parámetros", "desc_en": "Change the state, concentration, flexibility or other parameters of the object.", "desc_es": "Cambiar el estado, la concentración, la flexibilidad u otros parámetros del objeto.", "sw_en": "Change the data format (JSON to Protobuf); compression level; consistency or isolation level; lock granularity.", "sw_es": "Cambiar el formato de datos (JSON a Protobuf); el nivel de compresión; el nivel de consistencia o aislamiento; la granularidad de los bloqueos."},
83
+ {"id": 36, "en": "Phase transitions", "es": "Transiciones de fase", "desc_en": "Use effects that occur when something changes phase.", "desc_es": "Aprovechar los efectos que ocurren cuando algo cambia de fase.", "sw_en": "State machines whose transitions trigger events; lifecycle changes (draft to published) that fire side effects; hot to cold tier migration.", "sw_es": "Máquinas de estado cuyas transiciones disparan eventos; cambios de ciclo de vida (borrador a publicado) que activan efectos; migración de niveles caliente a frío."},
84
+ {"id": 37, "en": "Thermal expansion", "es": "Dilatación térmica", "desc_en": "Use material that expands or contracts with its conditions, or combine materials that react at different rates.", "desc_es": "Usar material que se expande o contrae según sus condiciones, o combinar materiales que reaccionan a distinto ritmo.", "sw_en": "Self-resizing buffers, connection pools and thread pools; tiers of timeouts or caches that react at different speeds.", "sw_es": "Buffers, pools de conexiones e hilos que se redimensionan solos; niveles de timeouts o cachés que reaccionan a distinta velocidad."},
85
+ {"id": 38, "en": "Strong oxidants", "es": "Oxidantes fuertes", "desc_en": "Replace the ordinary environment with a richer, more concentrated, more active one.", "desc_es": "Reemplazar el ambiente ordinario por uno más rico, más concentrado y más activo.", "sw_en": "Move a hot path to native code, SIMD or GPU; keep the working set in memory instead of on disk.", "sw_es": "Llevar una ruta caliente a código nativo, SIMD o GPU; mantener el conjunto de trabajo en memoria en lugar de en disco."},
86
+ {"id": 39, "en": "Inert atmosphere", "es": "Atmósfera inerte", "desc_en": "Replace the usual environment with a neutral one, add neutral parts, or work in a vacuum.", "desc_es": "Reemplazar el ambiente habitual por uno neutro, añadir partes neutras o trabajar en vacío.", "sw_en": "Sandboxes and dry-run or plan modes; hermetic builds; features off by default; pure functions and immutable data.", "sw_es": "Sandboxes y modos dry-run o plan; builds herméticos; funcionalidades desactivadas por defecto; funciones puras y datos inmutables."},
87
+ {"id": 40, "en": "Composite materials", "es": "Materiales compuestos", "desc_en": "Replace a uniform material with a composite of several.", "desc_es": "Reemplazar un material uniforme por uno compuesto de varios.", "sw_en": "Polyglot persistence (SQL plus cache plus search); layered L1 and L2 caches; hybrid cloud; model ensembles.", "sw_es": "Persistencia políglota (SQL más caché más búsqueda); cachés L1 y L2 en capas; nube híbrida; ensambles de modelos."}
88
+ ]
89
+ }