unaltraweb 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Makefile +29 -5
- data/README.md +2 -0
- data/docs/_documentation/en/33-reusable-workflows.md +1 -1
- data/docs/_documentation/en/43-workspace-path-policies.md +7 -0
- data/docs/_documentation/en/48-artifact-storage.md +152 -0
- data/docs/_documentation/en/49-practice-inputs-editions.md +170 -0
- data/docs/_documentation/en/50-practice-artifact-storage.md +383 -0
- data/docs/_documentation/en/51-retained-private-intake.md +292 -0
- data/docs/_documentation/en/52-selected-file-private-storage.md +194 -0
- data/docs/_documentation/en/53-original-private-archives.md +190 -0
- data/docs/agents/manual-context-release-081-121.md +76 -0
- data/docs/agents/mcp-contract.md +46 -1
- data/docs/agents/original-private-archive.md +101 -0
- data/docs/agents/practice-artifact-storage-review.md +90 -0
- data/docs/agents/retained-compatibility.md +99 -0
- data/docs/agents/retained-private-intake.md +117 -0
- data/docs/agents/retained-variant-batch.md +103 -0
- data/docs/agents/software-release-090.md +66 -0
- data/docs/agents/web-practices-reconciliation.md +88 -0
- data/docs/agents/web-s4-manuals-readiness.md +126 -0
- data/docs/agents/web-storage-followup.md +98 -0
- data/docs/agents/zip-only-flat-storage.md +79 -0
- data/scripts/manual/candidate-storage-s3-requirements.txt +8 -0
- data/scripts/test_candidate_transfer.py +52 -0
- data/scripts/test_wheel_install.py +36 -0
- data/scripts/unaltraweb-mcp-bootstrap.sh +1 -1
- data/scripts/validate_workflows.py +105 -10
- data/src/unaltraweb_mcp/component-contract.json +24 -20
- metadata +21 -2
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Minimal S4/manual readiness — owner continuation
|
|
2
|
+
|
|
3
|
+
## Source and authority
|
|
4
|
+
|
|
5
|
+
This unit continues the existing Web owner checkout on
|
|
6
|
+
`feat/web-b-practice-preparation-v1`, from `7bcd48f8900c059c465e29fffc55a62fe0b957fb`.
|
|
7
|
+
The owner authorises tested technical commits, push and PR through the explicit
|
|
8
|
+
existing-WIP checkpoint protocol. The first verified checkpoint is
|
|
9
|
+
`b9b05b18ef1d9e42bc30b1f83d5fdeab1eb8bb30`: 22 storage-related paths selected,
|
|
10
|
+
all 25 WIP entries preserved, empty final index. `TODO.md` and the #114
|
|
11
|
+
`manual_release.py` / `test_manual_release.py` changes remain separate WIP.
|
|
12
|
+
|
|
13
|
+
PR129 owns temporary candidates; PR130 owns early preparation/tabular editions.
|
|
14
|
+
This storage source is a stacked review unit based on PR130's exact source, with
|
|
15
|
+
its route v2 delta in a separate commit. Its shared packaging/Make/MCP/docs
|
|
16
|
+
touchpoints require explicit integration; neither a combined runtime nor consumer
|
|
17
|
+
adoption follows from the source review. The checkpoint/publication procedure
|
|
18
|
+
keeps this checkout on its existing local branch/worktree and retains other WIP.
|
|
19
|
+
|
|
20
|
+
## Bounded implementation
|
|
21
|
+
|
|
22
|
+
The existing publication/transport adapter remains authoritative. Route v2 adds:
|
|
23
|
+
|
|
24
|
+
1. Explicit `consumer_repository: {remote, host, repository}` verified against
|
|
25
|
+
native local Git remote URLs through the existing confined Git/root helpers.
|
|
26
|
+
Selected S3 bucket equals the **exact repository slug**, independently of
|
|
27
|
+
physical checkout name, logical `project_id`, public target repository or
|
|
28
|
+
prefix. Missing/multiple/conflicting identities have stable diagnostic codes;
|
|
29
|
+
no bucket normalisation or core-repository fallback is admitted.
|
|
30
|
+
2. Per-artifact `storage_profile`. `authenticated-private-v1` requires private
|
|
31
|
+
bucket ACL/policy and authenticated SHA/size/MIME/Content-Disposition plus
|
|
32
|
+
native object ACL for outputs, metadata and both manifests. It emits no public
|
|
33
|
+
URL and claims no anonymous qualification. It never sends an unsigned object
|
|
34
|
+
request or requires a MEGA account identifier. `anonymous-delivery-v1` retains
|
|
35
|
+
exact public anonymous bytes/headers and actual private URL denial; arbitrary
|
|
36
|
+
HTTP 400, including the observed S4 SigV4 error, fails that qualification.
|
|
37
|
+
3. Explicit retained-stage planning/transfer by the original manifest SHA. Old
|
|
38
|
+
producer revision and exact manifest/output bytes are validated and retained
|
|
39
|
+
when the control plane or route/profile changes. The frozen common product/
|
|
40
|
+
policy schemas and original Web route v1 schema are not rewritten.
|
|
41
|
+
|
|
42
|
+
The owner's Meum host evidence already distinguishes authenticated S4 API storage
|
|
43
|
+
from disabled/account-routed object URLs. This unit uses that requirement and
|
|
44
|
+
offline tests; it performs **zero real S4 endpoint operations** and imports no
|
|
45
|
+
Meum/hub credentials. Native named-v1 filenames, headers and canonical restore
|
|
46
|
+
manifest stay compatible with the existing authenticated common reader. Web does
|
|
47
|
+
not label this projection `files-v1` or introduce a domain/restore engine.
|
|
48
|
+
|
|
49
|
+
## Read-only consumer intake matrix
|
|
50
|
+
|
|
51
|
+
| Consumer | Observed source | Expected bucket | Current intake | Next native gate |
|
|
52
|
+
| --- | --- | --- | --- | --- |
|
|
53
|
+
| TIGIT (`geourv/tigit`) | `7a8b314d743b62699232c66d7024387f86f59281` | `tigit` | Resource/source list exists; no current `dist/practiques` tree. | Owner prepares exact inputs/readings and a native sealed edition before selecting PDF/ZIP outputs. A resource list is not a closed product. |
|
|
54
|
+
| TIG (`geourv/tig`) | `c045d46a8e7139adf9f060eeeaf4e47781dfd355` | `tig` | No current `dist/practiques` tree. | Owner completes native reading/edition preparation from the retained inputs/proofs, then byte/recipient/extracted-packet acceptance. |
|
|
55
|
+
| Geodisseny (`geourv/geodisseny`) | `7b1c4fcd3e21062c7be19e322a000170cf9b0ba0` | `geodisseny` | Eight simple current practice directories, 56 files at `dist/practiques/<activity>/ca/`. Existing untyped local `manifest.json` is **not** Web edition receipt v1. | Separate bounded native intake/resealing contract preserving original ZIP/PDF bytes, historical proof, recipient mapping and author-approval state. |
|
|
56
|
+
|
|
57
|
+
All three currently select MCP 0.7.4 / PDF worker `1bb3f2da…`, lack the new route
|
|
58
|
+
configuration and artifact plan/stage Make facade, and need an explicit reviewed
|
|
59
|
+
runtime/config adoption. Read-only remote metadata identifies their `origin` as
|
|
60
|
+
the corresponding consumer repository. No consumer source, config, ignore rule,
|
|
61
|
+
Makefile, runtime pin or teaching output is changed by this unit.
|
|
62
|
+
|
|
63
|
+
Geodisseny's current seven-file layout is `<activity>.zip`,
|
|
64
|
+
`<activity>-docent.zip`, `LLEGIU-ME.pdf`, `LLEGIU-ME-docent.pdf`,
|
|
65
|
+
`ENUNCIAT-MOODLE.md`, `manifest.json`, `SHA256SUMS`. Its manifest contains activity,
|
|
66
|
+
version, run, packages with recipient/archive/member/reading/PDF-receipt hashes,
|
|
67
|
+
proof/proof hash, Moodle statement hash, `human_approved`,
|
|
68
|
+
`exact_historical_bundle` and `local_candidate`. Read-only metadata reports
|
|
69
|
+
`human_approved:false` in all eight current manifests. These files/proofs must not be renamed,
|
|
70
|
+
repackaged, given forged Web receipt kinds, or treated as a GIS/author approval.
|
|
71
|
+
|
|
72
|
+
The smallest follow-up is an owner-approved **native common Web intake** design
|
|
73
|
+
for existing paired outputs: validate the exact retained manifest/proof/reading
|
|
74
|
+
seals and recipient ZIP closure, establish an explicit version identity and
|
|
75
|
+
retained typed receipt beside the originals without changing their bytes. Native
|
|
76
|
+
GIS verification and human approval remain their owners' gates. Until that
|
|
77
|
+
interface is separately agreed/tested, this Web planner deliberately refuses
|
|
78
|
+
the untyped simple manifest. It does not invent a Geodisseny-specific engine.
|
|
79
|
+
|
|
80
|
+
## Priority and adoption order
|
|
81
|
+
|
|
82
|
+
1. Resolve build blockers and qualify a **matching** source-containing MCP/PDF
|
|
83
|
+
tuple before consumer cutover. The #114 excluded-private-socket correction is
|
|
84
|
+
preserved as separate local WIP; the earlier published-PDF/checkout builder
|
|
85
|
+
mismatch remains recorded in `practice-artifact-storage-review.md`.
|
|
86
|
+
2. Prepare/admit closed native practices and resolve required author/recipient
|
|
87
|
+
review. These inputs are more urgent than an upload for the three consumers.
|
|
88
|
+
3. Integrate/test/release the reviewed Web source through the ordinary owner
|
|
89
|
+
process; companion/QGIS closure and Diavisuals selections have their own gates.
|
|
90
|
+
4. In a separate scoped operation select the repository-named bucket, project-
|
|
91
|
+
scoped credentials and actual retained artifacts; qualify authenticated readback,
|
|
92
|
+
headers, private native ACL and restore. Select public object links only after
|
|
93
|
+
their independently authorised exact anonymous qualification. Storage success
|
|
94
|
+
does not update a catalogue, approve teaching material or imply a public URL.
|
|
95
|
+
|
|
96
|
+
No merge, tag/release, runtime/client cutover, bucket creation, real practice
|
|
97
|
+
upload, public teaching/CV/site delivery or SSH repair is authorised by this unit.
|
|
98
|
+
Actual source/PR/CI/test/schema/CLI pins and remaining gates are returned in the
|
|
99
|
+
new ignored `sandbox/coordination/web-s4-manuals-readiness-return.json`.
|
|
100
|
+
|
|
101
|
+
## Local verification
|
|
102
|
+
|
|
103
|
+
- Full required source suite: **821 tests, 28 explicit skips**. Ten additional
|
|
104
|
+
native/offline regressions cover exact repository buckets, missing/ambiguous/
|
|
105
|
+
mismatched/core identity, protocol spelling without bucket normalisation,
|
|
106
|
+
explicit private capability, PDF/ZIP readback, actual ACL/header/byte failures,
|
|
107
|
+
raw API 400 refusal, preserved v1 stage identity and untyped intake refusal.
|
|
108
|
+
- Real pinned Botocore model/Stubber exercises authenticated conditional PUT,
|
|
109
|
+
exact GET metadata and GetObjectAcl. No real storage endpoint is contacted.
|
|
110
|
+
- Distribution, workflow, wheel and whitespace checks pass. Public Python CI now
|
|
111
|
+
installs the optional artifact SDK so this model case runs there as well.
|
|
112
|
+
- Independent common product/destination inspection accepts mixed GitHub/S4
|
|
113
|
+
artifacts. The existing native common S3Store/named-v1 fetch reconstructs two
|
|
114
|
+
ZIPs and one private practice PDF in new temporary roots, with exact manifests,
|
|
115
|
+
metadata and files, while object-URL methods are explicitly unavailable.
|
|
116
|
+
- Source-containing local `mcp-check`, real MCP/PDF/practice/preview smoke and
|
|
117
|
+
`docs-build` pass. The MCP image layers current source on the reviewed 0.8.1
|
|
118
|
+
base; the existing matching local PDF development image is used. Both expose
|
|
119
|
+
builder SHA-256 `d3d580ef5810383fa195da5633137123f55164b059766950dd204deba01a30bf`
|
|
120
|
+
and identical PDF Dockerfile/filter/template bytes. Earlier mismatched public
|
|
121
|
+
worker evidence remains in the previous review record.
|
|
122
|
+
|
|
123
|
+
These local tests use the established working tree, including preserved #114
|
|
124
|
+
WIP. The selected committed-tree CI is a separate source qualification; actual
|
|
125
|
+
head/PR/check IDs are retained in the owner return. Development images are local
|
|
126
|
+
test fixtures, not published runtime pins or consumer-cutover evidence.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Bounded storage follow-up before real manual adoption
|
|
2
|
+
|
|
3
|
+
## Separate source scopes
|
|
4
|
+
|
|
5
|
+
The established Web owner continues from `710c73765e44ef57e57b0b638dd4eeb9ea53d706`
|
|
6
|
+
in the same primary checkout/local branch. Existing-WIP checkpoint admission
|
|
7
|
+
selects only intended technical files with hooks and preservation verification.
|
|
8
|
+
|
|
9
|
+
- #114 is a separate two-file checkpoint
|
|
10
|
+
`385fd396a68889d05c231da9153bfb8fdff0174f`, reviewed in
|
|
11
|
+
[Draft PR132](https://github.com/dosquartsdedocs/unaltraweb/pull/132), based on
|
|
12
|
+
PR131's immutable source. It prunes explicitly excluded private roots before
|
|
13
|
+
snapshot traversal and retains source/index/blob/implementation-input safety.
|
|
14
|
+
Live socket/source/receipt regressions and the full 821-test established-tree
|
|
15
|
+
suite (28 skips) pass before that checkpoint. `TODO.md` stays separate WIP.
|
|
16
|
+
- The transport follow-up is separately stacked on that checkpoint. It corrects
|
|
17
|
+
official Bitbucket URL interpretation and retains local S3 uncertainty evidence;
|
|
18
|
+
it does not recreate the adapter, alter frozen product/route schemas or admit
|
|
19
|
+
Geodisseny's untyped outputs. PR129/130/131 review sources retain their heads.
|
|
20
|
+
|
|
21
|
+
## Native repository parser
|
|
22
|
+
|
|
23
|
+
Official `git@ssh.bitbucket.org:<workspace>/<repo>.git` and
|
|
24
|
+
`ssh://git@ssh.bitbucket.org[:22]/<workspace>/<repo>.git` identify logical
|
|
25
|
+
`bitbucket.org/<workspace>/<repo>`. Standard existing hosts and explicit default
|
|
26
|
+
SSH port 22 are admitted. HTTPS/web IDs retain their old host/port/credential
|
|
27
|
+
rules. Fetch/push declarations must still agree with native consumer metadata;
|
|
28
|
+
repo/bucket spelling remains exact. No workstation alias, lookalike host,
|
|
29
|
+
password-bearing URL, nondefault port, remote rewrite or SSH repair is added.
|
|
30
|
+
|
|
31
|
+
## Small local uncertainty record
|
|
32
|
+
|
|
33
|
+
The existing source/config/destination/manifest checks and named-v1 transfer stay
|
|
34
|
+
authoritative. A new private attempt directory outside the immutable stage holds
|
|
35
|
+
only whitelisted intent metadata and an append-only, fsynced observation chain.
|
|
36
|
+
Before requests it binds exact source/config/policy/destination/manifest identity;
|
|
37
|
+
once an UploadId is observed, its exact bucket/key/id is retained before parts.
|
|
38
|
+
Acknowledged part counts/bytes and create/complete/readback/abort phases are bounded.
|
|
39
|
+
|
|
40
|
+
The source review reports Geodisseny candidate metadata of 32 PDF/ZIP files,
|
|
41
|
+
437,022,560 bytes total and a 101,583,048-byte maximum. This exceeds the existing
|
|
42
|
+
64-MiB multipart threshold and makes lost abort/complete observations a real
|
|
43
|
+
readiness concern. This unit reuses that read-only metadata; tests use small
|
|
44
|
+
synthetic providers and the pinned SDK model, with no real bucket fixture.
|
|
45
|
+
|
|
46
|
+
Lost create responses retain an unknown ID. Failed parts can request abort of
|
|
47
|
+
the exact observed owned tuple after retaining intent; abort ACK is distinguished
|
|
48
|
+
from remote absence/verified cleanup. Abort uncertainty retains the tuple. After
|
|
49
|
+
completion uncertainty no automatic abort or retry is attempted: final bytes may
|
|
50
|
+
already exist and can be inspected read-only. Evidence or binding tampering stops
|
|
51
|
+
further mutation. Safe failures expose only fixed messages, phases and private
|
|
52
|
+
receipt pointers, excluding provider bodies, credentials and teacher content.
|
|
53
|
+
|
|
54
|
+
`inspect-attempt` verifies local intent/event hashes and the bounded chain; it
|
|
55
|
+
does not resolve auth, call a provider or recover anything. Explicit `verify`
|
|
56
|
+
may establish exact existing output bytes while still refusing missing later
|
|
57
|
+
metadata. Success/repeat creates separate local evidence without rewriting old
|
|
58
|
+
stages, producer/manifest identity or prior attempt records. No journal is uploaded.
|
|
59
|
+
Local evidence is not a remote registry, ownership inference, recovery executor
|
|
60
|
+
or cleanup permission. A partial/damaged local record is not claimed complete.
|
|
61
|
+
|
|
62
|
+
## Qualification boundaries
|
|
63
|
+
|
|
64
|
+
Selected source/PR/CI/checkpoint/test/schema/CLI/evidence pins are returned in
|
|
65
|
+
the new ignored `sandbox/coordination/web-storage-followup-return.json`.
|
|
66
|
+
Matching source-containing MCP/PDF and public wheel/docs checks qualify source,
|
|
67
|
+
not a containing published release or a real manual pilot. Existing earlier
|
|
68
|
+
mismatched PDF tuple evidence remains retained; freshness and companion pins are
|
|
69
|
+
not bypassed.
|
|
70
|
+
|
|
71
|
+
TIGIT/TIG still need closed native products. Geodisseny's current simple manifests
|
|
72
|
+
and author/proof state require the separately bounded native-intake gate already
|
|
73
|
+
reported. Actual project-scoped bucket/auth/readback/ACL/restore/link qualification,
|
|
74
|
+
reviewed runtime publication/adoption and author/native acceptance remain owner
|
|
75
|
+
work. This slice performs no real S4/Meum/teaching upload, bucket creation, public
|
|
76
|
+
URL activation, consumer edit, client cutover, merge/tag/release or new SSH script.
|
|
77
|
+
|
|
78
|
+
## Local source verification
|
|
79
|
+
|
|
80
|
+
- Full required source suite: **836 tests, 28 explicit skips**, with the declared
|
|
81
|
+
public dependency environment. The two new repository parser regressions and
|
|
82
|
+
thirteen attempt-evidence regressions include the real pinned Botocore multipart
|
|
83
|
+
part/abort failure model, and synthetic lost-create/uncertain-complete/readback,
|
|
84
|
+
source/config/destination/evidence tampering, symlink confinement, privacy and
|
|
85
|
+
idempotent stage-preservation cases.
|
|
86
|
+
- Distribution/workflow/wheel/whitespace checks pass. The public wheel includes
|
|
87
|
+
the local evidence helper and factory-free CLI inspection interface.
|
|
88
|
+
- Independent native common inspector/planner/named-v1 fetch still reconstructs
|
|
89
|
+
two ZIPs and one private PDF exactly, with object-URL methods unavailable. Local
|
|
90
|
+
journals never enter the three-file product or its four remote objects.
|
|
91
|
+
- A source-containing local MCP check, full MCP/PDF/practice/preview smoke and docs
|
|
92
|
+
build pass. Both local MCP/PDF builders use SHA-256
|
|
93
|
+
`d3d580ef5810383fa195da5633137123f55164b059766950dd204deba01a30bf`.
|
|
94
|
+
Matching development source and earlier failed published-worker evidence remain
|
|
95
|
+
distinct from any published runtime selection.
|
|
96
|
+
|
|
97
|
+
Committed-tree CI, exact source/driver/helper pins and checkpoint preservation
|
|
98
|
+
evidence are recorded in the new owner return after technical publication.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# ZIP-only private files-v1 — producer source increment
|
|
2
|
+
|
|
3
|
+
The direct owner simplifies the successful private Geo pilot: when original
|
|
4
|
+
student/teacher ZIPs contain their PDFs, remote selection is those ZIPs only. Local
|
|
5
|
+
standalone PDFs, source/worker/evidence/provenance, editorial/recipient/language
|
|
6
|
+
state and original ZIP bytes/roots/names remain authoritative and preserved.
|
|
7
|
+
|
|
8
|
+
This same-checkout unit starts at PR135/source
|
|
9
|
+
`966031685c0d88fa5237134b6117157086fb0dcb`. The owner reports the actual preceding
|
|
10
|
+
MEGA pilot completed PLAN/snapshot/stage/publish/verify/common restore, host final
|
|
11
|
+
SHA `7869b7305265ae3456824298c42e7e31d2b066e150798734e39e54585579b4f8`,
|
|
12
|
+
two original student payloads plus six metadata/alias objects. That genuine
|
|
13
|
+
named-v1 proof is preserved, not reinterpreted as a release or normal runtime
|
|
14
|
+
integration, and grants no automatic old-object cleanup authority.
|
|
15
|
+
|
|
16
|
+
## Minimal public opt-in
|
|
17
|
+
|
|
18
|
+
Route schema v3 adds required explicit `delivery_layout:named-v1|files-v1` per
|
|
19
|
+
artifact. Frozen older route/request/product/policy/native formats remain intact;
|
|
20
|
+
scaffold defaults stay unconfigured v2. Files-v1 requires authenticated-private-v1
|
|
21
|
+
and private S3, retaining exact native repository-named bucket, explicit project/
|
|
22
|
+
destination credentials and teacher/private boundaries. The existing public CLI/
|
|
23
|
+
plan/stage/native product/S3/attempt implementation is reused.
|
|
24
|
+
|
|
25
|
+
Only selected `role:output` transfers to `<explicit-prefix>/<original-path>`.
|
|
26
|
+
For Geo's example this is exactly `practiques/ca/avaluacio-multicriteri.zip` and
|
|
27
|
+
`practiques/ca/avaluacio-multicriteri-docent.zip` in bucket `geodisseny`.
|
|
28
|
+
Product/artifact/control/alias/receipt/journal metadata remains local. A new local
|
|
29
|
+
delivery seal binds the chosen layout to the reviewed product/output paths so a
|
|
30
|
+
named stage cannot be silently flattened. Product identity stays destination/
|
|
31
|
+
layout-independent; old named stages/journals remain their original format.
|
|
32
|
+
|
|
33
|
+
Existing native conditional create/reuse and byte/size/MIME/download/private-ACL
|
|
34
|
+
readback are retained. A different existing object/header or uncertain create is
|
|
35
|
+
refused without overwrite/delete/reupload/retry. Conditional-ETag replacement is
|
|
36
|
+
not qualified by this source increment and remains a separately explicit action.
|
|
37
|
+
Attempt intent lists only actual selected plain keys, retaining source/config/
|
|
38
|
+
layout/destination/evidence guards and exact owned multipart observations.
|
|
39
|
+
|
|
40
|
+
The common FILE_STORAGE_V1/mcp_artifacts.files contract is inspected read-only.
|
|
41
|
+
Its existing authenticated files-v1 fetch requires a retained LOCAL manifest,
|
|
42
|
+
downloads only native output entries and may preserve that local inventory
|
|
43
|
+
alongside outputs. Local evidence is not remotely reconstructed; a full product
|
|
44
|
+
claim would be false. No common reader/host engine is copied into Web/manuals, and
|
|
45
|
+
the public wheel has no private hub/MEGA runtime dependency.
|
|
46
|
+
|
|
47
|
+
## Synthetic verification and actual owner next step
|
|
48
|
+
|
|
49
|
+
Representative synthetic original student/teacher ZIP-only selection retains
|
|
50
|
+
embedded PDFs and authentic local worker/member/proof evidence. Tests exercise
|
|
51
|
+
plan/snapshot/private stage, only two plain ZIP objects remotely, exact byte/header/
|
|
52
|
+
ACL/readback, metadata privacy, missing/corrupt/collision/conditional race refusals,
|
|
53
|
+
layout-bound stage integrity, owned uncertainty/tamper/no replay and old profiles.
|
|
54
|
+
An independent existing common files-v1 reader reconstructs the original ZIPs
|
|
55
|
+
from local inventory and natively compares their embedded PDFs to originals.
|
|
56
|
+
|
|
57
|
+
The Geo owner separately proves real containment/candidate state and edits its own
|
|
58
|
+
request/routing only after qualified source/public wheel selection. Review ZIP-only
|
|
59
|
+
intake and route-v3 files-v1 plans, explicit `practiques/ca` prefix and exact private
|
|
60
|
+
host binding; create new layout-sealed stages without mutating old ones. Publish/
|
|
61
|
+
verify original ZIPs, fetch using retained local inventories, then compare ZIP/PDF
|
|
62
|
+
bytes and native headers/private ACL. Only afterwards inspect the exact superseded
|
|
63
|
+
eight pilot objects for a separate owner retirement decision.
|
|
64
|
+
|
|
65
|
+
This producer source unit reads/modifies no real course bodies, consumer files,
|
|
66
|
+
original ZIPs, cloud objects, credentials or client/runtime selections. No merge,
|
|
67
|
+
tag/release/image publication/deploy, new session/worktree or deletion occurs.
|
|
68
|
+
Exact source/PR/CI/package/CLI/schema/API and synthetic common fetch evidence is
|
|
69
|
+
returned in `sandbox/coordination/web-zip-only-flat-storage-return.json`.
|
|
70
|
+
|
|
71
|
+
Local qualification: **867 source tests, 28 skips**, including nine focused
|
|
72
|
+
selected-file/native-SDK cases; distribution/workflow/clean wheel, real MCP schema
|
|
73
|
+
discovery, matching MCP/PDF/practice/preview smoke, docs build and whitespace pass.
|
|
74
|
+
Source/factory/installed dev package code is
|
|
75
|
+
`4170c62aa79074557453aa3eacaa1d653125b8bb47ed94ccf561a7564e145e29`.
|
|
76
|
+
The independent existing common files-v1 reader fetches exactly two original ZIPs
|
|
77
|
+
from LOCAL manifests, with matching headers/private ACL and exact embedded PDF
|
|
78
|
+
bytes, and reports incomplete full metadata restoration honestly. These are
|
|
79
|
+
synthetic/source qualifications; actual Geo adoption/retirement remains separate.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Synthetic native candidate for the real Actions-v4 transfer regression.
|
|
3
|
+
|
|
4
|
+
No consumer content, publication, secrets, network acquisition or S3 account.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
import argparse
|
|
9
|
+
import json
|
|
10
|
+
import os
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
import sys
|
|
13
|
+
|
|
14
|
+
ROOT = Path(__file__).resolve().parents[1]
|
|
15
|
+
sys.path[:0] = [str(ROOT), str(ROOT / "src"), str(ROOT / "test")]
|
|
16
|
+
from unaltraweb_mcp import candidate_storage as storage
|
|
17
|
+
import test_release_assets as native
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def main():
|
|
21
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
22
|
+
parser.add_argument("operation", choices=["prepare", "verify"])
|
|
23
|
+
parser.add_argument("--path", required=True, type=Path)
|
|
24
|
+
parser.add_argument("--sha256", default="")
|
|
25
|
+
args = parser.parse_args()
|
|
26
|
+
fixture = native.ReleaseAssetVerificationTests()
|
|
27
|
+
fixture.setUp()
|
|
28
|
+
try:
|
|
29
|
+
fixture.repository = os.environ.get("GITHUB_REPOSITORY", fixture.repository)
|
|
30
|
+
fixture.reviewed_sha = os.environ.get("GITHUB_SHA", fixture.reviewed_sha)
|
|
31
|
+
fixture.write_assets()
|
|
32
|
+
binding = storage.identity(fixture.repository, fixture.selector, fixture.reviewed_sha,
|
|
33
|
+
os.environ.get("GITHUB_RUN_ID", "123"), os.environ.get("GITHUB_RUN_ATTEMPT", "1"))
|
|
34
|
+
if args.operation == "prepare":
|
|
35
|
+
sha = storage.seal(fixture.assets, args.path, storage.DEFAULT_POLICY, binding)
|
|
36
|
+
if os.environ.get("GITHUB_OUTPUT"):
|
|
37
|
+
with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as handle:
|
|
38
|
+
handle.write(f"sha256={sha}\n")
|
|
39
|
+
print(json.dumps({"sha256": sha, "synthetic": True, "publishes": False}))
|
|
40
|
+
else:
|
|
41
|
+
storage.verify(args.path, storage.DEFAULT_POLICY, binding, args.sha256)
|
|
42
|
+
arguments = fixture.arguments()
|
|
43
|
+
arguments.assets = args.path / "release-assets"
|
|
44
|
+
result = native.verify_release_assets.verify(arguments)
|
|
45
|
+
print(json.dumps({**result, "synthetic": True, "publishes": False}))
|
|
46
|
+
finally:
|
|
47
|
+
fixture.tearDown()
|
|
48
|
+
return 0
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
if __name__ == "__main__":
|
|
52
|
+
raise SystemExit(main())
|
|
@@ -116,6 +116,26 @@ def main() -> int:
|
|
|
116
116
|
"unaltraweb_mcp/image_probe.py",
|
|
117
117
|
"unaltraweb_mcp/source_checks.py",
|
|
118
118
|
"unaltraweb_mcp/source-check-policy-v1.schema.json",
|
|
119
|
+
"unaltraweb_mcp/input_preparation.py",
|
|
120
|
+
"unaltraweb_mcp/input-preparation-v1.schema.json",
|
|
121
|
+
"unaltraweb_mcp/artifact_publication.py",
|
|
122
|
+
"unaltraweb_mcp/artifact_attempts.py",
|
|
123
|
+
"unaltraweb_mcp/retained_intake.py",
|
|
124
|
+
"unaltraweb_mcp/original_archive.py",
|
|
125
|
+
"unaltraweb_mcp/original-private-archive-v1.schema.json",
|
|
126
|
+
"unaltraweb_mcp/retained-private-intake-v1.schema.json",
|
|
127
|
+
"unaltraweb_mcp/artifact_transports.py",
|
|
128
|
+
"unaltraweb_mcp/practice-artifact-storage-v1.schema.json",
|
|
129
|
+
"unaltraweb_mcp/practice-artifact-storage-v2.schema.json",
|
|
130
|
+
"unaltraweb_mcp/practice-artifact-storage-v3.schema.json",
|
|
131
|
+
"unaltraweb_mcp/product-publication-v1.schema.json",
|
|
132
|
+
"unaltraweb_mcp/publication-policy-v1.schema.json",
|
|
133
|
+
"unaltraweb_mcp/scaffolds/common/.unaltraweb/practice-artifacts.json",
|
|
134
|
+
"unaltraweb_mcp/practice-edition-v2.schema.json",
|
|
135
|
+
"unaltraweb_mcp/scaffolds/common/.unaltraweb/input-preparation.json",
|
|
136
|
+
"unaltraweb_mcp/candidate_storage.py",
|
|
137
|
+
"unaltraweb_mcp/artifact-storage-v1.schema.json",
|
|
138
|
+
"unaltraweb_mcp/scaffolds/common/.unaltraweb/artifact-storage.json",
|
|
119
139
|
"unaltraweb_mcp/practice_verifier.py",
|
|
120
140
|
"unaltraweb_mcp/practice-verifier-runtime.json",
|
|
121
141
|
"unaltraweb_mcp/scaffolds/common/AGENTS.md.tmpl",
|
|
@@ -149,6 +169,22 @@ def main() -> int:
|
|
|
149
169
|
source_help = run([str(source_cli), "--help"], cwd=temp).stdout
|
|
150
170
|
if "--base-sha" not in source_help or "--reports" not in source_help:
|
|
151
171
|
raise RuntimeError("Installed source-CI entrypoint is missing its bounded interface")
|
|
172
|
+
preparation_help = run([str(environment / "bin/unaltraweb-prepare-inputs"), "--help"], cwd=temp).stdout
|
|
173
|
+
if "--sha256" not in preparation_help or "--fetch" not in preparation_help:
|
|
174
|
+
raise RuntimeError("Installed early-preparation CLI is missing its explicit hash/fetch interface")
|
|
175
|
+
artifacts_help = run([str(environment / "bin/unaltraweb-practice-artifacts"), "--help"], cwd=temp).stdout
|
|
176
|
+
if "--artifact" not in artifacts_help or "--manifest-sha256" not in artifacts_help or "inspect-attempt" not in artifacts_help or "--attempt-sha256" not in artifacts_help:
|
|
177
|
+
raise RuntimeError("Installed per-artifact publication CLI is missing its bounded interface")
|
|
178
|
+
intake_help = run([str(environment / "bin/unaltraweb-retained-intake"), "--help"], cwd=temp).stdout
|
|
179
|
+
if "--expected-plan-sha256" not in intake_help or "snapshot" not in intake_help:
|
|
180
|
+
raise RuntimeError("Installed private retained-intake CLI is missing its local reviewed-plan interface")
|
|
181
|
+
archive_help = run([str(environment / "bin/unaltraweb-original-archive"), "--help"], cwd=temp).stdout
|
|
182
|
+
if "--expected-plan-sha256" not in archive_help or "snapshot" not in archive_help:
|
|
183
|
+
raise RuntimeError("Installed original-private-archive CLI is missing its explicit local admission interface")
|
|
184
|
+
storage_cli = environment / "bin/unaltraweb-candidate-storage"
|
|
185
|
+
storage_default = json.loads(run([str(storage_cli), "plan", "--project", str(temp)], cwd=temp).stdout)
|
|
186
|
+
if storage_default["transport"] != "github-actions" or storage_default["retention_days"] != 14:
|
|
187
|
+
raise RuntimeError("Factory-free storage default requires an unintended S3 dependency")
|
|
152
188
|
docker_cli = environment / "bin/unaltraweb-mcp-docker"
|
|
153
189
|
launcher = Path(run([str(docker_cli), "path"], cwd=temp).stdout.strip())
|
|
154
190
|
if launcher != environment / "share/unaltraweb-launcher":
|
|
@@ -15,7 +15,7 @@ Managed mode requires an immutable reference or an expected full image ID.
|
|
|
15
15
|
USAGE
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
image="${UNALTRAWEB_MCP_IMAGE:-ghcr.io/dosquartsdedocs/unaltraweb-mcp@sha256:
|
|
18
|
+
image="${UNALTRAWEB_MCP_IMAGE:-ghcr.io/dosquartsdedocs/unaltraweb-mcp@sha256:a4f4f1b61f30bfef550f23a33ec3ef0aa789539adf3981a08e549ff2354d05ec}"
|
|
19
19
|
project="${MCP_CONSUMER_WORKSPACE:-${UNALTRAWEB_PROJECT:-}}"
|
|
20
20
|
operation=serve
|
|
21
21
|
expected_image="${UNALTRAWEB_EXPECTED_IMAGE_ID:-}"
|
|
@@ -1402,6 +1402,26 @@ def validate_workflows(root: Path = WORKFLOW_ROOT) -> list[str]:
|
|
|
1402
1402
|
errors.append("site-deploy.yml: PDF worker provenance must run before publication output processing")
|
|
1403
1403
|
elif build_step_names.index("Verify manual PDF image provenance") > build_step_names.index("Reject versioned manual publication outputs"):
|
|
1404
1404
|
errors.append("site-deploy.yml: PDF worker provenance must run before publication output processing")
|
|
1405
|
+
for name in ("prepare-inputs", "prepare-inputs-sha256"):
|
|
1406
|
+
declaration = deploy.get("on", {}).get("workflow_call", {}).get("inputs", {}).get(name, {})
|
|
1407
|
+
if declaration.get("type") != "string" or declaration.get("required") is not False or declaration.get("default") != "":
|
|
1408
|
+
errors.append("site-deploy.yml: optional pinned early preparation input pair is missing")
|
|
1409
|
+
early = _named_step(deploy_build, "Prepare pinned manual inputs before checks")
|
|
1410
|
+
checkout = _named_step(deploy_build, "Checkout provider-owned input preparation")
|
|
1411
|
+
if (checkout.get("uses") != "actions/checkout@11d5960a326750d5838078e36cf38b85af677262"
|
|
1412
|
+
or checkout.get("with") != {"repository": "${{ job.workflow_repository }}", "ref": "${{ job.workflow_sha }}",
|
|
1413
|
+
"path": ".unaltraweb-inputs-core", "persist-credentials": False}
|
|
1414
|
+
or checkout.get("if") != "${{ inputs.prepare-inputs != '' }}"):
|
|
1415
|
+
errors.append("site-deploy.yml: input preparation must use the defining immutable provider revision")
|
|
1416
|
+
if (early.get("if") != "${{ inputs.prepare-inputs != '' }}" or "continue-on-error" in early
|
|
1417
|
+
or early.get("env") != {"PREPARE_INPUTS": "${{ inputs.prepare-inputs }}", "PREPARE_INPUTS_SHA256": "${{ inputs.prepare-inputs-sha256 }}", "WORKFLOW_SHA": "${{ job.workflow_sha }}"}
|
|
1418
|
+
or not all(marker in str(early.get("run", "")) for marker in ("unaltraweb_mcp.input_preparation", '--config "$PREPARE_INPUTS"', '--sha256 "$PREPARE_INPUTS_SHA256"', "--fetch"))):
|
|
1419
|
+
errors.append("site-deploy.yml: early preparation must be explicit, hash-bound and fail closed")
|
|
1420
|
+
early_position = build_step_names.index("Prepare pinned manual inputs before checks") if "Prepare pinned manual inputs before checks" in build_step_names else len(build_step_names)
|
|
1421
|
+
if early_position == len(build_step_names) or any(early_position >= build_step_names.index(name)
|
|
1422
|
+
for name in ("Check computation freshness", "Check Vega visualization freshness", "Check published manual PDFs", "Sync manual PDFs")
|
|
1423
|
+
if name in build_step_names):
|
|
1424
|
+
errors.append("site-deploy.yml: input preparation must precede all freshness and PDF controls")
|
|
1405
1425
|
|
|
1406
1426
|
stable = workflows.get("site-release.yml")
|
|
1407
1427
|
if stable is None:
|
|
@@ -1414,8 +1434,12 @@ def validate_workflows(root: Path = WORKFLOW_ROOT) -> list[str]:
|
|
|
1414
1434
|
if set(stable_on) != {"workflow_call"}:
|
|
1415
1435
|
errors.append("site-release.yml: stable publication must be workflow_call-only")
|
|
1416
1436
|
workflow_call = stable_on.get("workflow_call", {})
|
|
1417
|
-
if set(workflow_call) != {"inputs"}
|
|
1418
|
-
|
|
1437
|
+
if set(workflow_call) != {"inputs", "secrets"} or workflow_call.get("secrets") != {
|
|
1438
|
+
name: {"required": False} for name in (
|
|
1439
|
+
"candidate_s3_access_key_id", "candidate_s3_secret_access_key", "candidate_s3_session_token"
|
|
1440
|
+
)
|
|
1441
|
+
}:
|
|
1442
|
+
errors.append("site-release.yml: stable workflow_call may only declare reviewed inputs and optional project S3 secrets")
|
|
1419
1443
|
stable_inputs = workflow_call.get("inputs", {})
|
|
1420
1444
|
expected_stable_inputs = {
|
|
1421
1445
|
"selector",
|
|
@@ -1427,9 +1451,15 @@ def validate_workflows(root: Path = WORKFLOW_ROOT) -> list[str]:
|
|
|
1427
1451
|
"vegavisuals_sha",
|
|
1428
1452
|
"ruby_version",
|
|
1429
1453
|
"python_version",
|
|
1454
|
+
"prepare_inputs",
|
|
1455
|
+
"prepare_inputs_sha256",
|
|
1430
1456
|
}
|
|
1431
1457
|
if set(stable_inputs) != expected_stable_inputs:
|
|
1432
1458
|
errors.append("site-release.yml: stable workflow input inventory differs from the reviewed contract")
|
|
1459
|
+
for name in ("prepare_inputs", "prepare_inputs_sha256"):
|
|
1460
|
+
declaration = stable_inputs.get(name, {})
|
|
1461
|
+
if declaration.get("type") != "string" or declaration.get("required") is not False or declaration.get("default") != "":
|
|
1462
|
+
errors.append("site-release.yml: optional pinned early preparation input pair is missing")
|
|
1433
1463
|
for input_name in ["selector", "reviewed_sha", "candidate_manifest_sha256", "core_sha", "manual_pdf_image", "site_build_image"]:
|
|
1434
1464
|
if stable_inputs.get(input_name, {}).get("required") is not True:
|
|
1435
1465
|
errors.append(f"site-release.yml: {input_name} must be required")
|
|
@@ -1488,6 +1518,49 @@ def validate_workflows(root: Path = WORKFLOW_ROOT) -> list[str]:
|
|
|
1488
1518
|
for marker in ["CORE_SHA", "WORKFLOW_SHA", "WORKFLOW_REF", "WORKFLOW_REPOSITORY", "WORKFLOW_FILE_PATH"]:
|
|
1489
1519
|
if marker not in request_text:
|
|
1490
1520
|
errors.append(f"site-release.yml: stable request identity check missing {marker}")
|
|
1521
|
+
early = _named_step(prepare, "Prepare pinned manual inputs before checks")
|
|
1522
|
+
if (early.get("if") is not None or "continue-on-error" in early
|
|
1523
|
+
or early.get("env") != {"PREPARE_INPUTS": "${{ inputs.prepare_inputs }}", "PREPARE_INPUTS_SHA256": "${{ inputs.prepare_inputs_sha256 }}"}
|
|
1524
|
+
or not all(marker in str(early.get("run", "")) for marker in ("unaltraweb_mcp.input_preparation", '--sha256 "$PREPARE_INPUTS_SHA256"', "--fetch"))):
|
|
1525
|
+
errors.append("site-release.yml: early preparation must be explicit, hash-bound and fail closed")
|
|
1526
|
+
names = [step.get("name") for step in prepare.get("steps", []) if isinstance(step, dict)]
|
|
1527
|
+
if "Prepare pinned manual inputs before checks" not in names or names.index("Prepare pinned manual inputs before checks") >= names.index("Verify Vega visualization outputs"):
|
|
1528
|
+
errors.append("site-release.yml: input preparation must precede Vega and PDF controls")
|
|
1529
|
+
|
|
1530
|
+
storage_cli = 'PYTHONPATH="$UNALTRAWEB_CORE_DIR/src" python -m unaltraweb_mcp.candidate_storage'
|
|
1531
|
+
github_if = "${{ steps.storage.outputs.transport == 'github-actions' }}"
|
|
1532
|
+
s3_if = "${{ steps.storage.outputs.transport == 's3-private' }}"
|
|
1533
|
+
s3_secrets = {f"UNALTRAWEB_S3_{key}": "${{ secrets.candidate_s3_" + key.lower() + " }}" for key in ("ACCESS_KEY_ID", "SECRET_ACCESS_KEY", "SESSION_TOKEN")}
|
|
1534
|
+
expected_transfer_steps = [
|
|
1535
|
+
{"name": "Freeze project candidate storage policy", "id": "storage", "run": storage_cli + ' plan --project "$GITHUB_WORKSPACE" --output "$RUNNER_TEMP/candidate-storage.json" --github-output "$GITHUB_OUTPUT"'},
|
|
1536
|
+
{"name": "Install optional candidate storage SDK", "if": s3_if, "run": 'python -m pip install -r "$UNALTRAWEB_CORE_DIR/scripts/manual/candidate-storage-s3-requirements.txt"'},
|
|
1537
|
+
{"name": "Seal exact release candidate transfer", "id": "seal", "run": storage_cli + ' seal --policy "$RUNNER_TEMP/candidate-storage.json" --assets "$RUNNER_TEMP/release-assets" --output "$RUNNER_TEMP/release-transfer" --github-output "$GITHUB_OUTPUT"'},
|
|
1538
|
+
{"name": "Upload immutable release candidate", "id": "candidate_upload", "if": github_if,
|
|
1539
|
+
"uses": "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02", "with": {
|
|
1540
|
+
"name": "stable-manual-${{ inputs.selector }}-${{ inputs.reviewed_sha }}-${{ github.run_id }}-${{ github.run_attempt }}",
|
|
1541
|
+
"path": "${{ runner.temp }}/release-transfer", "if-no-files-found": "error",
|
|
1542
|
+
"retention-days": "${{ steps.storage.outputs.retention_days }}", "overwrite": False}},
|
|
1543
|
+
{"name": "Require exact prepared GitHub artifact ID", "if": github_if,
|
|
1544
|
+
"env": {"ARTIFACT_ID": "${{ steps.candidate_upload.outputs.artifact-id }}"}, "run": '[[ "$ARTIFACT_ID" =~ ^[1-9][0-9]{0,19}$ ]]'},
|
|
1545
|
+
{"name": "Read back exact GitHub candidate", "if": github_if,
|
|
1546
|
+
"uses": "actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093", "with": {
|
|
1547
|
+
"artifact-ids": "${{ steps.candidate_upload.outputs.artifact-id }}", "merge-multiple": True, "path": "${{ runner.temp }}/release-readback"}},
|
|
1548
|
+
{"name": "Verify GitHub transfer readback", "if": github_if, "env": {"TRANSFER_SHA256": "${{ steps.seal.outputs.sha256 }}"},
|
|
1549
|
+
"run": storage_cli + ' verify --policy "$RUNNER_TEMP/candidate-storage.json" --package "$RUNNER_TEMP/release-readback" --sha256 "$TRANSFER_SHA256"'},
|
|
1550
|
+
{"name": "Upload and read back private S3 candidate", "if": s3_if,
|
|
1551
|
+
"env": {"TRANSFER_SHA256": "${{ steps.seal.outputs.sha256 }}", **s3_secrets},
|
|
1552
|
+
"run": storage_cli + ' s3-upload --policy "$RUNNER_TEMP/candidate-storage.json" --package "$RUNNER_TEMP/release-transfer" --sha256 "$TRANSFER_SHA256"'},
|
|
1553
|
+
]
|
|
1554
|
+
for expected in expected_transfer_steps:
|
|
1555
|
+
if _named_step(prepare, expected["name"]) != expected:
|
|
1556
|
+
errors.append("site-release.yml: candidate transfer differs from exact versioned storage policy: " + expected["name"])
|
|
1557
|
+
positions = {step.get("name"): index for index, step in enumerate(prepare.get("steps", [])) if isinstance(step, dict)}
|
|
1558
|
+
if not (positions.get("Freeze project candidate storage policy", 10000) < positions.get("Verify stable site-build image runtime", -1)
|
|
1559
|
+
< positions.get("Seal exact release candidate transfer", -1)):
|
|
1560
|
+
errors.append("site-release.yml: candidate policy must be frozen before untrusted builds and seal after builds")
|
|
1561
|
+
for step in prepare.get("steps", []):
|
|
1562
|
+
if isinstance(step, dict) and "secrets." in json.dumps(step) and step.get("name") != "Upload and read back private S3 candidate":
|
|
1563
|
+
errors.append("site-release.yml: S3 credentials must be scoped only to the private transfer step")
|
|
1491
1564
|
|
|
1492
1565
|
expected_publish = {
|
|
1493
1566
|
"needs": "prepare",
|
|
@@ -1504,16 +1577,11 @@ def validate_workflows(root: Path = WORKFLOW_ROOT) -> list[str]:
|
|
|
1504
1577
|
"SELECTOR": "${{ inputs.selector }}",
|
|
1505
1578
|
"SITE_BUILD_IMAGE": "${{ inputs.site_build_image }}",
|
|
1506
1579
|
"VEGAVISUALS_SHA": "${{ inputs.vegavisuals_sha }}",
|
|
1580
|
+
"STORAGE_POLICY_JSON": "${{ needs.prepare.outputs.policy_json }}",
|
|
1581
|
+
"TRANSFER_SHA256": "${{ needs.prepare.outputs.transfer_sha256 }}",
|
|
1582
|
+
"TRANSFER_ENVELOPE_BYTES": "${{ needs.prepare.outputs.envelope_bytes }}",
|
|
1507
1583
|
},
|
|
1508
1584
|
"steps": [
|
|
1509
|
-
{
|
|
1510
|
-
"name": "Download prepared candidate",
|
|
1511
|
-
"uses": "actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093",
|
|
1512
|
-
"with": {
|
|
1513
|
-
"name": "stable-manual-${{ inputs.selector }}-${{ inputs.reviewed_sha }}-${{ github.run_id }}-${{ github.run_attempt }}",
|
|
1514
|
-
"path": "release-assets",
|
|
1515
|
-
},
|
|
1516
|
-
},
|
|
1517
1585
|
{
|
|
1518
1586
|
"name": "Checkout reviewed release verifier",
|
|
1519
1587
|
"uses": "actions/checkout@11d5960a326750d5838078e36cf38b85af677262",
|
|
@@ -1529,6 +1597,33 @@ def validate_workflows(root: Path = WORKFLOW_ROOT) -> list[str]:
|
|
|
1529
1597
|
"uses": "actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065",
|
|
1530
1598
|
"with": {"python-version": "${{ inputs.python_version }}"},
|
|
1531
1599
|
},
|
|
1600
|
+
{
|
|
1601
|
+
"name": "Require exact prepared GitHub artifact ID",
|
|
1602
|
+
"if": "${{ needs.prepare.outputs.transport == 'github-actions' }}",
|
|
1603
|
+
"env": {"ARTIFACT_ID": "${{ needs.prepare.outputs.github_artifact_id }}"},
|
|
1604
|
+
"run": '[[ "$ARTIFACT_ID" =~ ^[1-9][0-9]{0,19}$ ]]',
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
"name": "Download prepared candidate",
|
|
1608
|
+
"if": "${{ needs.prepare.outputs.transport == 'github-actions' }}",
|
|
1609
|
+
"uses": "actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093",
|
|
1610
|
+
"with": {"artifact-ids": "${{ needs.prepare.outputs.github_artifact_id }}", "merge-multiple": True, "path": "${{ runner.temp }}/release-transfer"},
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"name": "Install privileged optional candidate SDK",
|
|
1614
|
+
"if": "${{ needs.prepare.outputs.transport == 's3-private' }}",
|
|
1615
|
+
"run": "python -m pip install -r .unaltraweb-release-core/scripts/manual/candidate-storage-s3-requirements.txt",
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
"name": "Download exact private S3 candidate",
|
|
1619
|
+
"if": "${{ needs.prepare.outputs.transport == 's3-private' }}",
|
|
1620
|
+
"env": s3_secrets,
|
|
1621
|
+
"run": 'PYTHONPATH=.unaltraweb-release-core/src python -m unaltraweb_mcp.candidate_storage s3-download --policy-json-env STORAGE_POLICY_JSON --sha256 "$TRANSFER_SHA256" --envelope-bytes "$TRANSFER_ENVELOPE_BYTES" --output "$RUNNER_TEMP/release-transfer"',
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"name": "Verify and receive native release assets",
|
|
1625
|
+
"run": 'PYTHONPATH=.unaltraweb-release-core/src python -m unaltraweb_mcp.candidate_storage receive --policy-json-env STORAGE_POLICY_JSON --package "$RUNNER_TEMP/release-transfer" --sha256 "$TRANSFER_SHA256" --output release-assets',
|
|
1626
|
+
},
|
|
1532
1627
|
{
|
|
1533
1628
|
"name": "Publish verified stable release",
|
|
1534
1629
|
"env": {
|