Repository navigation
feat(models): add ucp-lock.json provenance and draft channel on main - #109
Merged
Merged
Conversation
gsmith85
force-pushed
the
feat/ucp-lock-and-draft-channel
branch
3 times, most recently
from
November 18, 2026 23:27
511baf0 to
f0b7453
Compare
This was referenced Nov 18, 2026
gsmith85
force-pushed
the
feat/ucp-lock-and-draft-channel
branch
from
November 19, 2026 04:09
f0b7453 to
79bbf75
Compare
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.
Summary
Adds commit-pinned
ucp-lock.jsonprovenance, switchesmainto the git-native0.0.0.dev0draftchannel, regenerates Pydantic models againstUniversal-Commerce-Protocol/ucp@main(ucp-schema 2.0.0), and updates CI to verify model drift deterministically fromucp-lock.jsonacrossmainandrelease/**branches.ucp-lock.json,generate_models.sh,scripts/generate_models.py): Introduces 2-space formatteducp-lock.json(channel,ucp_ref,ucp_sha,ucp_schema_version,vertical), reducesgenerate_models.shto a minimal executable shim, and implements the flag-only CLI contract ([--from-lock] [--spec-dir <dir>],--ref <ref> [--channel draft|release] [--spec-dir <dir>] [--write-lock], and--spec-dir <dir>) plus deterministic ASTschemas/__init__.pylazy index generation inscripts/generate_models.py(excluded from published wheels).pyproject.toml,src/ucp_sdk/__init__.py): Setsversion = "0.0.0.dev0"onmain(whilerelease/YYYY-MM-DDbranches publishYYYYMMDD.MINOR.PATCHreleases to PyPI) and resolvesucp_sdk.__version__viaimportlib.metadata.version("ucp-sdk")with a"0.0.0.dev0"fallback.src/ucp_sdk/models/schemas/,tests/test_models.py): Regenerates_generated.pyand__init__.pyagainstucp@main(1be6f77) usingucp-schema 2.0.0, adds unit tests coveringucp-lock.jsonschema invariants,scripts/generate_models.pyCLI flag validation, anducp_sdk.__version__, and gates channel-specificCheckoutCompleteRequest/CheckoutCreateRequestassertions so unit tests pass cleanly on bothmain(draft) andrelease/2026-08-25(release)..github/workflows/tests.yml,.github/workflows/linter.yml,README.md): ExpandsTestsandLinttriggers to[main, "release/**"], updatesmodel-driftto install the SHA256-verifieducp-schemarelease binary and regenerate against the pinneducp_shainucp-lock.json, and updatesREADME.mdwith CalVer (YYYYMMDD.MINOR.PATCH,>= 2026-08-25), SHA-pinned git-nativedraftinstallation, and flag-only./generate_models.shusage.Verification
./generate_models.sh(--from-lock) reproduces_generated.py,__init__.py, anducp-lock.jsonwith zero git diff.uv run python -m unittest discover -s tests -p "test_*.py"passes (30 tests, verified on bothdraftandrelease/2026-08-25).uv run ruff check . && uv run ruff format --check . && uv build(confirmingscripts/is excluded from the built wheel) anduvx zizmorpass with zero findings.