Skip to content

feat(cli): sync versioned schema url in codeint.json during codeint update - #135

Merged
avidianity merged 1 commit into
mainfrom
feat/update-syncs-schema
Nov 22, 2026
Merged

avidianity merged 1 commit into
mainfrom
feat/update-syncs-schema

Conversation

@avidianity

Copy link
Copy Markdown
Owner

Summary

Keep codeint.json pinned to a versioned $schema URL: codeint init already writes v{version}, and codeint update now updates that $schema tag in the current repository's codeint.json whenever an upgrade (or in-place sync) runs. Also updates README.md and docs/reference.md to show the versioned $schema URL and document this behavior.

Tier

Tier 1 from the tier check: CLI update command enhancement, integration test, and documentation.

Task

Owner request before v0.2.0:

  • Verify codeint init writes the versioned $schema URL (published_schema_address())
  • Update codeint update to keep codeint.json's $schema tag in sync with the installed release tag
  • Add integration test update_syncs_versioned_schema_in_codeint_json
  • Update README.md and docs/reference.md

Fail-first test

  • Test: crates/cli/tests/update.rs::update_syncs_versioned_schema_in_codeint_json
  • Before the change: codeint update replaced the binary without updating $schema in codeint.json
  • After the change: passed (all 5 tests in update.rs and 5 tests in reference)

Checks

Check Result
cargo test --locked --package codeint-cli --test update --test reference passed
cargo clippy --workspace --all-targets --locked -- -D warnings passed
./target/release/codeint diff origin/main passed (0 regressions, resolved 1 eroded function)
lefthook pre-commit hooks passed

Safety proof

Not applicable: Tier 0 or 1.

Runtime evidence

Verified via crates/cli/tests/update.rs::update_syncs_versioned_schema_in_codeint_json running the real codeint binary against a staged release archive and temporary Git repository containing codeint.json.

Gaps

  • Deferred coverage: none
  • Pre-existing failures: none
  • Environmental failures: none

@avidianity
avidianity merged commit f4de17a into main Nov 22, 2026
9 checks passed
@github-actions github-actions Bot added the tier-2 Tier 2 from the tier check label Nov 22, 2026
@avidianity
avidianity deleted the feat/update-syncs-schema branch November 22, 2026 06:09
@avidianity avidianity mentioned this pull request Nov 22, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tier-2 Tier 2 from the tier check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant