Add guarded-surface safety rules#140
Open
eggrollofchaos wants to merge 1 commit into
Open
Conversation
Teach Ponytail to keep a lite posture on guarded surfaces like auth, persistence, money, privacy, concurrency, security, and public APIs. Preserve authorization, validation, idempotence, migrations, auditability, rate limits, privacy boundaries, concurrency safety, tests, and public API compatibility when minimizing code. Strengthen copied-rule checks so the safety text does not drift. Also make the correctness benchmark runner portable by using explicit Python interpreter resolution and uv fallback for pandas. The default Ponytail mode remains full.
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.
Summary
/ponytail-reviewas a complexity pass only, not approval to remove safety controls.uvfallback paths instead of assuming basepython3has pandas.Motivation
Ponytail already says "lazy, not negligent." Public feedback points to correctness-by-context: a shorter answer can be right for one prompt while quietly dropping validation, readability, maintainability, or future-change affordances.
This PR makes that leash explicit for the surfaces where "less code" can otherwise become "less responsibility."
Verification
node scripts/check-rule-copies.jsnode --test tests/*.test.js pi-extension/test/*.test.jsLatest local run: 12 rule invariants, 10 hook invariants, 47/47 tests passing.
Suggestion for default mode change
Consider making
litethe default Ponytail mode. The tool makes potentially broad changes to everyday agent behavior; users will likely want to test it inlitefirst, watch it work on their own codebase, and then decide whether to runfullbroadly across their agents.