Repository navigation
Added
-
praetore-mcp: a signed receipt for a client line it cannot parse.
(#262) A line that is not UTF-8, not JSON, or has a duplicate key, a
lone surrogate escape, too deep a nesting or a number out of range now
gets onemcp.unparsed_linereceipt before it is forwarded (observe) or
refused with-32700(enforce). A line that may name asafety*tool is
still refused in both modes, and its receipt says so with
may_name_safety: true. The receipt records the SHA-256 and length of
the raw bytes, a closed parse-error class and the tool names a tolerant
reader sees (record only). It is a DENY by the unclassified-action
guard, never an ALLOW, and it does not change what happens to the line;
if it cannot be written, the line is handled the same way and the stderr
notice says so.receipts, the dashboard and the session report show it
asUNPARSED <sha256 prefix>. A policy that declaresmcp.unparsed_line
inaction_classesis now refused bypolicy check, bywrapand by the
policyedits. Lines without this receipt: a line with a bare\r
(handled as an ambiguous line), a line over 32 MiB, and every line while
the home cannot be loaded. Enforce now writes one receipt per refused
unparseable line, so receipt counts grow. Olderreportand dashboard
versions show such a receipt as a DENY with tool(omitted); verifiers
check it as any other receipt. -
praetore-mcp:
doctorchecks that the definition Claude Code runs for
each governed server is a wrap for this home. (#276) Claude Code keeps a
server name in up to four places and runs the whole entry from the
highest one:managed-mcp.json, local scope, an approved project
.mcp.json, then user scope.installwraps user and project scope
only, so a repository whose.mcp.jsonships a rawfilesystemshadows
the wrapped user-scopefilesystemas soon as the user approves the
project's servers: every tools/call then runs without praetore-mcp,
without a receipt, andverifypasses unchanged.doctor [--dir DIR] [--project PATH]resolves the winner for every policy target and every
entry wrapped for DIR, printsOK,FAILorWARNper server with the
scope, file and command, and onFAILtheclaude mcp remove NAME -s SCOPEorinstallline that fixes it. Exit 1 for a raw winner, a wrap
for another home, mode or name, or a target with no definition; 2 for a
file that is not strict JSON. The README section "Known limits of
install" now points the shadow cases todoctor. -
Example policy for the filesystem MCP server in Claude Code. (#254)
examples/claude-code-mcp-policy/policy.jsonallows the read-only tools
of the filesystem server by name, denieswrite_file,edit_fileand
move_file, and leaves every other tool to the default deny; a test
checks it aspolicy checkdoes and evaluates one allowed and one denied
call. Its README (#258) states the two conditions (the server must be
namedfilesystem; there are no path conditions) and that the denies
block only in enforce mode:installwrites observe by default, where a
denied call is forwarded and its receipt records the DENY. -
praetore-verify for macOS arm64 in the release. (#257)
praetore-verify-vX.Y.Z-aarch64-apple-darwin.tar.gz(binary, LICENSE,
NOTICE), built and smoke-tested on macOS arm64, listed inSHA256SUMS
(five lines) and covered by its Sigstore signature. Linux x86_64 still
ships the barepraetore-verify. -
praetore-mcp:
install --client claude-code(#201) (aliascc). Wraps the
stdio servers of~/.claude.json(user scope) and./.mcp.json
(project scope): an entry with notypeor"type": "stdio", a
commandand nourl. Remote entries (http,sse,ws,
streamable-http,sdk, an unknowntype, anyurl) are listed as
not wrapped (remote server). Local-scope servers are not wrapped: each
is listed, a local entry that overrides a wrapped user entry is named,
andinstallends with a WARNING. Only themcpServersvalue is
rewritten. A file that changes whileinstallruns is not written.
installwithout--clientnow also processes~/.claude.jsonwhen it
exists.
The README section "Known limits ofinstall" lists seven cases, for
Claude Code and in part for every client, in which what runs after
installcan differ from whatinstallreported. The first, an entry
wrapped for another binary, home or mode, ends with
NOT governed by this homeand exit 1, for Claude Code too; the other
six are not closed in this version. -
Delegated authority to approve. (#158) A tenant's delegation root, pinned
in the optionalPRAETORE_GATEWAY_DELEGATION_FILE, signs delegations to
delegators and approvers with an exact list of action types, a validity
window and a decreasingmax_depth; revocations are signed by the
delegation's issuer or the root and invalidate every delegation below.
Schema version 2 human decisions carry thedelegation_chainin the
signed payload. The gateway checks the chain when it records the decision
and when it claims the dispatch;praetore-verify outcomeschecks it with
--delegation-root-pin,--delegationsand--policy, and fails a
version 2 decision without them (DELEGATION_UNVERIFIED). The root
approves in its own name only when the policy sets
approval_delegation.root_may_approve; absent, the policy digest is
unchanged. Revocations are read at startup: a new one needs a restart.
Version 1 decisions and existing policies are unchanged. The console
still signs version 1 decisions only, and its compliance package fails
for a tenant with version 2 decisions; verify those with
praetore-verify outcomes.
Design:docs/proposals/approval-delegation.md. -
praetore-mcp:
verify --expected-approval-head HEX. (#199) The approval
journal must end at a head printed earlier, as--expected-headdoes
for the receipts journal: records cut from the end, or the whole file
deleted, failverify.dashboardtakes the same flag, and the session
report printspraetore-mcp verify --dir DIR --expected-head ... --expected-approval-head ...with both heads at close (JSON
verify_command, and the last section of the PDF). The README check of
a saved approval head uses the flag. Theapproval journal: ... head HEX
line now ends with where to keep the head and which flag takes it, and
the approval checks (inverifyand in the dashboard) say "one use per
approval" with the case where it does not hold instead of "single use". -
praetore-mcp: the receipt of a call forwarded on an approval names it. (#199)
The receipt carriescontext["praetore.approval_id"], signed with the
intent. Before forwarding,wraptreats an approval as used when the
approval journal has its execution or a receipt in the receipts journal
names it, so cutting the approval journal alone no longer frees a used
approval.verifyfails when two receipts name one approval, when a
receipt names an approval with no signed decision or a rejected one, or
when the approval journal has no execution of it for that receipt.
Receipts without the key (v0.3.6 and before) verify as before, with
praetore-mcp verifyand withpraetore-verify; tests pin a home
written by 0.3.6 and one written with the key. -
praetore-mcp: approval TTL in the home config. (#189)
approval_ttl_seconds
inDIR/config.toml(1 to 86400) sets how long a pending approval stays
open, even when the MCP client startswrapwith a filtered environment.
PRAETORE_MCP_APPROVAL_TTL_SECONDSstill wins over it, and
approvals/ttl-secondsis still read after it.wrapnow reads and
checks every TTL source that is set before it starts the server: a value
out of range or not an integer in any of them, a malformed
approval_ttl_secondsline (approval_ttl_seconds: 1800included), or a
config.tomlthat cannot be read or starts with a byte order mark, stops it with exit code 2 and names the source, even when
a source of higher priority is valid.
Breaking
-
praetore-mcp: observe refuses a call it cannot record, like enforce. (#264)
When the receipts journal could not take the receipt (a blank or cut last
line, a whitespace-only later daily file,receipts/or the daily file
replaced by a symlink, a read-only daily file,.journal.lockheld by
another process for more than 10 s, a full disk), observe forwarded the
tools/callwith a stderr warning and no receipt. The journal still read
back intact, soverify --expected-headwith the head kept earlier said
OK and nothing showed that calls had run. The same happened when a call
could not be evaluated after startup (clock, replay guard), and for an
ambiguous line whosetools/callreading could not be recorded. All of
these are now refused in observe as in enforce: the client gets an MCP
tool error saying that no receipt could be recorded (with the evidence id
when there is one) and stderr saysREFUSED (observe, ...). Observe
still never blocks because of a policy decision: a DENY or
REQUIRE_APPROVAL is forwarded with its receipt, as before. Unparseable client
lines get onemcp.unparsed_linereceipt before they are forwarded
(observe) or refused with-32700(enforce); if it cannot be written, the
line is handled the same way and the stderr notice says so (see Added,
#262). Action: if you run observe, a home
that cannot record (full disk, a lock held by another process, a
read-only or damaged journal) now stops tool calls instead of letting
them run unrecorded; the client shows the error. Fix the journal (the
troubleshooting table in the GUIDE lists each message) to resume. -
praetore-verify:
--require-anchoredis accepted byoutcomesand
safety-journal, and on a range it needs--expected-anchortoo. (#272)
Both commands verified without--expected-headand printed OK with
only thehead_not_anchoredwarning, andjournal --range --require-anchoredpassed with the head alone while the anchor'sseq
andprevwere only what the file said. Nowoutcomes --require-anchored
fails withJOURNAL_NOT_ANCHOREDandsafety-journal --require-anchored
withSAFETY_JOURNAL_NOT_ANCHOREDwhen no--expected-headwas given,
after the chain verifies; a range under--require-anchoredwithout
--expected-anchorfails withJOURNAL_RANGE_NOT_ANCHOREDor
SAFETY_RANGE_NOT_ANCHORED.range_startisnullunless
--expected-anchorwas given, in both commands.
Action: a script that verifies a range with--require-anchoredmust also pass
--expected-anchor, and a JSON consumer readsrange_startonly when
--expected-anchorwas given. Outcome records (approvals.jsonl) are
still not chained:--require-anchoredanchors the journal, not them. -
praetore-verify outcomes: a gateway key pinned as a human role is
refused. (#272) An--approver-pinor--delegation-root-pinwhose key is
also an--execution-pinor an--attester-pinfails with
OUTCOME_PIN_SAME_KEYbefore any record is read, assafety-manifest
refuses a namespace key shared with another role.
Action: give the approver and delegation-root roles keys of their own. -
praetore-mcp:
reporthas the level and exit code ofverify; without
heads it exits 3. (#255) It printedverify passedand exited 0 when
verifywas UNANCHORED; it now printsverify OK,verify UNANCHOREDor
verify FAILand exits 0, 3 or 1, asverify.reporttakes
--expected-headand--expected-approval-head. The verify command
printed in a report of a home with no approval journal now ends with
--expected-approval-head none, so it can reach OK. The JSON header adds
verify.assuranceandverify.exit_code;verify.resultstays, but
result: passedonly means that no check failed: the level is in
verify.assurance. The dashboard Sessions chip shows that level (OK,
UNANCHORED, FAIL); a report written without it is never shown as OK.
A script that runsreportwithout the heads and expects exit 0 now
gets 3. -
TrustedClockErroris#[non_exhaustive]and gainsRegressed. (#246) A
source returnsRegressedwhen it reads a time earlier than one it
already returned.TrustedClockSourcelatches on it for good, so a
later healthy read (for example afterChronyClock's monitor clears
its own failure) does not lift the engine's latch. The latch lives
only in process memory and does not survive a restart; an explicit
way out is pending P-54-5/P-16-4 (schema 3). Action: add a wildcard
arm to exhaustive matches, and handleRegressedif the source
distinguishes a regression fromUntrustedorUnavailable. -
Delegated approval changes Rust types. (#158)
HumanApprovalDecisiongains
delegation_chain: Option<Vec<String>>(version 1 decisions leave it
Noneand serialize as before),OutcomeKeysgainsdelegation,
ApprovalErrorgainsRootMayNotApproveandDelegation,Policygains
approval_delegation, andOutcomeReportgainsdelegated. Action: add
delegation_chain: Noneanddelegation: Noneto struct literals, and
handle the new error variants in exhaustive matches. Nothing signed,
recorded or exported by earlier versions changes. -
praetore-mcp:
verifyexits 0 only against both heads; without them
it exits 3. (#217) A journal rewritten from the first entry with the keys in
the home, or cut at the end, passedverifyasOK: every check read
only the home.verifynow has three results:OK(exit 0) when both
--expected-headand--expected-approval-headare given and both
journals end exactly there,UNANCHORED(exit 3) when every check
passed but a head is missing, with a warning that says what cannot be
detected, andFAIL(exit 1). Both options takenonefor a journal
that must not exist yet. A script that runsverifywithout the
heads and expects exit 0 now gets 3.initprints how to save the
heads, and the dashboard state hasverify.assurance
(anchored,unanchored,failed). -
praetore-mcp: an invalid TTL source stops
wrapeven when another one
wins. (#189) Before, only the source in use was read:
PRAETORE_MCP_APPROVAL_TTL_SECONDShid a badapprovals/ttl-seconds
(0,soon, a value over 86400), andwrapstarted. Now every source
that is set is checked, so an existing home with such a file next to a
valid env var stops at startup with exit code 2 and
approval TTL: approvals/ttl-seconds ...; wrap did not start. The same
holds for a badapproval_ttl_secondsinconfig.toml. Action: fix or
delete the file the message names.
Changed
-
praetore-mcp: a session report whose receipts journal is empty says so
plainly. (#229) Whenverifyfails because the journal has no entries and
every receipt the session named is gone, the PDF headline, the JSON
header (verify.summary) and thereport/wrapsummary say that the
journal is empty or was deleted or truncated after those receipts were
written, and that every receipt this session named is gone.VERIFY FAILEDis unchanged. A journal that still has entries, with some
session receipts missing, keeps the previous wording. The GUIDE says to
close the client andwrapbefore deleting the journals for a clean
demo or test. -
Observability: praetore-mcp observe warnings for ambiguous client lines
include the SHA-256 and length of the raw line. (#145) The warning names the
line the same way the warning for an unparseable line does, so the
forwarded line can be matched in a capture. -
Rust dependency
ed25519-dalek2 to 3 (#227), with
curve25519-dalek5,ed255193 andsignature3, inCargo.lock,
fuzz/Cargo.lockandexamples/claude-code-hook/Cargo.lock.
praetore-core replacesrand_core0.6 withgetrandom0.4 for key
generation. Receipts signed with the 2.x crate still verify (golden
receipts, #237). -
Rust dependency
url2.5.8 to 2.5.9 (#236), with
form_urlencoded1.2.3, for RUSTSEC-2026-0592. Only the root
Cargo.lockchanges. -
PostgreSQL safety store:
store()runs in READ COMMITTED (#245)
whatever the database default is, like the execution journal. Under a
serializabledefault, the second writer for a chain position now gets
the unique violation and not a serialization failure (40001).
Fixed
-
praetore-core: three input bounds found by the 2026-11-26 audit. (#268) A
journal --rangeanchor whoseseqsat next tou64::MAXoverflowed
the chain counter (a panic with overflow checks, a wrapped entry count
without them); the anchor is now refused as malformed unless a full range
ofMAX_CHAIN_ENTRIESfits after it, and every increment is checked. A
delegation document between 64 KiB and its documented 1 MiB was refused
as invalid, because it was parsed under the limits of a single signed
value; it is parsed under its own limits (JsonLimits) and a document
of 600 roots loads. Unknown fields inside aRecovereffect were
accepted and ignored, so two different policy files shared one digest;
PolicyEffectnow refuses them, as the rest of the policy already did.
Pinned bycrates/praetore-core/tests/input_bounds_hardening.rs.
Action: a policy with an unknown field inside aRecovereffect no longer
loads; remove the field. -
claude-code-hook: the registration snippet pins
"disableAllHooks": false. (#275) A.claude/settings.jsonthat arrives with agit cloneor
git pulland sets"disableAllHooks": truedisabled the hook
registered insettings.local.json, with nothing in the receipts: the
hook never ran. Claude Code reads the value left after settings
precedence, andsettings.local.jsonwins over the shared project file,
so the explicitfalsein the registration keeps the hook on (checked
with Claude Code 2.1.332).--settings,--safe-mode,--restricted
and managed settings sit above it and can still turn hooks off; the
README says so. A test reads the README snippet and fails if the key is
removed.
Action: add"disableAllHooks": falseat the top level of your existing
<project>/.claude/settings.local.json. -
praetore-mcp: a receipts journal line is read only in the byte form
wrapwrites. (#266) Integrity and the chain link are computed over the
canonical evidence, so a line written again with other spacing, another
key order or a JSON escape verified, also against the saved head, while
the text read other bytes: a forwarded receipt whose
praetore.approval_idwas written aspraetore.approval\u005fidwas not
found by the substring searchwrapused for used approvals, and with
the execution record cut from the approval journal the same approval ran
again.verifyandreceiptsnow report such a line asnot in canonical form(the approval journal already did), andwrapparses
every receipt line before it forwards on an approval, so the call is
held. Lines written by praetore-mcp 0.3.4 and later are already in that
form. -
praetore-mcp: the journal and approval locks wait at most 10 s. (#252)
A process that keptreceipts/.journal.lockorapprovals/.lockleft
every call waiting with no reply. After 10 s the wait ends with an error
naming the lock: the receipt is not written, so the call is refused
(in both modes, see Breaking). -
praetore-mcp: the
-32700for a refused line carries itsid(#252)
when the line has one complete top-levelid. Otherwise theidis
null, as before. -
praetore-mcp:
reportlists a duplicated missing id once. (#234)
Two copies of the same gone receipt in the close report'sreceipts
array were both copied intomissing_evidence_ids, and the summary
counted both (failures_total + missing.len()). The id is kept once, in
first-seen order. The summary sentence is the same. Receipt lines that
are still in the journal are still copied as written. -
praetore-mcp:
reportrefuses a malformedmissing_evidence_ids. (#234)
Regenerating ignored the field when it was not an array, and skipped
elements that were not strings. With an emptyreceiptsarray that
dropped every gone id, soreportprintedverify passedand exited 0.
The field is still optional. When it is present and is not an array of
strings,reportexits 2 and writes nothing. A well-formed array is
unchanged, and so are the JSON, the summary text and the PDF. -
praetore-mcp: printed commands quote a path only when a shell would
interpret it. (#228)approve,reject,policy allowsuggestions from
policy coverage, and the other commands built bycommands::quote
(the running binary and--dir) are printed bare for a typical path
such as/Users/me/.local/bin/praetore-mcp. An empty argument, or one
with whitespace or a shell-special character, is still written in
single quotes ('as'\''). Control, zero-width and bidi characters
still use$'...'. Copying a command and losing a quote around a
typical path no longer makes zsh treat the whole line as one path.
Windows is unchanged. -
praetore-mcp:
reportkeeps evidence ids already missing at close. (#230)
Regenerating a session took ids only from the close report'sreceipts
array. If the journal was emptied whilewrapwas still open, that
array was empty (or held only a receipt written after the wipe), so
praetore-mcp reportprintedverify passedand exited 0 even though
the close report had named the missing ids and failedverify. The
regenerated report now includesheader.verify.missing_evidence_idsas
well, so those receipts stay missing,verifyfails, andreport
exits 1, as it does for any other failed verify. The wording of the
summary is unchanged. -
praetore-mcp: a JSON5 line can no longer hide a
safety*name. (#220) An
unparseable client line was refused in both modes when the raw text, or a
double-quoted JSON string, containedsafety. A name written as an
unquoted key (saf\u0065ty), in single quotes, or with a\xescape was
forwarded in observe, including when a comment or a trailing comma sat
beside it. Those forms are decoded and refused in both modes. The warning
still carries the line's SHA-256 and length. An escape inside a comment
is not a name. -
A late dispatch's HTTP 410 names the signed close. (#219)
POST /v1/approvals/{tenant}/{agent}/{request}/dispatchafter the approval
window closed now answers 410approved_claim_expiredand includes the
signednot_dispatchedreceipt. Thecodeis that receipt's
not_dispatched_reason. A window that closed with no decision is still
410approval_expired. Visible change: clients that treated a dispatch
410'scodeasapproval_expiredmust readapproved_claim_expired. -
praetore-mcp:
policy coveragetreats atoolPrefix as a selector. (#225)
The tool name is already known, so the decision matches the engine,
including case and unsafe values (..,%, NUL). It used to leave the
rule in the argument column and report default deny. -
praetore-mcp install: a wrapped entry for another binary, home or mode is not "already wrapped". (#222)
It printsNOT governed by this home; run uninstall, then installand
exits 1, including--dry-run, and does not change the file. Switching
observe to enforce is uninstall, then install. Editing--modein the
client config is not the switch: the next install still exits 1. -
A repeated journal INSERT no longer takes a position (migration 0025). (#163)
Before 0025,INSERT ... ON CONFLICT DO NOTHINGorDO UPDATEon a
primary key already inpraetore.execution_journaldiscarded the row
but committed the counter update inpraetore.journal_positions. The
gap inchain_seqis permanent, and every later export of that tenant
fails. The position trigger now refuses the existing key after it takes
the tenant lock, so the counter update is undone. Visible change:
ON CONFLICTon an existing journal key now returns SQLSTATE 23505
(unique_violation; 40001 under REPEATABLE READ) instead of doing
nothing. Gaps already present are not repaired, and export still
fails for them. Applying 0025 holds ACCESS EXCLUSIVE on
praetore.execution_journalonly for theDROP TRIGGER/CREATE TRIGGER(it does not rewrite rows): apply it with the gateways
stopped or in a maintenance window. Manual rollback:
docs/rollback/0025-journal-position-existing-key.sql. -
praetore-mcp: a client line over 32 MiB gets a JSON-RPC error. (#206) The
line is still not parsed and not forwarded (both modes). The client used
to get no reply and wait for its own timeout. It now gets-32600with
the request id when that value is complete in the first 32 MiB, or
-32700withidnull when it is not. The next line is answered normally. -
praetore-mcp: a condition key
arguments.a.bis not a nested field. (#205)
It matches a literal top-level argument key"a.b", which the caller
controls.policy checkused to warn and exit 0. It now exits 1.
wrap --mode enforcerefuses to load a policy that contains one, and
everytools/callis refused until the rule is removed. -
praetore-mcp: a
[table]line inconfig.tomlstopswrap. (#204) The file
is a flat list ofkey = valuelines. A header such as[tabla]or
[[tabla]]used to be a warning (expected key = value; ignored) and
the keys under it were still applied.wrapnow exits 2 and does not
start the server. A badreportvalue or an unknown key is still a
warning. -
praetore-mcp:
verify --expected-headpassed with receipts added
before the chain. (#216) A bare evidence line placed before the first chained
entry was counted as an "unchained earlier entry" and verified, and the
head did not cover it.verifynow rebuilds the chain from the head
backwards (journal::Chain::rebuild; the head is--expected-head, or
the last entry without it) and fails unless the lines of the journal
are exactly that chain, in order. A line outside the chain, a missing
entry and a reordered entry each fail, with the file and line.
Breaking: a journal with lines written by 0.3.3 or earlier no longer
verifies. Those lines have noseqorprev; move that journal out
ofreceipts/to keep it. An entry removed from the middle now also
fails the entries before it, which the chain no longer reaches. -
praetore-mcp: keys were read through symlinks. (#215) A scratch home whose
keyswas a symlink to another home'skeys/, with a policy that
allows everything, loaded:wrapsigned receipts with the other home's
keys, and the process that set it up never opened a key file. Keys are
now reached only throughKeyPath:DIR/keysmust be a real directory
and each key a regular file with one name, both owned by the user
running praetore-mcp, no directory above them may be a symlink made by a
user, and the file is opened withO_NOFOLLOW. On such a layoutwrap
refuses everytools/callin both modes, andinit,verifyand
policy checkexit non-zero. A home under a symlinked directory that
a user made (for example a symlinked~/.praetore) no longer loads;
move the home to its real path. Symlinks owned by root, such as/tmp
on macOS, are accepted. -
praetore-mcp: one number could stop the receipts journal for good. (#214)
The writer appended a receipt without reading it back, and only the next
append read that line. A call with a float such as99.9999999999999929
left a line that fails its own integrity check: in enforce every later
call was refused, in new sessions too, until the journal was repaired by
hand; in observe every later call ran with no receipt;verifyfailed.
The writer now appends only a line it has read back (VerifiedLine:
parsed as a chained entry, integrity checked, next link computed). When that fails nothing is written and the call is refused,
in enforce and in observe, and later calls are recorded as usual.
Observe now refuses a call in this one case, where before it
forwarded it without a receipt. A property test sends random floats and
number literals throughwrapin both modes and runsverify
(tests/journal_verified_line.rs). -
praetore-mcp: the gate decided on a number the server did not read. (#209)
serde_jsonwas built withoutfloat_roundtrip, so the proxy read
49.9999999999999965as 49.99999999999999 while it forwarded the
original bytes, which the server reads as 50.0. A ruleDENY amount >= 50let that call through with an ALLOW receipt that verified; the same
literal skipped a REQUIRE_APPROVAL rule and misreadExact,In,>
and<=. A literal such as99.9999999999999929also left a receipt
thatverifycould not read, after which enforce refused every call.
serde_jsonis now built withfloat_roundtripin praetore-mcp,
praetore-core, praetore-verify and praetore-receipt, and a number in the
paramsof atools/callwhose text is not the canonical form of its
value makes the line ambiguous: enforce refuses it and names the form to
send, observe forwards it and warns. This also refuses50.00, exponent
forms such as1e2,-0and integers above 2^64 - 1 in enforce. CI
checks the feature in every package that shipsserde_json
(scripts/check-float-roundtrip.sh) and runs a table of boundary
literals against a server that logs the value it read
(tests/numeric_gate.rs). -
praetore-mcp: what observe mode refuses, and what a DENY shows. (#200) The
help, theinitoutput, the READMEs and the GUIDE said observe mode
never blocks (the 0.3.5 entry below says so too). It records a DENY and
forwards the call, but it still refuses, as enforce does, atools/call
the policy does not classify, a client line it cannot parse that may
name asafety*tool, a client line over 32 MiB, and a whole batch when
atools/callin it is refused; when the home cannot be loaded, every
tools/calland every client line that cannot be parsed. The texts now
say so, and tests pin theinithelp, the top-level help and theinit
output. The README also said a DENY shows the rule in the chat: the
client sees onlyDenied by PRÆTORE. Evidence id: <id>, and the rule is
on stderr and in the receipt. A test skipped as root now prints why. -
praetore-mcp: error messages name the binary and the home. (#188) The
not-initialized notes ofinstall, the approval and receipt journal
errors that say to runverifyorinit, and the invalid-policy error
now print the command with the binary's absolute path and--dir, like
the other printed commands. -
praetore-mcp: an id that is already decided is not offered again. (#188)
Ifapproveorrejectstopped after it signed the decision and before
it removed the pending file,approvalslisted that id with its
approveandrejectcommands, and the session report counted it as
pending as well as decided.approvalsnow prints
decided: <outcome> already; ...with no commands, and the report counts
it once, as decided. -
praetore-mcp: control characters in paths and names are escaped where
a person reads them. (#190) Terminal messages, the dashboard and the PDF
report write control characters (C0 with\r,\n, NUL and ESC, DEL,
C1), zero-width and bidi characters as\u{..}, so a file or home name
cannot clear or fake the line it is shown in. Printed commands write such
a path as$'...'with\xHHescapes. JSON output and the report JSON
keep the exact value. -
Terminal output of
praetore,praetore-safety-ingestand
praetore-verifyuses one escaping rule (#247), in
praetore_core::display, the one praetore-mcp already used: control,
bidi, zero-width, BOM, tag and non-ASCII space characters are written as
escapes. -
praetore-mcp: remaining terminal outputs escape control and bidi
characters (#244):installchanges,policy list,policy coverage,
policy check, stderr warnings, the receipts table and the rejected
config.tomlheader line. -
praetore-mcp: a server name with ESC or a newline is printed escaped
(#240) as$'...'in printed commands. -
praetorehints use the same shell quoting as praetore-mcp (#250):
thedoctorhint afterinit, the hints of a held request and the
dispatchhint, throughpraetore_core::shell::quote. -
praetore-mcp: a short or failed journal append leaves no partial
line (#197). Both journals append through one helper that truncates
the file back to its previous length if the write is short or fails. -
praetore-mcp: an approval is used only while the path check is the
same (#213). The approval binding includes the held receipt's
praetore.path_check; if a path now resolves differently, the approval
is not spent and the call stays held. -
praetore-mcp: the signed approval window comes from the held receipt
and the TTL (#211), not from the pending file; a pending file whose
window does not match is not signed.verify_decisionrefuses a window
over 86400 seconds. -
PostgreSQL tenant lock: the lock session releases its statement
snapshot (#233), and the renewal test waits for the other session
before it expects the lock to be lost (#224).
Internal
- Tests: #162, #191, #195, #196, #231, #234, #237, #238, #241, #242, #243,
#248. - CI: #198 and #223 (HighAssurance hook tests read from
cargo test --list
and exit codes), #203 (onerust-versionin every manifest, checked),
#249 (local approve/reject test denylist and source guard), #253 (receipts
written by the packaged praetore-mcp binary, without approval, checked by
praetore-verify and refused once cut or changed), #259 (the negative
receipt checks of the e2e went from any nonzero exit to exit 1; #261 then
also requires a refusal code), #260 (the test-hooks self-test checks every
whole--releasebuild line of the workflow), #261 (the negative
praetore-verify and release-checksums checks require exit 1 and, for
praetore-verify, a JSON refusal code that is not USAGE or INTERNAL). - Docs: #192 (install guide for v0.3.6), #193 (Ed25519 audit), #218
(ADR-007 proposal), #221 (implementation map), #226 (review of draft
#131).