From 3769af25137c00b2cc73e0fd5e879d3df204adf0 Mon Sep 17 00:00:00 2001 From: Virgil Date: Mon, 30 Mar 2026 18:13:30 +0000 Subject: [PATCH] test(ax): add version example coverage Co-Authored-By: Virgil --- .core/reference/docs/RFC.md | 1 + docs/RFC.md | 1 + version_example_test.go | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 version_example_test.go diff --git a/.core/reference/docs/RFC.md b/.core/reference/docs/RFC.md index 4e0265a..f959059 100644 --- a/.core/reference/docs/RFC.md +++ b/.core/reference/docs/RFC.md @@ -423,6 +423,7 @@ Every exported function MUST have a usage-example comment: ## Changelog +- 2026-03-30: `version.go` now has an example companion, closing the last build-relevant source file without example coverage. - 2026-03-30: `pkg/agentic/commands_workspace.go` now has a matching example companion, closing the last agentic source file without example coverage. - 2026-03-30: plan files and review queue rate-limit state now use `WriteAtomic`, keeping JSON state writes aligned with the AX safe-write convention. - 2026-03-30: transport helpers preserve request and read causes, brain direct API calls surface upstream bodies, and review queue retry parsing no longer uses `MustCompile`. diff --git a/docs/RFC.md b/docs/RFC.md index 7aff798..ca98c4a 100644 --- a/docs/RFC.md +++ b/docs/RFC.md @@ -423,6 +423,7 @@ Every exported function MUST have a usage-example comment: ## Changelog +- 2026-03-30: `version.go` now has an example companion, closing the last build-relevant source file without example coverage. - 2026-03-30: `pkg/agentic/commands_workspace.go` now has a matching example companion, closing the last agentic source file without example coverage. - 2026-03-30: plan files and review queue rate-limit state now use `WriteAtomic`, keeping JSON state writes aligned with the AX safe-write convention. - 2026-03-30: plan create tests now assert the documented `core.ID()` shape and repeated plan creation produces unique IDs, keeping the plan contract aligned with the simplified generator. diff --git a/version_example_test.go b/version_example_test.go new file mode 100644 index 0000000..392f74b --- /dev/null +++ b/version_example_test.go @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: EUPL-1.2 + +package agent + +import ( + core "dappco.re/go/core" +) + +func ExampleVersion() { + oldVersion := Version + Version = "0.15.0" + defer func() { Version = oldVersion }() + + core.Println(Version) + // Output: 0.15.0 +}