Skip to content

Release & governance preparation (pre-Samsung-transfer) - #1

Merged
Redth merged 24 commits into
mainfrom
redth-tizen-release-governance
Aug 30, 2026
Merged

Redth merged 24 commits into
mainfrom
redth-tizen-release-governance

Conversation

@Redth

@Redth Redth commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

Governance, policy, and release-automation-shape groundwork for Maui.Tizen, prepared ahead of an eventual transfer to Samsung ownership. This PR is conceptually stacked on redth-tizen-foundation-import (core scaffolding/CI, owned by a parallel workstream) — it is opened against main because that foundation branch isn't pushed to the remote yet. No runtime/source/build code is touched; expect a straightforward rebase once foundation CI lands.

What's included

Policy documents (docs/governance/):

  • versioning-policy.md — .NET 11-aligned package versioning scheme + MAUI/Tizen workload dependency rules (lockstep Maui.Tizen.* versioning, TFM conventions, dependency range policy)
  • package-metadata-conventions.md — NuGet metadata conventions, package ID/ownership model, signing, and a trusted-publishing (OIDC) plan with no API-key secrets or personal-account dependencies
  • release-and-servicing-policy.md — release cadence, supported version lines (aligned to .NET's own support policy), release process gate
  • api-compatibility-policy.md — breaking vs. additive change classification, experimental API carve-out, Tizen profile-specific considerations
  • tizen-support-matrix.md — template matrix of supported Tizen profiles/API levels per release line (all TBD — no support claims made yet)
  • deprecation-policy.md — minimum notice periods for API/profile/version-line deprecation
  • samsung-transfer-checklist.md — teams, environments, branch protection, package owners, signing, device runners, recovery contacts, and a mandatory Samsung-owned rehearsal release before real publishing is enabled
  • upstream-cutover-checklist.md — sequencing for deprecating in-tree Tizen support in dotnet/maui and updating Samsung Tizen.NET templates/docs — no deletion or publication performed

Repository governance files (.github/):

  • CODEOWNERS (placeholder team handles, clearly marked as pending team creation)
  • CONTRIBUTING.md, SECURITY.md, SUPPORT.md
  • Issue templates (bug report, feature request, config) and a PR template

Release automation (.github/workflows/release.yml):

  • Skeleton pipeline: build -> validate -> sign -> pack -> publish
  • Manual workflow_dispatch only — not wired to tags/pushes
  • sign and publish fail closed by default; publish additionally requires a literal "PUBLISH" confirmation input plus a nuget-production GitHub Environment that does not exist yet
  • Validated with actionlint (0 errors)

Explicitly out of scope / not done

  • No package IDs reserved, no NuGet ownership configured, no signing certificates provisioned
  • No secrets added anywhere
  • No deletions in dotnet/maui or Samsung Tizen.NET repos
  • No changes to runtime/source code or the build graph (coordinated to avoid conflicts with the foundation/CI workstream)

Remaining external decisions (tracked in the checklists)

  • Final target GitHub org/repo location and team names for Samsung ownership
  • nuget.org package ID prefix reservation + trusted publishing configuration
  • Code-signing certificate/service provisioning
  • Device runner infrastructure for Tizen validation
  • Confirmation that main (vs. redth-tizen-foundation-import) should remain this PR's actual merge base once that branch is pushed

Safe activation steps (future PRs, not this one)

  1. Reserve Maui.Tizen.* NuGet ID prefix under the target org account
  2. Configure nuget.org Trusted Publishing + create nuget-signing/nuget-production GitHub Environments with required reviewers
  3. Replace placeholder steps in release.yml with real build/sign/pack commands (coordinate with the foundation/CI workstream's build entrypoint)
  4. Run the mandatory rehearsal release (checklist section 8) before flipping publish on for real package IDs

@Redth
Redth force-pushed the redth-tizen-release-governance branch from f84d108 to 660a094 Compare August 26, 2026 19:41
@Redth
Redth changed the base branch from main to redth-tizen-foundation-import August 26, 2026 19:41
@Redth

Redth commented Aug 26, 2026

Copy link
Copy Markdown
Owner Author

Rebased onto redth-tizen-foundation-import (79aa0f3) and updated the PR base accordingly. release.yml's build/pack jobs now use the foundation's global.json and eng/build-workload-free.sh instead of a temporary SDK-version hardcode/placeholder; publish gating (literal PUBLISH input + nuget-signing/nuget-production environments) is unchanged. TFM references (net11.0-tizen11.0) and the tizen workload identity were cross-checked directly against eng/baselines.json and Directory.Build.props.

Validation note: this environment's local actionlint 1.7.12 + shellcheck 0.11.0 combination hangs on the built-in shellcheck integration for this repo's multi-job workflow files - reproduced identically on the already-merged .github/workflows/ci.yml, confirming it's a local tool issue, not something introduced here. Validated instead via actionlint -shellcheck= (0 errors on both workflows) plus every run: script individually checked with bash -n and standalone shellcheck (all clean).

Copilot and others added 3 commits August 26, 2026 17:08
…agent

The primary target is net11.0-tizen11.0, which nobody can build today: the Samsung
workload manifest samsung.net.sdk.tizen.manifest-11.0.100 is unpublished, so every
Tizen TFM fails restore with NETSDK1139. Building validation around "run it on a
device" would mean no validation at all until an external dependency ships, and an
entirely unexercised harness on the day it finally mattered.

So the work is split by what blocks it rather than by what it tests. The hosted lane
runs everywhere on every PR; the device lane is separate, tolerated-missing for PRs,
and required for release through environments and a gate job.

Pulling work INTO the hosted lane was the main design goal:

  * The DevFlow API contract. src/Diagnostics/Maui.Tizen.DevFlow.Agent cannot be
    compiled by anyone, but DevFlow's own packages are plain net10.0 assemblies, so
    the hosted lane loads them and pins every member the Tizen agent overrides. All
    24 signatures were verified by compiling a probe subclass against the real
    package, not inferred.
  * Agent decision logic. Capability advertisement, privilege gating, platform
    identity and the native-element registry live in a Tizen-free Shared assembly and
    are fully unit-tested.
  * Dependency policy. Tizen.UIExtensions cannot be restored on a host, but its
    declared dependencies can be read from its nuspec. The MAUI Graphics 6.x rule is
    a tripwire asserted in BOTH directions, so a stale exemption cannot outlive the
    problem it described.
  * Convention engines. Mapper parity, DI registration and implementation coverage
    are exercised against in-assembly fakes including cases that must fail; a broken
    engine would otherwise be indistinguishable from a passing one.

133 tests, 0 failures, 7 skips. Every skip names what is missing and which lane
covers it, and the runner prints them: a suite that quietly skips everything is the
failure mode this lane exists to prevent.

Two real defects found and fixed while building this:

  * eng/build-workload-free.sh used `grep -qi tizen`, which matches the maui-tizen
    workload. That workload carries no Tizen platform packs at all - in the MAUI
    manifest it is only `"extends": ["maui-blazor"]` - so the gate reported "the
    Tizen lane can now be made required" on a machine where every Tizen build fails.
    Now anchored to a workload id of exactly `tizen`.
  * Consumer tests were not hermetic: a package produced by one test resolved from
    the shared global NuGet cache in another test even when absent from the feed
    under test, turning a negative restore test into a false pass. Each workspace now
    gets its own NUGET_PACKAGES.

Screenshot comparison implements PNG decode/encode directly rather than taking
SkiaSharp or ImageSharp: no native assets, so it behaves identically across runners,
and no risk of a library version change silently invalidating every checked-in
baseline.

Deliberately not done here: MAUI.Sherpa is documented as a separate consumer head
with a feed handoff contract, and is not modified. Wiring it into this build would
let it resolve project references instead of packages and stop testing the thing it
exists to test.

The Tizen-targeted agent code is not verified by a compiler. That is stated plainly
at the top of its project file and in docs/validation/blockers.md rather than left to
be discovered.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…emantics

The first CI run failed where the local run had passed. TreatWarningsAsErrors is
conditioned on ContinuousIntegrationBuild, so xUnit1051 - async calls should pass
TestContext.Current.CancellationToken - was a warning locally and an error in CI.

Both halves are fixed rather than just the symptom:

  * Every DotNetCli call in a test now flows the test's cancellation token, so a hung
    'dotnet restore' is cancelled with the test instead of running to the 10-minute
    timeout.
  * run-hosted-validation.sh exports ContinuousIntegrationBuild=true by default,
    mirroring eng/build-workload-free.sh, so a local run applies the same rules CI
    does. MAUI_TIZEN_LOCAL_SEMANTICS=1 opts out.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…tate

The first CI run could not restore DevFlow. Three distinct problems, all found by
reproducing CI with a cold NUGET_PACKAGES rather than by guessing:

  * PackageSourceMapping sent Microsoft.Maui.* exclusively to the dotnet11 feed, but
    DevFlow publishes to nuget.org. Its ids start with Microsoft.Maui. and so matched
    that pattern. Added a longer, more specific Microsoft.Maui.DevFlow.* pattern under
    nuget.org, which wins by longest prefix.

  * DevFlow's preview packages were built against the RELEASED MAUI 10.0.x packages,
    which exist only on nuget.org, so its transitive dependencies were unresolvable
    too. Microsoft.Maui.* is now listed under both sources; NuGet considers both and
    selects by version, and versions stay centrally pinned. Pinning DevFlow onto the
    net11 preview instead was tried and rejected: it drags in Microsoft.Extensions.*
    previews that no mapped feed publishes.

  * A user-level config that disables nuget.org silently switched the source off, and
    the resulting NU1100 lists nuget.org as considered - so it reads like a missing
    package rather than a disabled feed. nuget.config now clears
    disabledPackageSources, for the same reason it already cleared packageSources.

Verified with , which is what
made the difference: every earlier local run passed only because the packages were
already in the shared cache.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Redth
Redth force-pushed the redth-tizen-release-governance branch from 660a094 to db8cbdf Compare August 26, 2026 21:10
@Redth

Redth commented Aug 26, 2026

Copy link
Copy Markdown
Owner Author

Rebased onto the latest redth-tizen-foundation-import (1b4960f) and fixed the workload-detection defect: release.yml no longer runs dotnet workload install tizen --skip-manifest-update.

pack job now:

  1. Probes nuget.org's flat-container feed directly for a published Samsung workload manifest package (both ID spellings, using the SDK band from eng/baselines.json) — mirrors .github/workflows/ci.yml's tizen-workload-gate probe logic rather than reinventing it. Live-verified: both spellings currently 404, matching eng/baselines.json's recorded "unavailable" status.
  2. If absent: stops before pack with an explicit external-gate result, no fabricated package.
  3. If present: installs via Samsung's supported installer/local manifest path (docs/migration.md, Samsung workload PR #310) — not concretely wired up yet since Samsung hasn't published anything to install, so this step fails loudly by design the first time it would run, same as ci.yml's own "Build Tizen projects" placeholder — then re-verifies with this repo's own dotnet msbuild -t:ReportTizenWorkload detection target (the exact target eng/tests/test-workload-detection.sh pins) before proceeding to pack.

Also swapped one inline ${{ }} expression inside a bash if for an env:-passed variable, avoiding a shellcheck SC2050 false positive and matching this repo's existing convention.

Validated via actionlint -shellcheck= (0 errors) plus every run: script individually checked with bash -n and standalone shellcheck (all clean) — the full actionlint+shellcheck integration still hangs locally on any multi-job workflow in this repo, reproduced identically on the unmodified ci.yml, confirming it's a local tooling issue.

Copilot and others added 7 commits August 26, 2026 17:17
Two platform facts break code that compiles fine against older Tizen: Tizen.Maps was
removed, and Tizen.NUI.Window.Instance is deprecated in favour of Window.Default.

Both are verified rather than asserted. The Samsung reference pack is an ordinary NuGet
package, so the hosted lane downloads the version pinned in eng/baselines.json
(Samsung.Tizen.Ref.API15 15.0.0.19396) and checks that Tizen.Maps.dll really is absent
from its 105 assemblies, and that Window.Instance really carries [Obsolete("This has
been deprecated in API12, please use Default instead")] while Window.Default exists.

That also makes the rules self-retiring: if Samsung restores a removed assembly or drops
a deprecation, the reference-pack tests fail and say the rule should be deleted, instead
of the repository carrying a workaround for a problem that no longer exists. Verified by
flipping the contract values and confirming both tests fail.

SCOPE. The guard scans a file exactly when a project compiles it. src/Maui.Tizen.* was
imported verbatim from dotnet/maui and sets EnableDefaultCompileItems=false, so those
sources are <None> and are out of scope: scanning them would produce hundreds of failures
describing upstream history, and the only way to green would be to switch the guard off.
Projects enter scope automatically as each wave opts into compiling. Compile sets are
resolved by reading project XML, because the Tizen projects cannot be MSBuild-evaluated
at all without the Samsung workload.

It immediately found three real uses of Window.Instance in the DevFlow agent, now fixed.
Also fixed an adjacent latent bug there: ResolveWindow returned the default window for
every index, which would silently capture the wrong surface once multi-window exists.

MapService is banned but MapServiceToken is explicitly allowed, and both are recorded:
IGeocoding is unsupported on API15 (built on Tizen.Maps, no replacement API, must not be
DI-registered, throws PlatformNotSupportedException), while MapServiceToken stays
accepted and no-op so the Essentials DI bridge startup path keeps working. Matching whole
identifiers is what keeps the ban from flagging the shim it exists to preserve.

The scanner blanks comments and string literals before matching, preserving offsets so
line numbers stay exact. Not theoretical: this repository's own docs and the contract file
itself discuss both banned symbols at length.

Also removes duplicated foundation logic: the workload probe now uses the foundation's
ReportTizenWorkload target rather than my grep, and the inline baseline-consistency check
in build-workload-free.sh is dropped in favour of RepositoryContractTests, which asserts
the same invariants plus manifest api-version and SDK band membership.

Two foundation invariants needed narrow, justified exclusions: Microsoft.Maui.DevFlow.* is
not part of the MAUI baseline (separate maui-labs release train), and tests/fixtures/** are
inputs to tests rather than solution members - they ship empty Directory.Build.props so
they do not inherit repository conventions, which is the point of them.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…e Tizen agent

Eight required fixes from code review.

1. RELEASE GATE. The gate inspected only the matrix job's result, and a matrix whose device
steps were all conditioned out still reports success - so a device lane that validated
nothing passed a release. Each profile now writes a result file recording whether the lane
was available and whether it passed, and the gate requires one per required profile.
Artifacts rather than job outputs, because matrix outputs collapse to a single
last-writer-wins value and a passing profile would mask a skipped one. The decision moved
out of YAML into eng/validation/scripts/evaluate-release-gate.sh so it can be tested;
ReleaseGateTests covers it as a truth table including the exact case that slipped through.

2. PHANTOM PROJECT. The workflow built samples/Maui.Tizen.Catalog.csproj, which has never
existed; the step never ran, so it sat there looking plausible. The app under test is now a
repository variable, absence is reported, and a release is BLOCKED rather than passing
vacuously. WorkflowReferenceTests asserts no workflow references a missing path.

3. API15 AGENT CODE - and the compiler to prove it. eng/tests/Api15CompileProbe compiles
the agent against the real Samsung.Tizen.Ref.API15 assemblies, consumed as an ordinary
package, on a hosted runner with warnings-as-errors. It found ~15 real defects:

  * Window.FeedTouch does not exist; input now uses Tizen.NUI.WindowSystem.InputGenerator
    (verified ctor/GenerateTouch/GenerateKey signatures), and Buttons go through the managed
    IButton.Clicked path rather than an unraisable NUI event.
  * Capture.Instance and Capture.FinishedEventArgs do not exist; Capture is instantiated per
    request and the event args type is top-level CaptureFinishedEventArgs.
  * Window.GetDefaultLayer() returns Layer, not View; Capture.Start takes a Container.
  * PrivacyPrivilegeManager is itself [Obsolete] in API15; privileges now come from
    Package.Privileges, which is also more accurate for install-time privileges.
  * GraphicsTypeManager.ScaleFactor does not exist; the property is Density.
  * Our own Maui.Tizen.* namespace shadows Tizen.*, so Tizen.Log resolved to Maui.Tizen.Log.
  * View/Window/Color/Path are ambiguous with Microsoft.Maui.* under UseMaui.

4. ON-DEVICE ASSERTIONS. The device job ran the hosted script on the controller, where no
Tizen backend is loaded, so mapper-parity and Essentials skipped exactly as on a hosted
runner. It now invokes a DevFlow extension endpoint inside the deployed app, and a run
reporting zero assertions is a failure.

5/6. RELEASE ENFORCEMENT. The workflow exports MAUI_TIZEN_RELEASE_VALIDATION=1 on release
runs, and ReleaseReadinessTests turns the skip-on-missing-artifact suites into failures:
every declared package packed and matching its contract, every required baseline present,
every gating profile reporting a hardware pass. A test asserts the flag stays wired, since
losing it would silently restore skipping.

7. CAPABILITY CACHING. The environment froze window-dependent capabilities at construction,
so an agent that started before the first window reported the tree, screenshot and
interaction endpoints as unsupported forever. They are live probes now.

8. LIFECYCLE. app_launcher -k terminates; relaunching is a cold start, which tests process
startup rather than suspend/resume - where Tizen apps actually lose state. Backgrounding now
goes through the home application, and resume asserts the process survived, handlers
re-attached (non-empty tree), and a pre-background marker survived.

180 tests, 0 failures. Verified the new gates fail for the right reasons: flipping contract
values fails the ref-pack checks, and MAUI_TIZEN_RELEASE_VALIDATION=1 fails all four
release-readiness gates on the current tree.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Adds policy, metadata, and release-automation-shape groundwork ahead of
eventual Samsung ownership, conceptually stacked on
redth-tizen-foundation-import. No runtime/source code or CI build logic
is touched; this is documentation, templates, and a safely-gated
workflow skeleton only.

- .NET 11-aligned package versioning policy and MAUI/Tizen workload
  dependency rules (docs/governance/versioning-policy.md)
- NuGet package metadata conventions, ownership, and trusted-publishing
  model with no secrets or personal-account dependencies
  (docs/governance/package-metadata-conventions.md)
- Release/servicing policy, API compatibility policy, deprecation
  policy, and a Tizen support matrix template
- Repository governance files for eventual Samsung ownership:
  CODEOWNERS (placeholder teams), CONTRIBUTING, SECURITY, SUPPORT,
  issue/PR templates
- Release workflow skeleton (.github/workflows/release.yml):
  build -> validate -> sign -> pack -> publish, gated behind
  GitHub Environments and a literal "PUBLISH" confirmation input;
  publish and sign steps fail closed until real credentials/ownership
  are configured. Validated with actionlint.
- Samsung transfer checklist (teams, environments, branch protection,
  package owners, signing, device runners, recovery contacts, and a
  mandatory Samsung-owned rehearsal release)
- Upstream cutover checklist for dotnet/maui and Samsung Tizen.NET
  templates/docs, sequencing deprecation before removal without
  performing any deletion or publication here

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- versioning-policy: primary TFM is versioned net11.0-tizen11.0, with
  lower Tizen API-level TFMs as optional matrix-driven entries only
- versioning-policy/tizen-support-matrix/upstream-cutover-checklist:
  correct the Tizen workload identity to tizen (not maui-tizen) and
  stop documenting a specific dotnet workload install invocation;
  defer the exact Samsung installer/manifest flow to the support matrix
- release.yml: restructure control flow so build/validate/pack always
  succeed without signing credentials and produce unsigned CI packages;
  sign and publish are now both gated behind the literal PUBLISH
  input plus their respective GitHub Environments, and only run after
  pack. Re-validated with actionlint (0 errors).
- release.yml: point DOTNET_SDK_VERSION at the current .NET 11 preview
  band (11.0.100-preview.7) instead of a nonexistent stable version,
  with a note to source it from global.json once published
- SECURITY.md: drop the Microsoft-affiliated/MSRC framing; GitHub
  private vulnerability reporting is the sole interim channel, with an
  explicit placeholder requirement to replace it with Samsung's
  designated channel at transfer
- samsung-transfer-checklist: update the security-contact checklist
  item to match the revised SECURITY.md channel

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Rebases redth-tizen-release-governance onto the now-pushed and green
redth-tizen-foundation-import (79aa0f3), replacing the temporary
SDK-version hardcode and build placeholders with the foundation's real
entrypoints:

- build job: setup-dotnet now reads global-json-file: global.json
  instead of a hardcoded DOTNET_SDK_VERSION env var, and calls
  ./eng/build-workload-free.sh (the same entrypoint used by
  .github/workflows/ci.yml) instead of an echo placeholder.
- validate job: adds a check that eng/baselines.json's target TFM
  (net11.0-tizen11.0) and package ID prefix (Maui.Tizen) stay aligned
  with docs/governance/versioning-policy.md, so the two cannot
  silently drift.
- pack job: setup-dotnet also reads global.json; the pack step now
  probes for the Samsung Tizen workload (dotnet workload install tizen
  --skip-manifest-update, mirroring the probe in ci.yml's
  tizen-workload-gate job) and reports the external-gate status
  instead of fabricating fake packages, since net11.0-tizen11.0 cannot
  be built/packed until Samsung publishes the workload manifest (see
  eng/baselines.json).
- Publish gating is unchanged: sign/publish still require the literal
  "PUBLISH" input plus their own GitHub Environments
  (nuget-signing/nuget-production), neither of which exists yet.

Validation note: this machine's local actionlint (1.7.12) + shellcheck
(0.11.0) combination hangs when running the built-in shellcheck
integration against this repository's multi-job workflow files -
reproduced identically against the already-merged, CI-green
.github/workflows/ci.yml, confirming it is a local tool/environment
issue and not specific to this change. Validated instead via:
  - `actionlint -shellcheck=` on both release.yml and ci.yml (0 errors;
    covers YAML structure, job dependency graph, and expression
    contexts)
  - every run: script extracted and independently checked with both
    `bash -n` and standalone `shellcheck` (all clean)
  - cross-checked net11.0-tizen11.0 and the `tizen` workload identity
    directly against eng/baselines.json and Directory.Build.props

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Rebases redth-tizen-release-governance onto the now-updated
redth-tizen-foundation-import (1b4960f), and fixes the last release
workflow defect: release.yml no longer runs
`dotnet workload install tizen --skip-manifest-update` to detect the
Samsung Tizen workload.

That command cannot succeed on a clean runner regardless of whether
Samsung has shipped, because the Samsung manifest is third-party and
side-loaded and is not discoverable through the SDK's public workload
search - it can only report a false negative, or worse, silently
resolve MAUI's unrelated empty `maui-tizen` alias instead. This is the
same reasoning .github/workflows/ci.yml's tizen-workload-gate job
already documents and acts on.

pack job now:
  - Probes nuget.org's flat-container feed directly for a published
    Samsung workload manifest package (checking both ID spellings and
    the SDK band from eng/baselines.json), mirroring
    .github/workflows/ci.yml's tizen-workload-gate probe logic
    line-for-line rather than reinventing it.
  - If absent: stops before pack with an explicit external-gate
    result (matches eng/baselines.json's own recorded "unavailable"
    status; verified live against nuget.org - both ID spellings
    currently 404) and does not fabricate a package.
  - If present: installs through Samsung's supported installer/local
    manifest path per docs/migration.md and Samsung workload PR #310
    (not yet concretely wired up here, since Samsung has not
    published anything to install - this step fails loudly by design
    the moment it would ever run, the same way ci.yml's own
    "Build Tizen projects" placeholder does), then re-verifies with
    the repository's own `dotnet msbuild -t:ReportTizenWorkload`
    detection target (the exact target eng/tests/test-workload-detection.sh
    pins) before proceeding to pack.

build/validate/pack still succeed end-to-end today with no
credentials and produce unsigned, non-fabricated CI artifacts; sign/
publish gating is unchanged.

Also replaced one inline `${{ }}` expression inside a bash `if`
condition with an `env:`-passed variable, avoiding a spurious
shellcheck SC2050 "constant expression" false positive and matching
this repo's existing convention (env vars, not inline expressions,
inside conditionals).

Validation: re-confirmed actionlint -shellcheck= passes (0 errors),
and every run: script individually verified with `bash -n` and
standalone `shellcheck` (all clean). The full actionlint+shellcheck
integration still hangs in this local environment on any multi-job
workflow in this repo, reproduced identically on the unmodified,
already-merged ci.yml - a local tooling issue, not something in this
change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Rebases redth-tizen-release-governance onto the (still-open, but
required for this dependency) redth-tizen-validation-harness branch
(7085324), which is itself stacked on foundation and adds
.github/workflows/tizen-device-validation.yml - a reusable workflow
with a workflow_call trigger and a release-gate job whose pass/fail is
derived from per-profile hardware result artifacts
(eng/validation/scripts/evaluate-release-gate.sh), not from a job
result that a fully-conditioned-out matrix could fake.

release.yml now actually consumes that gate before sign/publish,
rather than describing one or triggering validation after a tag:

  - New `device-validation` job: `uses:
    ./.github/workflows/tizen-device-validation.yml` with
    `release_validation: true`. Only runs when confirm_publish ==
    PUBLISH (device runs need hardware and are slow, so they are not
    part of the always-safe build/validate/pack lane). Fails the whole
    call unless every release-gating Tizen profile actually ran on
    real hardware and passed.
  - New `release-gate` job: requires the `tizen-release` GitHub
    Environment (human approval) and only runs once `device-validation`
    has actually succeeded - this is the literal job the task asked
    for, using that literal environment name.
  - `sign`'s `needs` moved from `pack` to `release-gate`, so signing
    (and therefore publish) cannot proceed without both a real
    passing hardware validation result and a human approval through
    `tizen-release`.

Preserved unchanged: the fail-closed Samsung workload probe/install
flow in `pack` (feed probe -> supported-installer placeholder that
fails loudly -> dotnet msbuild -t:ReportTizenWorkload re-verification
-> pack), and the existing `nuget-signing`/`nuget-production`
environment + literal "PUBLISH" gating on sign/publish. build/validate/
pack remain safe and always succeed with no credentials.

Validation: `actionlint -shellcheck=` passes on release.yml (0 errors),
including resolving and type-checking the new `uses:
./.github/workflows/tizen-device-validation.yml` reference against
that workflow's real workflow_call input schema (`release_validation:
boolean`) - not merely YAML-shape-checked. Every run: script
individually re-verified with `bash -n` and standalone `shellcheck`
(all clean). Noted in passing: actionlint flags
tizen-device-validation.yml's own `runs-on: [self-hosted, tizen]` as an
unrecognized custom label - a pre-existing, expected finding in that
PR's own file (unmodified by this change; silenced by adding an
actionlint.yaml custom-label config, which is that workstream's call,
not this one's).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Redth
Redth force-pushed the redth-tizen-release-governance branch from db8cbdf to a3627f6 Compare August 26, 2026 22:58
@Redth
Redth changed the base branch from redth-tizen-foundation-import to redth-tizen-validation-harness August 26, 2026 22:58
@Redth

Redth commented Aug 26, 2026

Copy link
Copy Markdown
Owner Author

Rebased onto redth-tizen-validation-harness (7085324, itself stacked on foundation) and updated the PR base, since release.yml now has a hard dependency on that PR's .github/workflows/tizen-device-validation.yml. Diff remains clean (only the 18 governance/release files).

release.yml now consumes a real device validation gate before sign/publish, not a description of one or a post-tag trigger:

  • New device-validation job: uses: ./.github/workflows/tizen-device-validation.yml with release_validation: true. Only runs when confirm_publish == PUBLISH. That reusable workflow's own release-gate job fails the call unless every release-gating Tizen profile actually ran on real hardware and passed (per-profile result artifacts, not job outputs — so a fully-conditioned-out matrix can't fake a pass).
  • New release-gate job: requires the tizen-release GitHub Environment (human approval), only runs once device-validation has actually succeeded.
  • sign's needs moved from pack to release-gate — signing/publishing now require both a real passing hardware validation result and human approval through tizen-release.

Preserved unchanged: the fail-closed Samsung workload probe/install flow in pack (feed probe → supported-installer placeholder that fails loudly → dotnet msbuild -t:ReportTizenWorkload re-verification → pack), and the existing nuget-signing/nuget-production + literal PUBLISH gating. build/validate/pack remain safe and always succeed with no credentials.

Validated with actionlint -shellcheck= (0 errors) — this also resolved and type-checked the new uses: ./.github/workflows/tizen-device-validation.yml reference against that workflow's real workflow_call input schema, not just YAML shape. Every run: script re-verified individually with bash -n + standalone shellcheck (all clean).

Noted in passing (not touched, not mine to fix): actionlint flags tizen-device-validation.yml's own runs-on: [self-hosted, tizen] as an unrecognized custom label — pre-existing in that PR's file, silenced by an actionlint.yaml custom-label config if that workstream wants it.

Redth pushed a commit that referenced this pull request Aug 26, 2026
VALIDATION REVIEW

1. Cross-profile readiness ran inside each matrix profile, where the current profile's result
still says status=running and the other profile's artifact does not exist - so it could only
ever fail. Moved to release-gate, after all profile artifacts are downloaded.
WorkflowOrderingTests asserts the placement and fails if it moves back.

2. The workflow installed but never launched the app, and a plain Release build excludes
AddMauiDevFlowAgent() (conventionally '#if DEBUG'), so the driver would have had nothing to
talk to. Added launch + bounded wait-for-agent, and the build now passes
-p:MauiTizenValidation=true, which the app is expected to map to MAUITIZEN_DEVFLOW.

3. The baseline lane only captured, so it could not fail on a rendering regression. It now
uses curl --fail (without it a 501 body is written to a .png and 'capture' succeeds), captures
into the baseline folder shape, emits metadata sidecars, and runs ImageComparer, uploading
actual/expected/diff.

4. Wired the DevFlow key endpoint to TryInjectKeyAsync and gated ui.key on the inputgenerator
privilege. It was advertised on window presence alone, so the endpoint reported success and did
nothing - which reaches a driver as 'pressed a key, nothing happened'.

5. Native tap returned success after merely focusing a view. A driver saw 'tap succeeded' while
the control's command never ran, sending the investigation to the control's logic instead of to
the tap that never happened. Focus is now a separate operation, and the verdict lives in
NativeActivationPolicy in the platform-neutral assembly so it is testable on a hosted runner.

ARCHITECTURE REVIEW

1. The premise that DevFlow has no custom route mechanism is incorrect, and I checked rather
than complied: AgentExtension exposes MapGet/MapPost/MapPut/MapDelete/MapTool, and the
abstractions assembly contains AgentExtensionRoute and RegisterExtensionRoutes. The route is now
registered through that supported API, DevFlowContractTests pins the exact signatures, and the
harness DISCOVERS the endpoint from advertised capabilities instead of composing a URL blind.
The app supplies assertions via IConventionAssertionProvider; with none registered the route
answers 501 rather than an empty pass.

4. tizen-device-validation is callable via workflow_call and publishes a fail-closed gate_passed
output (written false first, set true only after the gate script exits 0). The tizen-release
environment is attached to release-gate - the job that decides - rather than to device-matrix,
which would gate the work while leaving the verdict ungated. Present-tense approval claims are
removed: neither environment exists yet, so no approval is currently enforced, and the
release.yml wiring is recorded as outstanding work needing PR #1.

5. Each profile is bound to an explicit serial variable and its own host port, with
max-parallel:1. A label alone says which machine to use, not which of several attached targets
to drive, so a tv job could silently have run against a handset.

6. Expected mapper keys are now generated from the pinned Microsoft.Maui.Core package, which
ships a neutral net11.0 asset, instead of a hand-maintained list that would be wrong in the most
damaging direction. Removed the dead assembly-name list that claimed Microsoft.Maui.* names this
repository does not ship. Note: ApplicationHandler and the MenuFlyout family legitimately map no
properties, so the check distinguishes unreadable mappers from empty ones.

7. The device lane runs only the comparison suite via MAUI_TIZEN_SUITES rather than re-running
the hosted lane on scarce lab hardware.

190 hosted tests. Verified the new guards are non-vacuous by reintroducing both ordering bugs and
watching them fail.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Own-scope follow-up (no rebase - redth-tizen-foundation-import and
redth-tizen-validation-harness are both still actively moving; PR #11
is currently DIRTY against its own base, so rebasing onto either now
would just be redone shortly). Confirmed the flow already satisfies:

  - device-validation consumes tizen-device-validation.yml's
    workflow_call fail-closed (release_validation: true; that
    workflow's own release-gate job is the source of truth, per
    per-profile hardware result artifacts).
  - release-gate uses the literal `tizen-release` protected
    environment.
  - pack's workload detection never calls
    `dotnet workload install tizen --skip-manifest-update` as a probe;
    it queries nuget.org for the exact Samsung manifest package
    (samsung.net.sdk.tizen.manifest-<band>), then re-verifies with
    `dotnet msbuild -t:ReportTizenWorkload` before ever attempting a
    real install.
  - docs/governance/samsung-transfer-checklist.md (teams, environments,
    branch protection, package owners, signing, device runners,
    recovery contacts, mandatory rehearsal release) and
    package-metadata-conventions.md's ownership/trusted-publishing
    sections are all untouched and present.

What this commit adds: `sign` and `publish` did not previously touch
any artifact, so "sign before push" was only true by job ordering, not
by data flow - publish had no way to be blocked from an unsigned
package other than the (currently permanent) guard-step failure.
Closed that gap:

  - `sign` now downloads the exact `maui-tizen-packages-unsigned-*`
    artifact `pack` produced (needs: [release-gate, build], so it can
    read needs.build.outputs.package_version) before its
    fails-closed placeholder step, with continue-on-error on the
    download so an expected "artifact not found" (pack cannot produce
    real packages before the workload ships) doesn't mask the
    intentional, actionable failure message in the next step. The
    commented-out real implementation shows signing writing to
    artifacts/signed and uploading it as
    `maui-tizen-packages-signed-*`.
  - `publish` is now documented and shaped to only ever download
    `maui-tizen-packages-signed-*` - there is deliberately no fallback
    to `pack`'s unsigned artifact, so an unsigned package can never
    reach nuget.org through this workflow even once the guard step is
    eventually replaced.

Validation: actionlint -shellcheck= passes on release.yml (0 errors);
every run: script individually re-verified with bash -n and standalone
shellcheck (all clean); job dependency graph printed and confirmed:
build -> validate -> pack -> device-validation -> release-gate (env:
tizen-release) -> sign (env: nuget-signing) -> publish (env:
nuget-production).

Blockers requiring Samsung action (tracked, not actionable from this
repository): the 11.0.100-band Samsung Tizen workload manifest is
still unpublished (eng/baselines.json), so pack/device-validation
cannot exercise a real signed package end-to-end yet; Samsung's
supported installer/local manifest flow (docs/migration.md, Tizen.NET
PR #310) is referenced but not concretely wired into this workflow
because there is nothing published to install against.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Redth

Redth commented Aug 27, 2026

Copy link
Copy Markdown
Owner Author

Own-scope follow-up (no rebase this round — redth-tizen-foundation-import and redth-tizen-validation-harness are both still actively moving, and PR #11 is currently DIRTY against its own base, so rebasing now would just need redoing shortly).

Confirmed the flow already satisfies the four hard requirements:

  • device-validation consumes tizen-device-validation.yml's workflow_call fail-closed (release_validation: true) — that workflow's own release-gate job (per-profile hardware result artifacts) is the actual source of truth, not a description.
  • release-gate uses the literal tizen-release protected environment.
  • pack's workload detection never calls dotnet workload install tizen --skip-manifest-update as a probe — it queries nuget.org directly for the exact Samsung manifest package, then re-verifies with dotnet msbuild -t:ReportTizenWorkload before any real install attempt.
  • docs/governance/samsung-transfer-checklist.md (teams, environments, branch protection, package owners, signing, device runners, recovery contacts, mandatory rehearsal release) and package-metadata-conventions.md's ownership/trusted-publishing sections are untouched.

Closed a gap found on review: sign/publish didn't touch any artifact before, so "sign before push" was only true by job ordering, not by data flow. Now:

  • sign downloads the exact maui-tizen-packages-unsigned-* artifact pack produced (not a rebuild) before its fail-closed placeholder, with continue-on-error on the download so a today-expected "artifact not found" (pack can't produce real packages pre-workload) doesn't mask the intentional failure message.
  • publish is shaped to only ever download maui-tizen-packages-signed-* — no fallback path from pack's unsigned artifact, so an unsigned package can never reach nuget.org through this workflow even after the guard step is eventually replaced.

Validated: actionlint -shellcheck= (0 errors), every run: script re-checked individually with bash -n + shellcheck (all clean), and the job graph is confirmed as build → validate → pack → device-validation → release-gate (env: tizen-release) → sign (env: nuget-signing) → publish (env: nuget-production).

Blockers requiring Samsung action (tracked, not actionable from this repo):

  1. The 11.0.100-band Samsung Tizen workload manifest is still unpublished (eng/baselines.json), so pack/device-validation can't exercise a real signed package end-to-end yet.
  2. Samsung's supported installer/local manifest install flow (docs/migration.md, Tizen.NET PR #310) is referenced but intentionally not concretely wired into this workflow, since there is nothing published to install against yet.

Redth pushed a commit that referenced this pull request Aug 27, 2026
VALIDATION REVIEW

1. Cross-profile readiness ran inside each matrix profile, where the current profile's result
still says status=running and the other profile's artifact does not exist - so it could only
ever fail. Moved to release-gate, after all profile artifacts are downloaded.
WorkflowOrderingTests asserts the placement and fails if it moves back.

2. The workflow installed but never launched the app, and a plain Release build excludes
AddMauiDevFlowAgent() (conventionally '#if DEBUG'), so the driver would have had nothing to
talk to. Added launch + bounded wait-for-agent, and the build now passes
-p:MauiTizenValidation=true, which the app is expected to map to MAUITIZEN_DEVFLOW.

3. The baseline lane only captured, so it could not fail on a rendering regression. It now
uses curl --fail (without it a 501 body is written to a .png and 'capture' succeeds), captures
into the baseline folder shape, emits metadata sidecars, and runs ImageComparer, uploading
actual/expected/diff.

4. Wired the DevFlow key endpoint to TryInjectKeyAsync and gated ui.key on the inputgenerator
privilege. It was advertised on window presence alone, so the endpoint reported success and did
nothing - which reaches a driver as 'pressed a key, nothing happened'.

5. Native tap returned success after merely focusing a view. A driver saw 'tap succeeded' while
the control's command never ran, sending the investigation to the control's logic instead of to
the tap that never happened. Focus is now a separate operation, and the verdict lives in
NativeActivationPolicy in the platform-neutral assembly so it is testable on a hosted runner.

ARCHITECTURE REVIEW

1. The premise that DevFlow has no custom route mechanism is incorrect, and I checked rather
than complied: AgentExtension exposes MapGet/MapPost/MapPut/MapDelete/MapTool, and the
abstractions assembly contains AgentExtensionRoute and RegisterExtensionRoutes. The route is now
registered through that supported API, DevFlowContractTests pins the exact signatures, and the
harness DISCOVERS the endpoint from advertised capabilities instead of composing a URL blind.
The app supplies assertions via IConventionAssertionProvider; with none registered the route
answers 501 rather than an empty pass.

4. tizen-device-validation is callable via workflow_call and publishes a fail-closed gate_passed
output (written false first, set true only after the gate script exits 0). The tizen-release
environment is attached to release-gate - the job that decides - rather than to device-matrix,
which would gate the work while leaving the verdict ungated. Present-tense approval claims are
removed: neither environment exists yet, so no approval is currently enforced, and the
release.yml wiring is recorded as outstanding work needing PR #1.

5. Each profile is bound to an explicit serial variable and its own host port, with
max-parallel:1. A label alone says which machine to use, not which of several attached targets
to drive, so a tv job could silently have run against a handset.

6. Expected mapper keys are now generated from the pinned Microsoft.Maui.Core package, which
ships a neutral net11.0 asset, instead of a hand-maintained list that would be wrong in the most
damaging direction. Removed the dead assembly-name list that claimed Microsoft.Maui.* names this
repository does not ship. Note: ApplicationHandler and the MenuFlyout family legitimately map no
properties, so the check distinguishes unreadable mappers from empty ones.

7. The device lane runs only the comparison suite via MAUI_TIZEN_SUITES rather than re-running
the hosted lane on scarce lab hardware.

190 hosted tests. Verified the new guards are non-vacuous by reintroducing both ordering bugs and
watching them fail.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Redth
Redth force-pushed the redth-tizen-validation-harness branch from 022ae37 to cefed16 Compare August 27, 2026 00:14
@Redth
Redth changed the base branch from redth-tizen-validation-harness to main August 27, 2026 21:21
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 339aaa1d-ff4d-405b-915e-c2e156549ccf
@Redth

Redth commented Aug 27, 2026

Copy link
Copy Markdown
Owner Author

Final release/security review requested on stable head 90463555.

The branch is now based on main (cc93193c), preserves the fail-closed reusable device gate, and keeps publishing disabled. Release hardening includes the exact unsigned → signed → attested artifact chain, no signing/verification continue-on-error, Samsung’s commit-pinned #310 installer consuming a version/hash/signer-verified manifest package, and publish accepting only the verified signed artifact. All five CI checks are green; actionlint, shellcheck, the workload transition rehearsal, and the workflow artifact-graph rehearsal pass. No device validation or publication was performed.

Redth added 3 commits August 27, 2026 22:42
Bind release validation, signing, provenance, and retries to exact package manifests and workflow attempts while keeping publishing fail-closed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 8a402911-8fc6-4b6f-ac37-80d7b8127499
Reject prior-attempt artifacts and require an environment-scoped governance token for ruleset and runner-group preflight.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 8a402911-8fc6-4b6f-ac37-80d7b8127499
Integrate the merged Core, Controls, Essentials, alerts, and Blazor layers while preserving release-contract and mutation validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Redth added 9 commits August 30, 2026 13:07
Preserve isolated package provenance, resilient failure aggregation, release-contract regressions, and the complete backend validation matrix.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Restore governance's immutable action policy for the build/tasks Windows execution lane introduced by the final pipeline merge.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Keep protected-branch release policy synchronized with the newly required packaged MSBuild execution check and pin the relationship in hosted validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Support policy-listed servicing branches, require exact-SHA CI success, add exact major-break approvals and standalone API baselines, align package metadata, and include Templates in the release closure.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Allow protected policy-approved servicing refs through reusable device validation and bind standalone baseline generation to the actual release-manifest schema.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Include only the package-owned buildTransitive task assembly in managed API comparison while excluding native and copy-local dependency DLLs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Treat only the package-owned buildTransitive task assembly as signable managed API, matching release package inspection and excluding native/dependency DLLs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Keep exact managed-binary signing coverage while explicitly permitting the Maui.Tizen.Templates package to report an empty Authenticode set.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Disable Python bytecode emission so exact-head validation does not leave an untracked release-contract cache behind.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
@Redth
Redth merged commit ec19e3c into main Aug 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant