Skip to content

feat: upgrade to AILANG v0.64.0 (Message.media, stdlib renames, MOD007, lock v1) - #345

Open
sunholo-voight-kampff wants to merge 1 commit into
arniwesth:mainfrom
sunholo-voight-kampff:feat/ailang-v0.64.0
Open

sunholo-voight-kampff wants to merge 1 commit into
arniwesth:mainfrom
sunholo-voight-kampff:feat/ailang-v0.64.0

Conversation

@sunholo-voight-kampff

Copy link
Copy Markdown
Contributor

Upgrade to AILANG v0.64.0 (Message.media, stdlib renames, MOD007, lock v1)

Summary

Upgrades motoko_agent to AILANG v0.64.0 (bumping from v0.60.4), combining:

  1. std/ai.Message.media migration (v0.61.0, ailang#2458)
    • Migrates Message literals from images: [ImagePart] to media: [MediaPart] across src/, packages/, and scripts/ (including the two sites added since 35ea0660: src/core/session.ail and scripts/dst/corpus_judge_dst.ail).
    • Keeps the on-disk journal JSON format and canonical chain framing backward-compatible for default-resolution images (src/core/journal.ail, src/core/phase_vocab.ail, src/eval/journal/{reader,digests,source_checks}.ail).
  2. Removed @deprecated stdlib aliases (v0.64.0)
    • packages/motoko-ext-compose/store.ail: std/bytes.slice → sliceLen
    • src/core/test/dst_gen.ail: std/rand.rand_int → randInt
    • scripts/dst/compaction_seeded_dst.ail, scripts/dst/phase_c_seeded_dst.ail: std/rand.{rand_seed, rand_int} → {randSeed, randInt}
  3. Duplicate module-scope function declarations (MOD007)
    • packages/motoko-ext-herdr/types.ail: removed duplicate pure func length_of (identical copy at lines 1871–1873).
    • scripts/verify_mot136_dagr_producer.ail: removed duplicate func sfield (identical copy at lines 368–373).
  4. Version pins & lockfiles
    • ailang.toml: ailang = ">=0.64.0"
    • scripts/install-prerequisites.sh: AILANG_REF="v0.64.0", AILANG_MIN_VERSION="0.64.0"
    • Regenerated ailang.lock and tools/ext_registry_gen/fixtures/abi8/ailang.lock with "schema": "ailang.lock/v1" and portable relative paths (0 absolute paths).

Verification (AILANG v0.64.0 release candidate)

  • src/core/*.ail (ailang check): 61 / 61 passed, 0 failed.
  • packages/*/*.ail (ailang check): 89 / 89 passed, 0 failed.
  • scripts/*.ail + scripts/dst/*.ail (ailang check): 105 / 107 passed — 0 stdlib IMP010, 0 MOD007, 0 Message.images/Message.media errors. The only 2 failures are pre-existing deliberate negative probes (scripts/probe_phase_vocab_sealed.ail and scripts/dst/declared_vs_performed.ail).
  • make verify_extensions: 9 / 9 booted, 0 failed.
  • make check_core verification targets: 16 / 16 runnable targets passed (verify_repetition_guard, verify_herdr_gate, verify_herdr_check_answer, verify_herdr_delegate_wait, verify_wait_descriptor_fixtures, verify_herdr_owner_tag, verify_herdr_dagr_pane, verify_herdr_orchestrator, verify_delegate_kind, verify_dagr_producer, verify_exit_intent, verify_native_path_guard, verify_strict_extensions, verify_strict_context_limit, verify_single_construction, verify_extensions). (verify_native_process_tree only rejects the AILANG dev version banner on the pre-tag RC binary and will pass on tagged v0.64.0.)
  • ailang test: all 6 migrated journal/compaction/eval modules pass (src/core/journal.ail, src/core/phase_vocab.ail, src/core/compaction.ail, src/eval/journal/digests.ail, src/eval/journal/reader.ail, src/eval/journal/source_checks.ail).

…7, lock v1)

Combined AILANG v0.64.0 compatibility upgrade on top of arniwesth/motoko_agent main (2e10ae8):

1. std/ai Message.media migration (v0.61.0, ailang #2458):
   - Migrates Message literals from images: [] -> media: [] across src/, packages/, and scripts/ (including two new sites added since 35ea066: src/core/session.ail:5881 and scripts/dst/corpus_judge_dst.ail:1019).
   - Preserves on-disk journal format and canonical chain framing for default-resolution Images (journal.ail, phase_vocab.ail, src/eval/journal/{reader,digests,source_checks}.ail).

2. Removed @deprecated stdlib aliases (v0.64.0):
   - packages/motoko-ext-compose/store.ail: std/bytes.slice -> sliceLen
   - src/core/test/dst_gen.ail: std/rand.rand_int -> randInt
   - scripts/dst/compaction_seeded_dst.ail & scripts/dst/phase_c_seeded_dst.ail: std/rand.{rand_seed,rand_int} -> {randSeed,randInt}

3. Duplicate module-scope func declarations (MOD007):
   - packages/motoko-ext-herdr/types.ail: remove duplicate pure func length_of (lines 1871-1873, identical to lines 402-403)
   - scripts/verify_mot136_dagr_producer.ail: remove duplicate func sfield (lines 368-373, identical to lines 74-79)

4. Version pins & lockfiles:
   - ailang.toml: ailang = ">=0.64.0"
   - scripts/install-prerequisites.sh: AILANG_REF="v0.64.0", AILANG_MIN_VERSION="0.64.0"
   - Regenerated ailang.lock and tools/ext_registry_gen/fixtures/abi8/ailang.lock with schema "ailang.lock/v1" and relative paths (no absolute paths).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant