Skip to content

Commit 0456f57

Browse files
agent-trace: Enforce strict x.y.z version format
Update the Agent Trace runtime default and schema pattern to require three-part numeric semver-style versions. Align golden fixtures and context docs so generated payloads, validation behavior, and documented contracts stay consistent. Co-authored-by: SCE <sce@crocoder.dev>
1 parent 18be4fc commit 0456f57

12 files changed

Lines changed: 15 additions & 14 deletions

File tree

cli/src/services/agent_trace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use super::patch::{
2626
TouchedLineKind,
2727
};
2828

29-
pub const AGENT_TRACE_VERSION: &str = "0.1";
29+
pub const AGENT_TRACE_VERSION: &str = "0.1.0";
3030

3131
fn default_agent_trace_version() -> String {
3232
AGENT_TRACE_VERSION.to_owned()

cli/src/services/agent_trace/fixtures/average_age_reconstruction/golden.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://agent-trace.dev/schemas/v1/trace-record.json",
3-
"version": "0.1",
3+
"version": "0.1.0",
44
"id": "01962f15-2d3d-7c85-9f6b-0a8b4f6b2fd1",
55
"timestamp": "2026-04-23T10:20:30Z",
66
"vcs": {

cli/src/services/agent_trace/fixtures/file_rename_reconstruction/golden.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://agent-trace.dev/schemas/v1/trace-record.json",
3-
"version": "0.1",
3+
"version": "0.1.0",
44
"id": "01962f15-2d3d-7c85-9f6b-0a8b4f6b2fd1",
55
"timestamp": "2026-04-23T10:20:30Z",
66
"vcs": {

cli/src/services/agent_trace/fixtures/hello_world_reconstruction/golden.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://agent-trace.dev/schemas/v1/trace-record.json",
3-
"version": "0.1",
3+
"version": "0.1.0",
44
"id": "01962f15-2d3d-7c85-9f6b-0a8b4f6b2fd1",
55
"timestamp": "2026-04-23T10:20:30Z",
66
"vcs": {

cli/src/services/agent_trace/fixtures/mixed_change_reconstruction/golden.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://agent-trace.dev/schemas/v1/trace-record.json",
3-
"version": "0.1",
3+
"version": "0.1.0",
44
"id": "01962f15-2d3d-7c85-9f6b-0a8b4f6b2fd1",
55
"timestamp": "2026-04-23T10:20:30Z",
66
"vcs": {

cli/src/services/agent_trace/fixtures/poem_edit_reconstruction/golden.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://agent-trace.dev/schemas/v1/trace-record.json",
3-
"version": "0.1",
3+
"version": "0.1.0",
44
"id": "01962f15-2d3d-7c85-9f6b-0a8b4f6b2fd1",
55
"timestamp": "2026-04-23T10:20:30Z",
66
"vcs": {

cli/src/services/agent_trace/fixtures/poem_write_reconstruction/golden.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://agent-trace.dev/schemas/v1/trace-record.json",
3-
"version": "0.1",
3+
"version": "0.1.0",
44
"id": "01962f15-2d3d-7c85-9f6b-0a8b4f6b2fd1",
55
"timestamp": "2026-04-23T10:20:30Z",
66
"vcs": {

cli/src/services/agent_trace/fixtures/text_file_lifecycle_reconstruction/golden.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://agent-trace.dev/schemas/v1/trace-record.json",
3-
"version": "0.1",
3+
"version": "0.1.0",
44
"id": "01962f15-2d3d-7c85-9f6b-0a8b4f6b2fd1",
55
"timestamp": "2026-04-23T10:20:30Z",
66
"vcs": {

config/schema/agent-trace.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"properties": {
88
"version": {
99
"type": "string",
10-
"pattern": "^[0-9]+\\.[0-9]+$",
11-
"description": "Agent Trace specification version (e.g., '1.0')"
10+
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
11+
"description": "Agent Trace specification version (e.g., '1.0.0')"
1212
},
1313
"id": {
1414
"type": "string",

context/glossary.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)