feat(stdlib): add deterministic offline stdlib packaging

- tools/pack-stdlib.py builds a byte-deterministic
  marqdo-stdlib-0.1.0.tar.gz (fixed metadata, gzip mtime 0) plus a schema-tagged
  descriptor with tree digest, archive SHA-256 and file list.
- Verified repeated builds are identical and the extracted tree digest matches
  stdlib.json; archive is for the future external repo, not the CLI loader.
- Update ADR-0028, status/changelog/tests README and evidence.

Gate: fmt, clippy -D warnings, 430 tests passed.
This commit is contained in:
cflmy committed 2026-11-20 23:17:09 +08:00
1 parent e985da28a1
commit b241d1d978
7 files changed
+176 -1

No files matched your search

+4 -1
View File
@@ -162,7 +162,10 @@ This is still a **local VM lane**, not a self-hosted GitHub Actions security URL
`project.stdlib`; a frozen-binary test asserts the CLI hash is unchanged after
running a `std:io` project and that tampering is rejected. `打印/print` is
routed to the bundled stdlib (Compat-C, ADR-0030/0031); there is no legacy
host formatter.
host formatter. `tools/pack-stdlib.py` additionally emits a byte-deterministic
offline archive + descriptor for the future external repository
([evidence](evidence/2026-11-20-stdlib-package.md)); publication/signing is
still external.
- Resource streams (RFC-CM CM-A06, ADR-0025): opaque host-issued `Resource`
handles with `resource.open/read/write/close`; bytes move only through
`Memory`; stdout write is capability/output-budget checked and project-file