oficina / slides Public

mail: send through CARLOS mail submission (BLOCKED: the re-pin is red)

CARLOS platform mail submission (carlos plan Task 9). When the agent
sets CARLOS_MAIL=submit and its control socket, Slides builds its sender
with rastrillo's mail.FromCarlos (newMailer in cmd/slides, From SLIDES_MAIL_FROM else CARLOS_MAIL_FROM) and holds no SMTP credential.
SMTP alone still boots; neither is still the existing refusal outside
development, now naming both ways to fix it. A half-configured
submission refuses to start. Tests cover the three boots, and a submit
send reaching POST /v1/mail on the socket.

Deploy notes name carlos ship --mail submit, then promote: carlos
deploy has no --mail flag yet (carlos main 9eec0236).

NOT READY: mail.FromCarlos needs rastrillo at or after 11044699, and
that re-pin (here to main 96812bea) brings every rastrillo change since
this app's old pin. make ci is red on those, not on the mail change:
the en locale pack rastrillo now requires at boot, re-vendored
assets (tokens.css, shell.js, fiesta.js), the chromedp v0.21 port of
the browser tests, sign-in flow answers, and credits. flash.Set's new
request argument is already fixed here. See the Task 9 report.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 40c1fc10fc7a0a4434821e322689c72f41895c84 parent cb30df5
9 files changed, +215 −59
  • AGENTS.md +10 −0
  • Makefile +3 −1
  • cmd/slides/mail_test.go +120 −0
  • cmd/slides/main.go +37 −11
  • go.mod +13 −13
  • go.sum +26 −30
  • internal/slides/auth.go +1 −1
  • internal/slides/config.go +3 −1
  • internal/slides/exports.go +2 −2

CI failed — run details

CI log
=== gate ===
=== rust: fmt
=== rust: clippy
    Updating crates.io index
 Downloading crates ...
  Downloaded async-lock v3.4.2
  Downloaded arrayvec v0.7.8
  Downloaded parking v2.2.1
  Downloaded arc-swap v1.9.2
  Downloaded ahash v0.8.12
  Downloaded async-trait v0.1.92
  Downloaded autocfg v1.5.1
  Downloaded event-listener-strategy v0.5.4
  Downloaded thiserror v2.0.20
  Downloaded lock_api v0.4.14
  Downloaded crossbeam-utils v0.8.22
  Downloaded downcast-rs v1.2.1
  Downloaded pin-project-lite v0.2.17
  Downloaded version_check v0.9.5
  Downloaded cfg-if v1.0.4
  Downloaded bitflags v2.13.1
  Downloaded scopeguard v1.2.0
  Downloaded event-listener v5.4.2
  Downloaded indexmap-nostd v0.4.0
  Downloaded rustversion v1.0.23
  Downloaded smallstr v0.3.1
  Downloaded equivalent v1.0.2
  Downloaded paste v1.0.15
  Downloaded serde_derive v1.0.229
  Downloaded itoa v1.0.18
  Downloaded num-derive v0.4.2
  Downloaded foldhash v0.2.0
  Downloaded multi-stash v0.2.0
  Downloaded spin v0.9.9
  Downloaded zmij v1.0.23
  Downloaded wasmi_core v0.32.3
  Downloaded string-interner v0.17.0
  Downloaded libm v0.2.16
  Downloaded wasmi_collections v0.32.3
  Downloaded dashmap v6.2.1
  Downloaded unicode-ident v1.0.24
  Downloaded hashbrown v0.17.1
  Downloaded once_cell v1.21.4
  Downloaded proc-macro2 v1.0.107
  Downloaded quote v1.0.47
  Downloaded serde_core v1.0.229
  Downloaded smallvec v1.15.2
  Downloaded thiserror-impl v2.0.20
  Downloaded indexmap v2.14.1
  Downloaded parking_lot_core v0.9.12
  Downloaded semver v1.0.28
  Downloaded memchr v2.8.3
  Downloaded num-traits v0.2.19
  Downloaded hashbrown v0.14.5
  Downloaded serde v1.0.229
  Downloaded serde_json v1.0.151
  Downloaded wasmparser v0.258.0
  Downloaded zerocopy v0.8.56
  Downloaded syn v2.0.119
  Downloaded wasmi v0.32.3
  Downloaded syn v3.0.4
  Downloaded libc v0.2.189
  Downloaded wasmparser-nostd v0.100.2
  Downloaded yrs v0.23.5
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling serde_core v1.0.229
   Compiling version_check v0.9.5
   Compiling zerocopy v0.8.56
    Checking cfg-if v1.0.4
    Checking once_cell v1.21.4
   Compiling serde v1.0.229
   Compiling libc v0.2.189
    Checking smallvec v1.15.2
   Compiling rustversion v1.0.23
    Checking parking v2.2.1
   Compiling autocfg v1.5.1
   Compiling parking_lot_core v0.9.12
   Compiling crossbeam-utils v0.8.22
   Compiling zmij v1.0.23
    Checking pin-project-lite v0.2.17
    Checking event-listener v5.4.2
   Compiling thiserror v2.0.20
   Compiling serde_json v1.0.151
   Compiling libm v0.2.16
   Compiling paste v1.0.15
   Compiling ahash v0.8.12
   Compiling num-traits v0.2.19
    Checking scopeguard v1.2.0
    Checking event-listener-strategy v0.5.4
    Checking memchr v2.8.3
    Checking foldhash v0.2.0
    Checking itoa v1.0.18
    Checking lock_api v0.4.14
    Checking async-lock v3.4.2
    Checking smallstr v0.3.1
    Checking fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/mail__from-carlos/core/vendor/fastrand-2.5.0)
    Checking downcast-rs v1.2.1
    Checking indexmap-nostd v0.4.0
    Checking equivalent v1.0.2
    Checking semver v1.0.28
    Checking multi-stash v0.2.0
    Checking arrayvec v0.7.8
    Checking spin v0.9.9
    Checking wasmparser-nostd v0.100.2
    Checking bitflags v2.13.1
    Checking arc-swap v1.9.2
   Compiling syn v3.0.4
   Compiling syn v2.0.119
    Checking wasmi_core v0.32.3
    Checking hashbrown v0.17.1
    Checking indexmap v2.14.1
   Compiling num-derive v0.4.2
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
    Checking hashbrown v0.14.5
    Checking dashmap v6.2.1
    Checking string-interner v0.17.0
    Checking yrs v0.23.5
    Checking wasmparser v0.258.0
    Checking wasmi_collections v0.32.3
    Checking wasmi v0.32.3
    Checking slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/mail__from-carlos/core)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.46s
=== the embedded wasm must be built from these sources
wasm-stamp: internal/slides/core/testdata/slides_core.wasm was built from these inputs
=== wasm: the artifact the host embeds
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.03s
build-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
 Downloading crates ...
  Downloaded getrandom v0.4.3
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling cfg-if v1.0.4
   Compiling serde_core v1.0.229
   Compiling rustversion v1.0.23
   Compiling pin-project-lite v0.2.17
   Compiling zmij v1.0.23
   Compiling crossbeam-utils v0.8.22
   Compiling parking_lot_core v0.9.12
   Compiling getrandom v0.4.3
   Compiling smallvec v1.15.2
   Compiling serde_json v1.0.151
   Compiling serde v1.0.229
   Compiling thiserror v2.0.20
   Compiling scopeguard v1.2.0
   Compiling hashbrown v0.14.5
   Compiling once_cell v1.21.4
   Compiling memchr v2.8.3
   Compiling event-listener v5.4.2
   Compiling lock_api v0.4.14
   Compiling itoa v1.0.18
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/mail__from-carlos/core/vendor/fastrand-2.5.0)
   Compiling smallstr v0.3.1
   Compiling event-listener-strategy v0.5.4
   Compiling async-lock v3.4.2
   Compiling arc-swap v1.9.2
   Compiling dashmap v6.2.1
   Compiling syn v3.0.4
   Compiling serde_derive v1.0.229
   Compiling thiserror-impl v2.0.20
   Compiling async-trait v0.1.92
   Compiling yrs v0.23.5
   Compiling slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/mail__from-carlos/core)
    Finished `release` profile [optimized] target(s) in 9.96s
core/target/wasm32-unknown-unknown/release/slides_core.wasm (783045 bytes)
=== the embedded wasm must match a fresh build
gate: byte comparison skipped on Linux/aarch64: no build on this host reproduces the canonical amd64 bytes; the input stamp above holds freshness here
=== rust: test
   Compiling cfg-if v1.0.4
   Compiling once_cell v1.21.4
   Compiling smallvec v1.15.2
   Compiling parking v2.2.1
   Compiling pin-project-lite v0.2.17
   Compiling serde_core v1.0.229
   Compiling zerocopy v0.8.56
   Compiling libc v0.2.189
   Compiling scopeguard v1.2.0
   Compiling zmij v1.0.23
   Compiling crossbeam-utils v0.8.22
   Compiling foldhash v0.2.0
   Compiling memchr v2.8.3
   Compiling itoa v1.0.18
   Compiling num-traits v0.2.19
   Compiling thiserror v2.0.20
   Compiling arc-swap v1.9.2
   Compiling lock_api v0.4.14
   Compiling libm v0.2.16
   Compiling event-listener v5.4.2
   Compiling equivalent v1.0.2
   Compiling indexmap-nostd v0.4.0
   Compiling smallstr v0.3.1
   Compiling downcast-rs v1.2.1
   Compiling fastrand v2.5.0 (/home/ci/work/repos/oficina__slides/wt/mail__from-carlos/core/vendor/fastrand-2.5.0)
   Compiling semver v1.0.28
   Compiling multi-stash v0.2.0
   Compiling event-listener-strategy v0.5.4
   Compiling wasmparser-nostd v0.100.2
   Compiling arrayvec v0.7.8
   Compiling bitflags v2.13.1
   Compiling spin v0.9.9
   Compiling async-lock v3.4.2
   Compiling parking_lot_core v0.9.12
   Compiling wasmi_core v0.32.3
   Compiling serde v1.0.229
   Compiling hashbrown v0.17.1
   Compiling serde_json v1.0.151
   Compiling indexmap v2.14.1
   Compiling wasmparser v0.258.0
   Compiling ahash v0.8.12
   Compiling hashbrown v0.14.5
   Compiling dashmap v6.2.1
   Compiling string-interner v0.17.0
   Compiling wasmi_collections v0.32.3
   Compiling yrs v0.23.5
   Compiling wasmi v0.32.3
   Compiling slides-core v0.1.0 (/home/ci/work/repos/oficina__slides/wt/mail__from-carlos/core)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 11.34s
     Running unittests src/lib.rs (core/target/debug/deps/slides_core-e2842964c29de994)

running 30 tests
test layout::tests::aside_region_rect ... ok
test check::tests::the_empty_document_passes ... ok
test layout::tests::default_region_by_kind ... ok
test layout::tests::heading_region_rect ... ok
test layout::tests::body_region_rect_narrows_for_an_aside ... ok
test layout::tests::media_region_rect ... ok
test markdown::tests::empty_input_is_no_paragraphs_and_lines_keep_blanks ... ok
test markdown::tests::inline_marks ... ok
test markdown::tests::paragraphs_split_on_blank_lines_and_list_markers ... ok
test markdown::tests::marks_nest_and_links_carry_marks ... ok
test layout::tests::to_canvas_narrows_body_when_an_aside_is_present ... ok
test layout::tests::to_flow_is_a_no_op_when_already_in_order ... ok
test schema::tests::an_empty_map_reads_as_a_set_mark ... ok
test schema::tests::an_href_map_without_a_string_url_reads_as_no_link ... ok
test layout::tests::to_flow_classifies_by_position_and_kind ... ok
test layout::tests::to_canvas_splits_a_shared_region_equally_and_sets_z_by_index ... ok
test schema::tests::href_is_written_as_a_one_key_map_and_reads_back ... ok
test check::tests::what_the_ops_write_passes ... ok
test check::tests::an_element_inside_a_paragraph_is_reported ... ok
test check::tests::bare_text_at_fragment_level_is_reported ... ok
test check::tests::a_non_paragraph_child_is_reported ... ok
test schema::tests::href_written_as_a_plain_string_still_reads_back ... ok
test check::tests::y_prosemirror_shapes_pass ... ok
test layout::tests::to_flow_orders_y_then_x ... ok
test check::tests::an_unknown_formatting_attribute_is_reported ... ok
test view::tests::assets_are_typed_or_skipped ... ok
test view::tests::malformed_background_is_the_default ... ok
test view::tests::malformed_fonts_are_null ... ok
test view::tests::malformed_box_is_null_and_phone_keeps_only_typed_fields ... ok
test layout::tests::to_flow_keeps_a_concurrent_text_edit ... ok

test result: ok. 30 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/no_host_imports.rs (core/target/debug/deps/no_host_imports-0da85e8553d154e5)

running 1 test
test no_host_imports ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/ops.rs (core/target/debug/deps/ops-ac5209169f357f96)

running 12 tests
test ops_are_atomic ... ok
test add_slide_then_view_lists_it ... ok
test add_block_with_markdown_produces_runs ... ok
test layout_switch_assigns_boxes ... ok
test remove_block_drops_it_from_columns_children ... ok
test columns_children_must_name_blocks_on_the_slide ... ok
test duplicate_slide_remaps_columns_children ... ok
test columns_children_have_one_parent_and_no_cycles ... ok
test update_roundtrip ... ok
test move_block_keeps_a_concurrent_text_edit ... ok
test move_slide_keeps_a_concurrent_text_edit ... ok
test remaining_ops_roundtrip ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

   Doc-tests slides_core

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

=== rust: fmt (pdf)
=== rust: clippy (pdf)
    Updating crates.io index
 Downloading crates ...
  Downloaded adler2 v2.0.1
  Downloaded arrayref v0.3.9
  Downloaded fdeflate v0.3.7
  Downloaded bumpalo v3.20.3
  Downloaded base64 v0.22.1
  Downloaded euclid v0.22.14
  Downloaded bytemuck v1.25.2
  Downloaded float-cmp v0.9.0
  Downloaded siphasher v1.0.3
  Downloaded gif v0.14.2
  Downloaded log v0.4.34
  Downloaded indexmap v2.14.2
  Downloaded ryu v1.0.23
  Downloaded polycool v0.4.0
  Downloaded unicode-bidi-mirroring v0.4.0
  Downloaded pico-args v0.5.0
  Downloaded rustc-hash v2.1.3
  Downloaded stable_deref_trait v1.2.1
  Downloaded unicode-ccc v0.4.0
  Downloaded zerofrom-derive v0.1.7
  Downloaded quick-error v2.0.1
  Downloaded unicode-vo v0.1.0
  Downloaded zerofrom v0.1.8
  Downloaded imagesize v0.14.0
  Downloaded byteorder-lite v0.1.0
  Downloaded strict-num v0.1.1
  Downloaded rgb v0.8.53
  Downloaded xmlwriter v0.1.0
  Downloaded core_maths v0.1.1
  Downloaded tinyvec_macros v0.1.1
  Downloaded color_quant v1.1.0
  Downloaded font-types v0.11.3
  Downloaded synstructure v0.13.2
  Downloaded unicode-script v0.5.8
  Downloaded yoke v0.8.3
  Downloaded roxmltree v0.21.1
  Downloaded xmp-writer v0.3.3
  Downloaded yoke-derive v0.8.2
  Downloaded bytemuck_derive v1.12.0
  Downloaded data-url v0.3.2
  Downloaded krilla-svg v0.8.1
  Downloaded simd-adler32 v0.3.10
  Downloaded simplecss v0.2.2
  Downloaded weezl v0.1.12
  Downloaded zune-core v0.5.3
  Downloaded smallvec v1.16.0
  Downloaded subsetter v0.2.6
  Downloaded tiny-skia-path v0.12.0
  Downloaded crc32fast v1.5.1
  Downloaded fontconfig-parser v0.5.8
  Downloaded memmap2 v0.9.11
  Downloaded svgtypes v0.16.1
  Downloaded tinyvec v1.13.2
  Downloaded resvg v0.47.0
  Downloaded roxmltree v0.20.0
  Downloaded unicode-properties v0.1.4
  Downloaded unicode-bidi v0.3.18
  Downloaded miniz_oxide v0.8.9
  Downloaded slotmap v1.1.1
  Downloaded zune-jpeg v0.5.15
  Downloaded flate2 v1.1.10
  Downloaded fontdb v0.23.0
  Downloaded image-webp v0.2.4
  Downloaded miniz_oxide v0.9.1
  Downloaded png v0.18.1
  Downloaded usvg v0.47.0
  Downloaded kurbo v0.13.1
  Downloaded ttf-parser v0.25.1
  Downloaded krilla v0.8.2
  Downloaded zlib-rs v0.6.7
  Downloaded skrifa v0.42.1
  Downloaded tiny-skia v0.12.0
  Downloaded rustybuzz v0.20.1
  Downloaded write-fonts v0.48.1
  Downloaded syn v3.0.5
  Downloaded read-fonts v0.39.2
  Downloaded pdf-writer v0.15.0
   Compiling proc-macro2 v1.0.107
   Compiling quote v1.0.47
   Compiling unicode-ident v1.0.24
   Compiling autocfg v1.5.1
    Checking arrayvec v0.7.8
   Compiling libm v0.2.16
    Checking simd-adler32 v0.3.10
    Checking log v0.4.34
   Compiling serde_core v1.0.229
   Compiling crc32fast v1.5.1
    Checking bitflags v2.13.1
    Checking adler2 v2.0.1
    Checking smallvec v1.16.0
    Checking cfg-if v1.0.4
   Compiling version_check v0.9.5
    Checking foldhash v0.2.0
   Compiling libc v0.2.189
    Checking equivalent v1.0.2
    Checking memchr v2.8.3
    Checking miniz_oxide v0.9.1
    Checking arrayref v0.3.9
    Checking fdeflate v0.3.7
    Checking miniz_oxide v0.8.9
    Checking unicode-script v0.5.8
    Checking unicode-ccc v0.4.0
    Checking polycool v0.4.0
    Checking unicode-bidi-mirroring v0.4.0
    Checking roxmltree v0.20.0
    Checking tinyvec_macros v0.1.1
    Checking siphasher v1.0.3
    Checking unicode-properties v0.1.4
    Checking kurbo v0.13.1
   Compiling slotmap v1.1.1
    Checking tinyvec v1.13.2
    Checking weezl v0.1.12
    Checking zune-core v0.5.3
    Checking base64 v0.22.1
    Checking color_quant v1.1.0
   Compiling num-traits v0.2.19
    Checking imagesize v0.14.0
    Checking flate2 v1.1.10
    Checking byteorder-lite v0.1.0
    Checking quick-error v2.0.1
    Checking zune-jpeg v0.5.15
    Checking fontconfig-parser v0.5.8
    Checking roxmltree v0.21.1
    Checking gif v0.14.2
    Checking simplecss v0.2.2
    Checking xmlwriter v0.1.0
    Checking unicode-vo v0.1.0
    Checking image-webp v0.2.4
    Checking pico-args v0.5.0
    Checking unicode-bidi v0.3.18
    Checking png v0.18.1
    Checking data-url v0.3.2
    Checking itoa v1.0.18
    Checking rustc-hash v2.1.3
    Checking stable_deref_trait v1.2.1
    Checking ryu v1.0.23
    Checking xmp-writer v0.3.3
    Checking bumpalo v3.20.3
   Compiling serde v1.0.229
    Checking semver v1.0.28
    Checking pdf-writer v0.15.0
   Compiling syn v3.0.5
   Compiling syn v2.0.119
    Checking svgtypes v0.16.1
    Checking core_maths v0.1.1
    Checking ttf-parser v0.25.1
    Checking float-cmp v0.9.0
    Checking strict-num v0.1.1
    Checking memmap2 v0.9.11
    Checking hashbrown v0.17.1
    Checking indexmap v2.14.2
   Compiling bytemuck_derive v1.12.0
    Checking fontdb v0.23.0
   Compiling synstructure v0.13.2
    Checking wasmparser v0.258.0
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
    Checking bytemuck v1.25.2
    Checking font-types v0.11.3
    Checking tiny-skia-path v0.12.0
    Checking rustybuzz v0.20.1
    Checking rgb v0.8.53
    Checking zerofrom v0.1.8
    Checking read-fonts v0.39.2
    Checking yoke v0.8.3
    Checking tiny-skia v0.12.0
    Checking usvg v0.47.0
    Checking resvg v0.47.0
    Checking skrifa v0.42.1
    Checking write-fonts v0.48.1
    Checking subsetter v0.2.6
    Checking krilla v0.8.2
    Checking krilla-svg v0.8.1
    Checking slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/mail__from-carlos/core/pdf)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.94s
=== the embedded pdf wasm must be built from these sources
wasm-stamp: internal/slides/pdfcore/testdata/slides_pdf.wasm was built from these inputs
=== wasm: the pdf artifact the host embeds
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s
build-pdf-wasm: Linux/aarch64 builds natively; the result is not the canonical amd64 build
   Compiling proc-macro2 v1.0.107
   Compiling unicode-ident v1.0.24
   Compiling quote v1.0.47
   Compiling autocfg v1.5.1
   Compiling simd-adler32 v0.3.10
   Compiling log v0.4.34
   Compiling arrayvec v0.7.8
   Compiling libm v0.2.16
   Compiling crc32fast v1.5.1
   Compiling adler2 v2.0.1
   Compiling smallvec v1.16.0
   Compiling cfg-if v1.0.4
   Compiling bitflags v2.13.1
   Compiling version_check v0.9.5
   Compiling memchr v2.8.3
   Compiling arrayref v0.3.9
   Compiling equivalent v1.0.2
   Compiling miniz_oxide v0.9.1
   Compiling miniz_oxide v0.8.9
   Compiling fdeflate v0.3.7
   Compiling siphasher v1.0.3
   Compiling hashbrown v0.17.1
   Compiling polycool v0.4.0
   Compiling unicode-bidi-mirroring v0.4.0
   Compiling unicode-properties v0.1.4
   Compiling unicode-script v0.5.8
   Compiling tinyvec_macros v0.1.1
   Compiling slotmap v1.1.1
   Compiling unicode-ccc v0.4.0
   Compiling tinyvec v1.13.2
   Compiling kurbo v0.13.1
   Compiling color_quant v1.1.0
   Compiling base64 v0.22.1
   Compiling weezl v0.1.12
   Compiling num-traits v0.2.19
   Compiling flate2 v1.1.10
   Compiling quick-error v2.0.1
   Compiling indexmap v2.14.2
   Compiling memmap2 v0.9.11
   Compiling imagesize v0.14.0
   Compiling byteorder-lite v0.1.0
   Compiling zune-core v0.5.3
   Compiling syn v3.0.5
   Compiling syn v2.0.119
   Compiling gif v0.14.2
   Compiling png v0.18.1
   Compiling image-webp v0.2.4
   Compiling zune-jpeg v0.5.15
   Compiling core_maths v0.1.1
   Compiling roxmltree v0.21.1
   Compiling float-cmp v0.9.0
   Compiling strict-num v0.1.1
   Compiling ttf-parser v0.25.1
   Compiling svgtypes v0.16.1
   Compiling simplecss v0.2.2
   Compiling stable_deref_trait v1.2.1
   Compiling pico-args v0.5.0
   Compiling data-url v0.3.2
   Compiling xmlwriter v0.1.0
   Compiling rustc-hash v2.1.3
   Compiling ryu v1.0.23
   Compiling unicode-vo v0.1.0
   Compiling itoa v1.0.18
   Compiling unicode-bidi v0.3.18
   Compiling pdf-writer v0.15.0
   Compiling xmp-writer v0.3.3
   Compiling bumpalo v3.20.3
   Compiling synstructure v0.13.2
   Compiling bytemuck_derive v1.12.0
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
   Compiling fontdb v0.23.0
   Compiling zerofrom v0.1.8
   Compiling bytemuck v1.25.2
   Compiling yoke v0.8.3
   Compiling font-types v0.11.3
   Compiling tiny-skia-path v0.12.0
   Compiling rustybuzz v0.20.1
   Compiling rgb v0.8.53
   Compiling read-fonts v0.39.2
   Compiling tiny-skia v0.12.0
   Compiling usvg v0.47.0
   Compiling resvg v0.47.0
   Compiling skrifa v0.42.1
   Compiling write-fonts v0.48.1
   Compiling subsetter v0.2.6
   Compiling krilla v0.8.2
   Compiling krilla-svg v0.8.1
   Compiling slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/mail__from-carlos/core/pdf)
    Finished `release` profile [optimized] target(s) in 16.86s
core/pdf/target/wasm32-unknown-unknown/release/slides_pdf.wasm (4157674 bytes)
=== the embedded pdf wasm must match a fresh build
gate: byte comparison skipped on Linux/aarch64: no build on this host reproduces the canonical amd64 bytes; the input stamp above holds freshness here
=== rust: test (pdf)
   Compiling log v0.4.34
   Compiling arrayvec v0.7.8
   Compiling simd-adler32 v0.3.10
   Compiling bitflags v2.13.1
   Compiling smallvec v1.16.0
   Compiling adler2 v2.0.1
   Compiling cfg-if v1.0.4
   Compiling foldhash v0.2.0
   Compiling serde_core v1.0.229
   Compiling libm v0.2.16
   Compiling arrayref v0.3.9
   Compiling equivalent v1.0.2
   Compiling memchr v2.8.3
   Compiling num-traits v0.2.19
   Compiling bytemuck v1.25.2
   Compiling libc v0.2.189
   Compiling crc32fast v1.5.1
   Compiling unicode-script v0.5.8
   Compiling siphasher v1.0.3
   Compiling miniz_oxide v0.9.1
   Compiling miniz_oxide v0.8.9
   Compiling fdeflate v0.3.7
   Compiling polycool v0.4.0
   Compiling unicode-bidi-mirroring v0.4.0
   Compiling unicode-properties v0.1.4
   Compiling tinyvec_macros v0.1.1
   Compiling unicode-ccc v0.4.0
   Compiling roxmltree v0.20.0
   Compiling font-types v0.11.3
   Compiling tinyvec v1.13.2
   Compiling slotmap v1.1.1
   Compiling base64 v0.22.1
   Compiling quick-error v2.0.1
   Compiling kurbo v0.13.1
   Compiling weezl v0.1.12
   Compiling flate2 v1.1.10
   Compiling float-cmp v0.9.0
   Compiling read-fonts v0.39.2
   Compiling imagesize v0.14.0
   Compiling zune-core v0.5.3
   Compiling color_quant v1.1.0
   Compiling byteorder-lite v0.1.0
   Compiling roxmltree v0.21.1
   Compiling strict-num v0.1.1
   Compiling fontconfig-parser v0.5.8
   Compiling tiny-skia-path v0.12.0
   Compiling core_maths v0.1.1
   Compiling image-webp v0.2.4
   Compiling memmap2 v0.9.11
   Compiling ttf-parser v0.25.1
   Compiling png v0.18.1
   Compiling zune-jpeg v0.5.15
   Compiling gif v0.14.2
   Compiling zerofrom v0.1.8
   Compiling simplecss v0.2.2
   Compiling ryu v1.0.23
   Compiling rustc-hash v2.1.3
   Compiling itoa v1.0.18
   Compiling xmlwriter v0.1.0
   Compiling svgtypes v0.16.1
   Compiling unicode-vo v0.1.0
   Compiling data-url v0.3.2
   Compiling unicode-bidi v0.3.18
   Compiling pico-args v0.5.0
   Compiling stable_deref_trait v1.2.1
   Compiling pdf-writer v0.15.0
   Compiling yoke v0.8.3
   Compiling rgb v0.8.53
   Compiling xmp-writer v0.3.3
   Compiling bumpalo v3.20.3
   Compiling tiny-skia v0.12.0
   Compiling semver v1.0.28
   Compiling hashbrown v0.17.1
   Compiling serde v1.0.229
   Compiling indexmap v2.14.2
   Compiling rustybuzz v0.20.1
   Compiling fontdb v0.23.0
   Compiling wasmparser v0.258.0
   Compiling usvg v0.47.0
   Compiling resvg v0.47.0
   Compiling write-fonts v0.48.1
   Compiling skrifa v0.42.1
   Compiling subsetter v0.2.6
   Compiling krilla v0.8.2
   Compiling krilla-svg v0.8.1
   Compiling slides-pdf v0.1.0 (/home/ci/work/repos/oficina__slides/wt/mail__from-carlos/core/pdf)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 17.80s
     Running unittests src/lib.rs (core/pdf/target/debug/deps/slides_pdf-7ec7cd25f86a82d7)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/no_host_imports.rs (core/pdf/target/debug/deps/no_host_imports-09d1f8ca96bf3a46)

running 1 test
test no_host_imports ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/render.rs (core/pdf/target/debug/deps/render-888658dffec5d3c9)

running 6 tests
test a_null_zero_length_pair_is_no_frames_not_a_dereference ... ok
test text_with_no_fonts_at_all_still_renders_the_shapes ... ok
test raster_image_is_embedded ... ok
test abi_frames_round_trip ... ok
test renders_text_as_embedded_glyphs ... ok
test two_svgs_make_two_pages ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

   Doc-tests slides_pdf

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

=== fixtures: node dependencies
v22.23.4
10.9.9
=== fixtures: npm ci (needs the registry — see .amadan/README.md)

added 19 packages, and audited 20 packages in 2s

5 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 10.9.9 -> 12.2.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.2
npm notice To update run: npm install -g npm@12.2.2
npm notice
=== fixtures: the JS side's own tests
TAP version 13
# Subtest: one finished upload is register_asset plus the block that uses it, in one batch
ok 1 - one finished upload is register_asset plus the block that uses it, in one batch
  ---
  duration_ms: 8.877708
  type: 'test'
  ...
# Subtest: a record missing its numbers still makes an op the core accepts
ok 2 - a record missing its numbers still makes an op the core accepts
  ---
  duration_ms: 1.22755
  type: 'test'
  ...
# Subtest: unusedAssets is what no slide refers to, and remove_asset drops one
ok 3 - unusedAssets is what no slide refers to, and remove_asset drops one
  ---
  duration_ms: 4.053504
  type: 'test'
  ...
# Subtest: the Unused images list reconciles by id and names each Remove button
ok 4 - the Unused images list reconciles by id and names each Remove button
  ---
  duration_ms: 1.102685
  type: 'test'
  ...
# Subtest: an upload refusal is said in words the person can act on
ok 5 - an upload refusal is said in words the person can act on
  ---
  duration_ms: 0.316035
  type: 'test'
  ...
# Subtest: a request is the trimmed prompt, the scope, the slide and the model
ok 6 - a request is the trimmed prompt, the scope, the slide and the model
  ---
  duration_ms: 1.870804
  type: 'test'
  ...
# Subtest: an empty, blank or over-long prompt, or "this slide" with none, is never sent
ok 7 - an empty, blank or over-long prompt, or "this slide" with none, is never sent
  ---
  duration_ms: 0.600655
  type: 'test'
  ...
# Subtest: server words map onto the panel's strings, and anything else is generic
ok 8 - server words map onto the panel's strings, and anything else is generic
  ---
  duration_ms: 0.251662
  type: 'test'
  ...
# Subtest: an answer must be a list of op objects; anything else is generic
ok 9 - an answer must be a list of op objects; anything else is generic
  ---
  duration_ms: 0.889133
  type: 'test'
  ...
# Subtest: an answer is posted as JSON, applied through commit, saved, and focused
ok 10 - an answer is posted as JSON, applied through commit, saved, and focused
  ---
  duration_ms: 0.885895
  type: 'test'
  ...
# Subtest: a slide is focused only once its save is acknowledged
ok 11 - a slide is focused only once its save is acknowledged
  ---
  duration_ms: 0.251396
  type: 'test'
  ...
# Subtest: no ops is "nothing", and nothing is committed
ok 12 - no ops is "nothing", and nothing is committed
  ---
  duration_ms: 0.404831
  type: 'test'
  ...
# Subtest: every failure is a word, and nothing is applied
ok 13 - every failure is a word, and nothing is applied
  ---
  duration_ms: 1.24636
  type: 'test'
  ...
# Subtest: undo takes back the answer's own step, once
ok 14 - undo takes back the answer's own step, once
  ---
  duration_ms: 0.842068
  type: 'test'
  ...
# Subtest: a batch shaped as the server answers it applies through ops.mjs
ok 15 - a batch shaped as the server answers it applies through ops.mjs
  ---
  duration_ms: 14.411679
  type: 'test'
  ...
# Subtest: the toggle is lit while the panel is open, and opening focuses the prompt
ok 16 - the toggle is lit while the panel is open, and opening focuses the prompt
  ---
  duration_ms: 1.800317
  type: 'test'
  ...
# Subtest: a deck with no slide opens on "the whole deck"
ok 17 - a deck with no slide opens on "the whole deck"
  ---
  duration_ms: 0.40318
  type: 'test'
  ...
# Subtest: asking is busy, then says what was done and offers Undo
ok 18 - asking is busy, then says what was done and offers Undo
  ---
  duration_ms: 0.974088
  type: 'test'
  ...
# Subtest: an error is said in the catalog's words, marked, and offers no Undo
ok 19 - an error is said in the catalog's words, marked, and offers no Undo
  ---
  duration_ms: 1.055697
  type: 'test'
  ...
# Subtest: destroy takes every listener away
ok 20 - destroy takes every listener away
  ---
  duration_ms: 0.705604
  type: 'test'
  ...
# Subtest: clampBox keeps the box inside the frame and no smaller than the minimum
ok 21 - clampBox keeps the box inside the frame and no smaller than the minimum
  ---
  duration_ms: 1.598035
  type: 'test'
  ...
# Subtest: fixBox writes four decimals
ok 22 - fixBox writes four decimals
  ---
  duration_ms: 0.310647
  type: 'test'
  ...
# Subtest: guides are the thirds plus every other block edge
ok 23 - guides are the thirds plus every other block edge
  ---
  duration_ms: 0.245603
  type: 'test'
  ...
# Subtest: snapMove pulls the nearest edge onto a guide within one per cent, and leaves a far one
ok 24 - snapMove pulls the nearest edge onto a guide within one per cent, and leaves a far one
  ---
  duration_ms: 0.416018
  type: 'test'
  ...
# Subtest: snapResize moves only the edges the handle drags
ok 25 - snapResize moves only the edges the handle drags
  ---
  duration_ms: 0.253864
  type: 'test'
  ...
# Subtest: moveBox and resizeBox by handle
ok 26 - moveBox and resizeBox by handle
  ---
  duration_ms: 0.27778
  type: 'test'
  ...
# Subtest: nudge: arrows move by half a per cent, Shift by two, Alt resizes
ok 27 - nudge: arrows move by half a per cent, Shift by two, Alt resizes
  ---
  duration_ms: 0.355751
  type: 'test'
  ...
# Subtest: rectBox reads a block rectangle against its frame
ok 28 - rectBox reads a block rectangle against its frame
  ---
  duration_ms: 0.292392
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (a) the paste right after the refused x (Fable's probe)
ok 29 - a paste that waited for its font is kept: (a) the paste right after the refused x (Fable's probe)
  ---
  duration_ms: 21.34533
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (b) the refused x elsewhere, before the paste
ok 30 - a paste that waited for its font is kept: (b) the refused x elsewhere, before the paste
  ---
  duration_ms: 4.429615
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (g) the refused x after the paste point
ok 31 - a paste that waited for its font is kept: (g) the refused x after the paste point
  ---
  duration_ms: 4.756856
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (c) two refused x, the paste after the second
ok 32 - a paste that waited for its font is kept: (c) two refused x, the paste after the second
  ---
  duration_ms: 2.98179
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (i) the refused x mid-paragraph, the paste at its end
ok 33 - a paste that waited for its font is kept: (i) the refused x mid-paragraph, the paste at its end
  ---
  duration_ms: 2.845051
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (e) the paste over "paragraph.x"
ok 34 - a paste that waited for its font is kept: (e) the paste over "paragraph.x"
  ---
  duration_ms: 4.695908
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (f) a refused deletion elsewhere
ok 35 - a paste that waited for its font is kept: (f) a refused deletion elsewhere
  ---
  duration_ms: 2.712994
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (h) two paragraphs pasted after the refused x
ok 36 - a paste that waited for its font is kept: (h) two paragraphs pasted after the refused x
  ---
  duration_ms: 3.068064
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (j) a colleague's words before, the refused x after
ok 37 - a paste that waited for its font is kept: (j) a colleague's words before, the refused x after
  ---
  duration_ms: 4.244537
  type: 'test'
  ...
# Subtest: a paste that waited for its font is kept: (k) a colleague appended where the x was refused
ok 38 - a paste that waited for its font is kept: (k) a colleague appended where the x was refused
  ---
  duration_ms: 6.568162
  type: 'test'
  ...
# Subtest: a paste into a paragraph the refused change made cannot be kept: nothing is posted, the page is the server's
ok 39 - a paste into a paragraph the refused change made cannot be kept: nothing is posted, the page is the server's
  ---
  duration_ms: 1.92295
  type: 'test'
  ...
# Subtest: a paste made elsewhere carries as its own updates, not a replay
ok 40 - a paste made elsewhere carries as its own updates, not a replay
  ---
  duration_ms: 1.590721
  type: 'test'
  ...
# Subtest: the replay is one change for an undo manager tracking the carried origin
ok 41 - the replay is one change for an undo manager tracking the carried origin
  ---
  duration_ms: 2.985466
  type: 'test'
  ...
# Subtest: every update written on top of the refused text is held back, not only the first
ok 42 - every update written on top of the refused text is held back, not only the first
  ---
  duration_ms: 1.610617
  type: 'test'
  ...
# Subtest: a Backspace over the refused text is held back
ok 43 - a Backspace over the refused text is held back
  ---
  duration_ms: 0.932298
  type: 'test'
  ...
# Subtest: of an update that partly took, the part that took is posted, and nothing the server would hold pending
ok 44 - of an update that partly took, the part that took is posted, and nothing the server would hold pending
  ---
  duration_ms: 1.627502
  type: 'test'
  ...
# Subtest: an update that rewrites formatting and writes on top of the refused text posts the formatting, not the words
ok 45 - an update that rewrites formatting and writes on top of the refused text posts the formatting, not the words
  ---
  duration_ms: 1.532609
  type: 'test'
  ...
# Subtest: a paste elsewhere is posted and a keystroke after the refused x is not
ok 46 - a paste elsewhere is posted and a keystroke after the refused x is not
  ---
  duration_ms: 1.038433
  type: 'test'
  ...
# Subtest: took reads all, some and none from the update itself
ok 47 - took reads all, some and none from the update itself
  ---
  duration_ms: 0.967075
  type: 'test'
  ...
# Subtest: a Backspace over this tab's own saved words and its refused ones together posts the saved part (one delete range, one client)
ok 48 - a Backspace over this tab's own saved words and its refused ones together posts the saved part (one delete range, one client)
  ---
  duration_ms: 2.065572
  type: 'test'
  ...
# Subtest: a paste right after a refused repeated letter lands where it was made
ok 49 - a paste right after a refused repeated letter lands where it was made
  ---
  duration_ms: 2.253827
  type: 'test'
  ...
# Subtest: a change made in a clean spot is not lost with one held back on the refused text (on the refused text, then elsewhere)
ok 50 - a change made in a clean spot is not lost with one held back on the refused text (on the refused text, then elsewhere)
  ---
  duration_ms: 2.018865
  type: 'test'
  ...
# Subtest: a change made in a clean spot is not lost with one held back on the refused text (elsewhere, then on the refused text)
ok 51 - a change made in a clean spot is not lost with one held back on the refused text (elsewhere, then on the refused text)
  ---
  duration_ms: 1.136435
  type: 'test'
  ...
# Subtest: the keeper groups the updates of one held change into one entry, and hands the entries over once
ok 52 - the keeper groups the updates of one held change into one entry, and hands the entries over once
  ---
  duration_ms: 0.559623
  type: 'test'
  ...
# Subtest: every change made while diverged is kept, whatever it was written on
ok 53 - every change made while diverged is kept, whatever it was written on
  ---
  duration_ms: 6.158402
  type: 'test'
  ...
# Subtest: a change that cannot be kept in the middle loses nothing after it
ok 54 - a change that cannot be kept in the middle loses nothing after it
  ---
  duration_ms: 3.286367
  type: 'test'
  ...
# Subtest: a replay that cannot be made falls back to what of the change's own updates integrates
ok 55 - a replay that cannot be made falls back to what of the change's own updates integrates
  ---
  duration_ms: 1.356352
  type: 'test'
  ...
# Subtest: the carried changes undo in the steps they were made in
ok 56 - the carried changes undo in the steps they were made in
  ---
  duration_ms: 3.715351
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: an insert, then an insert just before the refused text
ok 57 - a multi-step change replays each step where it was made: an insert, then an insert just before the refused text
  ---
  duration_ms: 0.746853
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: an insert, then a mark over it, the refused text two letters on
ok 58 - a multi-step change replays each step where it was made: an insert, then a mark over it, the refused text two letters on
  ---
  duration_ms: 0.71775
  type: 'test'
  ...
# Subtest: a multi-step change replays each step where it was made: a delete, then an insert past the refused text
ok 59 - a multi-step change replays each step where it was made: a delete, then an insert past the refused text
  ---
  duration_ms: 0.315877
  type: 'test'
  ...
# Subtest: a mark made over an insertion in the same change covers all of it
ok 60 - a mark made over an insertion in the same change covers all of it
  ---
  duration_ms: 0.332454
  type: 'test'
  ...
# Subtest: a multi-step change on the refused text is replayed where it was made, on the page and the server
ok 61 - a multi-step change on the refused text is replayed where it was made, on the page and the server
  ---
  duration_ms: 1.965567
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: A: "abc" on the x; Backspace; undo the Backspace
ok 62 - an undo or a redo while diverged ends as the person saw it: A: "abc" on the x; Backspace; undo the Backspace
  ---
  duration_ms: 4.424659
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: B: "a" on the x; select it, type "b"; undo
ok 63 - an undo or a redo while diverged ends as the person saw it: B: "a" on the x; select it, type "b"; undo
  ---
  duration_ms: 5.746618
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: C: "a" on the x; Backspace; undo
ok 64 - an undo or a redo while diverged ends as the person saw it: C: "a" on the x; Backspace; undo
  ---
  duration_ms: 2.871992
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: D: "a" on the x; Backspace; undo; "b" typed
ok 65 - an undo or a redo while diverged ends as the person saw it: D: "a" on the x; Backspace; undo; "b" typed
  ---
  duration_ms: 3.533771
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: E: "a" on the x; Backspace; undo; redo
ok 66 - an undo or a redo while diverged ends as the person saw it: E: "a" on the x; Backspace; undo; redo
  ---
  duration_ms: 3.881516
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: F: "a" elsewhere; Backspace; undo
ok 67 - an undo or a redo while diverged ends as the person saw it: F: "a" elsewhere; Backspace; undo
  ---
  duration_ms: 2.203802
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: G: "a" on the x; undo; redo; undo; redo
ok 68 - an undo or a redo while diverged ends as the person saw it: G: "a" on the x; undo; redo; undo; redo
  ---
  duration_ms: 4.343412
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: H: "a" on the x; "b"; undo; undo; redo; redo; "c"
ok 69 - an undo or a redo while diverged ends as the person saw it: H: "a" on the x; "b"; undo; undo; redo; redo; "c"
  ---
  duration_ms: 6.14748
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: I: "a" on the x; Backspace over "xa"; undo
ok 70 - an undo or a redo while diverged ends as the person saw it: I: "a" on the x; Backspace over "xa"; undo
  ---
  duration_ms: 3.113087
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: J: "a" on the x; Backspace over ".xa"; undo
ok 71 - an undo or a redo while diverged ends as the person saw it: J: "a" on the x; Backspace over ".xa"; undo
  ---
  duration_ms: 3.160258
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: K: the x and "a" one undo step; undo; redo
ok 72 - an undo or a redo while diverged ends as the person saw it: K: the x and "a" one undo step; undo; redo
  ---
  duration_ms: 4.47472
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: L: "a" on the x; undo; "b"; undo; redo
ok 73 - an undo or a redo while diverged ends as the person saw it: L: "a" on the x; undo; "b"; undo; redo
  ---
  duration_ms: 3.982971
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: M: two words pasted on the x; the first deleted; undo
ok 74 - an undo or a redo while diverged ends as the person saw it: M: two words pasted on the x; the first deleted; undo
  ---
  duration_ms: 2.666351
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: N: "a" on the x; undo
ok 75 - an undo or a redo while diverged ends as the person saw it: N: "a" on the x; undo
  ---
  duration_ms: 2.043428
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: O: "a" on the x; undo; "b"
ok 76 - an undo or a redo while diverged ends as the person saw it: O: "a" on the x; undo; "b"
  ---
  duration_ms: 2.539423
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: P: "a" on the x; "b" elsewhere; undo; undo
ok 77 - an undo or a redo while diverged ends as the person saw it: P: "a" on the x; "b" elsewhere; undo; undo
  ---
  duration_ms: 2.293786
  type: 'test'
  ...
# Subtest: an undo or a redo while diverged ends as the person saw it: Q: "a" on the x; undo; redo; "c"
ok 78 - an undo or a redo while diverged ends as the person saw it: Q: "a" on the x; undo; redo; "c"
  ---
  duration_ms: 2.889613
  type: 'test'
  ...
# Subtest: an undo of a change saved before the refusal is still carried
ok 79 - an undo of a change saved before the refusal is still carried
  ---
  duration_ms: 1.924701
  type: 'test'
  ...
# Subtest: derivedStep turns one document into the other, and is null for the same one
ok 80 - derivedStep turns one document into the other, and is null for the same one
  ---
  duration_ms: 0.205914
  type: 'test'
  ...
# Subtest: carrying grows linearly over a long divergence: changes typed elsewhere, 1000 against 4000, under few client ids
ok 81 - carrying grows linearly over a long divergence: changes typed elsewhere, 1000 against 4000, under few client ids
  ---
  duration_ms: 2077.344304
  type: 'test'
  ...
# Subtest: carrying grows linearly over a long divergence: changes typed on the refused text, 500 against 2000, under few client ids
ok 82 - carrying grows linearly over a long divergence: changes typed on the refused text, 500 against 2000, under few client ids
  ---
  duration_ms: 3857.337179
  type: 'test'
  ...
# Subtest: a client id never collides with one the document already holds
ok 83 - a client id never collides with one the document already holds
  ---
  duration_ms: 0.388471
  type: 'test'
  ...
# Subtest: ProseMirror changes inside one window share an id; one held back there does not strand the next
ok 84 - ProseMirror changes inside one window share an id; one held back there does not strand the next
  ---
  duration_ms: 1.795287
  type: 'test'
  ...
# Subtest: typing into a block is a text change on its slide only
ok 85 - typing into a block is a text change on its slide only
  ---
  duration_ms: 8.66095
  type: 'test'
  ...
# Subtest: a block's props changing is structure on its slide
ok 86 - a block's props changing is structure on its slide
  ---
  duration_ms: 1.722549
  type: 'test'
  ...
# Subtest: adding, moving or removing a block is structure on its slide
ok 87 - adding, moving or removing a block is structure on its slide
  ---
  duration_ms: 2.692201
  type: 'test'
  ...
# Subtest: the notes are text on their slide
ok 88 - the notes are text on their slide
  ---
  duration_ms: 1.525282
  type: 'test'
  ...
# Subtest: a slide added, removed or moved is an order change
ok 89 - a slide added, removed or moved is an order change
  ---
  duration_ms: 2.539705
  type: 'test'
  ...
# Subtest: one transaction touching several things reports each once
ok 90 - one transaction touching several things reports each once
  ---
  duration_ms: 1.02486
  type: 'test'
  ...
# Subtest: what the ops write passes, and so does an empty document
ok 91 - what the ops write passes, and so does an empty document
  ---
  duration_ms: 9.453058
  type: 'test'
  ...
# Subtest: the shapes y-prosemirror and older documents write pass
ok 92 - the shapes y-prosemirror and older documents write pass
  ---
  duration_ms: 1.662331
  type: 'test'
  ...
# Subtest: an unknown formatting attribute is reported with the core's message
ok 93 - an unknown formatting attribute is reported with the core's message
  ---
  duration_ms: 2.365861
  type: 'test'
  ...
# Subtest: an element inside a paragraph, a non-paragraph child and bare text are reported
ok 94 - an element inside a paragraph, a non-paragraph child and bare text are reported
  ---
  duration_ms: 5.343901
  type: 'test'
  ...
# Subtest: the unknownmark poison shape is what the check refuses
ok 95 - the unknownmark poison shape is what the check refuses
  ---
  duration_ms: 1.805245
  type: 'test'
  ...
# Subtest: y-prosemirror 1.3.7 deletes the words under an unknown mark; sanitising first keeps them
ok 96 - y-prosemirror 1.3.7 deletes the words under an unknown mark; sanitising first keeps them
  ---
  duration_ms: 5.244608
  type: 'test'
  ...
# Subtest: the vocabulary is the five marks and nothing else
ok 97 - the vocabulary is the five marks and nothing else
  ---
  duration_ms: 0.17999
  type: 'test'
  ...
# Subtest: a reload reuses the id this tab stored for the deck
ok 98 - a reload reuses the id this tab stored for the deck
  ---
  duration_ms: 1.176655
  type: 'test'
  ...
# Subtest: two tabs, and two decks in one tab, get different ids
ok 99 - two tabs, and two decks in one tab, get different ids
  ---
  duration_ms: 1.220714
  type: 'test'
  ...
# Subtest: a stored value that is not an id, or storage that throws, gives a fresh id
ok 100 - a stored value that is not an id, or storage that throws, gives a fresh id
  ---
  duration_ms: 1.001927
  type: 'test'
  ...
# Subtest: a duplicated tab gives up the copied id; the original keeps it
ok 101 - a duplicated tab gives up the copied id; the original keeps it
  ---
  duration_ms: 5.174027
  type: 'test'
  ...
# Subtest: a reload finds no rival and keeps its id
ok 102 - a reload finds no rival and keeps its id
  ---
  duration_ms: 2.150919
  type: 'test'
  ...
# Subtest: presence switches id: beats carry the new one and the old one is somebody else
ok 103 - presence switches id: beats carry the new one and the old one is somebody else
  ---
  duration_ms: 1.120902
  type: 'test'
  ...
# Subtest: a change that loads runs once and releases the queue in order
ok 104 - a change that loads runs once and releases the queue in order
  ---
  duration_ms: 6.019136
  type: 'test'
  ...
# Subtest: a refusal releases the queue in order and refills the inspector
ok 105 - a refusal releases the queue in order and refills the inspector
  ---
  duration_ms: 1.210031
  type: 'test'
  ...
# Subtest: a refusal whose notice throws still releases the queue
ok 106 - a refusal whose notice throws still releases the queue
  ---
  duration_ms: 1.379828
  type: 'test'
  ...
# Subtest: a change that throws still releases the queue, and is refused
ok 107 - a change that throws still releases the queue, and is refused
  ---
  duration_ms: 0.867117
  type: 'test'
  ...
# Subtest: a change that can no longer be made once its font is in is said as interrupted, not as a font that failed
ok 108 - a change that can no longer be made once its font is in is said as interrupted, not as a font that failed
  ---
  duration_ms: 0.956351
  type: 'test'
  ...
# Subtest: a second change during a wait is refused at once and never queued
ok 109 - a second change during a wait is refused at once and never queued
  ---
  duration_ms: 0.7175
  type: 'test'
  ...
# Subtest: free() with no wait on resolves at once
ok 110 - free() with no wait on resolves at once
  ---
  duration_ms: 0.534028
  type: 'test'
  ...
# Subtest: the shared vectors have cases to check
ok 111 - the shared vectors have cases to check
  ---
  duration_ms: 1.193188
  type: 'test'
  ...
# Subtest: familiesOfView: an empty deck draws in nothing
ok 112 - familiesOfView: an empty deck draws in nothing
  ---
  duration_ms: 0.875668
  type: 'test'
  ...
# Subtest: familiesOfView: paper: serif headings, sans body
ok 113 - familiesOfView: paper: serif headings, sans body
  ---
  duration_ms: 0.620014
  type: 'test'
  ...
# Subtest: familiesOfView: ink: sans for both
ok 114 - familiesOfView: ink: sans for both
  ---
  duration_ms: 0.171643
  type: 'test'
  ...
# Subtest: familiesOfView: an unknown theme is paper
ok 115 - familiesOfView: an unknown theme is paper
  ---
  duration_ms: 0.14061
  type: 'test'
  ...
# Subtest: familiesOfView: a code block brings in mono
ok 116 - familiesOfView: a code block brings in mono
  ---
  duration_ms: 0.164732
  type: 'test'
  ...
# Subtest: familiesOfView: an empty code block still does
ok 117 - familiesOfView: an empty code block still does
  ---
  duration_ms: 0.277078
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a text block
ok 118 - familiesOfView: a code mark in a text block
  ---
  duration_ms: 0.569367
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a heading
ok 119 - familiesOfView: a code mark in a heading
  ---
  duration_ms: 0.50531
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in a table cell
ok 120 - familiesOfView: a code mark in a table cell
  ---
  duration_ms: 0.716151
  type: 'test'
  ...
# Subtest: familiesOfView: a code mark in the notes is the chrome's
ok 121 - familiesOfView: a code mark in the notes is the chrome's
  ---
  duration_ms: 1.445454
  type: 'test'
  ...
# Subtest: familiesOfView: bold, italic, highlight and links stay in the family
ok 122 - familiesOfView: bold, italic, highlight and links stay in the family
  ---
  duration_ms: 0.121783
  type: 'test'
  ...
# Subtest: familiesOfView: the inspector's system heading drops serif
ok 123 - familiesOfView: the inspector's system heading drops serif
  ---
  duration_ms: 0.201623
  type: 'test'
  ...
# Subtest: familiesOfView: system faces for both draw in no web face
ok 124 - familiesOfView: system faces for both draw in no web face
  ---
  duration_ms: 0.077064
  type: 'test'
  ...
# Subtest: familiesOfView: a body override naming mono
ok 125 - familiesOfView: a body override naming mono
  ---
  duration_ms: 0.066729
  type: 'test'
  ...
# Subtest: familiesOfView: a family anywhere in a stack counts
ok 126 - familiesOfView: a family anywhere in a stack counts
  ---
  duration_ms: 0.058612
  type: 'test'
  ...
# Subtest: familiesOfView: an override that fails the allowlist is the theme's
ok 127 - familiesOfView: an override that fails the allowlist is the theme's
  ---
  duration_ms: 0.065191
  type: 'test'
  ...
# Subtest: familiesOfView: a too-long override is the theme's
ok 128 - familiesOfView: a too-long override is the theme's
  ---
  duration_ms: 0.062942
  type: 'test'
  ...
# Subtest: familiesOfView: padded overrides are trimmed
ok 129 - familiesOfView: padded overrides are trimmed
  ---
  duration_ms: 0.057778
  type: 'test'
  ...
# Subtest: familiesOfView: a family named only on a later slide's code
ok 130 - familiesOfView: a family named only on a later slide's code
  ---
  duration_ms: 0.097827
  type: 'test'
  ...
# Subtest: a stack names a family wherever it appears, in any case, quoted or not
ok 131 - a stack names a family wherever it appears, in any case, quoted or not
  ---
  duration_ms: 0.124163
  type: 'test'
  ...
# Subtest: safeFontStack is render.go's allowlist
ok 132 - safeFontStack is render.go's allowlist
  ---
  duration_ms: 0.124158
  type: 'test'
  ...
# Subtest: a section names its heading and body families
ok 133 - a section names its heading and body families
  ---
  duration_ms: 0.310038
  type: 'test'
  ...
# Subtest: a section with code in it brings in the code family
ok 134 - a section with code in it brings in the code family
  ---
  duration_ms: 0.243415
  type: 'test'
  ...
# Subtest: only the two font properties are read off a section
ok 135 - only the two font properties are read off a section
  ---
  duration_ms: 0.315015
  type: 'test'
  ...
# Subtest: nothing joins the page until all four faces of a family are in, and then all four do
ok 136 - nothing joins the page until all four faces of a family are in, and then all four do
  ---
  duration_ms: 10.556027
  type: 'test'
  ...
# Subtest: every face is a block face of the manifest's family, weight and style
ok 137 - every face is a block face of the manifest's family, weight and style
  ---
  duration_ms: 2.362165
  type: 'test'
  ...
# Subtest: a family that misses the deadline is committed and never joins, even when it arrives
ok 138 - a family that misses the deadline is committed and never joins, even when it arrives
  ---
  duration_ms: 2.54954
  type: 'test'
  ...
# Subtest: a family whose file fails is committed by the gate: wrong but stable
ok 139 - a family whose file fails is committed by the gate: wrong but stable
  ---
  duration_ms: 0.91292
  type: 'test'
  ...
# Subtest: a person's action waits for its family and then may run, once it is in
ok 140 - a person's action waits for its family and then may run, once it is in
  ---
  duration_ms: 0.713948
  type: 'test'
  ...
# Subtest: a person's action is refused when its family fails or is late, and nothing is committed
ok 141 - a person's action is refused when its family fails or is late, and nothing is committed
  ---
  duration_ms: 1.27686
  type: 'test'
  ...
# Subtest: content from elsewhere waits for a new family, then is committed past the timeout, never held
ok 142 - content from elsewhere waits for a new family, then is committed past the timeout, never held
  ---
  duration_ms: 1.034877
  type: 'test'
  ...
# Subtest: a family on screen in its web face is never committed
ok 143 - a family on screen in its web face is never committed
  ---
  duration_ms: 0.66707
  type: 'test'
  ...
# Subtest: a composition commits a family that is not in, rather than waiting
ok 144 - a composition commits a family that is not in, rather than waiting
  ---
  duration_ms: 0.686905
  type: 'test'
  ...
# Subtest: prefetch loads the families not asked for yet, one at a time, and puts none on
ok 145 - prefetch loads the families not asked for yet, one at a time, and puts none on
  ---
  duration_ms: 2.840374
  type: 'test'
  ...
# Subtest: an unknown family is no family
ok 146 - an unknown family is no family
  ---
  duration_ms: 0.436885
  type: 'test'
  ...
# Subtest: the system session is ready for everything and loads nothing
ok 147 - the system session is ready for everything and loads nothing
  ---
  duration_ms: 0.264863
  type: 'test'
  ...
# Subtest: a range carrying the mark is pressed; one without is not
ok 148 - a range carrying the mark is pressed; one without is not
  ---
  duration_ms: 2.277661
  type: 'test'
  ...
# Subtest: at a cursor, the stored marks decide
ok 149 - at a cursor, the stored marks decide
  ---
  duration_ms: 0.529917
  type: 'test'
  ...
# Subtest: focus moving to another place to type lets go; to a button keeps the view
ok 150 - focus moving to another place to type lets go; to a button keeps the view
  ---
  duration_ms: 0.357684
  type: 'test'
  ...
# Subtest: an empty body is no frames
ok 151 - an empty body is no frames
  ---
  duration_ms: 1.353775
  type: 'test'
  ...
# Subtest: frames come back in order with their exact bytes
ok 152 - frames come back in order with their exact bytes
  ---
  duration_ms: 0.360131
  type: 'test'
  ...
# Subtest: a length prefix is big-endian
ok 153 - a length prefix is big-endian
  ---
  duration_ms: 0.291332
  type: 'test'
  ...
# Subtest: a truncated frame throws rather than returning a short update
ok 154 - a truncated frame throws rather than returning a short update
  ---
  duration_ms: 1.469223
  type: 'test'
  ...
# Subtest: deck controls are set_meta
ok 155 - deck controls are set_meta
  ---
  duration_ms: 12.969653
  type: 'test'
  ...
# Subtest: slide controls are set_slide, and background keeps its colour
ok 156 - slide controls are set_slide, and background keeps its colour
  ---
  duration_ms: 4.526343
  type: 'test'
  ...
# Subtest: move up and down are move_slide with the right after
ok 157 - move up and down are move_slide with the right after
  ---
  duration_ms: 2.144186
  type: 'test'
  ...
# Subtest: block props: value kinds, region, a shape label
ok 158 - block props: value kinds, region, a shape label
  ---
  duration_ms: 1.964448
  type: 'test'
  ...
# Subtest: box fields are set_block on the desktop and set_phone in the phone view
ok 159 - box fields are set_block on the desktop and set_phone in the phone view
  ---
  duration_ms: 2.182697
  type: 'test'
  ...
# Subtest: move block and the layer buttons
ok 160 - move block and the layer buttons
  ---
  duration_ms: 1.910668
  type: 'test'
  ...
# Subtest: add block: region after the selection on flow, a default box on canvas, a heading level that fits
ok 161 - add block: region after the selection on flow, a default box on canvas, a heading level that fits
  ---
  duration_ms: 8.12992
  type: 'test'
  ...
# Subtest: a block is named by its type and its first words
ok 162 - a block is named by its type and its first words
  ---
  duration_ms: 1.095267
  type: 'test'
  ...
# Subtest: blockChange: a control element to its op
ok 163 - blockChange: a control element to its op
  ---
  duration_ms: 1.956572
  type: 'test'
  ...
# Subtest: the Blocks list reconciles by id and keeps its buttons
ok 164 - the Blocks list reconciles by id and keeps its buttons
  ---
  duration_ms: 1.652534
  type: 'test'
  ...
# Subtest: open resolves to the button that closed it and the trimmed field
ok 165 - open resolves to the button that closed it and the trimmed field
  ---
  duration_ms: 1.624528
  type: 'test'
  ...
# Subtest: a second open while the dialog is up joins the first
ok 166 - a second open while the dialog is up joins the first
  ---
  duration_ms: 0.199087
  type: 'test'
  ...
# Subtest: a missing dialog mounts as nothing
ok 167 - a missing dialog mounts as nothing
  ---
  duration_ms: 0.12832
  type: 'test'
  ...
# Subtest: a tab advances its own cursor only when its POST is the very next row
ok 168 - a tab advances its own cursor only when its POST is the very next row
  ---
  duration_ms: 1.38772
  type: 'test'
  ...
# Subtest: the cursor never moves backwards when a response is overtaken by this tab's own write
ok 169 - the cursor never moves backwards when a response is overtaken by this tab's own write
  ---
  duration_ms: 0.711754
  type: 'test'
  ...
# Subtest: a later response still carries the cursor forward
ok 170 - a later response still carries the cursor forward
  ---
  duration_ms: 0.366303
  type: 'test'
  ...
# Subtest: a burst of notifications collapses into one fetch at a time
ok 171 - a burst of notifications collapses into one fetch at a time
  ---
  duration_ms: 0.239046
  type: 'test'
  ...
# Subtest: an event naming a seq the tab already has fetches nothing
ok 172 - an event naming a seq the tab already has fetches nothing
  ---
  duration_ms: 0.369102
  type: 'test'
  ...
# Subtest: a stopped subscriber drops a response that arrives late
ok 173 - a stopped subscriber drops a response that arrives late
  ---
  duration_ms: 0.38817
  type: 'test'
  ...
# Subtest: stop closes the stream, and start opens exactly one
ok 174 - stop closes the stream, and start opens exactly one
  ---
  duration_ms: 0.325871
  type: 'test'
  ...
# Subtest: a hidden tab closes its stream on a shortened deadline, and activity reopens it
ok 175 - a hidden tab closes its stream on a shortened deadline, and activity reopens it
  ---
  duration_ms: 0.849336
  type: 'test'
  ...
# Subtest: switching away and back inside the grace never drops the stream, so nothing has to be caught up
ok 176 - switching away and back inside the grace never drops the stream, so nothing has to be caught up
  ---
  duration_ms: 0.898077
  type: 'test'
  ...
# Subtest: a visible tab that is only being READ closes when idle and comes back on any activity
ok 177 - a visible tab that is only being READ closes when idle and comes back on any activity
  ---
  duration_ms: 0.718022
  type: 'test'
  ...
# Subtest: activity while streaming defers the idle close rather than reopening anything
ok 178 - activity while streaming defers the idle close rather than reopening anything
  ---
  duration_ms: 0.328574
  type: 'test'
  ...
# Subtest: a stream failure is never reported as a save failure, and heals on activity
ok 179 - a stream failure is never reported as a save failure, and heals on activity
  ---
  duration_ms: 0.253862
  type: 'test'
  ...
# Subtest: an empty response advances the cursor without applying anything
ok 180 - an empty response advances the cursor without applying anything
  ---
  duration_ms: 0.89939
  type: 'test'
  ...
# Subtest: a failed fetch leaves the cursor alone so the next notification retries it
ok 181 - a failed fetch leaves the cursor alone so the next notification retries it
  ---
  duration_ms: 0.246081
  type: 'test'
  ...
# Subtest: a decode failure retries once through the raw log, then gives up
ok 182 - a decode failure retries once through the raw log, then gives up
  ---
  duration_ms: 0.19744
  type: 'test'
  ...
# Subtest: updatesURL spells the query string exactly, in particular raw as the literal raw=1
ok 183 - updatesURL spells the query string exactly, in particular raw as the literal raw=1
  ---
  duration_ms: 0.145883
  type: 'test'
  ...
# Subtest: leaving the page closes the stream at once, and coming back reopens it and catches up
ok 184 - leaving the page closes the stream at once, and coming back reopens it and catches up
  ---
  duration_ms: 0.321351
  type: 'test'
  ...
# Subtest: a page left before its subscriber starts never opens a stream
ok 185 - a page left before its subscriber starts never opens a stream
  ---
  duration_ms: 0.179711
  type: 'test'
  ...
# Subtest: empty_doc_views_as_defaults
ok 186 - empty_doc_views_as_defaults
  ---
  duration_ms: 3.769487
  type: 'test'
  ...
# Subtest: set_meta
ok 187 - set_meta
  ---
  duration_ms: 2.960222
  type: 'test'
  ...
# Subtest: slides: add, move, remove, set_slide, set_notes
ok 188 - slides: add, move, remove, set_slide, set_notes
  ---
  duration_ms: 6.760342
  type: 'test'
  ...
# Subtest: duplicate_slide
ok 189 - duplicate_slide
  ---
  duration_ms: 3.572916
  type: 'test'
  ...
# Subtest: blocks: add, move, remove, set_block
ok 190 - blocks: add, move, remove, set_block
  ---
  duration_ms: 4.441522
  type: 'test'
  ...
# Subtest: set_phone
ok 191 - set_phone
  ---
  duration_ms: 1.272886
  type: 'test'
  ...
# Subtest: table cells follow rows and cols
ok 192 - table cells follow rows and cols
  ---
  duration_ms: 1.275093
  type: 'test'
  ...
# Subtest: canvas blocks: box defaults from the region, z from the index
ok 193 - canvas blocks: box defaults from the region, z from the index
  ---
  duration_ms: 0.898926
  type: 'test'
  ...
# Subtest: assets: register and remove
ok 194 - assets: register and remove
  ---
  duration_ms: 1.305308
  type: 'test'
  ...
# Subtest: markdown: every mark, code blocks are plain lines
ok 195 - markdown: every mark, code blocks are plain lines
  ---
  duration_ms: 1.750025
  type: 'test'
  ...
# Subtest: batch_is_atomic
ok 196 - batch_is_atomic
  ---
  duration_ms: 2.169498
  type: 'test'
  ...
# Subtest: a batch applies in one transaction with the given origin
ok 197 - a batch applies in one transaction with the given origin
  ---
  duration_ms: 0.612543
  type: 'test'
  ...
# Subtest: columns_children_validated
ok 198 - columns_children_validated
  ---
  duration_ms: 1.476814
  type: 'test'
  ...
# Subtest: layout_switch_round_trip
ok 199 - layout_switch_round_trip
  ---
  duration_ms: 1.723595
  type: 'test'
  ...
# Subtest: view_matches_snapshot_fixtures
ok 200 - view_matches_snapshot_fixtures
  ---
  duration_ms: 15.459809
  type: 'test'
  ...
# Subtest: columns children have one parent and no cycles (codex 7)
ok 201 - columns children have one parent and no cycles (codex 7)
  ---
  duration_ms: 1.462807
  type: 'test'
  ...
# Subtest: canvas-to-flow keeps a concurrent text edit (codex 4)
ok 202 - canvas-to-flow keeps a concurrent text edit (codex 4)
  ---
  duration_ms: 3.98996
  type: 'test'
  ...
# Subtest: move_block keeps a concurrent text edit, and later inserts land where after says (codex 4)
ok 203 - move_block keeps a concurrent text edit, and later inserts land where after says (codex 4)
  ---
  duration_ms: 3.520653
  type: 'test'
  ...
# Subtest: move_slide keeps a concurrent text edit, and later inserts land where after says (codex 4 at slide level)
ok 204 - move_slide keeps a concurrent text edit, and later inserts land where after says (codex 4 at slide level)
  ---
  duration_ms: 2.582064
  type: 'test'
  ...
# Subtest: format: {name} and {n} interpolate; an unknown key is left as text
ok 205 - format: {name} and {n} interpolate; an unknown key is left as text
  ---
  duration_ms: 0.808806
  type: 'test'
  ...
# Subtest: a beat on connect, then one every twenty seconds
ok 206 - a beat on connect, then one every twenty seconds
  ---
  duration_ms: 1.825599
  type: 'test'
  ...
# Subtest: a move posts once, 200ms after the last of a burst, and re-arms the beat
ok 207 - a move posts once, 200ms after the last of a burst, and re-arms the beat
  ---
  duration_ms: 1.337348
  type: 'test'
  ...
# Subtest: a hidden tab stops beating; coming back posts at once
ok 208 - a hidden tab stops beating; coming back posts at once
  ---
  duration_ms: 0.39184
  type: 'test'
  ...
# Subtest: applySet leaves this tab out and answers what changed
ok 209 - applySet leaves this tab out and answers what changed
  ---
  duration_ms: 0.922351
  type: 'test'
  ...
# Subtest: a set with rubbish in it is read for what it does carry
ok 210 - a set with rubbish in it is read for what it does carry
  ---
  duration_ms: 0.248275
  type: 'test'
  ...
# Subtest: initials, and a client id per tab
ok 211 - initials, and a client id per tab
  ---
  duration_ms: 2.547654
  type: 'test'
  ...
# Subtest: a resync that fails is retried with backoff until it succeeds, without ever running twice at once
ok 212 - a resync that fails is retried with backoff until it succeeds, without ever running twice at once
  ---
  duration_ms: 1.981712
  type: 'test'
  ...
# Subtest: the browser's online event retries immediately, not just on the next backoff tick
ok 213 - the browser's online event retries immediately, not just on the next backoff tick
  ---
  duration_ms: 0.333062
  type: 'test'
  ...
# Subtest: reportDivergence before any failure runs the first attempt without a caller ever calling online
ok 214 - reportDivergence before any failure runs the first attempt without a caller ever calling online
  ---
  duration_ms: 1.307326
  type: 'test'
  ...
# Subtest: a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit
ok 215 - a permanent 4xx drops its batch instead of retrying it, and does not poison the next edit
  ---
  duration_ms: 74.648834
  type: 'test'
  ...
# Subtest: a network failure or a 5xx is retried, not dropped
ok 216 - a network failure or a 5xx is retried, not dropped
  ---
  duration_ms: 41.484273
  type: 'test'
  ...
# Subtest: a 500 is retried the same way a network failure is, never dropped
ok 217 - a 500 is retried the same way a network failure is, never dropped
  ---
  duration_ms: 40.293369
  type: 'test'
  ...
# Subtest: flush with nothing queued waits for the save already on the wire
ok 218 - flush with nothing queued waits for the save already on the wire
  ---
  duration_ms: 0.955862
  type: 'test'
  ...
# Subtest: an edit made while a save is on the wire waits for it, and both stay owed until answered
ok 219 - an edit made while a save is on the wire waits for it, and both stay owed until answered
  ---
  duration_ms: 2.127174
  type: 'test'
  ...
# Subtest: a flush resolves only once every earlier update is answered, whichever save answers last
ok 220 - a flush resolves only once every earlier update is answered, whichever save answers last
  ---
  duration_ms: 20.997929
  type: 'test'
  ...
# Subtest: a flush through a retry waits for the retry, and a successful retry is a save
ok 221 - a flush through a retry waits for the retry, and a successful retry is a save
  ---
  duration_ms: 1.787427
  type: 'test'
  ...
# Subtest: a network failure is retried the same way
ok 222 - a network failure is retried the same way
  ---
  duration_ms: 0.709196
  type: 'test'
  ...
# Subtest: a refusal resolves the flush false and is final; later edits still save
ok 223 - a refusal resolves the flush false and is final; later edits still save
  ---
  duration_ms: 1.349869
  type: 'test'
  ...
# Subtest: edits made during a flush are not what that flush waits for
ok 224 - edits made during a flush are not what that flush waits for
  ---
  duration_ms: 1.105409
  type: 'test'
  ...
# Subtest: the queue says saving, not ok, while an answered save leaves another to send
ok 225 - the queue says saving, not ok, while an answered save leaves another to send
  ---
  duration_ms: 0.774136
  type: 'test'
  ...
# Subtest: a save is sent keepalive, and given up if it is never answered
ok 226 - a save is sent keepalive, and given up if it is never answered
  ---
  duration_ms: 21.52803
  type: 'test'
  ...
# Subtest: a batch carries at most maxBatchBytes, and the rest follow in order once it is answered
ok 227 - a batch carries at most maxBatchBytes, and the rest follow in order once it is answered
  ---
  duration_ms: 1.407074
  type: 'test'
  ...
# Subtest: an update bigger than maxBatchBytes still goes, on its own
ok 228 - an update bigger than maxBatchBytes still goes, on its own
  ---
  duration_ms: 0.72569
  type: 'test'
  ...
# Subtest: a save never answered is given up, retried with a real request, and its late answer ignored
ok 229 - a save never answered is given up, retried with a real request, and its late answer ignored
  ---
  duration_ms: 0.846968
  type: 'test'
  ...
# Subtest: resume sends again at once what was on the wire as the page left, without saying it failed
ok 230 - resume sends again at once what was on the wire as the page left, without saying it failed
  ---
  duration_ms: 0.963621
  type: 'test'
  ...
# Subtest: a keepalive save on the wire is left out of what the unload beacons; a plain one is kept
ok 231 - a keepalive save on the wire is left out of what the unload beacons; a plain one is kept
  ---
  duration_ms: 0.74318
  type: 'test'
  ...
# Subtest: a save refused with no answer says retrying only if the server cannot be reached either
ok 232 - a save refused with no answer says retrying only if the server cannot be reached either
  ---
  duration_ms: 1.984095
  type: 'test'
  ...
# Subtest: retries the browser refuses while the server answers back off, and reset once one is answered
ok 233 - retries the browser refuses while the server answers back off, and reset once one is answered
  ---
  duration_ms: 1.343914
  type: 'test'
  ...
# Subtest: reachable tries a keepalive request, then an ordinary one
ok 234 - reachable tries a keepalive request, then an ordinary one
  ---
  duration_ms: 0.441793
  type: 'test'
  ...
# Subtest: a large save is gzipped, and goes keepalive if what is sent fits
ok 235 - a large save is gzipped, and goes keepalive if what is sent fits
  ---
  duration_ms: 2.620397
  type: 'test'
  ...
# Subtest: a gzipped save a server refuses is sent again uncompressed, and later saves skip gzip
ok 236 - a gzipped save a server refuses is sent again uncompressed, and later saves skip gzip
  ---
  duration_ms: 76.316599
  type: 'test'
  ...
# Subtest: a refused save that was not gzipped is not sent again
ok 237 - a refused save that was not gzipped is not sent again
  ---
  duration_ms: 1.925737
  type: 'test'
  ...
# Subtest: the core-written structure reads as ProseMirror marks
ok 238 - the core-written structure reads as ProseMirror marks
  ---
  duration_ms: 6.642826
  type: 'test'
  ...
# Subtest: a y-prosemirror round trip preserves bold and the link
ok 239 - a y-prosemirror round trip preserves bold and the link
  ---
  duration_ms: 2.789693
  type: 'test'
  ...
# Subtest: y-prosemirror writes href as the one-key map and marks as {}
ok 240 - y-prosemirror writes href as the one-key map and marks as {}
  ---
  duration_ms: 1.108734
  type: 'test'
  ...
# Subtest: a plain-string href, written before the map shape, still reads
ok 241 - a plain-string href, written before the map shape, still reads
  ---
  duration_ms: 1.002569
  type: 'test'
  ...
# Subtest: textFragment writes the same shape as writeText
ok 242 - textFragment writes the same shape as writeText
  ---
  duration_ms: 0.719419
  type: 'test'
  ...
# Subtest: safeHref is the server allowlist, and a disallowed href never draws an anchor
ok 243 - safeHref is the server allowlist, and a disallowed href never draws an anchor
  ---
  duration_ms: 0.512886
  type: 'test'
  ...
# Subtest: parseHash splits the slide and the block, and survives a stray %
ok 244 - parseHash splits the slide and the block, and survives a stray %
  ---
  duration_ms: 1.475508
  type: 'test'
  ...
# Subtest: destroy takes the listeners off, and a second mount leaves one of each
ok 245 - destroy takes the listeners off, and a second mount leaves one of each
  ---
  duration_ms: 0.781322
  type: 'test'
  ...
# Subtest: formatHash is the inverse
ok 246 - formatHash is the inverse
  ---
  duration_ms: 1.031108
  type: 'test'
  ...
# Subtest: each layout makes its template and its empty blocks, and passes the gate
ok 247 - each layout makes its template and its empty blocks, and passes the gate
  ---
  duration_ms: 13.994307
  type: 'test'
  ...
# Subtest: a layout goes after the slide it is asked to follow
ok 248 - a layout goes after the slide it is asked to follow
  ---
  duration_ms: 1.283778
  type: 'test'
  ...
# Subtest: an unknown layout still makes a slide, and plain New slide follows the one before
ok 249 - an unknown layout still makes a slide, and plain New slide follows the one before
  ---
  duration_ms: 0.183552
  type: 'test'
  ...
# Subtest: textBlocks finds the text-bearing blocks and skips the rest
ok 250 - textBlocks finds the text-bearing blocks and skips the rest
  ---
  duration_ms: 1.939314
  type: 'test'
  ...
# Subtest: mountTarget is the element whose children are the paragraphs
ok 251 - mountTarget is the element whose children are the paragraphs
  ---
  duration_ms: 0.240171
  type: 'test'
  ...
# Subtest: paragraphTag keeps the renderer's own markup per type
ok 252 - paragraphTag keeps the renderer's own markup per type
  ---
  duration_ms: 0.250811
  type: 'test'
  ...
# Subtest: blockFragment finds a block's text by slide and block id
ok 253 - blockFragment finds a block's text by slide and block id
  ---
  duration_ms: 7.662832
  type: 'test'
  ...
# Subtest: notesFragment finds the slide's notes
ok 254 - notesFragment finds the slide's notes
  ---
  duration_ms: 1.303753
  type: 'test'
  ...
# Subtest: blockIDs and slideIDs are the orders on the stage and the strip
ok 255 - blockIDs and slideIDs are the orders on the stage and the strip
  ---
  duration_ms: 1.607103
  type: 'test'
  ...
# Subtest: cellFragments are a table's cells, row-major
ok 256 - cellFragments are a table's cells, row-major
  ---
  duration_ms: 2.439237
  type: 'test'
  ...
# Subtest: a load that fails leaves the stage on the slide it was showing and says so
ok 257 - a load that fails leaves the stage on the slide it was showing and says so
  ---
  duration_ms: 1.48313
  type: 'test'
  ...
# Subtest: slideAfter is the slide to show once one is gone
ok 258 - slideAfter is the slide to show once one is gone
  ---
  duration_ms: 0.638353
  type: 'test'
  ...
# Subtest: the queue words map to savestatus states, failed staying failed
ok 259 - the queue words map to savestatus states, failed staying failed
  ---
  duration_ms: 0.94094
  type: 'test'
  ...
# Subtest: a dropped batch outranks the queue, for the rest of the session
ok 260 - a dropped batch outranks the queue, for the rest of the session
  ---
  duration_ms: 0.183365
  type: 'test'
  ...
# Subtest: the editor status: the save line and the load error are two lines
ok 261 - the editor status: the save line and the load error are two lines
  ---
  duration_ms: 0.388925
  type: 'test'
  ...
# Subtest: mountSaveStatus loads estilo's module and mounts it on the line
ok 262 - mountSaveStatus loads estilo's module and mounts it on the line
  ---
  duration_ms: 1.566428
  type: 'test'
  ...
# Subtest: a save-status module that will not load says so and refuses to mount
ok 263 - a save-status module that will not load says so and refuses to mount
  ---
  duration_ms: 0.518791
  type: 'test'
  ...
# Subtest: dropTarget: before puts it ahead of the item, after behind it, null means first
ok 264 - dropTarget: before puts it ahead of the item, after behind it, null means first
  ---
  duration_ms: 0.930839
  type: 'test'
  ...
# Subtest: a drop that leaves the order as it is is no move
ok 265 - a drop that leaves the order as it is is no move
  ---
  duration_ms: 0.213437
  type: 'test'
  ...
# Subtest: dropOp is the move_slide
ok 266 - dropOp is the move_slide
  ---
  duration_ms: 0.692038
  type: 'test'
  ...
# Subtest: labelFor is the slide's first heading, else the numbered fallback
ok 267 - labelFor is the slide's first heading, else the numbered fallback
  ---
  duration_ms: 6.482427
  type: 'test'
  ...
# Subtest: flush re-points every dirty thumbnail and relabels it
ok 268 - flush re-points every dirty thumbnail and relabels it
  ---
  duration_ms: 2.682793
  type: 'test'
  ...
# Subtest: destroy takes the item-menu listener off; a second mount leaves one
ok 269 - destroy takes the item-menu listener off; a second mount leaves one
  ---
  duration_ms: 0.335804
  type: 'test'
  ...
# Subtest: plan says what to add, drop and where each item goes
ok 270 - plan says what to add, drop and where each item goes
  ---
  duration_ms: 1.016774
  type: 'test'
  ...
# Subtest: sync moves only the items out of place and keeps focus
ok 271 - sync moves only the items out of place and keeps focus
  ---
  duration_ms: 1.66053
  type: 'test'
  ...
# Subtest: desktop view: box and size are the block; hidden and order are always the phone map
ok 272 - desktop view: box and size are the block; hidden and order are always the phone map
  ---
  duration_ms: 1.697364
  type: 'test'
  ...
# Subtest: phone view: everything goes to set_phone, carrying the rest of the map
ok 273 - phone view: everything goes to set_phone, carrying the rest of the map
  ---
  duration_ms: 0.504003
  type: 'test'
  ...
# Subtest: the ops it makes are ones the document takes
ok 274 - the ops it makes are ones the document takes
  ---
  duration_ms: 9.1314
  type: 'test'
  ...
# Subtest: phoneMap reads only the four keys, and only well-typed
ok 275 - phoneMap reads only the four keys, and only well-typed
  ---
  duration_ms: 0.204761
  type: 'test'
  ...
# Subtest: the stored view is read defensively
ok 276 - the stored view is read defensively
  ---
  duration_ms: 0.418529
  type: 'test'
  ...
# Subtest: linkAt reads the link under the cursor and nothing elsewhere
ok 277 - linkAt reads the link under the cursor and nothing elsewhere
  ---
  duration_ms: 2.553826
  type: 'test'
  ...
# Subtest: setLink marks the selection
ok 278 - setLink marks the selection
  ---
  duration_ms: 2.360181
  type: 'test'
  ...
# Subtest: setLink on a collapsed cursor inside a link replaces that link
ok 279 - setLink on a collapsed cursor inside a link replaces that link
  ---
  duration_ms: 0.950955
  type: 'test'
  ...
# Subtest: setLink with nothing selected and no link does nothing
ok 280 - setLink with nothing selected and no link does nothing
  ---
  duration_ms: 0.321247
  type: 'test'
  ...
# Subtest: removeLink clears the link under the cursor
ok 281 - removeLink clears the link under the cursor
  ---
  duration_ms: 0.716693
  type: 'test'
  ...
# Subtest: the keymap binds every documented shortcut
ok 282 - the keymap binds every documented shortcut
  ---
  duration_ms: 0.232946
  type: 'test'
  ...
# Subtest: Mod-b toggles bold through the keymap
ok 283 - Mod-b toggles bold through the keymap
  ---
  duration_ms: 0.808078
  type: 'test'
  ...
# Subtest: setLink refuses an address outside the allowlist and writes nothing
ok 284 - setLink refuses an address outside the allowlist and writes nothing
  ---
  duration_ms: 1.712847
  type: 'test'
  ...
# Subtest: the state machine runs choose → sign → put → register → op
ok 285 - the state machine runs choose → sign → put → register → op
  ---
  duration_ms: 3.343961
  type: 'test'
  ...
# Subtest: a file the deck will not take never reaches the network
ok 286 - a file the deck will not take never reaches the network
  ---
  duration_ms: 0.662517
  type: 'test'
  ...
# Subtest: alt text is required before the bytes move, unless the image is decorative
ok 287 - alt text is required before the bytes move, unless the image is decorative
  ---
  duration_ms: 0.465374
  type: 'test'
  ...
# Subtest: a step that fails stops the ones after it and reports its own code
ok 288 - a step that fails stops the ones after it and reports its own code
  ---
  duration_ms: 0.566466
  type: 'test'
  ...
# Subtest: a failure that is not ours still becomes an UploadError
ok 289 - a failure that is not ours still becomes an UploadError
  ---
  duration_ms: 0.536987
  type: 'test'
  ...
# Subtest: a second pick while one is in flight is refused, not raced
ok 290 - a second pick while one is in flight is refused, not raced
  ---
  duration_ms: 0.435696
  type: 'test'
  ...
# Subtest: an unreadable size is zero rather than a failure
ok 291 - an unreadable size is zero rather than a failure
  ---
  duration_ms: 0.461925
  type: 'test'
  ...
# Subtest: a per-call applyOp wins, so an upload lands on the block it was chosen for
ok 292 - a per-call applyOp wins, so an upload lands on the block it was chosen for
  ---
  duration_ms: 0.263456
  type: 'test'
  ...
# Subtest: checkFile takes exactly the four types
ok 293 - checkFile takes exactly the four types
  ---
  duration_ms: 0.933246
  type: 'test'
  ...
# Subtest: sha256Hex is the hex digest of the bytes
ok 294 - sha256Hex is the hex digest of the bytes
  ---
  duration_ms: 10.828177
  type: 'test'
  ...
# Subtest: refusal reads this app's JSON error shape, and survives one that is not
ok 295 - refusal reads this app's JSON error shape, and survives one that is not
  ---
  duration_ms: 0.468974
  type: 'test'
  ...
# Subtest: malformed fonts are null
ok 296 - malformed fonts are null
  ---
  duration_ms: 3.566579
  type: 'test'
  ...
# Subtest: a malformed background is the theme default
ok 297 - a malformed background is the theme default
  ---
  duration_ms: 1.901496
  type: 'test'
  ...
# Subtest: a malformed box is null
ok 298 - a malformed box is null
  ---
  duration_ms: 1.241832
  type: 'test'
  ...
# Subtest: the phone layer keeps only its typed fields, order as a whole number
ok 299 - the phone layer keeps only its typed fields, order as a whole number
  ---
  duration_ms: 0.931687
  type: 'test'
  ...
# Subtest: assets are typed or skipped
ok 300 - assets are typed or skipped
  ---
  duration_ms: 0.518974
  type: 'test'
  ...
# Subtest: every poison update is deterministic bytes that apply to any deck
ok 301 - every poison update is deterministic bytes that apply to any deck
  ---
  duration_ms: 9.039822
  type: 'test'
  ...
1..301
# tests 301
# suites 0
# pass 301
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 8174.37443
=== the vectors must match a fresh generation
canvas: 22 ops, 3715 bytes
columns: 23 ops, 3134 bytes
every-block: 36 ops, 3180 bytes
table: 14 ops, 1509 bytes
title-only: 6 ops, 1136 bytes
=== the editor bundle must match a fresh build
wrote internal/slides/static/editor.c3fbe7c9ae1c7c02.js (400752 bytes)
wrote internal/slides/static/fontsgate.971e476eab8b8588.js (10991 bytes)
wrote internal/slides/static/fontshold.876f3d8d396da42f.js (314 bytes)
=== go: vet, gofmt, test, migration check
go vet ./...
go: downloading amadan.net/rastrillo/rastrillo v0.35.1-0.20261116213651-96812beacacc
go: downloading github.com/go-json-experiment/json v0.0.0-20260820222146-c27c302e5fc3
go: downloading github.com/modelcontextprotocol/go-sdk v1.8.0
go: downloading golang.org/x/sys v0.47.0
go: downloading golang.org/x/text v0.41.0
go: downloading amadan.net/rastrillo/fiesta v1.3.0
go: downloading github.com/tdewolff/minify/v2 v2.24.19
go: downloading github.com/tdewolff/parse/v2 v2.8.16
go test ./...
--- FAIL: TestStoppingWithAStreamOpenExitsAtOnce (31.10s)
    shutdown_test.go:83: the process never answered: Get "http://localhost/healthz": dial unix /tmp/TestStoppingWithAStreamOpenExitsAtOnce1397623923/001/slides.sock: connect: no such file or directory
    shutdown_test.go:65: process output:
        time=2026-11-16T22:38:44.922Z level=INFO msg=migrate applied="[oficina_dashboard/0001_dashboard sessions/0001_init auth/0001_init auth/0002_sessions_backfill slides/0001_init slides/0002_create_decks slides/0003_create_share_links slides/0004_create_presentations slides/0005_create_agents slides/0006_create_deck_snapshots slides/0007_create_deck_assets slides/0008_create_asset_uploads]" skipped=0 adopted=false
        time=2026-11-16T22:38:45.219Z level=ERROR msg="serve failed" err="rastrillo: refusing to start: locale configuration: \"en\" needs the en pack: import _ \"amadan.net/rastrillo/rastrillo/locales/en\""
FAIL
FAIL	amadan.net/oficina/slides/cmd/slides	31.211s
?   	amadan.net/oficina/slides/cmd/slides-contract	[no test files]
--- FAIL: TestCreditsMatchReleaseArtifacts (0.43s)
    credits_test.go:67: credit inventory drift: exit status 1
        embedded credits are stale; run scripts/credits.py
--- FAIL: TestHomeDifferentAddressStaysInLocalRecovery (0.30s)
    home_test.go:294: second submission did not retain the local flow: 303 "/signin?sent=1&return_to=%2Fd%2Fkeep-going%3Ffrom%3Dsignin"
--- FAIL: TestHomePolicyTracksActualFrameworkAndStandalone (0.31s)
    home_test.go:420: rastrillo: refusing to start: locale configuration: "en" needs the en pack: import _ "amadan.net/rastrillo/rastrillo/locales/en"
FAIL
FAIL	amadan.net/oficina/slides/internal/slides	71.645s
ok  	amadan.net/oficina/slides/internal/slides/assist	0.015s
ok  	amadan.net/oficina/slides/internal/slides/core	3.346s
ok  	amadan.net/oficina/slides/internal/slides/deck	0.002s
ok  	amadan.net/oficina/slides/internal/slides/fonts	0.011s
?   	amadan.net/oficina/slides/internal/slides/icons	[no test files]
?   	amadan.net/oficina/slides/internal/slides/keymailtest	[no test files]
ok  	amadan.net/oficina/slides/internal/slides/layout	0.016s
ok  	amadan.net/oficina/slides/internal/slides/live	0.003s
ok  	amadan.net/oficina/slides/internal/slides/pdfcore	5.106s
ok  	amadan.net/oficina/slides/internal/slides/present	0.003s
ok  	amadan.net/oficina/slides/internal/slides/render	0.027s
ok  	amadan.net/oficina/slides/internal/slides/svg	0.016s
?   	amadan.net/oficina/slides/internal/slides/teamstate	[no test files]
--- FAIL: TestProductionCSPIsTheDefaultBarStyles (0.00s)
    serving_test.go:52: rastrillo: refusing to start: locale configuration: "en" needs the en pack: import _ "amadan.net/rastrillo/rastrillo/locales/en"
--- FAIL: TestStandaloneServesInlineStyles (0.31s)
    serving_test.go:91: rastrillo.Handler: rastrillo: refusing to start: locale configuration: "en" needs the en pack: import _ "amadan.net/rastrillo/rastrillo/locales/en"
--- FAIL: TestTheConfirmDoorKeepsEveryPolicy (0.30s)
    serving_test.go:115: rastrillo.Handler: rastrillo: refusing to start: locale configuration: "en" needs the en pack: import _ "amadan.net/rastrillo/rastrillo/locales/en"
--- FAIL: TestVendoredAssetsMatchTheLibrary (0.00s)
    vendored_test.go:80: read vendored fiesta.js: open ../slides/static/fiesta.js: no such file or directory
    vendored_test.go:80: read vendored anchor.js: open ../slides/static/anchor.js: no such file or directory
    vendored_test.go:80: read vendored transition.js: open ../slides/static/transition.js: no such file or directory
    vendored_test.go:80: read vendored light.js: open ../slides/static/light.js: no such file or directory
    vendored_test.go:84: static/shell.js differs from the library copy; re-copy it with rastrillo doctor --fix (or add it to vendoredIsMine if the edit was deliberate)
    vendored_test.go:80: read vendored copy.js: open ../slides/static/copy.js: no such file or directory
    vendored_test.go:84: static/calendar.js differs from the library copy; re-copy it with rastrillo doctor --fix (or add it to vendoredIsMine if the edit was deliberate)
    vendored_test.go:84: static/tokens.css differs from the library copy; re-copy it with rastrillo doctor --fix (or add it to vendoredIsMine if the edit was deliberate)
    vendored_test.go:80: read vendored live.js: open ../slides/static/live.js: no such file or directory
    vendored_test.go:84: static/datetime.js differs from the library copy; re-copy it with rastrillo doctor --fix (or add it to vendoredIsMine if the edit was deliberate)
    vendored_test.go:84: static/select.js differs from the library copy; re-copy it with rastrillo doctor --fix (or add it to vendoredIsMine if the edit was deliberate)
FAIL
FAIL	amadan.net/oficina/slides/internal/slidestest	61.988s
?   	amadan.net/oficina/slides/scripts/writeestilo	[no test files]
FAIL
make: *** [Makefile:87: test] Error 1

amadan: step gate failed: exit status 2

amadan: job failed at step gate — its output is above, not at the tail of this log
diff --git a/AGENTS.md b/AGENTS.md
index bb73e69..3d5005b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -975,6 +975,16 @@ store and `carlos domains attach slides.oficina.works`.
`SLIDES_INSTANCE_KEY` and `SLIDES_SMTP_PASS` go in via `carlos secrets`,
the rest via `carlos env`, mirroring Docs' set (spec §6.3).
+**Mail submission.** Ship every build with `--mail submit`: it declares
+that the build sends through CARLOS mail submission (`mail.FromCarlos`,
+`newMailer` in `cmd/slides`). Until `carlos email submission on --app
+slides` runs Slides keeps sending over SMTP; after it the agent sets
+`CARLOS_MAIL=submit` and Slides holds no SMTP credential, and every
+instance must run a build shipped with the flag. `carlos deploy` has no
+`--mail` flag yet (carlos main 9eec0236), so until it does use `carlos
+ship --app slides --account oficina --mail submit <binary>` and then
+`carlos promote --app slides --account oficina <version>`.
+
Verify against `x-carlos-version` on the real host or let `carlos deploy`
watch the URL. `carlos channels` reports which release a channel *points
at*, which is not the question of what the box is *serving* — adoption runs
diff --git a/Makefile b/Makefile
index 9ef23f8..cc08ddc 100644
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,9 @@ release: version-check
@echo
@echo "built $(RELEASE_BIN) reporting version $(VERSION)"
@echo "ship it with:"
- @echo " carlos ship -app $(APP) -target $(RELEASE_GOOS)-$(RELEASE_GOARCH) $(RELEASE_BIN)"
+ @echo " carlos ship -app $(APP) -mail submit -target $(RELEASE_GOOS)-$(RELEASE_GOARCH) $(RELEASE_BIN)"
+ @echo "then promote it (carlos deploy has no -mail flag yet; see README/AGENTS):"
+ @echo " carlos promote -app $(APP) <version>"
# version-check refuses rather than letting release ship a binary whose
# version is untrue. Both refusals are about the same thing: /api/version
diff --git a/cmd/slides/mail_test.go b/cmd/slides/mail_test.go
new file mode 100644
index 0000000..7c5d287
--- /dev/null
+++ b/cmd/slides/mail_test.go
@@ -0,0 +1,120 @@
+package main
+
+import (
+ "context"
+ "encoding/json"
+ "io"
+ "log/slog"
+ "net"
+ "net/http"
+ "os"
+ "path/filepath"
+ "strings"
+ "testing"
+
+ "amadan.net/rastrillo/rastrillo/mail"
+)
+
+// The three boots CARLOS platform mail submission needs (carlos plan
+// Task 9): on submission with the agent's socket, on SMTP alone, and
+// with neither, where newMailer returns nil and slides.New refuses
+// outside development (TestProductionRefusesEachMissingSetting,
+// "Mailer", in internal/slides).
+
+var mailVars = []string{"CARLOS_MAIL", "CARLOS_CONTROL_SOCKET",
+ "CARLOS_ADMIN_TOKEN", "CARLOS_MAIL_FROM", "SLIDES_MAIL_FROM"}
+
+func mailerWith(t *testing.T, env map[string]string) (mail.Sender, error) {
+ t.Helper()
+ for _, k := range mailVars {
+ t.Setenv(k, "")
+ }
+ for _, p := range []string{"SLIDES_SMTP_", "CARLOS_SMTP_"} {
+ for _, s := range []string{"HOST", "PORT", "USER", "PASS", "FROM"} {
+ t.Setenv(p+s, "")
+ }
+ }
+ for k, v := range env {
+ t.Setenv(k, v)
+ }
+ return newMailer(slog.New(slog.DiscardHandler))
+}
+
+// controlSocket stands in for the agent's socket: it answers POST
+// /v1/mail and reports each request's path and From.
+func controlSocket(t *testing.T) (string, chan string) {
+ t.Helper()
+ dir, err := os.MkdirTemp("/tmp", "slides-mail") // unix paths are short
+ if err != nil {
+ t.Fatal(err)
+ }
+ t.Cleanup(func() { os.RemoveAll(dir) })
+ socket := filepath.Join(dir, "control.sock")
+ ln, err := net.Listen("unix", socket)
+ if err != nil {
+ t.Fatal(err)
+ }
+ seen := make(chan string, 1)
+ srv := &http.Server{Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ var body struct {
+ From string `json:"from"`
+ }
+ raw, _ := io.ReadAll(r.Body)
+ _ = json.Unmarshal(raw, &body)
+ seen <- r.Method + " " + r.URL.Path + " " + body.From
+ w.Write([]byte(`{"message_id":"m-1"}`))
+ })}
+ go srv.Serve(ln)
+ t.Cleanup(func() { srv.Close() })
+ return socket, seen
+}
+
+func TestNewMailerSubmits(t *testing.T) {
+ for _, tc := range []struct{ name, fromVar, from string }{
+ {"the platform's From", "CARLOS_MAIL_FROM", "noreply@slides.oficina.works"},
+ {"Slides' own From first", "SLIDES_MAIL_FROM", "decks@slides.oficina.works"},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ socket, seen := controlSocket(t)
+ sender, err := mailerWith(t, map[string]string{
+ "CARLOS_MAIL": "submit", "CARLOS_CONTROL_SOCKET": socket,
+ "CARLOS_ADMIN_TOKEN": "token", tc.fromVar: tc.from,
+ // SMTP left over beside it is not used.
+ "CARLOS_SMTP_HOST": "email-smtp.eu-west-1.amazonaws.com",
+ "CARLOS_SMTP_FROM": "old@slides.oficina.works"})
+ if err != nil || sender == nil {
+ t.Fatalf("sender %v, err %v", sender, err)
+ }
+ if err := sender.Send(context.Background(), "ana@example.com", "Sign in", "link"); err != nil {
+ t.Fatal(err)
+ }
+ if got, want := <-seen, "POST /v1/mail "+tc.from; got != want {
+ t.Fatalf("got %q, want %q", got, want)
+ }
+ })
+ }
+}
+
+func TestNewMailerUsesSMTPAlone(t *testing.T) {
+ sender, err := mailerWith(t, map[string]string{
+ "CARLOS_SMTP_HOST": "email-smtp.eu-west-1.amazonaws.com",
+ "CARLOS_SMTP_FROM": "noreply@slides.oficina.works"})
+ if err != nil || sender == nil || !mail.IsConfigured(sender) {
+ t.Fatalf("sender %v, err %v", sender, err)
+ }
+}
+
+func TestNewMailerWithNeitherLeavesItToNew(t *testing.T) {
+ sender, err := mailerWith(t, nil)
+ if err != nil || sender != nil {
+ t.Fatalf("sender %v, err %v: with no channel slides.New must decide", sender, err)
+ }
+}
+
+func TestNewMailerRefusesHalfASubmission(t *testing.T) {
+ _, err := mailerWith(t, map[string]string{"CARLOS_MAIL": "submit",
+ "CARLOS_MAIL_FROM": "noreply@slides.oficina.works"})
+ if err == nil || !strings.Contains(err.Error(), "CARLOS_CONTROL_SOCKET") {
+ t.Fatalf("submission with no control socket: %v", err)
+ }
+}
diff --git a/cmd/slides/main.go b/cmd/slides/main.go
index 98a8083..aaf1452 100644
--- a/cmd/slides/main.go
+++ b/cmd/slides/main.go
@@ -122,25 +122,45 @@ func smtpSecret(name string) string {
return os.Getenv("CARLOS_SMTP_" + name)
}
-// newMailer builds the magic-link sender from the SMTP settings above.
+// newMailer builds the magic-link sender: CARLOS mail submission when
+// the agent turned it on, else SMTP from the settings above.
//
-// mail.SMTP directly rather than mail.FromEnv, because FromEnv reads
-// one prefix and this needs the per-variable SLIDES-then-CARLOS
-// fallback. It also falls back to a warning-and-log sender when HOST or
-// FROM is missing, which is the wrong answer outside development: a nil
-// return here is what lets slides.New refuse to start rather than
-// quietly logging live credentials in a real deployment's log.
+// Submission ($CARLOS_MAIL=submit, which only the CARLOS agent sets,
+// with its control socket) goes through rastrillo's mail.FromCarlos,
+// and the instance holds no mail credential. The From is
+// $SLIDES_MAIL_FROM when set, else $CARLOS_MAIL_FROM, the one the
+// platform delivers for Slides' CARLOS_SMTP declaration: the same
+// SLIDES-then-CARLOS order as the SMTP settings. A submission missing
+// its socket, token or From is an error, so Slides refuses to start
+// rather than failing the first sign-in. main calls this only on the
+// serving path: a CARLOS seed or one-shot has no control socket, and
+// the agent strips $CARLOS_MAIL from it.
+//
+// SMTP is mail.SMTP directly rather than mail.FromEnv or FromCarlos,
+// because both read one prefix and this needs the per-variable
+// SLIDES-then-CARLOS fallback. FromEnv also falls back to a
+// warning-and-log sender when HOST or FROM is missing, which is the
+// wrong answer outside development: a nil return here is what lets
+// slides.New refuse to start rather than quietly logging live
+// credentials in a real deployment's log.
//
// HOST and FROM are the two values with no sane default, so either one
// missing means this instance has no relay. PORT defaults to 587 inside
// mail.SMTP; USER empty means anonymous submission.
-func newMailer(logger *slog.Logger) mail.Sender {
+func newMailer(logger *slog.Logger) (mail.Sender, error) {
+ if os.Getenv("CARLOS_MAIL") == "submit" {
+ prefix := "CARLOS"
+ if strings.TrimSpace(os.Getenv("SLIDES_MAIL_FROM")) != "" {
+ prefix = "SLIDES"
+ }
+ return mail.FromCarlos(prefix, logger)
+ }
host, from := smtpSetting("HOST"), smtpSetting("FROM")
if host == "" || from == "" {
- return nil
+ return nil, nil
}
logger.Info("slides: SMTP configured", "host", host, "from", from)
- return mail.SMTP(host, smtpSetting("PORT"), from, smtpSecret("USER"), smtpSecret("PASS"))
+ return mail.SMTP(host, smtpSetting("PORT"), from, smtpSecret("USER"), smtpSecret("PASS")), nil
}
// newBlobs binds the object store: the platform's bucket when it
@@ -245,6 +265,12 @@ func main() {
os.Exit(1)
}
+ mailer, err := newMailer(logger)
+ if err != nil {
+ logger.Error("configure mail", "err", err)
+ os.Exit(1)
+ }
+
d, err := db.Open(opts.DBPath, logger)
if err != nil {
logger.Error("open database", "err", err)
@@ -260,7 +286,7 @@ func main() {
Origin: origin,
Env: env,
InstanceKey: os.Getenv("SLIDES_INSTANCE_KEY"),
- Mailer: newMailer(logger),
+ Mailer: mailer,
// Split here rather than inside New so Config carries a value
// that is already the shape it means: a list of addresses, not
// a string that happens to have commas in it.
diff --git a/go.mod b/go.mod
index 7f702e6..636254a 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module amadan.net/oficina/slides
-go 1.25.0
+go 1.26.0
toolchain go1.26.5
@@ -12,13 +12,13 @@ require (
amadan.net/oficina/home/handoff v0.0.0-20261024233715-ff16bf56bc4d
amadan.net/oficina/home/roster v0.0.0-20261028171508-67c12e39a9d2
amadan.net/oficina/home/teammode v0.0.0-20261028171508-67c12e39a9d2
- amadan.net/rastrillo/rastrillo v0.27.1-0.20261006204347-fb806a287060
- github.com/chromedp/cdproto v0.0.0-20250724212937-08a3db8b4327
- github.com/chromedp/chromedp v0.14.2
+ amadan.net/rastrillo/rastrillo v0.35.1-0.20261116213651-96812beacacc
+ github.com/chromedp/cdproto v0.158.6
+ github.com/chromedp/chromedp v0.21.0
github.com/go-chi/chi/v5 v5.3.2
- github.com/go-json-experiment/json v0.0.0-20250725192818-e39067aee2d2
+ github.com/go-json-experiment/json v0.0.0-20260820222146-c27c302e5fc3
github.com/google/uuid v1.6.0
- github.com/modelcontextprotocol/go-sdk v1.7.0
+ github.com/modelcontextprotocol/go-sdk v1.8.0
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
github.com/tetratelabs/wazero v1.12.0
golang.org/x/image v0.44.0
@@ -27,15 +27,12 @@ require (
)
require (
+ amadan.net/rastrillo/fiesta v1.3.0 // indirect
amadan.net/rastrillo/rastrillo/money v0.1.0 // indirect
github.com/BurntSushi/toml v1.6.0 // indirect
github.com/carlosframework/rastrillo v0.23.0 // indirect
- github.com/chromedp/sysutil v1.1.0 // indirect
github.com/danieljoos/wincred v1.2.3 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
- github.com/gobwas/httphead v0.1.0 // indirect
- github.com/gobwas/pool v0.2.1 // indirect
- github.com/gobwas/ws v1.4.0 // indirect
github.com/godbus/dbus/v5 v5.2.2 // indirect
github.com/gofrs/flock v0.12.1 // indirect
github.com/google/jsonschema-go v0.4.3 // indirect
@@ -48,13 +45,16 @@ require (
github.com/santhosh-tekuri/jsonschema/v6 v6.0.3 // indirect
github.com/segmentio/asm v1.1.3 // indirect
github.com/segmentio/encoding v0.5.4 // indirect
+ github.com/tdewolff/minify/v2 v2.24.19 // indirect
+ github.com/tdewolff/parse/v2 v2.8.16 // indirect
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
github.com/zalando/go-keyring v0.2.8 // indirect
- golang.org/x/mod v0.37.0 // indirect
+ golang.org/x/mod v0.38.0 // indirect
golang.org/x/sync v0.22.0 // indirect
- golang.org/x/sys v0.46.0 // indirect
- golang.org/x/text v0.40.0 // indirect
+ golang.org/x/sys v0.47.0 // indirect
+ golang.org/x/text v0.41.0 // indirect
golang.org/x/time v0.15.0 // indirect
+ golang.org/x/tools v0.48.0 // indirect
gorm.io/plugin/dbresolver v1.6.2 // indirect
modernc.org/libc v1.74.1 // indirect
modernc.org/mathutil v1.7.1 // indirect
diff --git a/go.sum b/go.sum
index a3a08b3..9ac1ea1 100644
--- a/go.sum
+++ b/go.sum
@@ -12,20 +12,20 @@ amadan.net/oficina/home/roster v0.0.0-20261028171508-67c12e39a9d2 h1:yKUTS0nOiVw
amadan.net/oficina/home/roster v0.0.0-20261028171508-67c12e39a9d2/go.mod h1:gqshuXyDtFZUCYbhuZyV3Epc51pUcsLbpqAqiA5UiXg=
amadan.net/oficina/home/teammode v0.0.0-20261028171508-67c12e39a9d2 h1:0PQiRUkC+9cbTHE67Y4/SmW1sPH1NNWNwTceNFyMjTY=
amadan.net/oficina/home/teammode v0.0.0-20261028171508-67c12e39a9d2/go.mod h1:dXBZeB2ic33SIZiGUCzafmviUT8TYWgzSYZvo2rM6zA=
-amadan.net/rastrillo/rastrillo v0.27.1-0.20261006204347-fb806a287060 h1:K2PXcCKfm+AYrqgH1ea6cNsFs4sN7MKLvq+uBY11NZE=
-amadan.net/rastrillo/rastrillo v0.27.1-0.20261006204347-fb806a287060/go.mod h1:WmC8TAIfqjAkSwmD+FCTqr7VuqAO5FaX03HlV49K608=
+amadan.net/rastrillo/fiesta v1.3.0 h1:7SsHw4aeWPLStR3RHFEEtX4CwqKu+Ig3PgNX8FvD8WM=
+amadan.net/rastrillo/fiesta v1.3.0/go.mod h1:LpO391W1dIRUxOIKklHm+bGyWXtlFyBRRPQCysb9LjY=
+amadan.net/rastrillo/rastrillo v0.35.1-0.20261116213651-96812beacacc h1:QakboVkj9nqA6ZaKXeDVXWLPobQSVvd80ic521aA8/U=
+amadan.net/rastrillo/rastrillo v0.35.1-0.20261116213651-96812beacacc/go.mod h1:y45ucMD+Al4tN47mmnm7h6pGDw7N20k0CMg6IwB9vfc=
amadan.net/rastrillo/rastrillo/money v0.1.0 h1:MxU4oqNrW8abxRTkgZBv24OYNpFnvonajNqeLIzmmaM=
amadan.net/rastrillo/rastrillo/money v0.1.0/go.mod h1:cmgkjBEIQh1pFSYvQk0UU6oPYS8kSDypdT9+t4Flx0U=
github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk=
github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
github.com/carlosframework/rastrillo v0.23.0 h1:tKAAlwPt4Pg/rkqk7o6jvV12bbZ0r34oEVpuOlKfX7w=
github.com/carlosframework/rastrillo v0.23.0/go.mod h1:pZlrE5F5OhspvZFzef0DrfjHAjA8FXycb9J5/8vc8Tw=
-github.com/chromedp/cdproto v0.0.0-20250724212937-08a3db8b4327 h1:UQ4AU+BGti3Sy/aLU8KVseYKNALcX9UXY6DfpwQ6J8E=
-github.com/chromedp/cdproto v0.0.0-20250724212937-08a3db8b4327/go.mod h1:NItd7aLkcfOA/dcMXvl8p1u+lQqioRMq/SqDp71Pb/k=
-github.com/chromedp/chromedp v0.14.2 h1:r3b/WtwM50RsBZHMUm9fsNhhzRStTHrKdr2zmwbZSzM=
-github.com/chromedp/chromedp v0.14.2/go.mod h1:rHzAv60xDE7VNy/MYtTUrYreSc0ujt2O1/C3bzctYBo=
-github.com/chromedp/sysutil v1.1.0 h1:PUFNv5EcprjqXZD9nJb9b/c9ibAbxiYo4exNWZyipwM=
-github.com/chromedp/sysutil v1.1.0/go.mod h1:WiThHUdltqCNKGc4gaU50XgYjwjYIhKWoHGPTUfWTJ8=
+github.com/chromedp/cdproto v0.158.6 h1:jaKiXWuhcxbvKbSe8U6Dp5U4Hcj2w6lETYgZqBD5n34=
+github.com/chromedp/cdproto v0.158.6/go.mod h1:h68JaIuFr9o3yiayxEYhBdvaxgYO3shDrPSYhNlyfu0=
+github.com/chromedp/chromedp v0.21.0 h1:nVHgS2LHyhZJ1l3BWRbG2eFIFYiJMnvkJbELbd8WBoQ=
+github.com/chromedp/chromedp v0.21.0/go.mod h1:6z1Y5FdKUxRzxx2qcC5h1xjaBJrSWrZp1mjgITfNZig=
github.com/danieljoos/wincred v1.2.3 h1:v7dZC2x32Ut3nEfRH+vhoZGvN72+dQ/snVXo/vMFLdQ=
github.com/danieljoos/wincred v1.2.3/go.mod h1:6qqX0WNrS4RzPZ1tnroDzq9kY3fu1KwE7MRLQK4X0bs=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
@@ -36,16 +36,10 @@ github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkp
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/go-chi/chi/v5 v5.3.2 h1:5YQkICvTCSZ25hoRsyJazN0scjzKGiu4VAUc7H1o1nY=
github.com/go-chi/chi/v5 v5.3.2/go.mod h1:R+tYY2hNuVUUjxoPtqUdgBqevM9s9njzkTLutVsOCto=
-github.com/go-json-experiment/json v0.0.0-20250725192818-e39067aee2d2 h1:iizUGZ9pEquQS5jTGkh4AqeeHCMbfbjeb0zMt0aEFzs=
-github.com/go-json-experiment/json v0.0.0-20250725192818-e39067aee2d2/go.mod h1:TiCD2a1pcmjd7YnhGH0f/zKNcCD06B029pHhzV23c2M=
+github.com/go-json-experiment/json v0.0.0-20260820222146-c27c302e5fc3 h1:UADEEmDKgfXbtnGJZ97beY5XLo9ZechG1nlU4KnRrkE=
+github.com/go-json-experiment/json v0.0.0-20260820222146-c27c302e5fc3/go.mod h1:tphK2c80bpPhMOI4v6bIc2xWywPfbqi1Z06+RcrMkDg=
github.com/go-sql-driver/mysql v1.7.0 h1:ueSltNNllEqE3qcWBTD0iQd3IpL/6U+mJxLkazJ7YPc=
github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI=
-github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU=
-github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM=
-github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og=
-github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
-github.com/gobwas/ws v1.4.0 h1:CTaoG1tojrh4ucGPcoJFiAQUAsEWekEWvLy7GsVNqGs=
-github.com/gobwas/ws v1.4.0/go.mod h1:G3gNqMNtPppf5XUz7O4shetPpcZ1VJ7zt18dlUeakrc=
github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ=
github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c=
github.com/gofrs/flock v0.12.1 h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E=
@@ -68,18 +62,14 @@ github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
github.com/keymaildev/signin v0.1.1 h1:gO+1IAM99sqUkBtCezkgGxab+/DOrqwDxd5H32N1s9Q=
github.com/keymaildev/signin v0.1.1/go.mod h1:Eb/sCmEel1jlcdkgPOrNeMn5jvxzoFvJrdjDUxOBHls=
-github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80 h1:6Yzfa6GP0rIo/kULo2bwGEkFvCePZ3qHDDTC3/J9Swo=
-github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80/go.mod h1:imJHygn/1yfhB7XSJJKlFZKl/J+dCPAknuiaGOshXAs=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
-github.com/modelcontextprotocol/go-sdk v1.7.0 h1:yqjY2dsbKAC0LSuWZVBMrHgiG8ukXv6NRo0JiALay44=
-github.com/modelcontextprotocol/go-sdk v1.7.0/go.mod h1:dL7u98E/zjJTGzEq+j30jQ8K2k1mb6LeAH4inEcSGts=
+github.com/modelcontextprotocol/go-sdk v1.8.0 h1:KIvahhYqwtbeniWVPs3TcXEA7b8jEtwfBpOTAI+Urx4=
+github.com/modelcontextprotocol/go-sdk v1.8.0/go.mod h1:dL7u98E/zjJTGzEq+j30jQ8K2k1mb6LeAH4inEcSGts=
github.com/ncruces/go-strftime v1.0.0 h1:HMFp8mLCTPp341M/ZnA4qaf7ZlsbTc+miZjCLOFAw7w=
github.com/ncruces/go-strftime v1.0.0/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
-github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde h1:x0TT0RDC7UhAVbbWWBzr41ElhJx5tXPWkIHA2HWPRuw=
-github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
@@ -96,6 +86,12 @@ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
+github.com/tdewolff/minify/v2 v2.24.19 h1:j2exx54gvrCFN9UiFm0Z5vbNWBFcuY5Ql1VmaM2Dkeo=
+github.com/tdewolff/minify/v2 v2.24.19/go.mod h1:HVgQO08FJeDxQx+lcFOVDi1IySi/77WlN/dDckCkZoA=
+github.com/tdewolff/parse/v2 v2.8.16 h1:bLk5svUOQRkW/Y2SJ+DeENSIkZBcTIkq+Atyv5D8feI=
+github.com/tdewolff/parse/v2 v2.8.16/go.mod h1:XdsoSFThlVIRIajAuqz1evNY7bagZS8LBOPA3aVopwQ=
+github.com/tdewolff/test v1.0.12 h1:7F21DqIajswxuche0geHdrUZRCWE4oko4b7bcmkkrxk=
+github.com/tdewolff/test v1.0.12/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8=
github.com/tetratelabs/wazero v1.12.0 h1:DuWcpNu/FzgEXgGBDp8J1Spc+CWOvvtvVyjKlaZopYU=
github.com/tetratelabs/wazero v1.12.0/go.mod h1:LvKtzl2RqO4gyF27BiXU+nKAjcV8f38U+kP/q2vgxh0=
github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4=
@@ -104,21 +100,21 @@ github.com/zalando/go-keyring v0.2.8 h1:6sD/Ucpl7jNq10rM2pgqTs0sZ9V3qMrqfIIy5YPc
github.com/zalando/go-keyring v0.2.8/go.mod h1:tsMo+VpRq5NGyKfxoBVjCuMrG47yj8cmakZDO5QGii0=
golang.org/x/image v0.44.0 h1:+tDekMZED9+LrtB3G5xzRggpVh9CARjZqROla3R3R+I=
golang.org/x/image v0.44.0/go.mod h1:V8K3KE9KKKE+pLpQDOeN18w9oacNSvy1tDOirTu4xtY=
-golang.org/x/mod v0.37.0 h1:vF1DjpVEshcIqoEaauuHebaLk1O1forxjxBaVn884JQ=
-golang.org/x/mod v0.37.0/go.mod h1:m8S8VeM9r4dzDwjrKO0a1sZP3YjeMamRRlD+fmR2Q/0=
+golang.org/x/mod v0.38.0 h1:MECBjubtXD7yj4HrhIUcywNaGeNVUdfVnxmPajOk4yk=
+golang.org/x/mod v0.38.0/go.mod h1:V6Xz0pq8TQ3dGqVQ1FVHuelZpAL0uNhSkk9ogYP3c40=
golang.org/x/oauth2 v0.35.0 h1:Mv2mzuHuZuY2+bkyWXIHMfhNdJAdwW3FuWeCPYN5GVQ=
golang.org/x/oauth2 v0.35.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek=
golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw=
-golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
-golang.org/x/text v0.40.0 h1:Ub2Z6/xjgF1WrYQz2nuITOEegKFtiIy+rieRJ5lHZKs=
-golang.org/x/text v0.40.0/go.mod h1:hpnzDAfGV753zIKo+wk3u1bVKCGPbrnF7+7LBF/UHVY=
+golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
+golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
+golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
+golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=
golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U=
golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno=
-golang.org/x/tools v0.47.0 h1:7Kn5x/d1svx/PzryTsqeoZN4TZwqeH5pGWjefhLi/1Q=
-golang.org/x/tools v0.47.0/go.mod h1:dFHnyTvFWY212G+h7ZY4Vsp/K3U4/7W9TyVaAul8uCA=
+golang.org/x/tools v0.48.0 h1:3+hClM1aLL5mjMKm5ovokw9epgRXPuu2tILgismM6RE=
+golang.org/x/tools v0.48.0/go.mod h1:08xX0orndb/F7jJxGDicx061tyd5pcMto75YMAXr6lk=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gorm.io/driver/mysql v1.5.7 h1:MndhOPYOfEp2rHKgkZIhJ16eVUIRf2HmzgoPmh7FCWo=
diff --git a/internal/slides/auth.go b/internal/slides/auth.go
index 3f8e117..ea9b389 100644
--- a/internal/slides/auth.go
+++ b/internal/slides/auth.go
@@ -94,7 +94,7 @@ func resolveMailer(cfg Config, logger *slog.Logger) (mail.Sender, error) {
return cfg.Mailer, nil
}
if !cfg.development() {
- return nil, fmt.Errorf("slides: mail is not configured and Env is %q, not %q — refusing to start: a sign-in that cannot send its link is not sign-in. Set $SLIDES_SMTP_HOST and $SLIDES_SMTP_FROM, or run `carlos email enable` for this app and let $CARLOS_SMTP_HOST supply the relay", cfg.Env, EnvDevelopment)
+ return nil, fmt.Errorf("slides: mail is not configured and Env is %q, not %q — refusing to start: a sign-in that cannot send its link is not sign-in. Switch the app to CARLOS mail submission (the agent then sets $CARLOS_MAIL=submit), run `carlos email enable` for this app and let $CARLOS_SMTP_HOST supply the relay, or set $SLIDES_SMTP_HOST and $SLIDES_SMTP_FROM", cfg.Env, EnvDevelopment)
}
// mail.Logged labels every send loudly itself — see its own doc
// comment. Never reached outside development.
diff --git a/internal/slides/config.go b/internal/slides/config.go
index 6399407..a32e971 100644
--- a/internal/slides/config.go
+++ b/internal/slides/config.go
@@ -96,7 +96,9 @@ type Config struct {
// live credential in a real deployment's log is the mistake that
// fallback exists to flag, not to absorb.
//
- // cmd/slides/main.go builds it from $SLIDES_SMTP_{HOST,PORT,USER,
+ // cmd/slides/main.go builds it (newMailer): CARLOS mail submission
+ // through rastrillo's mail.FromCarlos when the agent set
+ // $CARLOS_MAIL=submit, else SMTP from $SLIDES_SMTP_{HOST,PORT,USER,
// PASS,FROM}, falling back per variable to the $CARLOS_SMTP_*
// equivalent that `carlos email enable` delivers — see smtpSetting
// there for why the fallback is per variable rather than per set.
diff --git a/internal/slides/exports.go b/internal/slides/exports.go
index b57454e..edd3ed6 100644
--- a/internal/slides/exports.go
+++ b/internal/slides/exports.go
@@ -463,7 +463,7 @@ func (a *app) startExport(w http.ResponseWriter, r *http.Request) {
// it would do it inside a job, where the answer is a failed status
// page rather than a sentence on the form.
if n, counted := a.slideCount(r.Context(), d); counted && n > MaxExportSlides {
- flash.Set(w, "error", rastrillo.Tf(r, "slides.export.error.toomany", "max", MaxExportSlides))
+ flash.Set(w, r, "error", rastrillo.Tf(r, "slides.export.error.toomany", "max", MaxExportSlides))
http.Redirect(w, r, back, http.StatusSeeOther)
return
}
@@ -487,7 +487,7 @@ func (a *app) startExport(w http.ResponseWriter, r *http.Request) {
a.exportJob(id, d, actorFor(u), withNotes, words))
switch {
case errors.Is(err, jobs.ErrOwnerBusy):
- flash.Set(w, "error", rastrillo.T(r, "slides.export.error.busy"))
+ flash.Set(w, r, "error", rastrillo.T(r, "slides.export.error.busy"))
http.Redirect(w, r, back, http.StatusSeeOther)
return
case err != nil: