Files
vpn-dns-gateway/demo/SOURCE_CHANGE_RUNBOOK.md
vsun1 c4ca770ee4
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
Support issue-linked demo source changes
2026-11-27 20:42:33 -05:00

95 lines
5.1 KiB
Markdown

# Preparing the issue-linked demo increment
This support change follows maintenance PR #33, merged into `main` at
`b6f7edd48bce87567432e97b5dffda7abec59523`. The provider refactor is still pending.
The local PowerPoint remains under ignored `build/presentation/`; share it with
Billy directly. This work does not regenerate that deck.
## Review the workflow support first
Review/merge the `codex/demo-source-change-support` changes through the normal
protocol, then run the existing artifact job on reviewed `main`. It should still
identify `frozen-baseline`, verify 435 indexed files and produce a new `1.0.N`
artifact. The new scripts have local tests; an actual Jenkins run of this support
revision is a separate remaining check. No PR-branch execution or Replay is needed.
Run the local regression checks from the repository root:
```powershell
python -B demo/ci/test-source-provenance.py
python -B demo/ci/verify-snapshot.py --require-tracked
```
The first command uses one disposable local Git fixture, never a remote. It does
not commit. `--require-tracked` checks the exact working files, Git blobs/modes,
original manifest and optional change record. Stage intended product and record
changes together when testing the eventual increment.
## Create the real issue and agree on the assessed change
The [issue draft](DEMO_ISSUE_DRAFT.md) is ready for Vincent/Billy to publish after
review. An agent must receive explicit instructions before publishing it under a
group member's account. Record its real URL; a syntactically valid URL alone does
not prove issue existence, approval or implementation.
After support is merged and verified, branch from current reviewed `main`, using
`codex/demo-issue-<actual-number>-provider-name`. Read the imported project's
`AGENTS.md` and its referenced controlled sources before touching product files.
Follow their change-impact and assistance-record requirements. Keep the issue,
product refactor and demonstration commit separate from this preparation change.
## Record the intentional product diff
After making and reviewing the agreed edits, generate the record. Replace the
placeholder URL with the actual issue URL; the placeholder will be rejected.
```powershell
python -B demo/ci/record-source-change.py `
--issue-url 'https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/issues/ACTUAL_NUMBER' `
--change-id 'rectangle-provider-name' `
--description 'Rename the rectangle provider class and files; align current documentation.'
```
The helper creates only `demo/source-change.json`. It never edits product files,
stages or commits. It refuses an existing record and rejects an unchanged tree.
Review generated additions/deletions carefully: a content-changing file rename
appears as a deletion and addition; Git can still display its rename similarity.
The verifier also accepts an explicit `before` → different `after.path` rename.
This first-increment format always compares directly with the original snapshot;
it is not a general history of successive changes. A later record must account
for the entire cumulative diff from the same baseline.
The record has schema version 1, the original full commit and manifest SHA-256,
a change identifier, real project issue URL, description and nonempty `changes`.
Each entry contains `before` (an original relative path or null) and `after`
(null, or an object with `path`, `mode`, `git_blob`, `sha256`, `bytes`). Additions
default to mode `100644`; review executable additions and their staged modes.
Duplicate keys/entries, unsafe paths, collisions, invalid identities, unchanged
records and altered baseline manifests are rejected. Unlisted source bytes still
have to match the original exactly. Symlinks are rejected.
If further edits are needed, review and deliberately replace the generated record
before regenerating it. Never rewrite `snapshot.json` to bless a changed tree.
## Build and present the real result
The existing job keeps reviewed-main ancestry, trusted-worker and sequential
resource limits. Packaging re-verifies the source; Jenkins requires tracked
provenance. Delivery metadata includes the complete validated change record and
its hash, original baseline and actual downstream build identity. The optional
record is also copied beside `upstream-snapshot.json` in the application bundle.
The Windows helper carries the same source proof, while truthfully identifying
itself as a command-line rehearsal.
For new Linux packages, `verify-artifacts.py` checks the declared source inventory,
the saved OCI chain and the actual bundle's provenance/manifest/change record in
the final COPY layer. Downloaded legacy packages remain transport/OCI checks only,
explicitly labelled; they do not gain a source-change attestation retroactively.
These hashes establish consistency, not a signature, external issue validation
or proof that a binary behaves correctly. Preserve tests, review and build records.
Keep the actual rename commit/push for the agreed assessed workflow. Inspect the
PR diff, have Billy review, merge, build from `main`, download/verify that build's
artifacts, and update the demo script with the actual issue/commit/build/version.
Rehearse timing and application use before calling the demonstration ready.