Repository navigation
Releases
kTRIZ v0.4.0
Pre-release (API unstable, scripts run without a sandbox). The libraries ktriz-core, ktriz-render-kuml, ktriz-script and ktriz-mcp are published on Maven Central under the group dev.ktriz -- see the README section "Use as a library". The ktriz command-line tool is not published; build it with ./gradlew :ktriz-cli:installDist. See CHANGELOG.adoc for the full notes.
=== Build
- First release published to Maven Central:
ktriz-core,ktriz-render-kuml,ktriz-scriptandktriz-mcpunder the groupdev.ktriz, with POM metadata, sources and (empty) javadoc JARs, signed. New tag-triggered workflowrelease-maven-central.yml; seedocs/release.adoc.ktriz-cliis not published as a library. The bundled contradiction matrix is part of thektriz-corejar; the database-right question on that compilation is still open (seedocs/contradiction-matrix.adoc).
=== Rendering: labels versus lines
- Edge-verb labels now avoid foreign lines: label placement keeps the least
overlap with other labels and nodes as its primary criterion and, among equal
candidates, picks the one covering the least foreign-line length (own edge
ignored). Only candidates within three levels of the route midpoint are
considered for this, so a label never drifts far from its own edge just to dodge
a line; a line crossing never causes a verb to be truncated. The line test is an
approximation (the box is grown by wave amplitude and half the double-stroke gap,
not by exact wavy/doubled paths). - Edge-verb labels carry a 3 px halo in the diagram's paper colour (
fill,
stroke,stroke-width,stroke-linejoin,paint-orderas presentation
attributes, so it survives theobsidian-ktrizsanitiser). The canvas stays
transparent. Node names and Su-Field output are unchanged; the reference SVG
function-model-single-edges.svgwas updated for exactly these attributes. - Measured label/foreign-line crossing pairs (stress bundles with mixed
directions and qualities, before -> after): 6 edges 3 -> 0, 12 edges 7 -> 6,
24 edges 43 -> 29. - Known limits: dense bundles still have labels crossing lines (halo keeps them
readable); in the 24-edge bundle a few labels sit up to three levels away from
their edge; in a dark host theme lines and node frames stay dark on the
transparent canvas. - Tests: 478 (was 468).
=== Benchmark calibration set
- New
benchmark/calibration-set.csv: six sourced contradiction cases (three WIPO
Tool 13, two Stevko et al. 2023, one MATRIZ Wiki) with improving and worsening
parameter, sources, licence and a confidence level (threehigh, threelow). - Documentation
docs/calibration-set.adoc(column format, confidence levels,
attribution, gap to a real gold set) and aNOTICEentry for the CC BY 4.0 sources. - New
CalibrationSetTestvalidates the file (header, field counts, ids, parameter
ranges, matrix cells, principle lists, https sources, confidence vocabulary). Gradle
hands the CSV path to the test as the system propertyktriz.calibration.csv. - Explicitly not a gold set: six cases, no independent second annotator, and no
model results. No scorer or harness is included. - Tests: 478 (was 468).
=== Evolution laws
- New
EvolutionLawenum (eight classical laws of technical systems evolution,
ids 1..8, English label, own short description) andEvolutionLawGroup
(statics, kinematics, dynamics; grouped 3 + 3 + 2) inktriz-core. - New MCP tool
list_evolution_laws(the thirteenth tool);dev.ktriz.evolution.*
is a default script import. - Provenance record
docs/evolution-laws-provenance.adocand aNOTICEentry. - Deliberately no
labelDe, no ninth law (single source), no evolution lines,
patterns or TESE trends, and no application DSL. - Tests: 453 (was 445).
=== Rendering
FunctionModel.renderSvg()routes dense edge bundles (two or more edges
between the same component pair) onto distinct anchor points along the node
box side instead of letting every line converge on the same spot: anchors
are spread evenly (12 px corner inset, about 14 px apart where the box
allows), edges running in the same direction sit together, and the bowed
lines no longer cross at their ends. The self-loop band on the right side
stays free of anchors.- A component carrying a bundle is widened to fit its anchors (capped at
320 px); other components and models without a bundle keep their geometry (guarded by
reference-SVG tests, also for Su-Field output). - Wavy (
HARMFUL) strokes inside a bundle use an amplitude of at most 40% of
the gap to the neighbouring anchor. - Known limit: with more than about 37 edges between one pair the anchors are
closer than an arrowhead is wide (8 px) and neighbouring arrowheads touch;
verb labels of dense bundles can still cross neighbouring lines (reduced, not
eliminated, see "Rendering: labels versus lines"). - Tests: 445 (was 423) -- 15 unit tests for anchor distribution and node sizing
now live inktriz-render-kuml(internal functions are not visible from
ktriz-tests), 7 new render tests inktriz-tests; one existing test now
measures the bow offset signed instead of absolute, because mirrored edges
of a bundle no longer land on identical distances from the node axis.
=== Documentation
- Guide titles under
docs/now readkTRIZ guide: ...(no more duplicated
title and first heading); the MCP guide points to the build step instead of
an install step that did not exist.
kTRIZ v0.3.1
Source-only pre-release: no published artifact. See CHANGELOG.adoc for the full notes.
=== MCP server
- The MCP
serverInfo.versionis now read from a build-filtered resource and
matches the project version; it was hardcoded to0.1.0through v0.3.0.
=== Documentation
- The README is now a short entry page (874 to 182 lines); the per-topic guides
moved verbatim todocs/(function models, substance-field models, physical
contradictions, contradiction matrix, scripting, MCP server, roadmap). - The README status block describes the v0.3.1 state.
kTRIZ v0.3.0
Source-only pre-release: no published artifact (no Maven Central, no Homebrew). See CHANGELOG.adoc for the full notes.
=== Physical contradictions
-
ARIZ is deliberately not modelled: sources disagree on the step level and
the licence is unclear; seedocs/ariz-provenance.adoc. -
New package
dev.ktriz.physical:PhysicalContradiction+
physicalContradiction { }DSL (element, property, two states with optional
reasons, optional declared separation) and theSeparationPrincipleenum
(the four classical principles; not the Mann/CREAX set). -
No mapping from separation principles to inventive principles is bundled:
only one freely available source was found, below the two-source rule; see
docs/physical-contradictions-provenance.adoc. -
dev.ktriz.physical.*is now a default import in.ktriz.ktsscripts. -
KDoc fix in
Contradiction: it no longer claims ADR-0001 defers physical
contradictions.
=== MCP server (physical contradictions)
- New tool
build_physical_contradiction(validation plus Kotlin snippet). - New tool
list_separation_principles.
=== MCP server
- New tool
render_su_field_svg: renders a validated Su-Field triangle as
SVG (same arguments asbuild_su_field). - New tool
render_function_model_svg: renders a function model as SVG
(same arguments asbuild_function_model) with tighter limits -- 60
components (auto-declared edge endpoints included), 150 edges, 20,000
characters of names and verbs in total. - New tool
lookup_standard_solution: the 76 standard solutions bycode,
bystandardClass, or all at once. The texts are the ones already
shipped inStandardSolution; no new text, and still no bridge from
SuFieldto a solution. - Render calls run on daemon worker threads under a 10 s deadline with at
most 2 concurrent renders and a 2,000,000-character output cap; new
structured errorsrender_timeout,render_busy,
render_output_too_largeandunknown_standard_solution. ktriz-mcpnow depends onktriz-render-kuml(ELK, EMF and Guava come in
transitively, the distribution grows). Thektriz-mcpandktrizstart
scripts pass-Djava.awt.headless=true, and bothmainfunctions set it
first thing.- Corrected tool descriptions:
list_standard_solution_classesno longer
claims that the 76 solution texts are not bundled, andbuild_su_field
now points torender_su_field_svg.
=== Renderer fixes
FunctionModel.renderSvg(): edge-verb labels are now placed by a greedy
2D collision-avoidance search instead of a fixed vertical stagger --
each label tries a bounded set of candidate positions (alternating
above/below the route's midpoint, stepping out by the label's own
measured height) and keeps whichever has the least overlap area against
every label and node box already placed; a verb that still cannot avoid
overlap is truncated with an ellipsis (full text kept in a<title>
tooltip) and re-searched. Fixes label/label and label/node overlap for
dense edge bundles and long verbs that the old fixed-step stagger could
not avoid.bowOffsetFor/selfLoopRadiusPx: the previous hard clamps
(BOW_MAX_OFFSET_PX = 27,SELF_LOOP_STACK_MAX_PX = 44) have been
removed. Both now use an adaptive envelope that narrows the per-edge
spacing as the group grows (BOW_ENVELOPE_PX = 90/BOW_MIN_SPACING_PX = 3for bowed edges,SELF_LOOP_ENVELOPE_PX = 120/
SELF_LOOP_MIN_STACK_STEP_PX = 3for self-loops) instead of collapsing
every edge past a fixed group size onto the same outermost offset or
radius.
v0.2.0
== v0.2.0 -- 2026-09-06
=== Substance-field models
StandardSolutionClass(modulektriz-core) enumerates the 5 classical
groups the 76 standard inventive solutions fall into (13/23/6/17/17), each
with an English/German label, description andsolutionCount. Sourced
from the MATRIZ wiki's CC-licensed classification -- a stable, low-detail
primary source found after two weaker full-76-text candidates were
researched and rejected (seedocs/standard-solutions-provenance.adoc).StandardSolution(modulektriz-core) enumerates the 76 individual
classical TRIZ standard solutions -- classical dot-numbered code (e.g.
"1.1.1"), owningStandardSolutionClass, and a short English "what to
do" statement per solution -- with anofCode(code)lookup. Transcribed
from a single 5-part TRIZ Journal article series (Terninko, Domb & Miller,
2000), not a majority-reconciled compilation like the contradiction
matrix; seedocs/standard-solutions-provenance.adocfor the full
sourcing record and caveats (including the5.1.1numbering anomaly).
As withStandardSolutionClass, there is deliberately no bridge function
from aSuField/SuFieldQualityto a specificStandardSolution, and
StandardSolution.ofCode(...)is not yet exposed as its own MCP tool.SuField.renderSvg()(modulektriz-render-kuml) renders asuField { }
model to a standalone SVG document: the classical S1-S2-Field triangle,
F at the apex, S1 bottom-left, S2 bottom-right, action reading
right-to-left from S2 into S1. UnlikeFunctionModel.renderSvg(), this
path never invokes kUML's ELK layout engine -- the triangle's geometry is
fixed and deterministic, confirmed against two independent primary
sources on classical Su-Field notation.SuFieldQualityreuses
FunctionQuality's existing stroke vocabulary (solid/dashed/doubled/wavy)
rather than inventing a second one, per MATRIZ's own statement that
Su-Field interaction symbols mirror function-modeling symbols; an
INCOMPLETEtriangle draws no base line at all.FieldTypegained a
fourth field,abbreviation, carrying the classical subscript (Mec,
Th,Ch,El,M,Gr) used in the printedF-symbol notation.ktriz-script's default imports now also includedev.ktriz.sufield.*,
sosuField { }(andSuField.renderSvg(), via the existing
dev.ktriz.render.kuml.*default import) are callable from a
.ktriz.ktsscript with no explicit import, matchingfunctionModel { }.- Hardened
xmlEscapeText(modulektriz-render-kuml) to strip characters
XML 1.0 forbids outright (control characters, unpaired surrogates) before
escaping -- closes a latent defect shared by both SVG renderers where a
component/substance name containing such a character produced an
unparseable document.
=== AI tooling
- Three new MCP tools in
ktriz-mcp, mirroring the existing
build_function_modelpattern:build_su_field(validates through the
sameSuFieldconstruction logic as the DSL, and returns a ready-to-use
suField { }Kotlin snippet instructuredContenton success),
list_field_typesandlist_standard_solution_classes(few-shot
catalogue tools). Norender_su_field_svgMCP tool, for consistency with
build_function_model-- rendering stays CLI-/script-only.
=== Project infrastructure
- A GitHub Actions CI workflow (
.github/workflows/ci.yml) runs
./gradlew clean checkon every push/PR tomaster-- kTRIZ's first CI
pipeline.
v0.1.0 -- first tagged snapshot
= Changelog
All notable changes to kTRIZ are documented here. The project is pre-1.0
and the API is unstable -- breaking changes may happen in any release
without a deprecation period.
== v0.1.0 -- 2026-09-02
First tagged snapshot. Everything below already exists on master before
this tag; the tag exists to give the current state of the project a stable,
citable reference point, not to mark a sudden jump in functionality.
=== Contradiction spine
- All 39 classical Altshuller engineering parameters and all 40 classical
inventive principles, as Kotlinenum classes with English and German
labels -- existence is a compiler-enforced guarantee, not a runtime check. Contradiction+ thecontradiction { }factory, with a compile-time
existence check and a runtime well-formedness check (a parameter cannot
contradict itself).- The full classical 39x39 contradiction matrix (1248 populated cells),
reconciled from four independent, freely available transcriptions under a
documented majority-rule process -- seedocs/matrix-provenance.adocand
kTRIZ-ADR-0003. Matrix 2003/2010/2022 (Darrell Mann/CREAX, proprietary,
48 parameters) was never consulted and is structurally rejected by the
parser. - A pluggable matrix-source seam:
ContradictionMatrixSource.fromFile(path)
loads an operator-supplied matrix file through the same hardened,
size-capped, URI-scheme-restricted gate and parser as the bundled data;
the system propertyktriz.matrix.fileswapsContradictionMatrix's own
process-wide default with no code change.
=== Function models
functionModel { }-- a small DSL for TRIZ function analysis:Component
nodes andFunctionEdges judgedUSEFUL/HARMFUL/INSUFFICIENT/
EXCESSIVE, with automatic component dedup by name and accepted
self-loops.FunctionModel.renderSvg()(modulektriz-render-kuml) renders a
function model to a standalone SVG document, using kUML's
kuml-layout-api/kuml-layout-elkpurely as a graph-layout engine (no
kUML metamodel, no kUML SVG renderer). Node boxes size from real
font-metrics measurement, every edge gets an arrowhead oriented from its
own route geometry, multiple edges between the same component pair bow
apart and their labels stagger to stay readable, and self-loops draw a
dedicated fixed-radius arc.
=== Substance-field models
suField { }-- a small DSL for TRIZ substance-field (Su-Field) analysis:
an object substance S1, an optional second substance S2 acted on through
an optionalFieldType(the six classical Altshuller field types --
mechanical, thermal, chemical, electric, magnetic, gravitational), judged
overall by aSuFieldQuality(COMPLETE/INCOMPLETE/INSUFFICIENT/
EXCESSIVE/HARMFUL). Deliberately narrow scope for this first wave: no
lookup engine over the 76 standard inventive solutions yet, no SVG
rendering of the S1-S2-Field triangle, no MCP tool -- planned as separate,
later waves.
=== AI tooling
- An MCP server (module
ktriz-mcp) exposing the 39 parameters, the 40
principles, the deterministic contradiction-matrix lookup, and
function-model construction as tools over stdio, for LLM agents. Wired
into the CLI asktriz mcp. - A
*.ktriz.ktsKotlin scripting host (modulektriz-script) that
compiles and runs a script withdev.ktriz.core.*/dev.ktriz.function.*/
dev.ktriz.render.kuml.*in scope by default -- no imports needed, and
FunctionModel.renderSvg()is directly callable from a script. Every
outcome (success, compile error, runtime error) maps to a structured
KtrizScriptOutcomewith a stableKTRIZ-S-xxxcode, never a raw
exception or stack trace -- the generate-compile-repair signal the whole
project is built around. Exposed on the command line asktriz run, with
a--output jsonmode for machine consumers.
=== Not yet included
- The 76 standard inventive solutions (Su-Field lookup/repair engine).
- SVG rendering of Su-Field triangles.
- Physical contradictions, ARIZ as a guided workflow, evolution trends --
explicitly deferred past V1, see kTRIZ-ADR-0001. - Any published artifact (Maven Central, Homebrew, SDKMAN!) -- this tag is
source-only.