Skip to content

Protect imported PublicAPI provenance baselines - #15

Merged
Redth merged 5 commits into
mainfrom
redth-protect-imported-baselines
Aug 27, 2026
Merged

Redth merged 5 commits into
mainfrom
redth-protect-imported-baselines

Conversation

@Redth

@Redth Redth commented Aug 27, 2026 •

Copy link
Copy Markdown
Owner

Prevents #8-style standalone API generation from silently replacing imported provenance files.

Summary

  • join the pinned net11 PublicAPI hash manifest to source-disposition target paths and verify all 18 imported src/**/PublicAPI/net-tizen/** files offline
  • resolve exact path components fail-closed, rejecting overwrite, deletion, extras, path/case drift, unresolved reparse points, symlink escapes, and non-portable aliases without TOFU or network access
  • reserve PublicAPI/slice/ for generated standalone-assembly baselines and document the intentional import-update workflow

Validation

  • ./eng/build-workload-free.sh
  • dotnet test tests/Migration.Tooling.Tests/Migration.Tooling.Tests.csproj --no-build --no-restore -c Release (44 passed)
  • exact-head code review: no findings
  • exact-head MSBuild review: no findings

Redth and others added 5 commits August 27, 2026 09:53
Join the pinned net11 PublicAPI hashes to source-disposition target paths and fail the workload-free lane on content, set, path, case, symlink, or portable-path drift. Keep generated standalone assembly contracts under PublicAPI/slice and document the intentional update workflow.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Resolve repository paths component by component, reject unresolved reparse points, and prove imported and trust-anchor files remain inside their declared roots. Extend mutation coverage for escaping and dangling directory symlinks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 601c018b-7f8d-4007-a9b0-3bf1839562c1
Use an unambiguously missing link target so Linux and case-insensitive macOS exercise the same unresolved-reparse failure.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 601c018b-7f8d-4007-a9b0-3bf1839562c1
Preserve the fail-closed Tizen workload CI transition from PR #14 alongside the imported PublicAPI provenance invariant.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 601c018b-7f8d-4007-a9b0-3bf1839562c1
Include PR #16's fail-closed solution XML check in the final baseline-guard head.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 601c018b-7f8d-4007-a9b0-3bf1839562c1
@Redth
Redth merged commit 6a4c9e9 into main Aug 27, 2026
3 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