unaltraweb 0.8.1 → 0.9.1
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/06-github-web-editing.md +15 -0
- data/docs/_documentation/en/33-reusable-workflows.md +29 -1
- data/docs/_documentation/en/43-workspace-path-policies.md +7 -0
- data/docs/_documentation/en/47-private-practice-pdfs.md +47 -1
- data/docs/_documentation/en/48-artifact-storage.md +169 -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 +147 -0
- data/docs/agents/software-release-091.md +110 -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/manual/templates/manual.tex +2 -1
- data/scripts/manual/templates/practice.tex +15 -1
- data/scripts/test_candidate_transfer.py +52 -0
- data/scripts/test_wheel_install.py +66 -15
- data/scripts/unaltraweb-mcp-bootstrap.sh +1 -1
- data/scripts/validate_workflows.py +235 -10
- data/src/unaltraweb_mcp/component-contract.json +28 -20
- metadata +22 -2
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Web 0.9.1 manual and practice software patch
|
|
2
|
+
|
|
3
|
+
Owner authorization: [WEB22, issue 98](https://github.com/dosquartsdedocs/unaltraweb/issues/98#issuecomment-7325068889),
|
|
4
|
+
continuing the bounded software-publication authority in WEB21. The exact path
|
|
5
|
+
reservation is [recorded separately](https://github.com/dosquartsdedocs/unaltraweb/issues/98#issuecomment-7325152572).
|
|
6
|
+
This record supplements, and does not replace, `software-release-090.md`.
|
|
7
|
+
|
|
8
|
+
## Integrated fixes
|
|
9
|
+
|
|
10
|
+
PR149 was normally merged as `d7df57d3997edac2f53ead38edae8977c3f21721`,
|
|
11
|
+
tree `4d7c3112c2514a779e8e2b46a628113045534840`. It retains the original
|
|
12
|
+
manual/practice producers and the earlier title-only acceptance case:
|
|
13
|
+
|
|
14
|
+
- Preserve title-only practice PDF text, language handling and draft pagination.
|
|
15
|
+
- Accept absent optional Docker image labels without weakening image identity.
|
|
16
|
+
- Select the pinned Actions download action's existing authenticated REST route,
|
|
17
|
+
using the upload-derived artifact ID and the original strict byte verifier.
|
|
18
|
+
|
|
19
|
+
The original CI and CodeQL runs for the reviewed PR head succeeded at attempt 1.
|
|
20
|
+
The exact-run artifact manifest reported artifact `15521242251`, 2880 bytes,
|
|
21
|
+
digest `sha256:3179461035a18ebc6a7e5fb8a0883e26e418c0337e633bb15ab05ff172e9f9bf`.
|
|
22
|
+
The retained Jobs API reports success for prepare, upload, exact-ID readback and
|
|
23
|
+
byte verification. Immutable workflow/verifier sources provide the input and
|
|
24
|
+
control bindings. This is structured API/source evidence, not a raw-log reading
|
|
25
|
+
or a caller-recomputed artifact ZIP hash. The earlier failed run and its
|
|
26
|
+
artifact remain separate negative evidence; their underlying RPC cause is
|
|
27
|
+
unknown.
|
|
28
|
+
|
|
29
|
+
## Version intent and independent components
|
|
30
|
+
|
|
31
|
+
This first source phase declares distribution, gem, wheel, runtime and MCP
|
|
32
|
+
version `0.9.1`. Python and Ruby continue to derive their versions from the
|
|
33
|
+
canonical component contract. The native launcher, factory manifest and runtime
|
|
34
|
+
references follow that contract; no second version mechanism is introduced.
|
|
35
|
+
|
|
36
|
+
The first source phase retained the actual published PDF `0.9.0` digest
|
|
37
|
+
`38f62cba21cd2b50a3512bd00743a3a8413c89b99f51b55d1bb47d1bb72bad3c`.
|
|
38
|
+
The final source selection below advances only after the original signed new
|
|
39
|
+
candidate, its native version and actual producer were verified and recorded.
|
|
40
|
+
Changing a distribution version never relabels the old worker.
|
|
41
|
+
|
|
42
|
+
Unchanged computation Python/R and web capture retain `0.4.0`; private QGIS
|
|
43
|
+
retains `0.6.1`; diavisuals and vegavisuals retain `0.5.0` and `0.5.1`.
|
|
44
|
+
Existing consumer core/workflow/PDF selections remain unchanged in this first
|
|
45
|
+
phase. Any later producer/record-ancestor selection must use actual verified
|
|
46
|
+
commits and image identities, following the original 0.9.0 procedure.
|
|
47
|
+
|
|
48
|
+
## Verified initial worker and source qualification
|
|
49
|
+
|
|
50
|
+
PR150 normally merged as `837654723e667f497fc535aeacb2940a40fae490`,
|
|
51
|
+
tree `f140b8c2a4f1061dabadc155f4d0473a3d8ac62e`. Its original CI
|
|
52
|
+
`46750664911` and CodeQL `46750665047` succeeded at attempt 1 with all eight
|
|
53
|
+
protected contexts. The actual jobs and immutable workflow bind Ruby 3.3.11
|
|
54
|
+
`make gem-check`, the newly built `unaltraweb-runtime:ci`, and the Ruby, manual
|
|
55
|
+
PDF, MCP, reproducibility and docs checks. Earlier local 40-test and wheel
|
|
56
|
+
successes and the local gem prerequisite refusal remain separate evidence.
|
|
57
|
+
|
|
58
|
+
[Initial image workflow](https://github.com/dosquartsdedocs/unaltraweb/actions/runs/46753989918)
|
|
59
|
+
succeeded at attempt 1 from this actual producer. Its signed, exact-digest
|
|
60
|
+
provenance/revision, native tests and promotion checks qualified the new PDF:
|
|
61
|
+
|
|
62
|
+
- Reference: `ghcr.io/dosquartsdedocs/unaltraweb-manual-pdf@sha256:aa5b4bc16f6ce74142ee400cab43f8d18cbf315495bb2f203adf7e0ccec185a8`.
|
|
63
|
+
- Producer: `837654723e667f497fc535aeacb2940a40fae490`.
|
|
64
|
+
- Observed native source version: `0.9.1`, queried in the explicitly
|
|
65
|
+
prepared immutable image. Its complete packaged BOM hash matched producer
|
|
66
|
+
source; this is not inferred from release intent or an OCI tag label.
|
|
67
|
+
- Registry platform manifest: `sha256:90f8cb60795bdb7686eb13414a8a223e9d446dadae83fcc003e404d26fa1b0a4`.
|
|
68
|
+
- Registry platform config: `sha256:bd45ba64eff88392ec7a69144c095a61a22c64d3763d35c377e91f09a7f5adfe`.
|
|
69
|
+
|
|
70
|
+
Record ancestor `5d3f6190320b3bc28377eb6cc99e640e77d0bf45`
|
|
71
|
+
adds the actual producer record while retaining the previous selections. This
|
|
72
|
+
following source commit selects that real ancestor for independent core and
|
|
73
|
+
site-deploy workflow identity, with native gem `0.9.1`, and selects the verified
|
|
74
|
+
new immutable PDF above with its observed native `0.9.1` identity. The PDF is
|
|
75
|
+
already published and signed under its producer SHA; it remains independent of
|
|
76
|
+
the final runtime/MCP candidate digests and receives no invented self-digest.
|
|
77
|
+
Initial MCP bytes are not the final release tuple. No coordinated tag,
|
|
78
|
+
language-package publication, final receipt or new-worker Web10 acceptance is
|
|
79
|
+
claimed at this source phase.
|
|
80
|
+
|
|
81
|
+
## Original delivery sequence
|
|
82
|
+
|
|
83
|
+
Source qualification uses the existing `workflow-check`, `distribution-check`,
|
|
84
|
+
`wheel-check`, `gem-check` and embedded `docs-build` Make entrypoints. The strict
|
|
85
|
+
`distribution-release-check` belongs after real final candidates and their
|
|
86
|
+
receipt-only child commit, not before those artifacts exist.
|
|
87
|
+
|
|
88
|
+
The original `docker-image.yml` and `package-prepare.yml` workflows produce the
|
|
89
|
+
signed/tested image candidates and original language-package bytes from reviewed
|
|
90
|
+
default-branch sources. Distinct initial-worker and final-source phases are not
|
|
91
|
+
retries of a failed construction. Candidate IDs, digests and package checksums
|
|
92
|
+
must come from their real retained results.
|
|
93
|
+
|
|
94
|
+
The new receipt must be an immediate child changing only
|
|
95
|
+
`release-candidates.json`. The existing 0.9.0 receipt is not a template for
|
|
96
|
+
invented hashes. The exact unused annotated `v0.9.1` tag, original OCI
|
|
97
|
+
promotion, `package-publish.yml` OIDC operation, and GitHub Release may follow
|
|
98
|
+
only their original source, receipt, provenance and package-byte guards.
|
|
99
|
+
|
|
100
|
+
No 0.9.1 publication, registry delivery or new native acceptance result is
|
|
101
|
+
claimed by this source-intent record. Actual delivery evidence must be added
|
|
102
|
+
when those phases finish.
|
|
103
|
+
|
|
104
|
+
## Downstream boundary
|
|
105
|
+
|
|
106
|
+
Software publication does not approve teaching content, edit or migrate a
|
|
107
|
+
consumer, change its pins, reconnect clients, deploy Pages or publish S4
|
|
108
|
+
objects. The final affected published worker requires one new original
|
|
109
|
+
title-only acceptance case on the existing test input/consumer. Earlier
|
|
110
|
+
PDFs, PNGs, receipts and negative observations remain intact.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# WEB-B — practice requirements reconciled with c87ac4f4
|
|
2
|
+
|
|
3
|
+
This is a technical adoption map, not approval or publication of teaching copy.
|
|
4
|
+
The authoritative source baseline is `c87ac4f4f6e299c3846ae0bd5cd17ca1b981b420`.
|
|
5
|
+
No consumer checkout, retained dataset, manual, client configuration, runtime pin,
|
|
6
|
+
or private provider was edited during this audit.
|
|
7
|
+
|
|
8
|
+
## Evidence inspected
|
|
9
|
+
|
|
10
|
+
- [Web #98](https://github.com/dosquartsdedocs/unaltraweb/issues/98), including
|
|
11
|
+
[6155003975](https://github.com/dosquartsdedocs/unaltraweb/issues/98#issuecomment-6155003975),
|
|
12
|
+
[6155247851](https://github.com/dosquartsdedocs/unaltraweb/issues/98#issuecomment-6155247851),
|
|
13
|
+
and [6178087168](https://github.com/dosquartsdedocs/unaltraweb/issues/98#issuecomment-6178087168).
|
|
14
|
+
- [TIGIT #14](https://github.com/geourv/tigit/issues/14), latest owner delivery
|
|
15
|
+
report [6277044214](https://github.com/geourv/tigit/issues/14#issuecomment-6277044214).
|
|
16
|
+
Read-only remote revision `7a8b314d743b62699232c66d7024387f86f59281`:
|
|
17
|
+
`context/practice-migration.md` and
|
|
18
|
+
`practiques/tigit-projecte-territorial/recursos.yml`.
|
|
19
|
+
- [Geodisseny #9](https://github.com/geourv/geodisseny/issues/9), read-only remote
|
|
20
|
+
revision `10990377aa9ac5983af0f92055debfd73a4e5456`:
|
|
21
|
+
`context/practice-tools-handoff.md` and
|
|
22
|
+
`practiques/accessibilitat-vilaseca/recursos.yml`.
|
|
23
|
+
- TIG read-only remote revision `c045d46a8e7139adf9f060eeeaf4e47781dfd355`:
|
|
24
|
+
`context/practice-tools-handoff.md` and `context/practice-retention.json`.
|
|
25
|
+
- Current `practice_pdf.py`, `practice_editions.py`, edition v1 schema,
|
|
26
|
+
`editorial_sources.py`, source-CI, reusable deploy/release workflows, package
|
|
27
|
+
scaffolds, native verifier descriptor, and the pertinent Python/protocol tests.
|
|
28
|
+
|
|
29
|
+
The older handoffs describe rc/candidate processes and earlier selections. They
|
|
30
|
+
are retained evidence, not the currently published Web release or a new QGIS
|
|
31
|
+
admission. This change preserves the baseline's independently selected private
|
|
32
|
+
QGIS 0.6.1 verifier and accepted `qgis-practice-v1` / `qgis-practice-v2` profiles;
|
|
33
|
+
the QGIS development refactor is not adopted as a runtime.
|
|
34
|
+
|
|
35
|
+
## Requirement map
|
|
36
|
+
|
|
37
|
+
| Demand | Baseline finding | This unit / remaining owner work |
|
|
38
|
+
| --- | --- | --- |
|
|
39
|
+
| TIGIT's ignored inputs must exist before Quarto/Vega/PDF freshness. | `build-command` still runs after those gates. No early preparation interface exists. | New explicit hash-bound `prepare-inputs` + `prepare-inputs-sha256` deploy pair, and underscored equivalents for stable release. Provider-owned hydration runs before gates, never instead of them. |
|
|
40
|
+
| Reconstruct data outside Git, preserving pinned provenance. | TIGIT already has a tested preparer and an immutable manifest: 21 files, 7,759,191 bytes, historical commit `715944fc…`. Its 13 transitional inputs feed 23 Quarto sources and one Vega source, producing 33 figures. | The `immutable-github-files-v1` adapter reuses that inventory shape and reads its exact bytes via an explicitly hash-pinned top-level plan. No copy of the preparer or statistical/GIS/workbook execution is added. Owners still select the exact input subset/snapshot, update sources and regenerate their own locks/receipts before retiring the 13 inputs/initial ZIP. |
|
|
41
|
+
| Tabular editions without a fake GIS descriptor. | Edition v1 still requires `gis`; `resources` only covers explicit editable-SVG closure. Existing standalone PDFs and arbitrary ZIP helpers do not provide a tabular composition contract. | Additional explicit edition **v2 `mode: tabular`**, with file ID/path/destination/hash/size/role/recipient selection. Reuses native approved-reading/PDF seals, ZIP copy/verification and no-clobber delivery. No QGIS or workbook calculation. GIS v1 schema is unchanged. |
|
|
42
|
+
| Sources at `practiques/<slug>/`, ignored retained work and deliveries. | Implemented, including exact path policies, Git checks, Jekyll exclusions and no-clobber PDF/edition installation. Legacy mapped `_practices` readings remain supported. | Preserve these boundaries; add a project-owned input plan and explicit local preparation facade. No directory migration or cleanup in consumers. |
|
|
43
|
+
| CA/ES/EN reading basenames and recipient-specific sources. | Already `ca/LLEGIU-ME`, `es/LEEME`, `en/README` beneath `alumnat` / `docent`, with canonical validation and explicit legacy mappings. | Retained, with CA/ES/EN fixtures for v2 composition and paired PDF/ZIP contents. No new audience or language naming convention. |
|
|
44
|
+
| Geodisseny initially requested `GUIA.pdf`. | The later common #98 contract and existing author sources use `LLEGIU-ME.md/.pdf`, with Spanish/English equivalents. | Keep the later accepted common convention; do not introduce an unversioned `GUIA.pdf` alias or rename authored files. Any additional human delivery alias is an owner selection, not a core rewrite. |
|
|
45
|
+
| #98's early examples named outer `alumnat.zip` and `docent.zip`. | The shipped composer retains `<slug>[-docent]-<version>-<lang>.pdf/.zip`; each ZIP contains the language-specific reading basename. | Preserve the shipped versioned outer names and independent byte-identical PDF, under `dist/practiques/<slug>/<version>/<lang>/`, with external receipts. No flat latest-only replacement. |
|
|
46
|
+
| Separate initial student materials from resolved teacher material. | GIS closure enforces producer roles; current TIGIT owner also explicitly wants selected resolved workbooks as labelled student demonstrations. | V2 rejects `resolved-workbook` for students; `demonstration-workbook` requires a separate explicit owner selection/recipient label. Byte checking does not assert that workbook contents are pedagogically appropriate or semantically valid. |
|
|
47
|
+
| Geodisseny: initial/teacher portable GIS, captures, fonts and sidecars. | Producer v1/v2 closure, SVG dependencies, original PDF seals, recipient bindings and native profile identity already exist. The provenance manifest still contains live/statistical URLs without a complete immutable hash/size inventory. | No GIS/schema/provider reimplementation. Owners must qualify original/normalised bytes, full producer closure and extracted-packet reopening. The new fetch profile must not pretend that a WMS/live URL is an immutable snapshot. |
|
|
48
|
+
| TIG: ignored input, initial/resolved project closure and font. | Retention index names a hash-bound local input and complete historic native bundle. Handoff reports missing final practice editions/approval at that observation. | Keep exact local bytes, native check/reopen and explicit reading bindings. No new data generation, reinterpretation of a historic candidate, or automatic final edition. |
|
|
49
|
+
| Source-CI must stay source-only. | Current conservation/prose policy intentionally does not acquire datasets or render. | Unchanged source-CI workflow; regression asserts it never calls the new preparation path. Explicit local/deploy hydration is a different operation. |
|
|
50
|
+
|
|
51
|
+
## Adoption contract
|
|
52
|
+
|
|
53
|
+
The public API is `unaltraweb_mcp.input_preparation.prepare(project, config,
|
|
54
|
+
sha256, allow_fetch=False, check_only=False)` and installed
|
|
55
|
+
`unaltraweb-prepare-inputs`. The optional plan uses
|
|
56
|
+
`input-preparation-v1.schema.json`; `web://input-preparation-schema` exposes those
|
|
57
|
+
exact package bytes. Empty plans are no-ops. The only acquisition profile accepts
|
|
58
|
+
public GitHub raw files bound to a full commit, exact prefix, per-file SHA and
|
|
59
|
+
size. It refuses redirects, moving refs, commands, symlinks, missing exclusions,
|
|
60
|
+
unignored/versioned outputs, changed snapshots and changed control hashes. Failed
|
|
61
|
+
attempts remain retained; successful bytes are independently read back. Existing
|
|
62
|
+
identical snapshots can be checked/reused without rewriting consumer receipts.
|
|
63
|
+
|
|
64
|
+
`web://practice-edition-schema` remains the original GIS v1 schema;
|
|
65
|
+
`web://practice-tabular-edition-schema` exposes the additional v2 schema. The
|
|
66
|
+
existing `manual_practice_compose` API/CLI accepts either version explicitly.
|
|
67
|
+
No extra runtime profile is silently inferred. Returned tabular verification
|
|
68
|
+
states its actual byte/size/recipient scope rather than attributing a GIS seal.
|
|
69
|
+
|
|
70
|
+
Consumers must explicitly adopt reviewed source/workflow/runtime revisions that
|
|
71
|
+
contain these APIs, reconcile local scaffold edits, bind their approved manifests,
|
|
72
|
+
and verify a clean checkout hydration followed by native freshness/PDF/build
|
|
73
|
+
checks. For the shared workflow helper, the defining immutable provider revision
|
|
74
|
+
is checked out, so an older consumer gem cannot supply a substitute preparer.
|
|
75
|
+
The generated local Docker facade requires an independently approved updated image;
|
|
76
|
+
its currently accepted pin is not advanced here. Reconnection and helper pin
|
|
77
|
+
selection remain owner/coordinator work.
|
|
78
|
+
|
|
79
|
+
## Verification and qualification limits
|
|
80
|
+
|
|
81
|
+
Synthetic tests cover immutable-input hydration/readback/reuse, source/config
|
|
82
|
+
hashes, absent/corrupt/denied inputs, retained partial attempts, path/Git/Jekyll
|
|
83
|
+
boundaries, and no consumer-code execution. CA/ES/EN composition fixtures exercise
|
|
84
|
+
real ZIP/PDF copying and receipts with a synthetic native-PDF build boundary.
|
|
85
|
+
Existing GIS/profile, private-resource, original-seal and protocol tests remain.
|
|
86
|
+
Local tests do not claim real statistical acquisition, workbook calculation,
|
|
87
|
+
private GIS verification/reopening, teaching review, or Moodle/Pages publication.
|
|
88
|
+
Those are exact pending qualification gates, not bypassed checkers.
|
|
@@ -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.
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
\usepackage{xurl}
|
|
31
31
|
\usepackage{hyperref}
|
|
32
32
|
\usepackage{bookmark}
|
|
33
|
-
|
|
33
|
+
% Markdown supplies Unicode accents; language shorthands must not rewrite code.
|
|
34
|
+
\usepackage[shorthands=off,$babel-lang$]{babel}
|
|
34
35
|
|
|
35
36
|
\geometry{inner=25mm,outer=22mm,top=24mm,bottom=26mm}
|
|
36
37
|
\setmainfont{DejaVu Serif}
|
|
@@ -3,19 +3,27 @@
|
|
|
3
3
|
\usepackage{lastpage}
|
|
4
4
|
\pagestyle{fancy}
|
|
5
5
|
\fancyhf{}
|
|
6
|
+
$if(practice-title-only)$
|
|
7
|
+
\renewcommand{\headrulewidth}{0pt}
|
|
8
|
+
$else$
|
|
6
9
|
\fancyhead[L]{\small\sffamily\color{ManualMuted}$course-short-title$}
|
|
7
10
|
\fancyhead[R]{\small\sffamily\color{ManualMuted}$short-title$}
|
|
8
11
|
\fancyfoot[L]{\footnotesize\sffamily\color{ManualMuted}v$practice-version$ · $lang$}
|
|
12
|
+
\renewcommand{\headrulewidth}{0.2pt}
|
|
13
|
+
$endif$
|
|
9
14
|
\fancyfoot[C]{\footnotesize\sffamily\color{ManualMuted}$if(draft)$$draft-label$$endif$}
|
|
10
15
|
\fancyfoot[R]{\footnotesize\sffamily\color{ManualMuted}\thepage/\pageref*{LastPage}}
|
|
11
|
-
\renewcommand{\headrulewidth}{0.2pt}
|
|
12
16
|
\renewcommand{\footrulewidth}{0pt}
|
|
13
17
|
\fancypagestyle{practicefirst}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}}
|
|
14
18
|
\titleformat{\section}{\normalfont\sffamily\Large\bfseries\color{ManualSecondary}}{\thesection}{0.55em}{}
|
|
15
19
|
\titleformat{\subsection}{\normalfont\large\bfseries\color{ManualSecondary}}{\thesubsection}{0.6em}{}
|
|
16
20
|
\titlespacing*{\section}{0pt}{1.1em}{0.45em}
|
|
17
21
|
\titlespacing*{\subsection}{0pt}{0.9em}{0.35em}
|
|
22
|
+
$if(practice-title-only)$
|
|
23
|
+
\setcounter{secnumdepth}{0}
|
|
24
|
+
$else$
|
|
18
25
|
\setcounter{secnumdepth}{2}
|
|
26
|
+
$endif$
|
|
19
27
|
\setlength{\emergencystretch}{3em}
|
|
20
28
|
\setlist[enumerate]{before=\raggedright}
|
|
21
29
|
\setlength{\LTleft}{\fill}
|
|
@@ -57,6 +65,8 @@
|
|
|
57
65
|
|
|
58
66
|
\begin{document}
|
|
59
67
|
\thispagestyle{practicefirst}
|
|
68
|
+
$if(practice-title-only)$
|
|
69
|
+
$else$
|
|
60
70
|
{\setlength{\parskip}{0pt}%
|
|
61
71
|
\noindent
|
|
62
72
|
\begin{minipage}[c]{0.65\linewidth}
|
|
@@ -89,7 +99,11 @@ $if(author)$$author$ · $endif$$practice-version-label$ $practice-version$\par
|
|
|
89
99
|
\vspace{2mm}{\color{ManualSecondary!40}\hrule}
|
|
90
100
|
}
|
|
91
101
|
\vspace{4mm}
|
|
102
|
+
$endif$
|
|
103
|
+
$if(practice-title-in-body)$
|
|
104
|
+
$else$
|
|
92
105
|
{\LARGE\sffamily\bfseries\color{ManualSecondary}$title$}\par
|
|
93
106
|
\vspace{1mm}
|
|
107
|
+
$endif$
|
|
94
108
|
$body$
|
|
95
109
|
\end{document}
|
|
@@ -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())
|