Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .gds/bundle.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ bundle:
version: "0.4.0-dev"
release_sequence: 0
channel: "development"
source_tree_digest: "sha256:19faa612aeb7afbcd594c3b3e8ef1bec59f5639e73f1ecb8e63c7756d126144c"
digest: "sha256:6e9dccd59cc1fd5e89d0c7dfab833780599b6c66adf8baf112f3ceb5c3178258"
source_tree_digest: "sha256:989914f430e3575d2db2fd71fc8cdcf2313d08889fa2db32622d2d7966cbee60"
digest: "sha256:7308f18dfc57067fb30eab89058ddee635e554b149fbe2aa2eecf276eb4007b7"

projection:
input_digest: "sha256:6c591644a111349d49e3b5d25e1418a14a74b0ca98891c75a8b39b9408f0d441"
output_digest: "sha256:7f3bb302ff5b46d9ddcf68765e3e05e12938ecdafe75a82b37313b75fdb87033"
input_digest: "sha256:43c3fa27e63fb7c3a2fde443d397f042d937a21aa868adab169a4cefdb088eed"
output_digest: "sha256:d9acac2455048c23dc2a1812b1eaa775b0e4862ef3ea9aa3998d11797786f297"
files:
- path: ".gds/compiled-policy.json"
digest: "sha256:78d09606bb4168d74bce1f50ab62b46a7ded34652c6b23af1badfd26dd060e94"
- path: ".github/workflows/gds-ci.yml"
digest: "sha256:165855583077fe66dfa6828017c7292c8dbd3fba173d259dffe1ffd59e6f6417"
digest: "sha256:4718a7cf5248d79660a3bbe952a158a4fe25672ec52948c5f2425fdb4cfbf3ec"
4 changes: 2 additions & 2 deletions .github/workflows/gds-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# GENERATED FILE - DO NOT EDIT DIRECTLY
# generator: gds
# bundle: 0.4.0-dev
# source-tree-digest: sha256:19faa612aeb7afbcd594c3b3e8ef1bec59f5639e73f1ecb8e63c7756d126144c
# input-digest: sha256:6c591644a111349d49e3b5d25e1418a14a74b0ca98891c75a8b39b9408f0d441
# source-tree-digest: sha256:989914f430e3575d2db2fd71fc8cdcf2313d08889fa2db32622d2d7966cbee60
# input-digest: sha256:43c3fa27e63fb7c3a2fde443d397f042d937a21aa868adab169a4cefdb088eed
# output-digest: sha256:8f61a9ffd6949238099d4523a037d57199eb575f187cc8ac52baa4b5b832e79f
# edit-source:
# - .gds/repository.yaml
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Versioning.
- Release sequence is an explicit monotonic dispatch input rather than the
repository-local workflow run number, preserving the accepted sequence ledger
across the public-authority migration.
- Release lifecycle operations invoked from a private control plane now bind
their committed implementation proof to its pinned public GDS engine root.

## [0.1.1] - 2026-08-16

Expand Down
7 changes: 6 additions & 1 deletion core/app/release_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/NDDev-OpenNetwork/github-device-sync/core/domain"
"github.com/NDDev-OpenNetwork/github-device-sync/core/identity"
"github.com/NDDev-OpenNetwork/github-device-sync/core/operations"
"github.com/NDDev-OpenNetwork/github-device-sync/core/projections"
"github.com/NDDev-OpenNetwork/github-device-sync/core/releaseconsumer"
"github.com/NDDev-OpenNetwork/github-device-sync/core/serialization"
"github.com/NDDev-OpenNetwork/github-device-sync/core/state"
Expand Down Expand Up @@ -543,7 +544,7 @@ func (services *Services) releaseOperationContext(
if err != nil {
return releaseOperationContext{}, []domain.Finding{dependencyFinding(path, err)}
}
if _, err := services.Git.CommittedSourceOID(ctx, root, []string{
if _, err := services.Git.CommittedSourceOID(ctx, releaseImplementationRoot(root), []string{
"requirements/bundle-trust.yaml", ".github/workflows/release-bundle.yml",
"scripts/validate_release.sh", "core/app/release_operations.go", "core/app/release_scope.go", "core/bundle",
"core/cli", "core/cmd/gds", "core/operations", "core/providers/git/source.go",
Expand Down Expand Up @@ -582,6 +583,10 @@ func (services *Services) releaseOperationContext(
}, nil
}

func releaseImplementationRoot(controlPlaneRoot string) string {
return projections.ResolveDevelopmentSourceLayout(controlPlaneRoot).EngineRoot
}

func (services *Services) releaseVerifier(identity bundle.TrustVerifier) (releaseconsumer.Verifier, error) {
if services.ReleaseAttestations != nil {
return releaseconsumer.Verifier{Schemas: services.Schemas, Attestations: services.ReleaseAttestations}, nil
Expand Down
15 changes: 15 additions & 0 deletions core/app/release_operations_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package app

import (
"os"
"path/filepath"
"testing"
)
Expand Down Expand Up @@ -28,3 +29,17 @@ func TestNormalizeReleaseOperationPathsProducesStableAbsoluteInputs(t *testing.T
}
}
}

func TestReleaseImplementationRootFollowsThePinnedPublicEngine(t *testing.T) {
root := t.TempDir()
if observed := releaseImplementationRoot(root); observed != root {
t.Fatalf("monolithic release root = %q, want %q", observed, root)
}
engine := filepath.Join(root, "modules", "github-device-sync")
if err := os.MkdirAll(engine, 0o755); err != nil {
t.Fatal(err)
}
if observed := releaseImplementationRoot(root); observed != engine {
t.Fatalf("split release root = %q, want pinned engine %q", observed, engine)
}
}