You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(installer): confine writes to the project and stop guessing on markers
Adversarial audit of the 0.5.2 upgrade path found the installer would write
through a pre-planted symlink (with or without --force) to a file outside
the project, report false success on a begin-marker with no end, delete user
content between a stray begin and the real block, and honor an undocumented
--update alias with force semantics.
Writes now refuse symlinked or out-of-tree destinations, malformed or
duplicated marker pairs abort untouched, every destructive dedicated-file
update saves the replaced content to <file>.bak, and unknown flags are
rejected. Rule body unchanged; v0.5.3.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ The full rule your agent reads is [`agents/codex/AGENTS.md`](agents/codex/AGENTS
79
79
npx github:Da7-Tech/trial cursor
80
80
```
81
81
82
-
Re-running upgrades in place: shared files (`AGENTS.md`, …) update between their managed markers, and dedicated rule files update when they hold a Trial rule (a same-version reinstall is a no-op). A non-Trial file already at the destination path is never clobbered — the installer refuses and points you to `--force` if you really mean to replace it.
82
+
Re-running upgrades in place: shared files (`AGENTS.md`, …) update between their managed markers — malformed or duplicated markers make the installer stop rather than guess — and dedicated rule files update when they carry the Trial signature, with the replaced content always saved to `<file>.bak` first. A file without the signature is refused (re-run with `--force` to replace it; the `.bak` is still written), and the installer never writes through a symlink or outside the project directory.
Copy file name to clipboardExpand all lines: SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ name: trial
3
3
description: "A pre-delivery evidence gate for coding agents. Hold the final response as a private draft, judge every user-visible claim against fresh covering receipts, and release only verified results. Use when unsupported completion claims, shallow green tests, stale evidence, or high-risk changes must not reach the user."
0 commit comments