Repository navigation
ap v2.90.0
ap v2.90.0 — Structured IOSM Memory, Semantic/IPC/Binary/AI-Surface Auditors, Multi-Role HTTP/HAR/WS & Win32 Probes, 22-Patch Pi Runtime & Silent-Failure Fixes
v2.90.0 consolidates 30+ commits of pure-Rust primitive expansion, parallelization, structured agent memory, and fail-closed reliability hardening since v2.70.0 (including community contributor PR #1) — with 0 new external Cargo dependencies, 0 sibling ap-* crate dependencies, exact 37-tool MCP parity (+ ap_discover/ap_call, <36 KB inline catalog), and idle skill frontmatter locked at 390 tokens.
Highlights
1. Generic Structured Memory (IOSM): ap-baton Investigation Graph & ap-recall Two-Phase Utility Vault
- Evidence-Backed Investigation Graph (
ap baton observe|hypothesis|revise|graph|promote):- Immutable
EvidenceNodeobservations (file:line/sieve:<id>refs with zero-dep FNV-1a file hashes) and revisionedClaimNodehypotheses (open|testing|verified|falsified|invalidated|superseded). - Hard invariant: promoting a claim to
verifiedrequires>= 1backingEvidenceNode; falsifications preserverebuttal_idsand emitDerivedConstraintguards. - Dead-end collision detection warns before retrying near-duplicate falsified approaches; transitive file-drift checking marks stale verified claims
invalidated(neverfalsified) and keepsap baton resume --with-graphstrictly<500tokens (0.70 ms,457tokens on 30 evidence / 15 claims).
- Immutable
- Scaled Two-Phase
ap-recallVault (ap recall match|add|sync|feedback|sync-baton|verify):- Backwards-compatible SQLite migration adding
evidence_ref,assumptions,derived_constraint,outcome_pos,outcome_neg,status, and an indexedrule_path_triggerstable for two-phase O(log N + K) candidate retrieval (20/20100% top-1 accuracy at 10,000 rules). - Empirical Laplace utility ranking via
ap recall feedback <id> --outcome helpful|unhelpful|obsolete, guaranteed--reserve-negativepitfall slots (100%surface rate), bilingual CJK+ASCII FTS5 tokenization,--scope/--store/--weight/--sectionisolation, incrementalap recall sync(mtime/SHA-256 skip +--prune), andap baton promote/ap recall sync-baton.
- Backwards-compatible SQLite migration adding
2. Binary, Archive, Firmware, IPC Graph & AST/CFG Semantic Diff
- Structural Version & Deep Directory Diff (
ap diff/ap probe archive-diff): Compare PE/ELF/Go binaries,.asar/.zip/.whl/.jar/.tar.gzarchives, JS bundles, configs, and directory trees structurally. - Tree-sitter AST/CFG Semantic Diff (
ap read --diff): Diff code semantically across versions, ignoring formatting noise while surfacing structural and control-flow deltas. - IPC Graph Stitcher (
ap read --ipc-graph): Stitch cross-boundary IPC channels and handlers across JS/TS codebases and.asararchives. - Deep Native Binary & Firmware Analysis: Pure-Rust binary surface summary (
--surface, aliasesap bin_surface/objdump/re),--asar-surface, Windows driver IOCTL/device-pipe extraction (--ioctlwith NTSTATUSCTL_CODEnoise filtering and MSVC x86-64subswitch-chain decoding), PE RPC/COM/ALPC surface (--rpc-com-alpc), firmware surface (--fw-surface), and binary string context search.
3. Static Taint, Guard-Asymmetry Sweeper & AI-Surface Auditor
- AI-Agent / IDE / MCP Trust-Boundary Auditor (
ap guard ai-surface): Pure-Rust<50msaudit of agent, IDE extension, and MCP configurations. - AST Guard-Asymmetry Sweeper (
ap atlas variants): Ranks unguarded sibling functions calling sensitive sinks across a codebase. - Interprocedural Taint & 2–4x Parallel
ap-atlas: Source-to-sink guard reachability, C++ call-chain tracing, 2-hop interprocedural taint, constant-literal argument filtering, deterministic parallelimpact/changes/trace/history, and repeatable--exclude/--exclude-filefilters.
4. HTTP Roles-Matrix, 7-Class Mutation, HAR/WS Replay, CDP & Win32 Surface Probes
- Multi-Role AuthZ Matrix & Stateful Flows (
ap probe http):--roles-matrix(--role-var,--cross-id,--vary-json-field,--sentinel),--flowmulti-step stateful runner with{{var}}extraction,--mutate-matrix7-class semantic/parser differential probes, and TCP barrier race oracle. - HAR / JSONL Trace Clustering & Replay:
ap probe http --from-har [--fuzz-schema]endpoint clustering & schema fuzzing, plusap probe ws --replay-harrecorded WebSocket replay. - CDP & Native Win32 Surface Auditing:
ap probe cdp --eval-stdinand--export-role(with--redact);ap probe win --all,--procsintegrity levels, named-pipe server PID/IL attribution,--sigAuthenticode/catalog trust,--weak-acl,--unquoted-svc,--com,--rpc,--non-ms, and autoruns/scheduled-tasks ACL checks.
5. 22/22 Pi v1.5+/v1.6 Runtime Patches & Cache-Neutral Modular Accelerator
- Expanded idempotent
ap pi patchfrom 16 to 22 patches (MCP short aliases, first-winssession_before_compactownership, LRU stale-IP coalescing DNS cache, structuredreadEOF clamp, 32 MB temp-log cap + lazy GC, and >20 KB Windows command-line spill). - Modular
assets/zz-ap-accelerator.tswith strictly cache-neutral hooks: Turn-0-only.batonseeding,sieve:<id>archive handle bridge, deduplicated[ap recall-guard]+ settlehelpfulfeedback,[ap investigation-pivot]on loops/stalls, IOSM compaction with[working_handoff_untrusted]prefix, multi-extension compaction yield, dynamic observation masking, and 3-streak read-only shell batch nudges.
6. Cross-OS & Fail-Closed Reliability Hardening (incl. PR #1)
- Merged PR #1 (
fix/silent-failures— thanks@wangyichuan9587-maker!): fixed silent dropped patch edits, unparseable JSON config overwrites duringap init, lost Unix file modes on atomicap-splice/ap-undowrites, and multi-byte UTF-8/CJK slice panics in JS IPC sink windows. - Resolved Linux/macOS/Windows CI compile/clippy/test parity (
#[cfg(windows)]gating inap-probe,hasRgguard ininstall.rstests, Windowscore.autocrlfLF normalization). - Added dead-PID-aware stale-lock recovery across
ap-baton/ap-recall/ap-sieve, UTF-8/UTF-16 BOM & CRLF preservation acrossap-splice, Windows Job-Object cleanup acrossexec/mcp/probe,ap auditAntigravity CLI telemetry, atomicstats.jsonl(error_count&p95_ms), and.cargo/config.tomlCFLAGS=-DNDEBUG.
Verification & v2.90.0 Benchmarks (bench/results.json)
cargo fmt --all -- --check: PASScargo clippy --workspace --all-targets --locked -- -D warnings: PASS (0 warnings)cargo test --workspace --locked: PASS (271 passed, 0 failed, 0 ignored)ap benchhighlights (release LTO):baton_graph_handoff(30 evidence / 15 claims):0.70 msdrift+render,457tokens (<500), collision & transitive invalidation verifiedrecall_benchmark_200_rules:20/20 (100%)top-1,1.50 msmedian,99.3%token reduction (47.8vs6,880tok)recall_scale_10k_rules(10,000 rules):20/20 (100%)top-1,26.34 msmedian,100%negative-slot surface rateatlas64-module Tree-sitter scan:26.8 ms(98.9%reduction);spliceview1.44 ms(95.4%);probeslice13.3 ms;sieve97.0–99.6%log reduction; idle frontmatter390tokens.
- Prebuilt 5-platform binaries +
SHA256SUMSpublished automatically via GitHub Actions.