Skip to content

feat: fix apply engine delete, add tests, restructure into uv workspace#5

Merged
urmzd merged 4 commits intomainfrom
refactor/workspaces
Apr 4, 2026
Merged

feat: fix apply engine delete, add tests, restructure into uv workspace#5
urmzd merged 4 commits intomainfrom
refactor/workspaces

Conversation

@urmzd
Copy link
Copy Markdown
Owner

@urmzd urmzd commented Apr 3, 2026

Summary

  • Fix apply engine delete bug: Delete operations now preserve markers per spec §4.2 (was using resolve_target_inclusive which removed markers + content; switched to resolve_target for exclusive range)
  • Add 44 new tests (72 total) covering: insert_before, delete preserves markers, nested targets, pointer operations, RFC 6901 escaping, all-or-nothing semantics, store eviction, and more
  • Restructure into uv workspace with PEP 420 namespace packages:
    • aap-core (libs/core/) — Rust/PyO3 bindings via maturin
    • aap-evals (libs/evals/) — Eval framework via uv_build
    • aap-cli (apps/cli/) — CLI entrypoint via uv_build
  • Simplify justfile — remove .so copy hack and cd evals prefixes

Test plan

  • cargo test — all 72 Rust tests pass
  • uv sync — workspace resolves, maturin builds core
  • uv run aap-evals run — experiment 002 completes successfully (92.6% output token savings)

urmzd added 4 commits April 3, 2026 18:57
- Fix delete op to preserve markers per spec §4.2 (was removing them)
- Add 44 new apply engine tests (72 total) covering ID-based, pointer,
  store, and cross-cutting edge cases
- Restructure Python packages into aap namespace (PEP 420):
  - libs/core: aap.core (Rust/PyO3 bindings via maturin)
  - libs/evals: aap.evals (eval framework via uv_build)
  - apps/cli: aap.cli (CLI entrypoint via uv_build)
- Eliminate .so copy hack — uv sync handles everything
Reduces package from 991 files (3MB) to 20 files (46KB) by excluding
Python workspace, specs, scripts, and CI config.
… Protocol (GAP)

BREAKING CHANGE: wire markers changed from <aap:target> to <gap:target>,
protocol version from aap/0.1 to gap/0.1, Python packages from aap-* to
gap-*, and Rust lib name from aap to gap.
@urmzd urmzd merged commit 4c710d7 into main Apr 4, 2026
1 check passed
@urmzd urmzd deleted the refactor/workspaces branch April 4, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant