Changes: Propose the pinned XMPP library decision and add an isolated browser-built selection spike combining reviewed public SASL, SHA-512 and parser seams. Exercise TLS/xmpp handshake, strongest compatible non-PLUS authentication, rejected unsafe paths and extension mappings; document duplicate-body export projection and remaining limits. Preserve dependency notices, evidence and QA handoff. Validation: Clean-cache pinned npm ci succeeded; npm test passed 112 checks; check-dependencies.py verified 51 locked entries, 26 installed packages and 340 unchanged vendor files; make check passed 72 tooling tests. No actual browser runtime, independent full XMPP server/client or production encryption/release readiness claim. Task: S00-003 Agent: auto-protocol-f474114f0168 Role: protocol Action: claim Status: review Task title: Проверить XMPP WSS/auth библиотеку
130 lines
8.2 KiB
Markdown
130 lines
8.2 KiB
Markdown
# S00-003 executor evidence
|
|
|
|
Agent: auto-protocol-f474114f0168 (protocol), 2026-10-15.
|
|
Result: proposed Stanza selection with combined runnable spike; independent QA pending.
|
|
|
|
Input: master/AGENTS/README/common/protocol; profile, architecture, contracts,
|
|
workflow, automation, Git, required TESTING and decisions registry; assigned
|
|
resume/show/card/context packet, previous blocked handoff; exact immutable
|
|
ACC-004/NET-003/NET-004; accepted scope/stack/SASL/parser/SHA512 ADRs, direct
|
|
prerequisite evidence and handoffs, remediation independent reviews including
|
|
S00-020; shipped vendor API/source. No missing input or unresolved blocker.
|
|
No repeat claim, agent launch, other task execution or Git mutation.
|
|
|
|
One output: proposed docs/decisions/0002-xmpp-library.md and isolated
|
|
experiments/0002-xmpp-library/selection-spike. Source scope unchanged elsewhere;
|
|
workflow evidence/handoff/message are metadata. Original parent manifest/lock,
|
|
accepted experiments/ADRs, shared contracts and spec snapshots unchanged.
|
|
Initial git status showed only coordinator state/tasks.json claim modification.
|
|
|
|
## Actual commands and results
|
|
|
|
All npm/node commands used PATH=/tmp/luma-S00-026-j1pmys7w/node-v24.21.0-linux-x64/bin:$PATH
|
|
from project root (authentic Linux runtime independently accepted by S00-020).
|
|
|
|
- python3 scripts/tasks.py resume --agent auto-protocol-f474114f0168 and
|
|
python3 scripts/tasks.py show S00-003: exit 0 each; assigned in_progress.
|
|
python3 scripts/tasks.py packet S00-003 --agent auto-protocol-f474114f0168:
|
|
exit 0, exact packet retrieved again before handoff.
|
|
- node --version / npm --version: exit 0 each, v24.21.0 / 11.19.0.
|
|
- npm install --prefix experiments/0002-xmpp-library/selection-spike
|
|
--ignore-scripts --no-audit --no-fund --strict-ssl=true --engine-strict=true
|
|
--fetch-retries=0 --fetch-timeout=15000 --cache /tmp/luma-selection-cache:
|
|
exit 0, 26 packages, independent lock generated. No upgrade notice acted on.
|
|
- Initial npm test: exit 1, 3/17 passed. Fixture incorrectly supplied endpoint
|
|
as {url:...}; shipped Client.connect requires string. Corrected only test
|
|
config; rerun exit 0, 17/17. This was a harness error, not missing WSS support.
|
|
- Extension test development npm test: exit 1, 21/23 passed. Guessed upload field
|
|
was wrong (actual public shape httpUpload.download); raw imported MAM export
|
|
exposed duplicated body projection. Inspected shipped mapping and diagnostic
|
|
import/export, corrected field assertion and made explicit fixture export
|
|
projection. Rerun exit 0, 23/23. Added permanent raw duplicate regression;
|
|
finding and future adapter obligation retained in ADR, not hidden as a pass.
|
|
- Copied unchanged reviewed SHA512 backend/feature-dispatcher regressions into
|
|
this independent package; npm test exit 0, 110 passed. No crypto reimplementation.
|
|
- npm ci --prefix experiments/0002-xmpp-library/selection-spike --ignore-scripts
|
|
--no-audit --no-fund --engine-strict=true --strict-ssl=true --fetch-retries=0
|
|
--fetch-timeout=15000 --cache /tmp/luma-S00-003-clean-f474114f0168:
|
|
exit 0, new empty cache, 26 installed packages. Lock retained; scripts disabled.
|
|
- Final npm test --prefix experiments/0002-xmpp-library/selection-spike
|
|
> /tmp/luma-S00-003-final-tests.log 2>&1: exit 0 after clean install;
|
|
build 171 modules, browser.mjs 695.84 kB / gzip 141.63 kB;
|
|
112 passed, zero failures/skips/cancellations, duration 3121.874019 ms.
|
|
Final two checks add plaintext-endpoint rejection and explicit raw-export
|
|
regression. No plugin/transport/crypto source changes after clean install.
|
|
- python3 experiments/0002-xmpp-library/selection-spike/check-dependencies.py:
|
|
exit 0 before and after clean install; 51 lock entries, 26 installed exact
|
|
pins/notices, HTTPS registry/SHA512 integrity, all 340 Stanza files match
|
|
independently installed environment-access vendor graph; reviewed parser,
|
|
SHA512 alias and saxes license byte-identical. Browser module graph verified.
|
|
- make check > /tmp/luma-S00-003-check.log 2>&1: exit 0; 296 tasks / 22 stages,
|
|
221 requirements, 211 allocated Web requirements; 72 tooling tests in 18.819s.
|
|
Foundation checks only, not application readiness.
|
|
- git diff --check: exit 0. Final source scope and authored whitespace checked
|
|
separately including untracked files; final result recorded below.
|
|
|
|
## Demonstrated result and evidence boundaries
|
|
|
|
Real loopback HTTPS + ws fixture peer, ephemeral OpenSSL localhost certificate,
|
|
explicit per-fixture CA trust and rejectUnauthorized:true. Actual TLS hostname
|
|
validation remains; native WebSocket without fixture CA rejects that certificate.
|
|
No system trust/network/proxy change, disabled TLS, CORS bypass or real provider.
|
|
Plain ws endpoint rejects before socket construction. Private keys exist only
|
|
in temporary test directory and are deleted by test cleanup; no committed key.
|
|
|
|
Tests import actual browser-built Client, Registry, SCRAM and bounded transport.
|
|
Client.connect/queue/feature dispatcher run unchanged. Peer observes TLS and xmpp
|
|
subprotocol, framing open, exact fixed proof and restart only after verified
|
|
final. Mixed offers choose SHA512, then SHA256, then SHA1 as available. Public
|
|
RFC SHA1/256 and independently accepted Scramp SHA512 transcript fixtures are
|
|
compared exactly. Forged/premature final never succeeds or restarts. PLUS-only,
|
|
PLAIN-only and empty offers fail; diagnostics report binding unavailable and
|
|
fallback disabled. Existing regression rejects synthetic tlsUnique, verifies
|
|
n,,/c=biws, reset/order/send races and lack of persisted derived cache.
|
|
|
|
WSS oversized/incomplete messages close before any stanza delivery; pre-import
|
|
checks also reject depth, multiple roots, DTD and binary types. Full resource
|
|
and stale-callback evidence remains in byte-identical accepted parser source and
|
|
S00-018 tests; those standalone suites were not separately rerun here.
|
|
Registry import/export fixtures preserve MAM IDs, MUC join, Jingle session ID,
|
|
upload URL, legacy opaque bytes and invented plugin namespace isolation.
|
|
Raw dual-body export duplication is deliberately reproduced, with explicit
|
|
single-representation export for the MAM fixture. This is an API mapping limit
|
|
for future adapters, not an unreviewed shared-interface change.
|
|
|
|
## Digests and limitations
|
|
|
|
SHA256:
|
|
- package-lock.json: 02bb48038b194b72efc688752927815e3de94bf589bfe1d2e5bcee68283c4abc
|
|
- validated-sasl.mjs: 42a7e751565c27b45eee371852973d3613d26981586b48271d78586141466d61
|
|
- dist/browser.mjs: b95b0ba5c2fbf5d52b5b1e62c40f6b4d5669d22499cbfef0fe3d88b6bf708cee
|
|
|
|
Primary sources opened through web tools on 2026-10-15: RFC7395, RFC5802,
|
|
Stanza and xmpp.js upstream, XEP0313/0045/0166/0363. Exact shipped pinned source
|
|
supplies authoritative API/version behavior. Candidate comparison is documentary
|
|
for xmpp.js, not installed/tested equivalence. Dated source links are in ADR.
|
|
License inventory includes optional hosts; installed notices include Stanza
|
|
ancestry, preserved saxes upstream license and unmodified MPL build dependencies.
|
|
No advisory/provenance clearance claimed.
|
|
|
|
No actual browser runtime, independent full XMPP server/client, OMEMO encryption,
|
|
OMEMO2 wire validation, product support matrix, load/timing/security audit or
|
|
release readiness. Browser artifact executes in Node with native host APIs and
|
|
an injected trusted fixture socket; no browser channel binding is available.
|
|
Strict SCRAM profile, no timeout, synchronous derivation/string verifier equality,
|
|
local ingress limits, incomplete stream lifecycle and unbounded aggregate queues
|
|
remain disclosed in ADR. Public extension seam is verified, future API stability
|
|
is not promised. No real accounts/conversations/secrets or fake crypto used.
|
|
|
|
QA should inspect source/diff/message, repeat README with fresh cache and pinned
|
|
runtime, verify dependency graph/notices/unchanged vendor and limitations, then
|
|
record an independent review decision. Executor submits and stops; coordinator
|
|
commits before review. Proposed ADR is not independently accepted yet.
|
|
|
|
Final verification: first inline whitespace assertion failed on verbatim
|
|
THIRD_PARTY_NOTICES.md upstream trailing spaces; it was not an implementation
|
|
failure and notices were preserved unchanged. Corrected inspection exempts
|
|
verbatim notices/license texts: exit 0, all changed paths within task scope or
|
|
allowed metadata, authored final-newline/trailing-whitespace checks passed.
|
|
git diff --check exited 0. No failed check is described as passed.
|