Changelog
This file lists the changes of each version of jagt. The newest version comes first.
jagt follows semantic versioning, as Cargo reads it. Before 1.0, a change that can break a user raises the minor version, such as 0.4.0 to 0.5.0. A fix that breaks nothing raises the patch version, such as 0.5.0 to 0.5.1. A break is a packet that lint rejected and now passes, or that lint passed and now fails. A change in the text that render writes is also a break, and so is a change in a flag or in a message that a script reads. Each version that breaks something lists it under “Breaking”.
A nonce, in the entries below, is a random value of 32 lowercase hex digits
that jagt render puts in a packet when it saves the packet file. The agent
must return the same nonce in its result.
0.6.4
Package
- Each release has binaries for macOS on arm64 and x86_64, and for Linux on
arm64 and x86_64, as
jagt-<target>.tar.gzwith a.sha256file. The Linux binaries link musl statically. The release v0.6.3 got its binaries later, from a run by hand. 0.6.4 is the first release that CI builds itself. scripts/install.shinstalls a release binary with no Rust. It checks the hash and putsjagtin~/.local/bin, or in the folder of--dir.- CI tags each release. On a push to
main, after the checks pass,just releasetagsvand the version ofCargo.toml, and CI builds and attaches the binaries.just release-checkfails when the version is lower than the commits since the last tag ask for.
0.6.3
Fixes
jagt renderfinds its log folder by the convention of the commit gate. The convention is that a git folder named.gitsits inside its checkout. In a linked worktree, jagt saves in the folder that holds the shared.gitfolder. When the shared git folder has another name, jagt saves in the current worktree.- So each worktree of a submodule keeps its own packet files, where the gate of that worktree reads them. In 0.6.2, a linked worktree of a submodule saved in the submodule checkout, which its gate does not read.
- A linked worktree of a repository from
git init --separate-git-dirsaves in its own folder. In 0.6.2, the render stopped with an error. - jagt never saves inside a git folder. If the log folder would be under a
folder named
.git, or under a git folder of another name, the render stops with an error.--no-savestill works.
0.6.2
Fixes
- In a submodule, and in each linked worktree of a submodule,
jagt rendersaves the packet file in the log folder of the submodule checkout. Before, it saved the file inside the git folder,.git/modules/<name>, because git lists that folder as the main worktree. jagt readscore.worktreethrough git, soconfig.worktreecounts. - After
git init --separate-git-dir, a render in the main checkout saves the packet file there, and not next to the git folder. In a linked worktree of such a repository, the render stops with an error, because jagt cannot tell the main checkout.--no-savestill works. - One case stays open. When the git folder is itself named
.git, a render in a linked worktree saves next to that folder. git lists the folder as the main worktree, and gives no way to tell it from a checkout.
0.6.1
Fixes
- The input tree of a packet file now equals the tree that the gate of the
commit gates computes. jagt starts from a copy of the index, not from HEAD.
So a commit of all the changes has the input tree, if no entry is
assume-unchanged or skip-worktree.
Before, a file that the index held and
.gitignorenamed, as aftergit add -f, was not in the input tree. So the record of such a packet never matched the commit. - The copy of the index keeps the time of the index. So git still sees a file that changed in the same second, with the same size. When an entry is assume-unchanged or skip-worktree, jagt starts from HEAD, as the gate does.
jagt renderno longer writes new objects into.git/objects. It writes them into a temporary object store, and reads the old ones from the store of the repository. Git can still update the time of an old object.- An index that git cannot read now stops the render, as it stops the gate.
- A
TMPDIRinside the worktree no longer puts the temporary files of jagt into the input tree. A relativeTMPDIRno longer stops a render from a subfolder. - A pathspec variable from the caller, such as
GIT_LITERAL_PATHSPECS, no longer stops the render. - With
core.splitIndexon,jagt renderno longer leaves a newsharedindexfile in.gitfor each render. - On Unix,
jagt renderopens each folder of the log through the folder above it, never through a symlink. It makes the packet file inside the open folder. Before, it checked each folder by its path and then wrote by the path. So a process that swapped a folder for a symlink between the two steps could move the packet file outside the repository. The removal of the packet file after a broken pipe goes through the same folders.
Package
- jagt depends on
rustixon Unix, for the folder handles.
0.6.0
Breaking
jagt result lint --check-filesfails a listed file whose real path is outside the base folder, for example through a symbolic link. Before, such a file passed. The rule covers required and optional files that exist. A link that stays inside the base folder still passes.- On Unix,
jagt result lint --check-filesfails a listed file with more than one hard link, because a hard link can name a file outside the base folder.
Lint
- The
--helptext of--check-filesnames all of its rules.
Docs and package
- A docs site at https://rahuldave.com/jagt/, built with smalldocs and the Folio theme, and published by GitHub Pages.
- The README, the CHANGELOG, the guides and two of the protocol specs are rewritten in plain style, and keep their claims.
docs/reference/agent_result_v1_spec.mdis a copy of the canonical AGENT_RESULT v1 spec in the jagt-protocol skill of jnterfaces.AGENTS.md, the renderer spec and the MVP plan say that the MVP is built.
0.5.0
Breaking
- Lint rejects some packets that 0.4.0 passed. They hold:
- a stray line at column 0, or a top-level field away from column 0
- a top-level key that is not a plain or quoted scalar
- YAML that yaml-rust2 cannot read, or reads with other top-level fields
- a YAML merge, a tagged key or an alias key
- a raw U+0085, U+2028 or U+2029
result_rulesthat is not a list of strings, names another nonce or comes with no nonce.
- Render writes a prompt line of only spaces or tabs with its whitespace,
under
prompt: |2, where 0.4.0 wrote an empty line. - Render keeps the spaces and tabs at the end of the last line of a prompt or a layer, where 0.4.0 dropped them.
Render
- A prompt keeps the spaces and tabs at the ends of its lines, and a line of only spaces or tabs. The packet reads back as the same prompt, with one newline at its end.
Lint
jagt lintandjagt draft lintreject a stray line at column 0. The YAML 1.2 spec needs such a line indented. It can be:- a
]that closes a flow list - a line inside a quoted value that looks like a field
- a line that starts with a tab
- a list item under a key with a value.
- a
- A field, a quoted key, a comment and a list item under an empty key still pass.
jagt lint,jagt draft lintandjagt result lintreject a YAML merge at any depth. A merge can be a<<key, a node with the!!mergetag, a tagged key or an alias key. A YAML 1.1 reader such as PyYAML merges the fields they name, and lint would not check those fields. Text that only mentions!!mergepasses.- Lint reads each packet with a second YAML parser, yaml-rust2, which gives the tag and position of each node. Each top-level field of a task or a draft must start at column 0.
- Lint refuses a raw U+0085, U+2028 or U+2029 in a packet. The two parsers
differ on whether it breaks a line.
jagt renderwrites these characters escaped, so its packets still pass. jagt lintchecksresult_rules. They must be a list of strings, and the packet must have anonce. A rule must name no other nonce, also in UUID form or in fullwidth digits.
0.4.0
Breaking
jagt renderrefuses a config prompt outside the project, in.git, with a second hard link, or ignored by git.- A value that starts with
-, other than a negative number, needs the=form, such as--input=-data.csv. - The secret check refuses more values of allowlisted variables.
jagt result lint --check-filesrefuses a path with a..part.jagt draft lintrejects more drafts, and passes some text that 0.3.0 rejected, such as “Never run inline.”
Render
jagt renderlints each packet before it prints it, also with--no-saveand outside git. So it never prints a packet thatjagt lintrejects.- A prompt with a bracket, such as
Fix arr[i, now renders and lints. - A prompt with a lone
\r, U+0085, U+2028, U+2029 or a control character is written in double quotes, and reads back unchanged. - A config is read from the project root. The project root is the top of the git worktree, or the current folder outside one. A render from a subfolder reads the same config.
- A
promptthat a config names must be a file in the project. jagt refuses a path outside the project, a path in.git, a file with a second hard link, and a file that git ignores. A--promptfile is not checked. - The secret check of allowlisted variables catches many more kinds of secrets. Examples are URLs with a password, AWS, Azure, Slack and Stripe keys, and two variables that make a secret together.
--argand--inputtake a negative number, such as--arg -1. Another value that starts with-needs the=form, such as--input=-data.csv.- Each subcommand and flag has a line of help.
Lint
jagt result lintreads any YAML form, such as a flow-style mapping or a quoted key.jagt result lint --check-filesrefuses a path with a..part.jagt draft lintchecks the fields of a draft strictly. It catches more claims of approval, bypasses, inline runs and broad actions. It no longer rejects “Never run inline.” and other harmless text.
Docs and package
docs/packet-file.mddescribes the checks of a config prompt.fixtures/agent_task/validholds valid packets, one with a nonce and layers.- The package holds only the crate. The README has an install section.
- CI runs
just verifyon each pull request.
0.3.0
jagt rendersaves the packet file.agents/log/packets/<nonce>.jsonin the shared log folder, and gives each packet a nonce.jagt result lint --expect-noncechecks the nonce of a result.jagt renderjoins the base task, the language layers and the repository text of a target.