Skip to content

feat(windows): record the source commit and require notices in deploy - #22

Merged
synthet merged 3 commits into
masterfrom
af/warp-8hfey-release-compliance-in-deploy-ps1
Nov 21, 2026
Merged

synthet merged 3 commits into
masterfrom
af/warp-8hfey-release-compliance-in-deploy-ps1

Conversation

@synthet

@synthet synthet commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Implements T-13 of the Synth Term epic (specs/SYNTH-TERM/ on docs/synth-term-epic).

  • Source record (AC-16): deploy.ps1 writes SOURCE.txt into every install with the commit, a dirty flag and the synthet/warp source tree URL, so each AGPL binary points at its corresponding source.
  • Required notices (AC-20): the deploy fails if LICENSE-AGPL, LICENSE-MIT, synth-warp-notice.md or resources/THIRD_PARTY_LICENSES.txt is missing from staging.
  • Bug caught by the check: deploy.ps1 still passed -CargoProfile, which prepare_bundled_resources.ps1 no longer accepts. The call threw, and the fallback copied resources\bundled without the third-party licenses or settings_schema.json. Deploy now passes the built binary as SETTINGS_SCHEMA_EXECUTABLE, as bundle.ps1 does.

Verification

  • script/windows/test_deploy_compliance.ps1: 8/8 pass.
  • PSScriptAnalyzer with the repo settings: 0 findings on deploy.ps1, deploy_compliance.ps1 and the test, after merging master (fix(ci): cargo-deny 0.22 config and rustfmt on master #17's lint renames).
  • Real release build installed into a scratch folder (-NoShortcut -NoContextMenu -NoRestart):
    • At 655a3be the deploy failed on the missing THIRD_PARTY_LICENSES.txt, as designed.
    • After the fix, it installed SOURCE.txt, all four notices (THIRD_PARTY_LICENSES.txt is 1.37 MB) and settings_schema.json.

Known gap, filed as warp-61145: with -SkipBuild, SOURCE.txt records HEAD at deploy time, which can differ from the commit the installed binary was built from.

Refs warp-8hfey

🤖 Generated with Claude Code

synthet and others added 3 commits November 19, 2026 23:31
deploy.ps1 now writes SOURCE.txt (commit, dirty flag, source tree URL)
into every install, and fails when LICENSE-AGPL, LICENSE-MIT, the fork
notice or resources/THIRD_PARTY_LICENSES.txt is missing from staging.
The notices used to be optional copies, and the prepare_bundled_resources
fallback dropped the third-party attributions without failing.

Tests: script/windows/test_deploy_compliance.ps1 (8 checks).

Refs warp-8hfey

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…parameters

prepare_bundled_resources.ps1 no longer takes -CargoProfile; it needs
SETTINGS_SCHEMA_EXECUTABLE (or _SOURCE) for the settings schema, as
bundle.ps1 sets. deploy.ps1 still passed -CargoProfile, so the call threw
and the fallback copied resources\bundled only, without
THIRD_PARTY_LICENSES.txt or settings_schema.json. The new compliance check
caught it on the first real deploy. Pass the built binary as the schema
executable instead.

Refs warp-8hfey

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@synthet
synthet merged commit 252ab96 into master Nov 21, 2026
10 checks passed
@synthet
synthet deleted the af/warp-8hfey-release-compliance-in-deploy-ps1 branch November 21, 2026 06:46
@synthet
synthet restored the af/warp-8hfey-release-compliance-in-deploy-ps1 branch November 21, 2026 06:46
@synthet
synthet deleted the af/warp-8hfey-release-compliance-in-deploy-ps1 branch November 21, 2026 06:58
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