Implement PXP v2: fenced-Markdown changeset format + deterministic Node CLI#1
Open
otar wants to merge 1 commit into
Open
Implement PXP v2: fenced-Markdown changeset format + deterministic Node CLI#1otar wants to merge 1 commit into
otar wants to merge 1 commit into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.