Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7e7eefe
feat(apple): inspect IPS crash reports
mvanhorn Oct 23, 2026
c3554c6
fix(apple): keep IPS register literals exact
mvanhorn Oct 23, 2026
80ad2a0
fix(apple): budget IPS parsing and keep typed presence
mvanhorn Oct 23, 2026
a81b693
fix(apple): bound integer text expansion and reconcile coverage
gensokyo-dev Oct 24, 2026
130e457
chore: integrate main and shared IPS artifact ownership
gensokyo-dev Oct 24, 2026
c608dea
refactor(apple): retain image metadata at its owning row
gensokyo-dev Oct 24, 2026
54ebac6
refactor(apple): validate row capacity through reconciled coverage
gensokyo-dev Oct 24, 2026
135cab1
test(apple): verify resource recovery at the public error boundary
gensokyo-dev Oct 24, 2026
5898e4f
docs(apple): record complete IPS task and corpus measurements
gensokyo-dev Oct 24, 2026
02bacf7
chore: integrate current main for IPS final verification
gensokyo-dev Oct 24, 2026
2b92578
docs(apple): record integrated checks and stdio corpus evidence
gensokyo-dev Oct 24, 2026
7e931e2
chore: integrate PE imports and current native lifecycle fixes
gensokyo-dev Oct 24, 2026
45a5706
docs(apple): record PE integration and baseline cleanup controls
gensokyo-dev Oct 24, 2026
ab590a6
fix(native): bound IPS string decoding and preserve invalid identities
gensokyo-dev Oct 24, 2026
6fa8083
refactor(native): use exact optional IPS source evidence
gensokyo-dev Oct 24, 2026
93e5c43
docs(native): verify IPS escape capacity and complete-task costs
gensokyo-dev Oct 24, 2026
6d77f26
chore(native): integrate current main for IPS verification
gensokyo-dev Oct 24, 2026
c838cae
test(native): verify IPS through production stdio MCP
gensokyo-dev Oct 24, 2026
f6c270d
style(tests): format IPS advertised schema bindings
gensokyo-dev Oct 24, 2026
174c749
fix(native): preserve unresolved IPS references and recorded frame se…
gensokyo-dev Oct 24, 2026
a5cdb34
docs(native): record IPS reference review evidence
gensokyo-dev Oct 24, 2026
0a3dbf2
fix(apple-ips): enforce JSON and report consistency
gensokyo-dev Oct 24, 2026
38b5a3c
Merge commit '98ec00f4068bab894639d0d1d83ac0bfc428bcbf' into maintena…
gensokyo-dev Oct 24, 2026
98e1a61
docs(apple-ips): record final consistency verification
gensokyo-dev Oct 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(native): verify IPS escape capacity and complete-task costs
  • Loading branch information
gensokyo-dev committed Oct 24, 2026
commit 93e5c43e9a087adfeff5c5d96005aab2592156e1
63 changes: 63 additions & 0 deletions docs/verification/apple-ips-2026-10-24.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,66 @@ and actual CI merge `440029745397d78103a623fd1fd91cfa09fc6df5` each reproduce
messages. The failing test and selected producer sources are byte-identical.
The subsequent main integration fixes that closing race, and all 12 cleanup
cases pass within the 191 checks. Cancelled CI coverage was not executed.

## Follow-up string capacity and identity review

Baseline `45a570656cb3b9a7a8bf41302e1f01f8662bc884` and candidate
`6fa8083fc6974bc18c7d227ded33db28eb590f03` isolate three further corrections:

- Retained JSON strings are syntax-checked by the same scanner used for skipped
strings, then escaped literals are decoded by the native JSON string parser.
Unescaped strings retain the slice fast path. The superseded per-escape
fragment array is gone; decoded length is bounded by the selected input's
literal length. Malformed escapes and controls still fail before projection.
- UUID interpretation owns format validation before canonicalization. Both
32 hexadecimal digits and canonical hyphenation are accepted. Malformed
nonempty spellings remain in `coverage.type_mismatches[].recorded_value`,
canonical identity stays unknown and coverage becomes partial. Absent UUIDs
and the documented all-zero unknown sentinel remain distinct from that
malformed-value outcome. The field uses the existing exact-optional contract
convention; it does not admit an explicit JavaScript `undefined` value.
- `metadata.bug_type` is literal `"309"` in the domain and advertised schema.
The service rejects unsupported reports from defective/custom ports too.

Seven new cases failed against the earlier production code: four malformed
UUID spellings, two unsupported port kinds and a public CLI capacity case.
The latter selects a file below the 16 MiB allowance containing 7,500,000
newline escapes. Earlier decoding exhausts a 256 MiB Node old-space limit;
the corrected CLI completes with every character verified by length and
SHA-256. This is an old-space setting, not a 256 MiB total RSS claim.

The first expanded run passed 182 of 183 cases; the advertised-schema MCP case
hit its 30-second test deadline. Its isolated two-case file then passed, and
the expanded schema assertions passed again. After switching to the final
exact-optional representation, both MCP cases passed once more: actual SDK
schemas reject a forged `bug_type: "288"` and admit the partial result with its
exact malformed UUID spelling. `check:fast` passed. The two public crash
reports also passed again through an actual stdio MCP client and Ajv2020.

Twelve further completed CLI tasks used three alternating pairs for the same
public LLVM report and a generated 4,000,063-byte report containing 2,000,000
newline escapes (SHA-256
`5c4a9282da37091973774bf98c6822caeecbc1d74d7c44cd4eda1937ad05e350`).
Every complete Evidence field, including IDs, is identical within each case.
The escape case explicitly selects an 8 MiB read allowance; both revisions
complete under the same default 2 GiB old-space task environment.

| Completed task | Estimated tokens, both revisions | Elapsed seconds, before → after | CPU seconds, before → after | Peak family RSS MiB, before → after |
| ------------------ | -------------------------------- | ------------------------------- | --------------------------- | ----------------------------------- |
| LLVM public report | 5,851 | 2.071 → 1.970 | 2.378 → 2.328 | 365.3 → 366.0 |
| 2,000,000 escapes | 4,000,703 | 2.425 → 2.374 | 2.457 → 2.289 | 459.3 → 372.1 |

Values are medians. Escape-case elapsed ranges overlap: 2.120–2.930 seconds
before and 2.324–2.424 after, so no elapsed-time improvement is established.
Its CPU ranges are 2.318–2.521 versus 2.245–2.297 seconds; sampled peak RSS
ranges are 457.4–462.9 versus 371.5–372.9 MiB. The measured dense-escape task
reduces median CPU by 6.8% and sampled memory by 19.0%; those observations are
specific to this case. LLVM ranges overlap and show no general speed gain.
Complete output and estimated tokens are unchanged.

Tokens use tokenx 1.3.0 estimates for the invocation plus all stdout, not model
billing. These are known CLI tasks with existing inputs, fresh processes and
warm OS caches. Input creation, cold disk, discovery, client parsing, prompts,
schemas, MCP envelopes and retries are outside that comparison. The same
50 ms descendant RSS sampling and waited-child CPU limitations above apply.
Later main integration is not part of these cost measurements.