Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions CHAGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Keep proposed and unmerged changes out of released sections.

## [Unreleased]

- Proposed [PR #1209](https://github.com/BitterSecurity/Decepticon/pull/1209) on the rust-anything streaming text experiment. Recorded parity held for 231 cases, while the Node native binding was slower in the local microbenchmark. See the [measured results](docs/verification/rust-anything-streaming-text-20261120.md).

- Live-capture qualification ([#1206](https://github.com/BitterSecurity/Decepticon/pull/1206)) for [#1198](https://github.com/BitterSecurity/Decepticon/pull/1198), unreleased: the public README-only Codex session is actually recorded with one completed turn and zero pending turns. Preserve local-only checkpoint policy, generated hook bytes, trust records and the canonical OSS checkout. No runtime/package/release change; process exit and commit checkpoint creation are not claimed. [Evidence](docs/operations/entire-public-live-capture-20261118.json).

- Integration review for [#1198](https://github.com/BitterSecurity/Decepticon/pull/1198), unreleased: preserve latest-main history and the Axum instruction while integrating the official local development configuration. All 11 proposed files, seven hook shell commands and JSON/TOML settings are reviewed; automatic checkpoint pushing and telemetry remain disabled, Brain no-egress remains configured, and generated hooks are unchanged. Actual CLI still reports seven project hooks awaiting interactive approval; live public-repository capture is not qualified. No application runtime, release or trust-hash change. [Review and limitations](docs/operations/entire-native-development-20261115.md#integration-review-2026-11-17).
Expand Down
42 changes: 42 additions & 0 deletions docs/verification/rust-anything-streaming-text-20261120.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Rust parity experiment for streaming text

The TypeScript `stripResultTags` formatter in
[`clients/shared/streaming/src/utils.ts`](../../clients/shared/streaming/src/utils.ts)
matched a Rust implementation on all 231 recorded cases. The Node native
binding measured 899 ns per call versus 76 ns for TypeScript, so the
experiment recommends keeping the existing implementation.

The run used rust-anything 2.0.2, Cargo 1.97.1, Node 24.13.0, Linux x86-64,
and baseline `be0892d55187c2ebb9ee24109020558241eaab14`. The benchmark
includes the Node-to-Rust call and used rust-anything's default 200 ms
minimum sample time per side. These numbers describe this local run and
this corpus. They do not measure browser or whole-application performance.

The Rust implementation scanned the original string in order, skipped
only the two literal tags, and trimmed the ECMAScript whitespace set.
The corpus included Korean text, emoji, byte-order marks, nonbreaking
spaces, and two Unicode characters that JavaScript deliberately leaves
untrimmed. It also checked that removing a tag does not cause a newly
formed tag to be removed in a second pass. For example,
`</re<result>sult>` becomes `</result>`.

`rust-anything diff` and `rust-anything gate` both matched 231 of 231
cases. The latter also passed formatting, Clippy, Cargo test, native
build, and the export check. Coverage was 17 of 30 lines in the file
because the experiment covered only `stripResultTags`. The file also
exports `extractText`, which stayed in TypeScript. The cases do not
establish parity for isolated UTF-16 surrogates or for the application
as a whole.

To reproduce the tool setup, use a disposable output directory and
Rust 1.97 or later. Run the following from the repository root. Then
implement the function in the generated `src/port.rs`, record with
`--inputs` for the edge cases above, and run `build`, `diff`, `gate`,
and `bench` on that crate. Local Cargo builds and gates use the shared
build slot.

```sh
rust-anything bridge clients/shared/streaming src/utils.ts \
--kind napi --keep 'extractText: dynamic JavaScript coercion' \
--name streaming-text-rs --out /tmp/streaming-text-rs
```
Loading