Skip to content

Implement PXP v2: fenced-Markdown changeset format + deterministic Node CLI#1

Open
otar wants to merge 1 commit into
mainfrom
claude/pxp-v2-implementation-m7y2t9
Open

Implement PXP v2: fenced-Markdown changeset format + deterministic Node CLI#1
otar wants to merge 1 commit into
mainfrom
claude/pxp-v2-implementation-m7y2t9

Conversation

@otar

@otar otar commented Jul 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

…de CLI

Replace the v1 Bash/YAML tool with a zero-dependency Node.js (ESM) CLI that
applies LLM-authored changesets deterministically, with no possibility of
silent misapplication.

Format: a fenced-Markdown carrier (.pxp.md) with SEARCH/REPLACE edit blocks,
plus create/delete/rename/run ops. Fence-first parsing keeps arbitrary source
(tabs, backticks, nested fences) verbatim.

Matching (safety-critical, pure): Pass 1 byte-exact after whitespace/CRLF
normalization; Pass 2 indent-normalized exact match with re-indentation. No
similarity/fuzzy path exists. Ambiguity and no-match both fail loudly with a
nearest-miss repair packet. --strict disables Pass 2.

Executor: git-checkpointed atomic apply — full dry-run before any write, ordered
apply, hard rollback to checkpoint on failure, commit with a PXP-Changeset
sha256 trailer on success. Run ops are refused without --allow-run.

CLI: validate / plan / apply / prompt, with --strict --allow-run --json
--keep-on-fail --no-commit --no-color. Terraform-style terminal report plus a
token-capped JSON repair packet.

Docs: rewritten SPEC.md and README.md for v2, new PROMPT.md planner contract
(printed by `pxp prompt`), updated CLAUDE.md/AGENTS.md, and a Claude Code
integration skill. Removes v1 pxp.sh, test_pxp.sh, and example_changeset.yml.

Tests: 54 node:test cases across parser, matcher (property-style), validator,
executor (fault-injection/atomicity), reports, and acceptance (dogfood apply,
pack-size < 50KB, cold validate < 1s, no-fuzzy-code gate).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LsZX6H149fSi8YkNwTtJE
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.

2 participants