This is an automated email from the ASF dual-hosted git repository. luigidemasi pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kit.git
commit 5533c8c922e8430c008cb639689ec045274323a5 Author: Jinal Sarvaiya <[email protected]> AuthorDate: Fri Oct 23 17:10:52 2026 +0100 fix #108: add obsolete-probe regression guards and fix changelog --- CHANGELOG.md | 3 +-- .../camelkit/generator/ResourceConsistencyTest.java | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba79e9c3..498f7b09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,8 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 to `shared/mcp-setup.md` documenting when to use `camel-knowledge` vs `camel` catalog, with the server-name rule and tool list. Rewrite Rule 3 and Iron Law 1 steps 2–3 to bind the catalog version from `.camel-kit/config.properties` instead of the broken `camel_catalog_components(limit=0)` probe. Remove all - `limit=0` probe references from downstream guides and agent personas. Add forward-compatibility notes for - Camel 4.23+ tool renames (`camel_catalog_find` / `camel_catalog_doc`). + `limit=0` probe references from downstream guides and agent personas. - **`camel-migrate` direct mode (#245)** — add a third invocation mode that implements routes directly under Iron Laws 1 and 2 when the user's request names concrete deliverables. Scope Iron Law 3 and the HARD-RULE block to chained/standalone modes. Add direct-mode implementation diff --git a/camel-kit-core/src/test/java/io/github/luigidemasi/camelkit/generator/ResourceConsistencyTest.java b/camel-kit-core/src/test/java/io/github/luigidemasi/camelkit/generator/ResourceConsistencyTest.java index ba60ae66..7f38b131 100644 --- a/camel-kit-core/src/test/java/io/github/luigidemasi/camelkit/generator/ResourceConsistencyTest.java +++ b/camel-kit-core/src/test/java/io/github/luigidemasi/camelkit/generator/ResourceConsistencyTest.java @@ -148,7 +148,19 @@ class ResourceConsistencyTest { "raw verification log forwarded as an escalation", staleLine("Each phase has an independent iteration budget of 15 attempts. If the same error recurs " + "after a fix attempt, the loop short-circuits and escalates to the user. Unclassified " - + "errors are also escalated with the raw log output."))); + + "errors are also escalated with the raw log output.")), + new StalePattern( + "obsolete limit=0 version probe", + Pattern.compile("\\blimit=0\\b")), + new StalePattern( + "obsolete probe-resolved-version instruction", + Pattern.compile("probe resolved camelVersion")), + new StalePattern( + "obsolete camel_catalog_components probe binding", + Pattern.compile("Catalog binding:\\s*camel_catalog_components")), + new StalePattern( + "unsupported 4.23+ tool name camel_catalog_find", + Pattern.compile("\\bcamel_catalog_find\\b"))); @TempDir Path tempDir; @@ -947,6 +959,10 @@ class ResourceConsistencyTest { "`NOT_FOUND` requires a successful, complete matching list result with no exact artifact name", "source=.camel-kit/config.properties", "END LOADED CONTEXT"); + assertFalse(catalogResearcher.contains("camel_catalog_components(limit=0)"), + "Researcher must not require the obsolete limit=0 probe"); + assertFalse(catalogResearcher.contains("returned camelVersion"), + "Researcher output must not require a returned camelVersion from the probe"); for (String field : List.of( "Artifact identity:", "Runtime:",
