Repository navigation
Releases
v1.6.0
Same claim format. Set-up, stores that moved, hand-backs and predictions.
- First use sets itself up. The first
adsertio_claimin a project with no
store creates.adsertio/whereadsertio initwould, and says so once in
its reply (store).adsertio_viewandadsertio_lswith no store answer
"no claims yet" with exit 0 and an empty list, and create nothing. - Evidence still resolves when the Trammel and Chisel stores are outside the
project. The pointer text stays.trammel/storeor.chisel/store. When
TRAMMEL_DB_PATH(a folder holdingstore,journal,lock; a path
ending.dbmeans the.trammelfolder beside it, as Trammel reads it) or
CHISEL_STORAGE_DIR(a folder holdingstore,shards/) is set, that
store is read there. Missing and unreadable details, andadsertio doctor,
say where it looked. Before this, a store moved out by Mem-Harness 0.5.0
made every such pointermissing. - Predictions. Tag a claim
predictionand give it no evidence (it is
unverified: still open); attach the test later.adsertio_viewtakes
authorandtagfilters andscore: true, which answers only "of N
claims tagged prediction by : V verified, R refuted, O still open". - Hand-backs.
adsertio_guidehas a worked example (hand_back): claims in
one call tagged with the lane, and the reviewer's first call
adsertio_view {"tag": ...}. - The tool description now reads "State a result so it can be checked,
instead of being taken on your word". adsertio ready [--json]: one line of state (missingwith "the first
adsertio_claim creates it",empty, or a claim count and how many have no
evidence yet). Exit 0 whatever the answer. It reads claim files, not the
evidence.- Freshness: a pass that names a commit that is HEAD (or a Chisel tested
tree that is HEAD's tree, or differs only in tool state) is fresh whenever
it ran, and the detail says "ran before the claim". Before, the
older-than-the-claim rule came first, so a hand-back (run, then claim)
was alwaysstale. A pass with no commit or tree keeps the time rule, and a
pass on another commit is stillstale. A failure is unchanged. tools/listmarksadsertio_view,adsertio_lsandadsertio_guidewith
readOnlyHint. Hints that name a tool honourMEM_HARNESS_TOOL_PREFIX.
No tool takesproject_root: the project is the working directory.
v1.5.0
Same claim format as 1.4.0, with a fourth evidence tool. A project rule kept
as a Relatum note (a constraint, convention or decision in .swarmnotes/)
can now back a claim, and the verdict is worked out in Adsertio, so the CLI,
the MCP server and the session hook agree on it.
relatum:<store>#<note-id>, the store relative to the project (normally
.swarmnotes) and the note id its path under the store without.md. It
passes when the note exists, its frontmatter is sound, and itsstatusis
active(or absent). Asupersedednote fails, and the detail names its
superseded_byand says to point the claim there. Adraftis
inconclusive. A missing store or note ismissing. No note id, a bad id,
damaged frontmatter (missing or unclosed, a line that is notkey: value,
nokindorsummary, an unknownstatus,supersededwith no valid
superseded_by, or anactiveordraftnote that has asuperseded_by,
which Relatum's owngetrefuses), a note that is not UTF-8 or over 64 MiB, or a path or
symlink leaving the project or the store isunreadable.- The note is read the way Relatum reads it: a byte order mark is dropped and
CRLF becomes LF, so a note Relatum wrote on Windows reads the same. - A Relatum pass is never
stale. A rule is a state, not an event, like a
Trammelconstraint-<id>: it is normal for it to predate the claim. - The supersede chain is not followed: a pointer judges the note it names.
Adsertio never writes into.swarmnotesand takes no lock there (Relatum
publishes each note whole and has no lock file). adsertio doctorhas arelatumcheck:.swarmnotesabsent, present, and
whether every note in it can be read, with a count of active, draft and
superseded notes.adsertio_guidelistsrelatum:.swarmnotes#<note-id>and has arelatum
field. Theadsertio_claimandadsertio_doctordescriptions, the server
instructions andadsertio --helpname Relatum.- The error for a pointer over 300 characters now says so.
- A pointer whose shape can never be valid is refused when a claim is written
or attached (CLI and MCP, single and batch; a batch writes nothing and the
error names the item), instead of being stored and judgedunreadableat
every view: a Trammel or Chisel pointer with no selector or an unknown one,
an empty or bad id, a bad Probatio selector, a Relatum pointer with no note
id or a bad one, and a Relatum path ending in.md(the note file, not the
store folder). Claims cannot be overwritten and pointers cannot be removed,
so a bad first pointer used to leave a claim unverified for good. Whether
the evidence is there, and freshness, are still judged at view. Pointers
already stored are read as before (no migration). - The error is one line with the pointer, the expected shape and, when the
text makes it plain, the fix:relatum:_shared/no-depsand
relatum:.swarmnotes/_shared/no-deps.mdboth getdid you mean relatum:.swarmnotes#_shared/no-deps?, andchisel:.chisel/store#t1gets
did you mean chisel:.chisel/store#test:t1?. - The selector grammar is defined once, in
src/selector.rs. The Trammel,
Chisel, Probatio and Relatum readers and the write-time check all call it,
andadsertio_guide'sselectorslist comes from it. tests/pointer_shapes.rs: a table of accepted and refused selectors per
tool that the writer and the reader must agree on, claim and attach through
the CLI and MCP, batch all-or-nothing, the suggestions word for word, a
store left unchanged on refusal, and a stored bad pointer still read as
unreadable.tests/relatum.rs: every state, the CLI and MCP end to end, mixed claims,
hostile paths, bytes that are not a note, freshness, and doctor.
v1.4.0
Same claim format as 1.3.1. This release cuts the rerun an agent made after
every commit: it tests uncommitted work, records claims, commits, and every
Chisel pass went stale because HEAD moved.
- A Chisel pass whose commit is not HEAD is fresh when the
treeChisel
recorded (Chisel 0.25.0 and later: the git tree of the working tree the
tests ran against, uncommitted and untracked files included) equals
HEAD^{tree}, or differs from it only under.adsertio/,.chisel/,
.trammel/or.probatio/. Committing exactly the tested work, with or
without the claims and the Chisel store, keeps the pass. Any other change
committed after the run isstale, and the detail names both trees.
Withouttree(older Chisel, Trammel) the commit rule is unchanged. - HEAD and its tree come from one
git rev-parse HEAD HEAD^{tree}per view,
so the common case runs no extra git.git diff-treeruns once per
recorded tree that is not HEAD's tree, cached for the view. A tree id goes
to git only after it is checked to be 40 or 64 hex digits. - The stale detail's fix for a Chisel pass with no recorded tree adds that
Chisel 0.25.0 or later records the tested tree, so committing exactly that
work needs no rerun.adsertio_guide'sstale_after_commitsays the same. tests/v140.rsuses real Chisel output (tests/fixtures/chisel/real-tree):
a dirtychisel run -- cargo teston a crate with a new test, committed
exactly, committed with claims and store, and changed after the run.
Operating-system attach locks. An attach lock was .<id>.md.lock, made
with create_new and holding a pid, a time and a token, so an attach that
was killed left it behind and Adsertio had to guess when it was stale: a
dead pid (which pid reuse and separate pid namespaces get wrong), no pid
after one second, a mtime in the future, its own pid after 30 seconds, and a
.break guard so only one waiter removed it. Now the lock is flock on
Unix and LockFileEx on Windows, on a lock file kept open while held. The
kernel releases it when the holder exits or is killed, so a killed attach
blocks nobody and there is nothing to guess.
- Each claim has its own lock file,
.adsertio/locks/<id>.lock, created by
the first attach to that claim and never deleted (deleting a held lock
file lets a second attach lock a new file at that name). Per-claim files
keep attaches to different claims running side by side, as before; there
is at most one file per claim, since an attach to an id with no claim
file takes no lock. One store-wide lock would have meant one file, but
would make every attach wait for every other.checkanddoctordo not
look inlocks/. A symlinkedlocksfolder is refused. - A
.<id>.md.lockor.<id>.md.lock.breakleft by 1.3 blocks nothing.
viewandlsskip it,doctorlists it underleftover_files, and
checkanddoctor --fixdelete it. Running 1.3 and 1.4 attaches on one
store at the same time is not supported: they take different locks. - The busy error is unchanged: after 5 seconds,
this claim is being updated by another attach. Retry adsertio_attach; nothing was written. - Temp files are judged by age only: one over an hour old is removed. The
pid in a temp name is no longer checked, and a temp with a mtime in the
future is no longer removed at once. No pid is checked anywhere. doctorhas afile_systemcheck on every platform, which warns (and
passes, with afix) when the store is on a network file system, where
flockmay be emulated or not shared between machines: a macOS mount
withoutMNT_LOCAL, a Linux NFS, SMB, CIFS, 9P, AFS, Coda or Ceph
f_type(x86_64 and aarch64), or a Windows UNC path or remote drive. It
replaces the Windows-onlynetwork_drivecheck, which failed.src/oslock.rsis Libellus 1.4.0's lock module, std only. On Windows,
src/lock.rs(the shared locks on Trammel's and Chisel's lock files,
which behave as before) now uses itsLockFileExdeclarations.- Removed:
fsx::break_abandoned_lock,fsx::lock_held,
fsx::lock_file_is_stale, the.breakguard, the lock token, the Windows
access-denied retry when creating the lock, andsrc/proc.rs
(pid_alive,kill(pid, 0),OpenProcess). tests/oslock.rs: a second attach waits for a held lock and both pointers
are kept, an attach to another claim does not wait, a holder killed with
SIGKILL (TerminateProcess on Windows) frees the lock at once, 1.3 lock
files block nothing andcheckremoves them, and temp files go by age.
v1.3.1
adsertio view --if-store(CLI only) prints nothing and exits 0 when no
.adsertiofolder is found, so a session hook set for every project stays
quiet where Adsertio is not used. With ADSERTIO_DIR set, a missing store is
still an error.adsertio hooknow adds it.- Smaller tool definitions. Every agent turn reads
tools/listand the
server instructions again, so they cost on every call. Thetoolsarray
went from 5,588 to 3,788 bytes (compact JSON) andinstructionsfrom 765
to 487. Descriptions are short and say what to call when; detail lives in
adsertio_guide, SPEC and README. Batch item schemas (claims,items)
now give each field's type and the required fields, with no per-field
descriptions.statesitems carry anenum, andlimitamaximumof
500.tests/tool_budget.rskeeps the array at or under 4,000 bytes and
the instructions under 500. - Removed the
adsertio_checkMCP tool;adsertio_doctorcovers it. Its
claimscheck now also reports a pass with a malformed timestamp or
commit, ascheckdoes, andfix: trueclears leftover temp and lock
files. Theadsertio checkcommand is unchanged, for scripts and CI.
tools/listhas six tools.
v1.3.0
Same claim format as 1.2.2. This release cuts agent turns: each MCP call is
one turn, and each turn reads the whole context again, so claims and attaches
now go in one call. It also adds a session hook and a doctor for set-up
problems, with Windows in mind.
Added:
- Batch claims.
adsertio_claimtakesclaims, a list of up to 50 objects
with the fields of one claim. Every item is checked first (fields, ids,
repeated ids in the batch, ids already on disk, pointers, sizes); one bad
item writes nothing and the error names it. Items are then written with
overwrite = false; if a write fails part way, the error lists exactly
which ids were written and which items were not. The reply is
{ids, count}. CLI:adsertio claim --claims '<json array>'or
--claims-file PATH(a byte order mark from Windows PowerShell is
ignored). - Batch attach.
adsertio_attachtakesitems, a list of{id, evidence},
with the same all-or-nothing check. Each claim is updated under its own
lock. CLI:--itemsor--items-file. - The tool descriptions, the server instructions, and
adsertio_guidetell
an agent to record all claims in one call. adsertio hook --host claude|cursor|genericprints a hook that runs
adsertio view --compact --states unverified --states refuted --limit 50
at session start and after compaction, so the agent sees the claims that are not
verified instead of repeating verdicts from memory. The Claude Code
snippet uses the exec form (commandplusargs, no shell), so it runs
the same on Windows, and adds aSubagentStartentry for sub-agents.adsertio view --wrap cursor|claude-subagent(CLI only) prints the view
inside the JSON those hooks read.adsertio doctor [--fix]and theadsertio_doctortool: read-only checks
of the version and platform, the store andADSERTIO_DIR, a writable
claims folder, damaged claims, files left by a dead writer, git and HEAD,
the Trammel, Chisel and Probatio files (present, size, readable), the
adsertio-mcpbinary next toadsertio, and on Windows the path length
and network drives. Each failing check has afix. Exit 1 when a check
fails.--fixremoves only whatcheckalready removes.- A Chisel or Trammel pass that is stale only because its commit is not
HEAD now ends its detail with a fix: rerun the tests at HEAD (for example
chisel run -- <test command>). This happens when an agent tests
uncommitted work and then commits.
Fixed:
- On Windows, two attaches racing on one claim could fail with "cannot lock
the claim: Access is denied". Windows reports that while another process
is deleting the lock file. It now counts as a held lock and is retried.
Breaking changes (there were no users yet):
- The
adsertio_claimschema no longer markssummaryas required, and the
adsertio_attachschema no longer marksidandevidenceas required,
because a batch call has none of them at the top level. A call with
neither form is still an error, with a message naming both. tools/listhas a seventh tool,adsertio_doctor, in thecoregroup.- The stale detail for a commit that is not HEAD has a new suffix,
; fix: rerun the tests at HEAD (...). adsertio_guidehas new fields (stale_after_commit,problems), and its
after_compactionandwritestext changed.- A single
adsertio_claimwith no arguments now says to passsummaryor
claims, instead of onlymissing required argument: summary.
v1.2.2
Same claim format as 1.2.1. The rule for this release: when Adsertio cannot
show that a run is complete, or that a result is the latest, the answer is
inconclusive (or no_adapter), never pass. A failure still refutes.
Several pointers that 1.2.1 called pass are now inconclusive, on purpose.
- A Probatio
mutate diffcall capped by--max-mutantsread verified: its
generate/mutants.jsonlists only the batch sent to the run, so every
mutant in it had a result. Probatio does not write the full list a diff
plans (plan.jsonholds only a hash), so a capped call cannot be told from
a whole one. Amutate diffrun is now alwaysinconclusive. Point at
#mutant:<id>, or usemutate generateandmutate runfor a whole run. - A Probatio whole-run pointer passed when the run's mutant list could not be
checked: norun.json, a list outside the project, a deleted patches
folder, or a patches folder with one file per mutant and nomutants.json.
Each of these is nowinconclusive. A folder withoutmutants.jsonis
read like Probatio'sload_mutantsreads it (every*.jsonin it), every
patchesentry is checked, not only the first, and a relative entry such
as.probatio/sliceis taken from the project folder. - A
no coveragemutant now blocks a Probatio pass (inconclusive), since
Probatio's own tally says it is not a pass. A run with a kill and a
no coverageresult was verified in 1.2.1 and is unverified now. - A Chisel shard's
test_resultsrow could override a newer root result.
Chisel records results only in the root store (a shard engine reads them
from there), so shard result rows andtest_passesare no longer read; the
shards still add their test edges. Nested shards such as
.chisel/shards/src/net/store(Chisel names a shard after its path) are
now found. A pointer at one shard's store isno_adapter. SPEC no longer
claims the old merge matched Chisel. - The overlay guard compared path parts exactly, so
.CHISEL/OVERLAYS/...on
a case-insensitive disk, or a symlink into.chisel/overlays/, was read.
Parts are compared without regard to letter case, and the resolved path is
checked too. - Paging: ids whose number runs are equal (
a01b1,a1b01) compared equal,
so--aftercould skip one created in the same second. Ties now fall back
to the bytes, and the order is total. - Command line: a repeated
--limit,--offset,--compact(any flag but
--evidence,--tags,--states) silently took the first value; it is
now a usage error. An unknown flag exits 2 (usage error), not 1. A value
that starts with--is passed as--name=valueor--name -- value. - A symlinked
claims/<x>.mdmadeviewandlsfail. It is left out with
a warning, as SPEC says, andcheckreports it.checknow also reports a
dotfile in the claims folder that is not one of Adsertio's own temp, lock,
or guard files, andviewandlswarn about it. macOS Finder's
.DS_Storeis ignored. - Chisel writes
test_passes[id].commit = ""when it cannot read HEAD. That
was treated as malformed (stale, andcheckexited 1). It is now no
commit recorded: no commit is checked, the timestamp rule still applies,
and the detail says so. - A Trammel or Chisel store over 64 MiB was unreadable, though Chisel writes
stores up to 1 GiB. The limit for those stores (and the Trammel journal)
is now 1 GiB, Chisel's own limit; other evidence files keep 64 MiB. The
unreadable detail gives the size, the limit, and why (the file is read
whole into memory). A read no longer copies the bytes a second time. - A
createdtime with a+in a number field (+026-...) was accepted.
It is rejected. - AGENTS.md lists every test file; the Probatio adapter's header now
describes what the code does.
v1.2.1
Same claim format as 1.2.0. Fixes from the fifth review. A few runs that 1.2.0
called verified are now unverified, which is the point.
- A Chisel root store pointer spelt
.chisel/./store,.chisel//store, or
through a symlinked folder skipped the shards, so a failing shard result was
hidden and the claim could read verified. The root is recognised by its
resolved path. - A Probatio run passed with
flakyorerrorresults, with an outcome
Probatio does not write (Survived,survived), or with only some of its
mutants finished.flakyanderrornow make the run inconclusive, an
unknown outcome makes it unreadable, and whenrun.jsonnames a mutant list
inside the project, a pass needs a result for every mutant in it. - Breaking a dead attach lock could let two attaches in at once, and the
holder's cleanup could delete the next holder's lock. Only the holder of a
.breakguard removes a dead lock now, and a holder removes only the lock
line it wrote.checkremoves dead locks the same way. ADSERTIO_DIR=.adsertio(one relative part) made every pointer
unreadable. The project is the working folder in that case.- A claim with a hand-written
createdtime handed out anext_aftercursor
thatafterrefused. The cursor now matchescreatedas stored. - The Trammel lock and journal were looked for beside a symlinked store's
target instead of beside.trammel/store, so a newer journal could be
missed. They are read beside the path as written. - A Chisel
file:detail listed every waiting or failed test (hundreds on a
real store). It lists ten and says how many more. - SPEC now says what the code does with a stray file in the claims folder:
viewandlswarn and leave it out, andcheckfails.
v1.2.0
The fourth stress test. A page no longer walks every claim against every evidence row. A Trammel or Chisel snapshot is indexed once per call. On this machine a 20,000-claim page that took 249 s in 1.1.1 took 0.48 s, and the full view of that store took 0.50 s. RSS for the 14.9 MiB plus 11.5 MiB pair dropped from 238 MiB to 72 MiB. The re-measure, including what did not get cheaper, is in docs/perf/1.2.0.md.
adsertio_viewtakesafter, thecreated/idcursor fromnext_after. Claims stay ordered bycreated, then by id. The hint usesafter, so a verdict that changes behind the cursor does not skip a later claim.offsetstill skips a count of matches and can skip one when a verdict changes.next_offsetis set only when the call did not passafter.- A page judges the claims it returns, plus non-matches and
offsetskips on the way there. It does not judge the rest of the store.countscovers the claims that were judged.counts_completeis true when that is the whole scope. Omitlimitto judge every matching claim and get a complete count. checkuses the same per-call evidence cache asview. It checks malformed timestamps and commits and does not run git. One snapshot is still read once, not once per claim.- An attach lock starts with the holder pid. A pid that is not running is removed at once. Text that is not a pid is removed once the file is a second old, or at once when the mtime is in the future. A live pid is kept: the call waits 5 seconds, then fails, and the claim file is unchanged. A future mtime does not keep a dead lock.
- A temp file under
.adsertio/claimswhose pid is not running is removed on the next read, attach, or check. A live writer's temp is left in place, andcheckstill lists it.
v1.1.1
The third review. Correctness only. A re-measure is in docs/perf/1.1.1.md; it is not a speedup.
- A truncated
adsertio_lsoradsertio_viewhint repeatsid,verdict,states, andcompactalong withlimitandoffset. .adsertio/claimsas a symlink is refused. Claim files that are notslug.mdare left out oflsandview, with a warning, andchecknames them.checkrejects acreatedtime that is notYYYY-MM-DDTHH:MM:SSZ. A pass whoseatorrecorded_atis not a number, or whosecommitis empty, isstaleandchecknames it.- A named pipe is described as a pipe. A claim holds at most 50 pointers, a body of 20000 bytes, and a file of 262144 bytes.
attachwill not cross the pointer cap. Duplicate tags and evidence on a new claim are stored once. - Claims that share a summary and omit
idretry until each one is stored.checknames a stale attach lock and says to remove it, then retryadsertio_attach. limiterrors say the range is 1 to 500. A request whosejsonrpcis missing or not2.0is an error.adsertio_claimon a folder with no claims store says to runinit.adsertio_checkis the MCP form ofadsertio check.- Windows release zips are checked for a PK header, forward-slash names, and exactly
adsertio.exeandadsertio-mcp.exein the versioned folder.
v1.1.0
Faster repeated evidence reads, and a smaller answer for an agent.
- A
viewparses a shared Trammel snapshot, Chisel snapshot, or Probatioresults/directory once and reuses it for every claim in that call. A regular Probatio result file is read in place. A symlink still has to stay inside the project. Seedocs/perf/baseline-1.0.0.mdanddocs/perf/1.1.0.md. - Omit
limitandoffsetandadsertio_lsandadsertio_viewreturn every matching claim, as 1.0.0 did. Passlimit(1 to 500) andoffsetto page. A truncated page includeshintwith the next call. A list of more than 100 claims, with no limit, includes a hint that paging exists.countandcountsstill cover the whole read. adsertio_viewtakesstates(verified, refuted, unverified) andcompact(pointer and state, no detail).verdictstill selects one state. Passing bothverdictandstatesis an error.adsertio_attachholds an exclusive lock on that claim. Every successful attach is in the file. If another attach still holds the lock, the call fails and writes nothing. A lock older than 30 seconds is removed. The reply still hasevidenceas the new count, and alsoadded, the pointers this call wrote.- A pointer with a backslash, a drive letter, an absolute path, or
..is rejected when it is written. The error says to use a relative path with forward slashes inside the project. - A duplicate claim id names
.adsertio/claims/<id>.md. limithas schema minimum 1.ADSERTIO_DIRset to a folder with noclaimsdirectory printsno claims store found at X; run initand still exits 0. An initialised empty store stays quiet.- Claim ids that share a
createdtime sort by number, soc2comes beforec100. adsertio_guidereturns pointer shapes, the verdict rule, paging, and what to call after compaction. It does not read the store. Probatio#survivorsis listed, including the exampleprobatio:out/run#survivors. It is the same whole-run check as a pointer with no selector.- A missing claim id says to call
adsertio_lsoradsertio_claim. - The next GitHub release names archives
adsertio-<version>-<target-triple>(for exampleadsertio-1.1.0-x86_64-unknown-linux-gnu.tar.gz). Windows zip entries use forward slashes. The v1.0.0 assets keep the names already published.