Repository navigation
feat(release-trust): package-scoped tags for flow and agent from the OpenAdapt monorepo - #54
Merged
Merged
Conversation
…OpenAdapt monorepo Flow from 2.2.0 and agent from 2.2.1 release from OpenAdaptAI/OpenAdapt (packages/flow, packages/agent) under openadapt-flow-v<version> and openadapt-agent-v<version> tags; the launcher keeps v*. production_trust binds each target to a tag prefix and the matching ruleset names, and checks each tag ruleset against that one exact include pattern (refs/tags/<prefix>v*). The release version alone picks the source: every earlier release stays bound to its standalone repository and v<version> tag (previous_sources), so the retained admissions still validate and neither side can claim the other's releases. The lifecycle policy (revision 8) and the release authority policy name OpenAdapt for both targets; the schemas accept exactly those patterns and names and pair each source repository with its tag form.
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.
Flow 2.2.0 and agent 2.2.1 are the first releases from the OpenAdapt monorepo (
packages/flow,packages/agent). Until now the policy bound theflowandagenttargets to the standalone repositories, andproduction_trust.pyaccepted onlyrefs/tags/v*rulesets, which the launcher already uses in OpenAdapt. So no monorepo release could be admitted.What changes
<pypi-project>-v<version>:openadapt-flow-v2.2.0,openadapt-agent-v2.2.1. The launcher keepsv*.TARGET_CONTRACTS, flow and agent now name OpenAdaptAI/OpenAdapt (627024850), withpackage_pathand an exacttag_prefix.previous_sourceskeeps every earlier release (flow < 2.2.0, agent < 2.2.1) bound to its standalone repository and plainv<version>tag.release_source,release_tag,release_source_for_tag). A monorepo release can't claim the old repository or av*tag, and an earlier release can't claim the monorepo. The retained admissions still validate unchanged.validate_tag_rulesetstakes the prefix and requires exactly one include pattern,refs/tags/<prefix>v*, plus that prefix's ruleset names. The prefix is a literal checked against^(|openadapt-[a-z]+-)$, so the only wildcard is the version part. The bypass actors, rules, enforcement and roles are unchanged.production-lifecycle-policy.json(revision 8) andproduction-release-authority-policy.jsonname OpenAdapt for flow and agent. The authority policy entries also carrypackage_path,tag_patternand both ruleset names.check_profilestill treats the frozen openadapt-flow and openadapt-agent repositories as product target repositories, because their earlier releases stay bound to them.Rulesets needed on OpenAdapt (created separately; the existing
v*rulesets are untouched):OpenAdapt policy: openadapt-flow release tag creationandOpenAdapt policy: immutable openadapt-flow release tagsonrefs/tags/openadapt-flow-v*OpenAdapt policy: openadapt-agent release tag creationandOpenAdapt policy: immutable openadapt-agent release tagsonrefs/tags/openadapt-agent-v*Validation run locally
tests/test_package_scoped_release_tags.py(boundaries, refusals, and a flow 2.2.0 admission issued end to end and checked against the schema).validate_evidence_registry,validate_production_lifecycle(7 active admissions; history-only against main also passes),check_profile, andcheck_benchmark_claimsall pass.