xml: a Bytes field encodes as base64, not as a list of ints (step 3b-fix of #78) #733
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language#733
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Step 3b-fix of #78 (
std/xml). Pull request #637 (step 3b, typed writing) recorded in its notes that aBytesfield encoded through the derivedEncodecomes out as a list of ints, while ENCODING.md point 18 anddocs/standard-library/xml.mdpromise base64. No issue carried the gap, so the docs and the code disagree.Source
Bytesas base64),docs/standard-library/xml.md.Goal
A record with a
Bytesfield encodes as base64 text throughXml().encodeandXml().tree, as documented. First find the cause: if it sits in the derivedEncode(the derivation treatsBytesas a list of ints), fix it there and checkTomlEncoderand the other encoders for the same defect; if it sits inXmlEncoderonly, fix it there.Acceptance criteria
XmlEncoder), with the other encoders checked and the result stated.Xml().encodeof a record with aBytesfield yields the base64 text, andXml().decodereads it back to the same bytes; a test instd/xml/testscovers the round trip.std/toml(or the finding that TOML is unaffected is recorded).docs/standard-library/xml.mdmatches the behaviour; docs regenerated intoskills/as needed;tools/check-commits.shclean;sh tools/gates.sh agreen in forge CI.Seed
Decide first, from
CLAUDE.md"Seed and breaking changes": a fix instd/that the compiler does not look up by string needs no seed. If the derivation lives in the compiler and the published seed cannot compile the fix, split it per the two-commit rule and report what the seed refresh needs.Dependencies
#78 steps 1 to 3b (landed). Independent of step 3c and step 4.
Part of #78 (epic; do not close it). One PR with one Conventional Commit (
fix(xml): ...orfix(encoding): ...).std/xml#78std/xml#78[loop:torbscript] claim implement by session:loop-torbscript-20261113 until 2026-11-13T12:30:00Z
std/xml#78[loop:torbscript] release implement: worker timed out after 30 min; PR #736 is open but CI is red (gates, tier A linux-x64, playground), respawn to fix CI
[loop:torbscript] claim implement by session:loop-torbscript-20261113 until 2026-11-13T12:20:00Z
[loop:torbscript] implement: the CI-fix worker pushed
a422bcaand878f9afto PR #736 and then hit its time limit without a report; the claim is released. CI on878f9afis pending with no failed job; Argus is requested. next: review (PR #736)std/xml#78std/xml#78