ex: add conformance scaffolding and telemetry instrumentation#18
Open
ex: add conformance scaffolding and telemetry instrumentation#18
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
tests.yamlspec.FakeLLMadapter.Description
Cantrip.Conformance.TestCase,Cantrip.Conformance.Loader,Cantrip.Conformance.FakeLLM,Cantrip.Conformance.Expect, andCantrip.Conformance.Runnerunderex/lib/cantrip/conformance/to load/validatetests.yaml, produce typed test cases, and execute simplecast-style actions.Cantrip.Conformance.Loader) that convertstests.yamlinto Elixir data (uses a small Ruby-based YAML->JSON shim viaSystem.cmd/2to avoid adding Hex deps in this environment).[:cantrip, :entity, :start]/[:cantrip, :entity, :stop]inEntityServer, emit[:cantrip, :turn, :start]/[:cantrip, :turn, :stop]per turn withentity_idandturn_number, emit[:cantrip, :gate, :call]and[:cantrip, :gate, :result]with duration inCircle.execute_gate/3, and emit[:cantrip, :code, :eval, :start|:stop]around sandboxed code evaluation.ex/test/to exercise the loader,FakeLLM, a small runner smoke test, and a telemetry assertion (M25TelemetryTest) that attaches a handler and asserts events/metadata were emitted.Testing
ex/test/conformance/loader_test.exs,ex/test/conformance/fake_llm_test.exs,ex/test/conformance_test.exs, andex/test/m25_telemetry_test.exs(all tagged to exercise the new conformance scaffolding and telemetry).tests.yamlcontains71cases via a quick YAML count (ruby -ryaml -e ...) to match the loader expectation.cd ex && mix deps.getbut dependency fetch was blocked in this environment due to network/SSL restrictions to Hex, so full dependency installation could not be completed.mix testfor the new tests but execution was blocked by a local Elixir version mismatch (project requires~> 1.19while the environment provides1.18.3), so automated test runs could not complete here.Codex Task