S00-021: Approve S00-021: independently verified browser OMEMO blocker

Changes:
- Wrote state/evidence/S00-021-review.md recording independent re-checks of the
  executor's remediation for S00-004's interruption ("Agent timed out before
  escalation").
- Reproduced both committed probes unchanged: smoke.mjs exit 0 (SMOKE_PASS,
  631-byte session record byte-for-byte reload) and wasm-unsupported.mjs exit 2
  (wasmFiles 0, native-only prebuilds), matching executor evidence exactly.
- Independently re-queried npm registry: @signalapp/libsignal (browser WASM) E404;
  @signalapp/libsignal-client 0.105.0 (native, AGPL-3.0) exists; confirms the
  browser/worker/WASM + OMEMO2 wire-layer blocker is genuine.
- Audited scope via git: commit 30f7f22 touches only the in-scope ADR
  docs/decisions/0003-crypto-library.md plus workflow metadata; experiments/**
  unchanged; working tree clean. No requirement bypass: S00-004 remains blocked,
  ADR 0003 records the honest blocker and forbids done on persistence+Ratchet alone.

Validation:
- make check: 72 tooling tests OK.
- Both probes reproduced, exit codes and output match evidence.
- Acceptance met: interruption repro row exists for next executor; original not
  declared done via bypass.

Task: S00-021
Reviewer agent: auto-security-5d2ae592b569
Role: security
Action: approve

Task: S00-021
Agent: auto-security-5d2ae592b569
Role: security
Action: review
Status: done

Task title: Устранить прерывание: Проверить browser OMEMO backend
This commit is contained in:
wt committed 2026-10-15 15:40:32 +07:00
1 parent 30f7f222d2
commit a02412d7c7
6 files changed
+149 -19

No files matched your search

+3 -3
View File
@@ -1,13 +1,13 @@
# Матрица задач
Generated; state revision **59**. Canonical status: state/tasks.json.
Generated; state revision **60**. Canonical status: state/tasks.json.
| ID | Этап | Оператор | Reviewer | Статус | Owner | Зависимости | Задача |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [S00-001](tasks/S00-001.md) | S00 | orchestrator | security | done | auto-orchestrator-48aab142ecde | | Утвердить Web-профиль |
| [S00-002](tasks/S00-002.md) | S00 | orchestrator | security | done | auto-orchestrator-68a05c587e33 | S00-001, S00-011, S00-012 | Выбрать framework и build runtime |
| [S00-003](tasks/S00-003.md) | S00 | protocol | qa | blocked | auto-protocol-59f4d359b339 | S00-001, S00-002, S00-017, S00-018, S00-019, S00-020 | Проверить XMPP WSS/auth библиотеку |
| [S00-004](tasks/S00-004.md) | S00 | crypto | security | blocked | auto-crypto-8bf3dcf711b9 | S00-001, S00-002, S00-021 | Проверить browser OMEMO backend |
| [S00-004](tasks/S00-004.md) | S00 | crypto | security | todo | | S00-001, S00-002, S00-021 | Проверить browser OMEMO backend |
| [S00-005](tasks/S00-005.md) | S00 | storage | qa | todo | | S00-002 | Выбрать IndexedDB wrapper и migration policy |
| [S00-006](tasks/S00-006.md) | S00 | orchestrator | security | todo | | S00-002 | Зафиксировать browser/reference matrix |
| [S00-007](tasks/S00-007.md) | S00 | security | orchestrator | todo | | S00-004, S00-005 | Утвердить password и crypto unlock модель |
@@ -23,7 +23,7 @@ Generated; state revision **59**. Canonical status: state/tasks.json.
| [S00-018](tasks/S00-018.md) | S00 | protocol | security | done | auto-protocol-89fe6563092c | S00-001, S00-002, S00-017 | Validate bounded standalone XML ingress for the XMPP candidate |
| [S00-019](tasks/S00-019.md) | S00 | crypto | security | done | auto-crypto-c68801170fa4 | S00-001, S00-002, S00-017, S00-018 | Validate browser-compatible SCRAM-SHA-512 through a public mechanism API |
| [S00-020](tasks/S00-020.md) | S00 | ci-cd | qa | in_progress | auto-ci-cd-5a18c8aa1b42 | S00-001, S00-002, S00-017, S00-018, S00-019 | Restore access to the pinned Linux XMPP experiment toolchain |
| [S00-021](tasks/S00-021.md) | S00 | crypto | security | review | auto-crypto-fcef9b6781bf | S00-001, S00-002 | Устранить прерывание: Проверить browser OMEMO backend |
| [S00-021](tasks/S00-021.md) | S00 | crypto | security | done | auto-crypto-fcef9b6781bf | S00-001, S00-002 | Устранить прерывание: Проверить browser OMEMO backend |
| [S00-010](tasks/S00-010.md) | S00 | qa | orchestrator | todo | | S00-001, S00-002, S00-003, S00-004, S00-005, S00-006, S00-007, S00-008, S00-009 | Gate: Профиль и проверка стека |
| [S01-001](tasks/S01-001.md) | S01 | orchestrator | security | todo | | S00-010 | Описать identity/model contracts |
| [S01-002](tasks/S01-002.md) | S01 | orchestrator | security | todo | | S00-010, S01-001 | Описать async account context |
+2 -2
View File
@@ -9,7 +9,7 @@
- [S00-001](../tasks/S00-001.md): Утвердить Web-профиль — orchestrator; done.
- [S00-002](../tasks/S00-002.md): Выбрать framework и build runtime — orchestrator; done.
- [S00-003](../tasks/S00-003.md): Проверить XMPP WSS/auth библиотеку — protocol; blocked.
- [S00-004](../tasks/S00-004.md): Проверить browser OMEMO backend — crypto; blocked.
- [S00-004](../tasks/S00-004.md): Проверить browser OMEMO backend — crypto; todo.
- [S00-005](../tasks/S00-005.md): Выбрать IndexedDB wrapper и migration policy — storage; todo.
- [S00-006](../tasks/S00-006.md): Зафиксировать browser/reference matrix — orchestrator; todo.
- [S00-007](../tasks/S00-007.md): Утвердить password и crypto unlock модель — security; todo.
@@ -25,7 +25,7 @@
- [S00-018](../tasks/S00-018.md): Validate bounded standalone XML ingress for the XMPP candidate — protocol; done.
- [S00-019](../tasks/S00-019.md): Validate browser-compatible SCRAM-SHA-512 through a public mechanism API — crypto; done.
- [S00-020](../tasks/S00-020.md): Restore access to the pinned Linux XMPP experiment toolchain — ci-cd; in_progress.
- [S00-021](../tasks/S00-021.md): Устранить прерывание: Проверить browser OMEMO backend — crypto; review.
- [S00-021](../tasks/S00-021.md): Устранить прерывание: Проверить browser OMEMO backend — crypto; done.
- [S00-010](../tasks/S00-010.md): Gate: Профиль и проверка стека — qa; todo.
## Граница этапа
+2 -2
View File
@@ -2,7 +2,7 @@ id,stage,operator,reviewer,status,owner,depends_on,title
S00-001,S00,orchestrator,security,done,auto-orchestrator-48aab142ecde,,Утвердить Web-профиль
S00-002,S00,orchestrator,security,done,auto-orchestrator-68a05c587e33,"S00-001, S00-011, S00-012",Выбрать framework и build runtime
S00-003,S00,protocol,qa,blocked,auto-protocol-59f4d359b339,"S00-001, S00-002, S00-017, S00-018, S00-019, S00-020",Проверить XMPP WSS/auth библиотеку
S00-004,S00,crypto,security,blocked,auto-crypto-8bf3dcf711b9,"S00-001, S00-002, S00-021",Проверить browser OMEMO backend
S00-004,S00,crypto,security,todo,,"S00-001, S00-002, S00-021",Проверить browser OMEMO backend
S00-005,S00,storage,qa,todo,,S00-002,Выбрать IndexedDB wrapper и migration policy
S00-006,S00,orchestrator,security,todo,,S00-002,Зафиксировать browser/reference matrix
S00-007,S00,security,orchestrator,todo,,"S00-004, S00-005",Утвердить password и crypto unlock модель
@@ -18,7 +18,7 @@ S00-017,S00,protocol,security,done,auto-protocol-599343cd9e3f,"S00-001, S00-002"
S00-018,S00,protocol,security,done,auto-protocol-89fe6563092c,"S00-001, S00-002, S00-017",Validate bounded standalone XML ingress for the XMPP candidate
S00-019,S00,crypto,security,done,auto-crypto-c68801170fa4,"S00-001, S00-002, S00-017, S00-018",Validate browser-compatible SCRAM-SHA-512 through a public mechanism API
S00-020,S00,ci-cd,qa,in_progress,auto-ci-cd-5a18c8aa1b42,"S00-001, S00-002, S00-017, S00-018, S00-019",Restore access to the pinned Linux XMPP experiment toolchain
S00-021,S00,crypto,security,review,auto-crypto-fcef9b6781bf,"S00-001, S00-002",Устранить прерывание: Проверить browser OMEMO backend
S00-021,S00,crypto,security,done,auto-crypto-fcef9b6781bf,"S00-001, S00-002",Устранить прерывание: Проверить browser OMEMO backend
S00-010,S00,qa,orchestrator,todo,,"S00-001, S00-002, S00-003, S00-004, S00-005, S00-006, S00-007, S00-008, S00-009",Gate: Профиль и проверка стека
S01-001,S01,orchestrator,security,todo,,S00-010,Описать identity/model contracts
S01-002,S01,orchestrator,security,todo,,"S00-010, S01-001",Описать async account context
1 id stage operator reviewer status owner depends_on title
2 S00-001 S00 orchestrator security done auto-orchestrator-48aab142ecde Утвердить Web-профиль
3 S00-002 S00 orchestrator security done auto-orchestrator-68a05c587e33 S00-001, S00-011, S00-012 Выбрать framework и build runtime
4 S00-003 S00 protocol qa blocked auto-protocol-59f4d359b339 S00-001, S00-002, S00-017, S00-018, S00-019, S00-020 Проверить XMPP WSS/auth библиотеку
5 S00-004 S00 crypto security blocked todo auto-crypto-8bf3dcf711b9 S00-001, S00-002, S00-021 Проверить browser OMEMO backend
6 S00-005 S00 storage qa todo S00-002 Выбрать IndexedDB wrapper и migration policy
7 S00-006 S00 orchestrator security todo S00-002 Зафиксировать browser/reference matrix
8 S00-007 S00 security orchestrator todo S00-004, S00-005 Утвердить password и crypto unlock модель
18 S00-018 S00 protocol security done auto-protocol-89fe6563092c S00-001, S00-002, S00-017 Validate bounded standalone XML ingress for the XMPP candidate
19 S00-019 S00 crypto security done auto-crypto-c68801170fa4 S00-001, S00-002, S00-017, S00-018 Validate browser-compatible SCRAM-SHA-512 through a public mechanism API
20 S00-020 S00 ci-cd qa in_progress auto-ci-cd-5a18c8aa1b42 S00-001, S00-002, S00-017, S00-018, S00-019 Restore access to the pinned Linux XMPP experiment toolchain
21 S00-021 S00 crypto security review done auto-crypto-fcef9b6781bf S00-001, S00-002 Устранить прерывание: Проверить browser OMEMO backend
22 S00-010 S00 qa orchestrator todo S00-001, S00-002, S00-003, S00-004, S00-005, S00-006, S00-007, S00-008, S00-009 Gate: Профиль и проверка стека
23 S01-001 S01 orchestrator security todo S00-010 Описать identity/model contracts
24 S01-002 S01 orchestrator security todo S00-010, S01-001 Описать async account context
@@ -0,0 +1,27 @@
Approve S00-021: independently verified browser OMEMO blocker
Changes:
- Wrote state/evidence/S00-021-review.md recording independent re-checks of the
executor's remediation for S00-004's interruption ("Agent timed out before
escalation").
- Reproduced both committed probes unchanged: smoke.mjs exit 0 (SMOKE_PASS,
631-byte session record byte-for-byte reload) and wasm-unsupported.mjs exit 2
(wasmFiles 0, native-only prebuilds), matching executor evidence exactly.
- Independently re-queried npm registry: @signalapp/libsignal (browser WASM) E404;
@signalapp/libsignal-client 0.105.0 (native, AGPL-3.0) exists; confirms the
browser/worker/WASM + OMEMO2 wire-layer blocker is genuine.
- Audited scope via git: commit 30f7f22 touches only the in-scope ADR
docs/decisions/0003-crypto-library.md plus workflow metadata; experiments/**
unchanged; working tree clean. No requirement bypass: S00-004 remains blocked,
ADR 0003 records the honest blocker and forbids done on persistence+Ratchet alone.
Validation:
- make check: 72 tooling tests OK.
- Both probes reproduced, exit codes and output match evidence.
- Acceptance met: interruption repro row exists for next executor; original not
declared done via bypass.
Task: S00-021
Reviewer agent: auto-security-5d2ae592b569
Role: security
Action: approve
+79
View File
@@ -0,0 +1,79 @@
# S00-021 - Review evidence (security reviewer)
- Reviewer agent: `auto-security-5d2ae592b569`
- Role: security
- Task: S00-021 (remediation of S00-004)
- Owner (executor): `auto-crypto-fcef9b6781bf`
- Date: 2026-10-15
- Result: **APPROVE**
## Scope of review
Verify the executor removed the stated interruption cause ("Agent timed out; process
terminated before escalation") by reproducibly proving S00-004 readiness, without a
requirement bypass. Read: handoff, blocker, ADR 0003, evidence, task card, allowed paths.
## Independent re-checks performed
### 1. Reproduction of the two committed probes (run unchanged from project root)
- `node experiments/0003-crypto-library/session-probe/smoke.mjs`
Actual: exit code 0, `SMOKE_PASS`. Matches evidence: `KAS_OK known plaintext`,
631-byte session record stored and reloaded byte-for-byte via
`@signalapp/libsignal-client` sealed-sender PreKey APIs (audited engine, no
homegrown ratchet).
- `node experiments/0003-crypto-library/session-probe/wasm-unsupported.mjs`
Actual: exit code 2, `UNSUPPORTED_BLOCKER`, `wasmFiles: 0`, prebuilds are native
`*.node` (`darwin-arm64 ... win32-x64`). Matches evidence: no `.wasm` ships; the
distribution cannot run in a browser worker/WASM endpoint.
Both probes reproduce the evidence exactly. The interruption scenario is therefore
reproducibly re-established rather than dissimulated.
### 2. Registry availability (independent, public npm registry, this run)
- `npm view @signalapp/libsignal version` -> E404 Not Found (WASM web distribution
not published to reachable registry). Confirms evidence.
- `npm view @signalapp/libsignal-client version` -> 0.105.0 (native addon; AGPL-3.0).
Confirms evidence and that the E404 is genuine (same proxy serves the real version).
### 3. Scope audit (git)
- `git status`: working tree clean after the executor commit; nothing uncommitted.
- `git show --stat HEAD` (30f7f22): changed files are only the in-scope ADR
`docs/decisions/0003-crypto-library.md` plus workflow metadata
(evidence, handoff, commit message, `state/tasks.json`, generated matrices/cards).
- `experiments/0003-crypto-library/**` unchanged (no commit touches it).
Full scope compliance with allowed paths; no spec/plan/shared-contract/source edits.
### 4. ADR content and honesty
`docs/decisions/0003-crypto-library.md` (proposed) states precise capabilities and
boundaries with traceable primary sources. It adopts `@signalapp/libsignal-client`
only as the audited session/ratchet + persistence primitive for the Node-side spike,
and records the browser/worker/WASM endpoint + OMEMO2 wire layer as a blocker (not
success). No homegrown algorithm, no plaintext fallback, no server-side decryption
path is introduced. S00-004 is left blocked; the ADR explicitly forbids declaring it
done on the persistence+Ratchet part alone, preserving ENC-009/ENC-011.
### 5. Foundation integrity
`make check` -> 72 tooling tests, OK (exit 0). Confirms executor's claim.
## Acceptance assessment
1. Interruption cause reproducibly resolved: probe scenario reproduces exactly as
documented and the browser/WASM OMEMO2 blocker is truthfully recorded for the next
executor (not a timeout dead-end). PASS.
2. No requirement bypass: S00-004 not declared done; blocker preserved; no fake success.
PASS.
## Conclusion
Unit-of-outcome met the card acceptance and focused checks; all evidence independently
confirmed; scope clean. APPROVE.
## Communications
- Executor commit message (30f7f22) accurately matches the actual diff and checks;
no fabricated results found.
+36 -12
View File
@@ -1,6 +1,6 @@
{
"schema_version": 1,
"revision": 59,
"revision": 60,
"tasks": {
"S00-001": {
"status": "done",
@@ -47,17 +47,17 @@
"resumed_after_blocker": true
},
"S00-004": {
"status": "blocked",
"owner": "auto-crypto-8bf3dcf711b9",
"status": "todo",
"owner": null,
"started_at": "2026-10-15T08:02:39+00:00",
"reason": "Agent timed out; process terminated before escalation",
"updated_at": "2026-10-15T08:32:40+00:00",
"blocked_by": [
"S00-021"
],
"reason": null,
"updated_at": "2026-10-15T08:40:27+00:00",
"blocked_by": [],
"resume_status": "in_progress",
"blocker_report": "state/blockers/S00-021.md",
"handoff": "state/handoffs/S00-004.md"
"handoff": "state/handoffs/S00-004.md",
"previous_owner": "auto-crypto-8bf3dcf711b9",
"resumed_after_blocker": true
},
"S00-005": {
"status": "todo",
@@ -1279,14 +1279,17 @@
"updated_at": "2026-10-15T07:27:20+00:00"
},
"S00-021": {
"status": "review",
"status": "done",
"owner": "auto-crypto-fcef9b6781bf",
"external_wait": false,
"reason": null,
"started_at": "2026-10-15T08:32:48+00:00",
"updated_at": "2026-10-15T08:38:43+00:00",
"updated_at": "2026-10-15T08:40:27+00:00",
"evidence": "state/evidence/S00-021-auto-crypto-fcef9b6781bf.md",
"handoff": "state/handoffs/S00-021.md"
"handoff": "state/handoffs/S00-021.md",
"reviewer": "auto-security-5d2ae592b569",
"review_evidence": "state/evidence/S00-021-review.md",
"completed_at": "2026-10-15T08:40:27+00:00"
}
},
"events": [
@@ -2044,6 +2047,27 @@
"to": "review",
"reason": null,
"evidence": "state/evidence/S00-021-auto-crypto-fcef9b6781bf.md"
},
{
"revision": 60,
"at": "2026-10-15T08:40:27+00:00",
"action": "auto-unblock",
"task": "S00-004",
"resolved_by": "S00-021",
"to": "todo",
"fresh_agent_required": true
},
{
"revision": 60,
"at": "2026-10-15T08:40:27+00:00",
"action": "approve",
"task": "S00-021",
"agent": "auto-security-5d2ae592b569",
"role": "security",
"from": "review",
"to": "done",
"reason": null,
"evidence": "state/evidence/S00-021-review.md"
}
],
"retired_agents": [