Skip to content

Releases

v2.94.0

Choose a tag to compare

@xgbtxy xgbtxy released this 04 Dec 00:46

Highlights (v2.94.0)

  • ap-hook Security & Self-Heal Primitives:
    • Sub-millisecond zero-regex CaMeL Indirect Prompt-Injection (IPI) & Unicode BiDi Trojan Source (CVE-2021-42574) + Unicode Tag/ZW smuggling scanner (--scan-ipi).
    • Deterministic 16-class PostToolUse error taxonomy & benign empty-search exit-1 filter (--classify-error).
    • Safe shell command normalizers (--heal-command: pwsh_python_c_b64, python -X utf8 -c, loopback curl --noproxy '*').
  • ap-winjob Pure Win32 Process-Tree Sandbox (0 external deps):
    • --restricted-token, --low-integrity MIC, --ui-restrictions, --max-processes, --max-output-bytes, --priority + --eco-qos, --no-net / --allow-loopback / --no-loopback, --no-reparse-cwd, --clean-env, and compact --json-receipt.
  • ap-guard & ap-splice:
    • Hardened Unicode Tag / zero-width smuggling stripping and prompt-injection rules plus AST & integration coverage.
  • Verification:
    • cargo test --workspace --locked: 344/344 PASS
    • cargo clippy --workspace --all-targets --locked -- -D warnings: 0 warnings
    • cargo fmt --all --check: PASS

Full Changelog: v2.93.0...v2.94.0

Full Changelog: v2.93.0...v2.94.0

v2.93.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 11:30

Full Changelog: v2.92.0...v2.93.0

v2.92.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 10:48

Full Changelog: v2.91.0...v2.92.0

v2.91.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 08:47

Full Changelog: v2.90.0...v2.91.0

ap v2.90.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:29

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 EvidenceNode observations (file:line / sieve:<id> refs with zero-dep FNV-1a file hashes) and revisioned ClaimNode hypotheses (open|testing|verified|falsified|invalidated|superseded).
    • Hard invariant: promoting a claim to verified requires >= 1 backing EvidenceNode; falsifications preserve rebuttal_ids and emit DerivedConstraint guards.
    • Dead-end collision detection warns before retrying near-duplicate falsified approaches; transitive file-drift checking marks stale verified claims invalidated (never falsified) and keeps ap baton resume --with-graph strictly <500 tokens (0.70 ms, 457 tokens on 30 evidence / 15 claims).
  • Scaled Two-Phase ap-recall Vault (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 indexed rule_path_triggers table for two-phase O(log N + K) candidate retrieval (20/20 100% top-1 accuracy at 10,000 rules).
    • Empirical Laplace utility ranking via ap recall feedback <id> --outcome helpful|unhelpful|obsolete, guaranteed --reserve-negative pitfall slots (100% surface rate), bilingual CJK+ASCII FTS5 tokenization, --scope/--store/--weight/--section isolation, incremental ap recall sync (mtime/SHA-256 skip + --prune), and ap baton promote / ap recall sync-baton.

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.gz archives, 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 .asar archives.
  • Deep Native Binary & Firmware Analysis: Pure-Rust binary surface summary (--surface, aliases ap bin_surface/objdump/re), --asar-surface, Windows driver IOCTL/device-pipe extraction (--ioctl with NTSTATUS CTL_CODE noise filtering and MSVC x86-64 sub switch-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 <50ms audit 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 parallel impact/changes/trace/history, and repeatable --exclude / --exclude-file filters.

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), --flow multi-step stateful runner with {{var}} extraction, --mutate-matrix 7-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, plus ap probe ws --replay-har recorded WebSocket replay.
  • CDP & Native Win32 Surface Auditing: ap probe cdp --eval-stdin and --export-role (with --redact); ap probe win --all, --procs integrity levels, named-pipe server PID/IL attribution, --sig Authenticode/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 patch from 16 to 22 patches (MCP short aliases, first-wins session_before_compact ownership, LRU stale-IP coalescing DNS cache, structured read EOF clamp, 32 MB temp-log cap + lazy GC, and >20 KB Windows command-line spill).
  • Modular assets/zz-ap-accelerator.ts with strictly cache-neutral hooks: Turn-0-only .baton seeding, sieve:<id> archive handle bridge, deduplicated [ap recall-guard] + settle helpful feedback, [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 during ap init, lost Unix file modes on atomic ap-splice/ap-undo writes, 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 in ap-probe, hasRg guard in install.rs tests, Windows core.autocrlf LF normalization).
  • Added dead-PID-aware stale-lock recovery across ap-baton/ap-recall/ap-sieve, UTF-8/UTF-16 BOM & CRLF preservation across ap-splice, Windows Job-Object cleanup across exec/mcp/probe, ap audit Antigravity CLI telemetry, atomic stats.jsonl (error_count & p95_ms), and .cargo/config.toml CFLAGS=-DNDEBUG.

Verification & v2.90.0 Benchmarks (bench/results.json)

  • cargo fmt --all -- --check: PASS
  • cargo clippy --workspace --all-targets --locked -- -D warnings: PASS (0 warnings)
  • cargo test --workspace --locked: PASS (271 passed, 0 failed, 0 ignored)
  • ap bench highlights (release LTO):
    • baton_graph_handoff (30 evidence / 15 claims): 0.70 ms drift+render, 457 tokens (<500), collision & transitive invalidation verified
    • recall_benchmark_200_rules: 20/20 (100%) top-1, 1.50 ms median, 99.3% token reduction (47.8 vs 6,880 tok)
    • recall_scale_10k_rules (10,000 rules): 20/20 (100%) top-1, 26.34 ms median, 100% negative-slot surface rate
    • atlas 64-module Tree-sitter scan: 26.8 ms (98.9% reduction); splice view 1.44 ms (95.4%); probe slice 13.3 ms; sieve 97.0–99.6% log reduction; idle frontmatter 390 tokens.
  • Prebuilt 5-platform binaries + SHA256SUMS published automatically via GitHub Actions.

v2.70.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 06:49

Full Changelog: v2.69.0...v2.70.0

v2.69.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 05:59

Full Changelog: v2.68.0...v2.69.0

v2.68.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 05:47

Full Changelog: v2.67.0...v2.68.0

v2.67.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 05:25

Full Changelog: v2.66.0...v2.67.0

v2.66.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 05:10

Full Changelog: v2.65.0...v2.66.0