سامانه صدور فاکتور و حسابداری

hardening/wp1-ledger-integrity-20261102
audit-remediation-wave3-4-20261002 audit-remediation-wave3-verify-20261002 audit-remediation-wave4-20261002 audit-remediation-wave4b-20261002 audit-remediation-wave5a-identity-20261002 audit-remediation-wave5b-offboarding-20261002 audit-remediation-wave5c-authorization-20261002 audit-security-intent-review-20261002 audit/finora-financial-core-20261115 audit/finora-master-prompt-phase0-20261016 audit/finora-stage3-legacy-source-readonly-20261023 audit/full-controls-20261030 audit/owner-live-state-reconcile-20261012 audit/owner-review-20261007 audit/phase1-live-permissions-readonly-20261013 audit/reconcile-live-state-20261006 audit/reconcile-state-20261002 audit/wp0-hardening-baseline-20261102 branding-login-favicon-20261002 c8-workflow-task1 c8-workflow-task2 c8-workflow-task3 chore/wave0-pages-gate-closeout claude-code-plugins-setup design/finora-c01-authoritative-source-draft-20261124 docs-wave4b-verified-20261002 docs/active-company-invoice-release-evidence-20261014 docs/agent-operating-model-20261114 docs/chart-taxpayer-release-evidence-20261004 docs/cloud-only-agent-orchestration-20261115 docs/confirm-finora-product-charter-20261115 docs/continuation-20261030 docs/d4a-verified docs/external-work-review-20261121 docs/finora-audit-continuity-20261014 docs/finora-backup-merge-evidence-20261014 docs/finora-ci-reconciliation-20261122 docs/finora-codex-master-prompt docs/finora-eight-phase-plan-20261011 docs/finora-f002-live-buyer-filter-verified-20261015 docs/finora-license-race-release-evidence-20261014 docs/finora-license-rollout-acceptance-20261015 docs/finora-phase0-repeat-and-pages-nav-verified-20261015 docs/finora-phase0-repeat-evidence-20261015 docs/finora-selectors-release-and-fixture-qa-20261015 docs/finora-stagea-pr240-ci-triage-20261123 docs/finora-test-license-live-pass-20261015 docs/finora-v2-m01-coverage-20261124 docs/handoff-charter-v2-20261124 docs/invoice-product-search-release-20261011 docs/invoice-workspace-release-20261007 docs/phase-status-20261031 docs/phase0-acceptance-release-evidence-20261012 docs/phase0-admin-provision-release-evidence-20261012 docs/phase0-core-bundle-owner-login-open-20261013 docs/phase0-duplicate-js-release-20261016 docs/phase0-f001-auth-rest-shared-timeout-20261013 docs/phase0-f001-owner-login-observed-20261013 docs/phase0-f001-second-device-fail-40s-20261013 docs/phase0-f003-release-verification-20261011 docs/phase0-f004-print-release-evidence-20261012 docs/phase0-f004-watermark-release-evidence-20261012 docs/phase0-f005-large-selector-release-20261012 docs/phase0-f005-release-evidence-20261012 docs/phase0-f006-dark-release-evidence-20261012 docs/phase0-f008-final-pr-closure-evidence-20261012 docs/phase0-f008-reconcile-stale-prs-20261012 docs/phase0-f107-production-evidence-20261012 docs/phase0-kavenegar-otp-preflight-release-20261012 docs/phase0-login-release-evidence-20261012 docs/phase0-login-rest-bootstrap-stage-release-20261012 docs/phase0-owner-app-assets-bundle-release-20261013 docs/phase0-owner-login-csp-release-20261012 docs/phase0-reconcile-postmerge-evidence-20261012 docs/phase0-site-probe-release-evidence-20261012 docs/phase0-startup-release-evidence-20261012 docs/phase3-treasury-release-evidence-20261014 docs/pilot-posted-correction-release-evidence-20261014 docs/pilot-purchase-correction-release-evidence-20261014 docs/print-persian-release-verification-20261011 docs/qa-ci-triage-218-20261122 docs/real-account-qa-20261030 docs/release-state-20261007 docs/seamless-amendment-release-20261014 docs/seamless-document-correction-release-20261014 docs/settings-login-release-20261025 docs/stripe-qa-deployment-evidence-20261011 docs/ux-f2-release-evidence-20261011 docs/ux-f2-release-verification-20261011 docs/wave0-closeout docs/wave2-closeout exec-phase1-architecture exec-phase1-implementation exec-phase1-qa exec-phase1-security-release exec-phase1-ux feat/accounting-document-draft-approval-20261011 feat/accounting-document-release-candidate-20261011 feat/active-company-strict-isolation-20261014 feat/admin-provisioning-reconciled-20261011 feat/admin-secure-user-provisioning-20261011 feat/admin-user-provisioning-merged-20261011 feat/d4a-request-work-queue feat/document-lifecycle-atf-20261118 feat/document-lifecycle-temp-permanent-atef feat/draft-first-attachment-lifecycle-216 feat/finora-offline-encrypted-backup-20261014 feat/finora-phase-a-navigation-20261023 feat/finora-stripe-sandbox-edge-gate feat/immutable-attachment-temporary-vouchers feat/iran-accounting-design-audit feat/journal-document-lifecycle-20261118 feat/journal-rpc-repository-adapter-20261117 feat/office-c7-fulltext-ocr-provenance feat/password-recovery-admin-reset-20261025 feat/pilot-expense-income-inplace-amendment-20261014 feat/pilot-journal-invoice-correction-20261014 feat/pilot-purchase-correction-20261014 feat/pilot-treasury-unallocated-correction-20261014 feat/retain-document-editor-after-save-20261014 feat/seamless-financial-document-correction-20261014 feat/slice-b-tenant-rbac feat/stripe-sandbox-invoice-probe feature/accounting-core-p0 feature/accounting-product-guidance feature/admin-identity-phone-auth feature/commercial-rnd feature/finora-phase1a-supabase-cli-20261016 feature/finora-stage2-manual-canary-20261017 feature/finora-stage3-commercial-payload-20261023 feature/finora-stage3-enforce-invoice-rpc-20261023 feature/finora-stage3-enforce-purchase-red-20261023 feature/invoice-workspace-cleanup feature/phase0-kavenegar-otp-preflight-20261012 feature/ux-commerce-settings-r2 fix-shell-scroll-live-cache-20261002 fix-shell-scrollbar-explicit-ownership-20261002 fix-shell-scrollbar-ownership-20261002 fix-shell-scrollbar-right-edge-20261002 fix/about-bug-report-20261114 fix/active-company-invoice-scope-20261014 fix/active-company-isolation-reconcile-20261014 fix/admin-central-password-reset-20261028 fix/auth-network-diagnostics fix/chart-taxpayer-reference-20261003 fix/combobox-enter-reliability fix/combobox-live-search fix/combobox-production-cache fix/combobox-release-asset-v2 fix/company-edit-action-20261028 fix/company-edit-pilot-delete-20261014 fix/company-form-action-state-20261014 fix/company-form-action-state-rebased-20261014 fix/contact-operational-balance-20261111 fix/dark-theme-contrast fix/financial-lifecycle-recovery-20261124 fix/finora-accounting-test-organization-readiness-20261015 fix/finora-b01-safe-org-switch-20261124 fix/finora-b02-sync-recovery-20261124 fix/finora-b03-conflict-review-20261124 fix/finora-org-license-bootstrap-race-20261014 fix/finora-stage3-posted-source-immutable-20261023 fix/finora-v2-b03-r2-qa-20261124 fix/finora-v2-b03-r3-readonly-20261124 fix/g01-asof-financial-position-20261128 fix/invoice-product-search-rehydrate-20261011 fix/invoice-search-cache-bust fix/issue229-linked-draft-status-20261122 fix/login-assets-retry-20261014 fix/login-inert-startup-20261110 fix/login-member-access-20261101 fix/login-resilience-20261017 fix/login-short-viewport-20261028 fix/login-startup-readiness-20261024 fix/navigation-utilities-placement-20261105 fix/office-c7-source-ref-binding fix/office-c7-source-ref-binding-v2 fix/owner-login-network-20261026 fix/password-recovery-invalid-cancel-20261026 fix/payment-amount-format-20261111 fix/phase0-admin-provision-seat-bootstrap-20261012 fix/phase0-auth-bundled-assets-for-unstable-isp-20261013 fix/phase0-auth-handler-binding-stalled-session-20261012 fix/phase0-login-context-stage-visibility-20261012 fix/phase0-login-single-local-bundle-20261013 fix/phase0-login-site-probe-clarity-20261012 fix/phase0-login-ui-ready-20261012 fix/phase0-modal-dashboard-drill-20261011 fix/phase0-pages-blocking-core-bundles-20261013 fix/phase0-print-no-draft-watermark-20261012 fix/phase0-startup-parallel-asset-load-20261012 fix/phase3-behavioral-verification fix/preserve-pending-edits-20261121 fix/print-persian-digit-consistency-20261011 fix/recovery-login-startup-20261027 fix/report-opening-balance-release-20261130 fix/settings-checkbox-persistence-20261024 fix/taxpayer-arithmetic-20261004 fix/ux-keyboard-search-f2-20261011 fix/wave2-request-input-integrity hardening/c01-source-draft-20261129 hardening/global-draft-conversion-20261113 hardening/wp1-ledger-integrity-20261102 integration/finora-execution-20261124 integration/issue229-ui-qa-20261122 integration/wp1-ledger-core-20261115 integration/wp2-manual-journal-rpc-20261116 main ops-heartbeat-v2-20261002 ops-progress-heartbeat-rule-20261002 ops/wave4-production-20261003 plan/financial-core-phase1-approval-20261016 qa/attachment-allocator-two-session-20261122 qa/draft-first-save-red-evidence-20261122 qa/finora-autopost-retry-identity-red-20261122 qa/finora-identity-rpc-security-tripwire-20261122 qa/finora-issue223-manual-kardex-browser-red-20261123 qa/finora-issue223-stock-real-jwt-20261123 qa/finora-issue238-inventory-count-browser-red-20261123 qa/finora-issue238-save-browser-red-20261122 qa/finora-login-cors-header-preflight-20261025 qa/finora-phase0-saved-session-repeat-20261015 qa/finora-phase5-posted-insert-jwt-red-20261123 qa/finora-stage3-ui-jwt-autopost-20261023 qa/finora-v2-g01-report-reconciliation-20261125 qa/free-supabase-local-wp2-20261116 qa/issue229-approval-boundary-jwt-20261122 qa/issue229-sale-save-linked-draft-red-20261122 qa/phase0-acceptance-start-20261012 qa/phase0-f005-account-project-contract-stress-20261012 qa/phase0-f005-selector-stress-20261012 qa/phase0-f006-dark-contrast-20261012 qa/post-wave4-verification-20261003 qa/posted-source-immutable-jwt-20261122 qa/pr219-wp1-disposable-dburl-proof-20261123 qa/purchase-source-jwt-20261122 qa/real-settings-acceptance-20261025 qa/recovery-mail-acceptance-20261026 qa/source-autopost-jwt-atomicity-20261122 qa/wave0-negative-gate-proof qa/wp2-auth-tenant-e2e-20261117 qa/wp2-authorized-journal-write-20261122 qa/wp2-financial-paths-reconciliation-20261122 qa/wp3-financial-tenant-isolation-20261117 remediation/wave0-liveqa-wave1 remediation/wave2-request-integrity staging/finora-stage22-free-20261022 state-scroll-verified-20261002 state-wave4b-production-20261002 state-wave5a-production-20261002 test/finora-accounting-boot-readiness-20261015 test/finora-f0-02-production-selectors-20261015 test/finora-pages-commerce-event-wiring-20261015 test/finora-pages-invoice-selectors-readonly-20261015 test/finora-stage3-jwt-source-post-20261023 test/phase0-invoice-fixture-bootstrap-20261016 test/phase0-invoice-persistence-20261011 test/phase0-pages-delayed-dispatcher-20261016 ux-scroll-ownership-20261002 work/finora-stage3-enforce-purchase-green-20261023 work/finora-stage3-enforce-sale-green-20261023 work/finora-stage3-payload-green-20261023
log 554 lines 23.3 KB
Raw
1 ✔ confirmed absent server uses legacy columns and legacy sync (6.188932ms)
2 ✖ present capability loads versions and uses versioned sync acknowledgement (2.496987ms)
3 ✖ transport probe errors preserve pending edits without a legacy write (3.925348ms)
4 ✔ partial server with no row version fails before write (2.665652ms)
5 ✔ account switch during probe cannot send old edits (1.430804ms)
6 ✖ old-organization write acknowledgement cannot overwrite new snapshot (2.454182ms)
7 ✖ incomplete upsert acknowledgement cannot mark pending changes saved (1.53984ms)
8 ✖ incomplete delete acknowledgement cannot erase snapshot (2.563267ms)
9 ✖ missing V2 write RPC never silently downgrades to legacy write (4.121174ms)
10 ✔ new server capability requires fresh versions without discarding pending edits (1.456193ms)
11 ✖ organization wrapper uses same capability and versioned protocol (2.537759ms)
12 ✖ late read cannot publish across identity switch (org wrapper false) (1.298975ms)
13 ✖ CAS conflict preserves edits without reload or retry (org wrapper false) (1.820404ms)
14 ✔ late read cannot publish across identity switch (org wrapper true) (1.446287ms)
15 ✖ CAS conflict preserves edits without reload or retry (org wrapper true) (2.764041ms)
16 ✖ malformed acknowledgement stays pending: {"upserts":[{"collection":"companies","id":"C","version":5},{"collection":"companies","id":"C","version":5}],"deletes":[]} (32.789969ms)
17 ✖ malformed acknowledgement stays pending: {"upserts":[{"collection":"companies","id":"C","version":4}],"deletes":[]} (3.642169ms)
18 ✖ malformed acknowledgement stays pending: {"upserts":[{"collection":"companies","id":"C","version":"5"}],"deletes":[]} (1.28224ms)
19 ✖ malformed acknowledgement stays pending: {"upserts":[{"collection":"companies","id":"other","version":5}],"deletes":[]} (1.402131ms)
20 ✖ malformed acknowledgement stays pending: {"upserts":[{"collection":"companies","id":"C","version":5}],"deletes":[{"collection":"companies","id":"C"}]} (2.944283ms)
21 ✖ malformed acknowledgement stays pending: null (3.483209ms)
22 ✖ positive version evidence prevents falling back when probe disappears (1.485246ms)
23 ✖ new record uses version zero and deletion acknowledges exact identity (1.851781ms)
24 ✖ edits made during write stay pending and use returned version on next batch (4.408979ms)
25 ✖ malformed guard mode cannot authorize a write (2.408313ms)
26 ✖ invalid persisted revision cannot downgrade to legacy: null (0.893141ms)
27 ✖ invalid persisted revision cannot downgrade to legacy: 0 (3.030905ms)
28 ✖ invalid persisted revision cannot downgrade to legacy: -1 (0.855163ms)
29 ✖ invalid persisted revision cannot downgrade to legacy: 1.5 (2.075349ms)
30 ✖ invalid persisted revision cannot downgrade to legacy: 4 (0.948805ms)
31 ✖ invalid persisted revision cannot downgrade to legacy: 9007199254740992 (2.401342ms)
32 ✖ late acknowledgement after same-tenant refresh cannot replace fresh revisions (0.966582ms)
33 ✖ nested edits during capability probe cannot mutate the captured write payload (1.320588ms)
34 ✖ stalled probe has a bounded failure and no late success (1.015736ms)
35 ✖ stalled write has a bounded failure and no late success (0.981394ms)
36 ✖ duplicate pending identifiers fail before any write (1.059693ms)
37 ℹ tests 36
38 ℹ suites 0
39 ℹ pass 5
40 ℹ fail 31
41 ℹ cancelled 0
42 ℹ skipped 0
43 ℹ todo 0
44 ℹ duration_ms 290.816091
45
46 ✖ failing tests:
47
48 test at scripts/wp1-client-capability-test.mjs:32:1
49 ✖ present capability loads versions and uses versioned sync acknowledgement (2.496987ms)
50 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
51 + actual - expected
52
53 + 'collection,id,data'
54 - '*'
55
56 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:33:47)
57 at async Test.run (node:internal/test_runner/test:1389:7)
58 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
59 generatedMessage: true,
60 code: 'ERR_ASSERTION',
61 actual: 'collection,id,data',
62 expected: '*',
63 operator: 'strictEqual',
64 diff: 'simple'
65 }
66
67 test at scripts/wp1-client-capability-test.mjs:37:1
68 ✖ transport probe errors preserve pending edits without a legacy write (3.925348ms)
69 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
70
71 0 !== 1
72
73 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:39:106)
74 at async Test.run (node:internal/test_runner/test:1389:7)
75 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
76 generatedMessage: true,
77 code: 'ERR_ASSERTION',
78 actual: 0,
79 expected: 1,
80 operator: 'strictEqual',
81 diff: 'simple'
82 }
83
84 test at scripts/wp1-client-capability-test.mjs:47:1
85 ✖ old-organization write acknowledgement cannot overwrite new snapshot (2.454182ms)
86 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
87 + actual - expected
88
89 + undefined
90 - 'new-tenant'
91
92 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:50:91)
93 at async Test.run (node:internal/test_runner/test:1389:7)
94 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
95 generatedMessage: true,
96 code: 'ERR_ASSERTION',
97 actual: undefined,
98 expected: 'new-tenant',
99 operator: 'strictEqual',
100 diff: 'simple'
101 }
102
103 test at scripts/wp1-client-capability-test.mjs:52:1
104 ✖ incomplete upsert acknowledgement cannot mark pending changes saved (1.53984ms)
105 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
106 + actual - expected
107
108 + 'changed'
109 - 'before'
110
111 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:54:9)
112 at async Test.run (node:internal/test_runner/test:1389:7)
113 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
114 generatedMessage: true,
115 code: 'ERR_ASSERTION',
116 actual: 'changed',
117 expected: 'before',
118 operator: 'strictEqual',
119 diff: 'simple'
120 }
121
122 test at scripts/wp1-client-capability-test.mjs:56:1
123 ✖ incomplete delete acknowledgement cannot erase snapshot (2.563267ms)
124 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
125
126 false !== true
127
128 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:57:140)
129 at async Test.run (node:internal/test_runner/test:1389:7)
130 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
131 generatedMessage: true,
132 code: 'ERR_ASSERTION',
133 actual: false,
134 expected: true,
135 operator: 'strictEqual',
136 diff: 'simple'
137 }
138
139 test at scripts/wp1-client-capability-test.mjs:59:1
140 ✖ missing V2 write RPC never silently downgrades to legacy write (4.121174ms)
141 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
142
143 1 !== 0
144
145 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:61:9)
146 at async Test.run (node:internal/test_runner/test:1389:7)
147 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
148 generatedMessage: true,
149 code: 'ERR_ASSERTION',
150 actual: 1,
151 expected: 0,
152 operator: 'strictEqual',
153 diff: 'simple'
154 }
155
156 test at scripts/wp1-client-capability-test.mjs:67:1
157 ✖ organization wrapper uses same capability and versioned protocol (2.537759ms)
158 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
159 + actual - expected
160
161 + 'collection,id,data,owner_id,organization_id'
162 - '*'
163
164 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:68:64)
165 at async Test.run (node:internal/test_runner/test:1389:7)
166 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
167 generatedMessage: true,
168 code: 'ERR_ASSERTION',
169 actual: 'collection,id,data,owner_id,organization_id',
170 expected: '*',
171 operator: 'strictEqual',
172 diff: 'simple'
173 }
174
175 test at scripts/wp1-client-capability-test.mjs:73:2
176 ✖ late read cannot publish across identity switch (org wrapper false) (1.298975ms)
177 AssertionError [ERR_ASSERTION]: Missing expected rejection.
178 at async TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:74:99)
179 at async Test.run (node:internal/test_runner/test:1389:7)
180 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
181 generatedMessage: false,
182 code: 'ERR_ASSERTION',
183 actual: undefined,
184 expected: undefined,
185 operator: 'rejects',
186 diff: 'simple'
187 }
188
189 test at scripts/wp1-client-capability-test.mjs:76:2
190 ✖ CAS conflict preserves edits without reload or retry (org wrapper false) (1.820404ms)
191 evalmachine.<anonymous>:1
192 versionSnap.get('companies|C')
193 ^
194
195 ReferenceError: versionSnap is not defined
196 at evalmachine.<anonymous>:1:1
197 at Script.runInContext (node:vm:149:12)
198 at Object.runInContext (node:vm:301:6)
199 at Object.evalCode (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:25:23)
200 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:78:160)
201 at async Test.run (node:internal/test_runner/test:1389:7)
202 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7)
203
204 test at scripts/wp1-client-capability-test.mjs:76:2
205 ✖ CAS conflict preserves edits without reload or retry (org wrapper true) (2.764041ms)
206 evalmachine.<anonymous>:1
207 versionSnap.get('companies|C')
208 ^
209
210 ReferenceError: versionSnap is not defined
211 at evalmachine.<anonymous>:1:1
212 at Script.runInContext (node:vm:149:12)
213 at Object.runInContext (node:vm:301:6)
214 at Object.evalCode (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:25:23)
215 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:78:160)
216 at async Test.run (node:internal/test_runner/test:1389:7)
217 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7)
218
219 test at scripts/wp1-client-capability-test.mjs:88:3
220 ✖ malformed acknowledgement stays pending: {"upserts":[{"collection":"companies","id":"C","version":5},{"collection":"companies","id":"C","version":5}],"deletes":[]} (32.789969ms)
221 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
222
223 0 !== 1
224
225 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:90:9)
226 at async Test.run (node:internal/test_runner/test:1389:7)
227 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
228 generatedMessage: true,
229 code: 'ERR_ASSERTION',
230 actual: 0,
231 expected: 1,
232 operator: 'strictEqual',
233 diff: 'simple'
234 }
235
236 test at scripts/wp1-client-capability-test.mjs:88:3
237 ✖ malformed acknowledgement stays pending: {"upserts":[{"collection":"companies","id":"C","version":4}],"deletes":[]} (3.642169ms)
238 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
239
240 0 !== 1
241
242 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:90:9)
243 at async Test.run (node:internal/test_runner/test:1389:7)
244 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
245 generatedMessage: true,
246 code: 'ERR_ASSERTION',
247 actual: 0,
248 expected: 1,
249 operator: 'strictEqual',
250 diff: 'simple'
251 }
252
253 test at scripts/wp1-client-capability-test.mjs:88:3
254 ✖ malformed acknowledgement stays pending: {"upserts":[{"collection":"companies","id":"C","version":"5"}],"deletes":[]} (1.28224ms)
255 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
256
257 0 !== 1
258
259 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:90:9)
260 at async Test.run (node:internal/test_runner/test:1389:7)
261 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
262 generatedMessage: true,
263 code: 'ERR_ASSERTION',
264 actual: 0,
265 expected: 1,
266 operator: 'strictEqual',
267 diff: 'simple'
268 }
269
270 test at scripts/wp1-client-capability-test.mjs:88:3
271 ✖ malformed acknowledgement stays pending: {"upserts":[{"collection":"companies","id":"other","version":5}],"deletes":[]} (1.402131ms)
272 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
273
274 0 !== 1
275
276 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:90:9)
277 at async Test.run (node:internal/test_runner/test:1389:7)
278 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
279 generatedMessage: true,
280 code: 'ERR_ASSERTION',
281 actual: 0,
282 expected: 1,
283 operator: 'strictEqual',
284 diff: 'simple'
285 }
286
287 test at scripts/wp1-client-capability-test.mjs:88:3
288 ✖ malformed acknowledgement stays pending: {"upserts":[{"collection":"companies","id":"C","version":5}],"deletes":[{"collection":"companies","id":"C"}]} (2.944283ms)
289 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
290
291 0 !== 1
292
293 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:90:9)
294 at async Test.run (node:internal/test_runner/test:1389:7)
295 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
296 generatedMessage: true,
297 code: 'ERR_ASSERTION',
298 actual: 0,
299 expected: 1,
300 operator: 'strictEqual',
301 diff: 'simple'
302 }
303
304 test at scripts/wp1-client-capability-test.mjs:88:3
305 ✖ malformed acknowledgement stays pending: null (3.483209ms)
306 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
307
308 0 !== 1
309
310 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:90:9)
311 at async Test.run (node:internal/test_runner/test:1389:7)
312 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
313 generatedMessage: true,
314 code: 'ERR_ASSERTION',
315 actual: 0,
316 expected: 1,
317 operator: 'strictEqual',
318 diff: 'simple'
319 }
320
321 test at scripts/wp1-client-capability-test.mjs:92:1
322 ✖ positive version evidence prevents falling back when probe disappears (1.485246ms)
323 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
324
325 1 !== 0
326
327 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:93:133)
328 at async Test.run (node:internal/test_runner/test:1389:7)
329 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
330 generatedMessage: true,
331 code: 'ERR_ASSERTION',
332 actual: 1,
333 expected: 0,
334 operator: 'strictEqual',
335 diff: 'simple'
336 }
337
338 test at scripts/wp1-client-capability-test.mjs:95:1
339 ✖ new record uses version zero and deletion acknowledges exact identity (1.851781ms)
340 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
341
342 undefined !== 0
343
344 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:97:40)
345 at async Test.run (node:internal/test_runner/test:1389:7)
346 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
347 generatedMessage: true,
348 code: 'ERR_ASSERTION',
349 actual: undefined,
350 expected: 0,
351 operator: 'strictEqual',
352 diff: 'simple'
353 }
354
355 test at scripts/wp1-client-capability-test.mjs:100:1
356 ✖ edits made during write stay pending and use returned version on next batch (4.408979ms)
357 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
358
359 0 !== 2
360
361 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:102:75)
362 at async Test.run (node:internal/test_runner/test:1389:7)
363 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
364 generatedMessage: true,
365 code: 'ERR_ASSERTION',
366 actual: 0,
367 expected: 2,
368 operator: 'strictEqual',
369 diff: 'simple'
370 }
371
372 test at scripts/wp1-client-capability-test.mjs:104:1
373 ✖ malformed guard mode cannot authorize a write (2.408313ms)
374 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
375
376 false !== true
377
378 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:105:161)
379 at async Test.run (node:internal/test_runner/test:1389:7)
380 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
381 generatedMessage: true,
382 code: 'ERR_ASSERTION',
383 actual: false,
384 expected: true,
385 operator: 'strictEqual',
386 diff: 'simple'
387 }
388
389 test at scripts/wp1-client-capability-test.mjs:107:68
390 ✖ invalid persisted revision cannot downgrade to legacy: null (0.893141ms)
391 AssertionError [ERR_ASSERTION]: Missing expected rejection.
392 at async TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:108:66)
393 at async Test.run (node:internal/test_runner/test:1389:7)
394 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
395 generatedMessage: false,
396 code: 'ERR_ASSERTION',
397 actual: undefined,
398 expected: undefined,
399 operator: 'rejects',
400 diff: 'simple'
401 }
402
403 test at scripts/wp1-client-capability-test.mjs:107:68
404 ✖ invalid persisted revision cannot downgrade to legacy: 0 (3.030905ms)
405 AssertionError [ERR_ASSERTION]: Missing expected rejection.
406 at async TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:108:66)
407 at async Test.run (node:internal/test_runner/test:1389:7)
408 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
409 generatedMessage: false,
410 code: 'ERR_ASSERTION',
411 actual: undefined,
412 expected: undefined,
413 operator: 'rejects',
414 diff: 'simple'
415 }
416
417 test at scripts/wp1-client-capability-test.mjs:107:68
418 ✖ invalid persisted revision cannot downgrade to legacy: -1 (0.855163ms)
419 AssertionError [ERR_ASSERTION]: Missing expected rejection.
420 at async TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:108:66)
421 at async Test.run (node:internal/test_runner/test:1389:7)
422 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
423 generatedMessage: false,
424 code: 'ERR_ASSERTION',
425 actual: undefined,
426 expected: undefined,
427 operator: 'rejects',
428 diff: 'simple'
429 }
430
431 test at scripts/wp1-client-capability-test.mjs:107:68
432 ✖ invalid persisted revision cannot downgrade to legacy: 1.5 (2.075349ms)
433 AssertionError [ERR_ASSERTION]: Missing expected rejection.
434 at async TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:108:66)
435 at async Test.run (node:internal/test_runner/test:1389:7)
436 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
437 generatedMessage: false,
438 code: 'ERR_ASSERTION',
439 actual: undefined,
440 expected: undefined,
441 operator: 'rejects',
442 diff: 'simple'
443 }
444
445 test at scripts/wp1-client-capability-test.mjs:107:68
446 ✖ invalid persisted revision cannot downgrade to legacy: 4 (0.948805ms)
447 AssertionError [ERR_ASSERTION]: Missing expected rejection.
448 at async TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:108:66)
449 at async Test.run (node:internal/test_runner/test:1389:7)
450 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
451 generatedMessage: false,
452 code: 'ERR_ASSERTION',
453 actual: undefined,
454 expected: undefined,
455 operator: 'rejects',
456 diff: 'simple'
457 }
458
459 test at scripts/wp1-client-capability-test.mjs:107:68
460 ✖ invalid persisted revision cannot downgrade to legacy: 9007199254740992 (2.401342ms)
461 AssertionError [ERR_ASSERTION]: Missing expected rejection.
462 at async TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:108:66)
463 at async Test.run (node:internal/test_runner/test:1389:7)
464 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
465 generatedMessage: false,
466 code: 'ERR_ASSERTION',
467 actual: undefined,
468 expected: undefined,
469 operator: 'rejects',
470 diff: 'simple'
471 }
472
473 test at scripts/wp1-client-capability-test.mjs:110:1
474 ✖ late acknowledgement after same-tenant refresh cannot replace fresh revisions (0.966582ms)
475 evalmachine.<anonymous>:1
476 versionSnap.get('companies|C')
477 ^
478
479 ReferenceError: versionSnap is not defined
480 at evalmachine.<anonymous>:1:1
481 at Script.runInContext (node:vm:149:12)
482 at Object.runInContext (node:vm:301:6)
483 at Object.evalCode (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:25:23)
484 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:113:17)
485 at async Test.run (node:internal/test_runner/test:1389:7)
486 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7)
487
488 test at scripts/wp1-client-capability-test.mjs:115:1
489 ✖ nested edits during capability probe cannot mutate the captured write payload (1.320588ms)
490 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
491
492 0 !== 2
493
494 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:118:75)
495 at async Test.run (node:internal/test_runner/test:1389:7)
496 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
497 generatedMessage: true,
498 code: 'ERR_ASSERTION',
499 actual: 0,
500 expected: 2,
501 operator: 'strictEqual',
502 diff: 'simple'
503 }
504
505 test at scripts/wp1-client-capability-test.mjs:120:38
506 ✖ stalled probe has a bounded failure and no late success (1.015736ms)
507 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
508
509 false !== true
510
511 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:126:29)
512 at async Test.run (node:internal/test_runner/test:1389:7)
513 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
514 generatedMessage: true,
515 code: 'ERR_ASSERTION',
516 actual: false,
517 expected: true,
518 operator: 'strictEqual',
519 diff: 'simple'
520 }
521
522 test at scripts/wp1-client-capability-test.mjs:120:38
523 ✖ stalled write has a bounded failure and no late success (0.981394ms)
524 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
525
526 false !== true
527
528 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:126:29)
529 at async Test.run (node:internal/test_runner/test:1389:7)
530 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
531 generatedMessage: true,
532 code: 'ERR_ASSERTION',
533 actual: false,
534 expected: true,
535 operator: 'strictEqual',
536 diff: 'simple'
537 }
538
539 test at scripts/wp1-client-capability-test.mjs:130:1
540 ✖ duplicate pending identifiers fail before any write (1.059693ms)
541 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
542
543 5 !== 1
544
545 at TestContext.<anonymous> (file:///workspace/wp1-client-baseline/scripts/wp1-client-capability-test.mjs:131:187)
546 at async Test.run (node:internal/test_runner/test:1389:7)
547 at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
548 generatedMessage: true,
549 code: 'ERR_ASSERTION',
550 actual: 5,
551 expected: 1,
552 operator: 'strictEqual',
553 diff: 'simple'
554 }