Repository navigation
rdy 0.49.0
Your intent, ready for anyone who needs it. rdy stores what you intend and decided, and gives it to whoever needs it in a form they can use: a docs site for people, briefings and instructions for agents. Before an agent writes, rdy shows it what governs the change and what depends on it. After the write, rdy shows what the change affected. Nothing joins the accepted design until a person approves it.
This release adds MCP over HTTP, warning hooks for commits and agent edits, and Markdown import. It keeps the compatibility promise of Release 1. See "About Release 1" below.
What you get
- Docs and decisions as one project. Write docs, requirements, terms and decisions as linked blocks, not loose files.
- Agents work through MCP. Claude Code, or any MCP client, reads and writes through rdy's tools, over stdio or a local HTTP endpoint. Each agent gets a briefing before it edits.
- Instructions for agents. rdy's own agent guide is built in. Keep your rules in rdy too, each with its reason. Every agent gets the rules it needs at the start of a task, and your own rules follow you to every project.
- Warnings when work skips rdy. Optional hooks warn when a commit changes decided code and cites no decision, or when an agent edits rdy's files directly. They never block.
- Proposals and approvals. Agent work lands in a view. You see the impact, then approve it or not.
- Docs that match the release. Record which release ships each decision. A public site then shows only what has shipped, and a release check catches content that is ahead of the build.
- It catches drift. When a decision changes, rdy marks every page that rests on it. It also flags a page that states a different number for a recorded value.
- Linked projects. Cite the decisions and instructions that another project delivers through rdyhub. Your project keeps the version it cites until a person adopts a newer one.
- Bring your Markdown. Import a folder of Markdown files as docs. A preview shows what maps, and what does not, before anything is written.
- A live docs site.
rdy sitegives you a local site that refreshes as changes land. - Local and private. Everything runs on your machine: no account, no hosted service, no model inside rdy.
Install
macOS (Apple silicon) and Linux (x86_64):
curl -fsSL https://getrdy.dev/install.sh | shWindows 11 (x64), in PowerShell:
irm https://getrdy.dev/install.ps1 | iexEach installer checks the release signature and the archive's SHA-256 before it installs. It puts rdy in ~/.local/bin for your user, and asks before it changes your PATH.
To install from the archive instead:
macOS (Apple silicon):
curl -LO https://github.com/adrenickchrome/rdy-core/releases/download/v0.49.0/rdy-0.49.0-aarch64-apple-darwin.tar.gz
tar -xzf rdy-0.49.0-aarch64-apple-darwin.tar.gz
mkdir -p ~/.local/bin && mv rdy-0.49.0-aarch64-apple-darwin/rdy ~/.local/bin/Linux (x86_64):
curl -LO https://github.com/adrenickchrome/rdy-core/releases/download/v0.49.0/rdy-0.49.0-x86_64-unknown-linux-gnu.tar.gz
tar -xzf rdy-0.49.0-x86_64-unknown-linux-gnu.tar.gz
mkdir -p ~/.local/bin && mv rdy-0.49.0-x86_64-unknown-linux-gnu/rdy ~/.local/bin/Windows (x86_64), in PowerShell:
Invoke-WebRequest -OutFile rdy-0.49.0-x86_64-pc-windows-msvc.tar.gz https://github.com/adrenickchrome/rdy-core/releases/download/v0.49.0/rdy-0.49.0-x86_64-pc-windows-msvc.tar.gz
tar.exe -xzf rdy-0.49.0-x86_64-pc-windows-msvc.tar.gz
New-Item -ItemType Directory -Force "$HOME\.local\bin" | Out-Null
Move-Item -Force rdy-0.49.0-x86_64-pc-windows-msvc\rdy.exe "$HOME\.local\bin\"On macOS and Linux, if ~/.local/bin is not on your PATH, add export PATH="$HOME/.local/bin:$PATH" to your shell profile. On Windows, add $HOME\.local\bin to your PATH. Then check:
rdy --versionIt prints rdy 0.49.0.
On macOS, if you downloaded the archive in a browser instead of with curl, macOS may block the binary. Run xattr -d com.apple.quarantine ~/.local/bin/rdy once.
Release key
This release is signed by rdy's machine release key, the same key that signed 0.46.0, 0.47.0 and 0.48.0. To check the signature of your download, follow "Verify the download" in the README. The allowed-signers line for v0.49.0:
rdy-release namespaces="rdy-release-v1" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIUyk+U70yjuD/Ixg86ti9BBo0Kc/NL0ps3KAOAIVC/8
Fingerprint: SHA256:Tj8hfra0U07asaeSZkt1b5e1HGJ+w8vMzLrn+G6/+/M.
Compare this line and fingerprint with the ones in the README at v0.49.0. Use the key only when both match.
Try it: your first project
-
Make a project.
rdy init ~/my-project && cd ~/my-project
-
Connect your agent. For Claude Code:
claude mcp add rdy -- rdy mcp --project "$PWD"For another MCP client, add this server to its config (write the full path; most clients do not expand
~):{ "mcpServers": { "rdy": { "command": "rdy", "args": ["mcp", "--project", "/home/you/my-project"] } } }If the client does not find
rdy, give its full path ascommand, such as/home/you/.local/bin/rdy. On Windows, give the native path, such asC:\Users\ana\my-project, and write each backslash twice in JSON.A session lasts as long as one
rdy mcpprocess, and keeps one actor and one run. To start another run, start a newrdy mcpprocess. A client that starts a new process for each call must start a new session each time.The agent claims its own
agent:actor, such asagent:claude, when it starts a session. rdy's guide tells it to. Approving stays with you: an agent cannot start an approver session over MCP. -
Set up rdy for your agents. In the project folder, run:
rdy setup
It creates your own rules project, the meta project, if you have none. It also adds three lines at the top of
CLAUDE.mdandAGENTS.mdthat tell the agent to callrdy_session, thenrdy_instructions, at the start of each task. That call gives the agent rdy's guide, so you download nothing. -
Ask your agent for something real. For example:
Start an rdy session in your own view, then read its overview. Help me design retention for an AI support assistant. Our intent is to keep only the customer data we need, for as short a time as we can, and be able to explain the choices. Start with a decision to delete raw conversations after 30 days and keep anonymised metrics for 2 years. Create the storage docs and link them to the decision. Propose the first design for my approval.
The agent first loads its rules with
rdy_instructions, then makes several calls before its first write. -
Review and approve it yourself.
rdy pending
This shows what waits for you, with the impact of each proposal. Approve with
rdy approve P-<id>, or tell your agent your answer. If you answer a card in chat with Later, it stays hidden until the chat session changes, andrdy pendingcounts it as snoozed. When a proposal adds a decision, its option reads "Approve P-<id> and confirm D-<id>": approving it also confirms the decision. -
Read the result.
rdy site
Open the link. The home page links to each page, and each page's address ends in
.html. Now ask your agent: “For EU customers, raw conversations must be deleted after 7 days. Keep the 30-day rule elsewhere and the 2-year metrics window.” The agent briefs on the decision and its connected docs, follows the consequences, and brings you the proposal to approve.If
rdy pendingshows more than one card, answer each one. A change to a decision can add a card that asks you to confirm it. Until you answer it,rdy approverefuses withE_EXCEPTION_OPENand names the card. Answer it withrdy answer <ref> confirm, where<ref>is the card's ref inrdy pending, such asD-<id>@<hash>. Then runrdy approve P-<id>again. Or tell your agent your answer.After an approval,
rdy approvecan listconsequences:, such ask-<id>: confirm (neighbor k-<id>). That list names nearby blocks that the change may touch. It is not a card, and nothing waits for you unlessrdy pendingshows it.New content shows a Planned label. A new decision starts planned, so the content that cites it does too. Set
builton the decision when the work ships.On a remote machine, the link is on
127.0.0.1. Open an SSH tunnel to its port first, for examplessh -L <port>:127.0.0.1:<port> <host>.The site keeps running after
rdy siteexits. To stop it, close your agent's session first, then runrdy serve --stopin the project folder. Anrdy mcpthat is still open logsE_DAEMON_GONE. Your meta project has its own daemon: stop it withrdy serve --stop --project ~/.rdy/meta.
What changed since 0.48.0
New features
- MCP over HTTP. An MCP client can connect to a project over HTTP, as well as over stdio. The endpoint is
/~mcpon the project's live site, on loopback only. It is off by default.- To turn it on, set
serve.mcp_httptotruein your user config (~/.config/rdy/config.yaml) or in the project's.rdy/local.yaml. The project config cannot turn it on. - Run
rdy mcp --http-configto get the endpoint's URL and itsAuthorization: Bearerheader for your client, or add--jsonfor JSON. The bearer is a secret. rdy makes it when the daemon first starts, keeps it in.rdy/run/mcp-token, and shows it only through this command. - The endpoint refuses a request with no bearer (HTTP 401) and any request with an
Originheader (HTTP 403). It takes the MCP protocol revisions 2025-06-18, 2025-11-25 and 2026-07-28. - Over HTTP, rdy shows its own approval card only to a client on revision 2026-07-28. With an older revision, the call refuses with
E_ELICITATION_UNAVAILABLE, and the agent shows the card in chat and relays your answer. - Over HTTP,
rdy_sessionand a call's_metamust name the same actor and run, or the call refuses withE_BAD_INPUT. One actor and run can have 8 calls waiting, and the endpoint holds 32 open listen requests. Past those limits, a call refuses withE_LIMIT. - The tools are the same as over stdio.
rdy statusshows the endpoint, the reply ofrdy sitenames it asmcp_url, andrdy_overviewgetsmcp_http, never the token. - An HTTP call never starts the daemon, and a daemon that rdy started stops after 10 idle minutes. Then run an rdy command, such as
rdy mcp --http-config, to start it again, or keeprdy serverunning in a terminal. The URL names the site's port: setserve.site_portto keep the same URL across starts.
- To turn it on, set
- Warning hooks. Two optional hooks warn, and never refuse a commit or an edit. A plain
rdy setupinstalls neither.- The code hook is a Git
commit-msghook in a linked code repo. It warns withW_HOOK_NO_CITATIONwhen a commit touches code anchored to a decision and has noImplements:trailer. Install it withrdy setup --code-hook <repo>. - The edit hook is a Claude Code
PostToolUseentry forEditandWrite, in.claude/settings.local.json. It warns withW_HOOK_DIRECT_EDITwhen an agent edits rdy's working-copy files directly. Install it withrdy setup --edit-hook claude-code. rdy hook install,rdy hook removeandrdy hook checkmanage the hooks, and the hooks runrdy hook run-codeandrdy hook run-edit. In chat, use the new toolrdy_hook. An install never overwrites a file that you changed: it leaves the file as it is, withW_HOOK_CONFLICT. A check that cannot finish within 2 seconds, or cannot reach the project, givesW_HOOK_UNAVAILABLE, and your work goes on.
- The code hook is a Git
- Markdown import. Bring a folder of Markdown files into a view:
rdy import <dir> --view <name> --md, orrdy_importwithmd: truein chat.- Preview first with
--dry-run(dry_run: true). It writes nothing. It shows the blocks for each file, asource_digest, and an unmapped report: the HTML, images, extensions, links, front matter and non-Markdown files that rdy did not map. - Then import with
--expected-source <digest>(expected_source). rdy refuses when the source changed after the preview. An import over its limits, such as 4,096 files or 64 MiB in all, refuses withE_LIMIT. - Folders become folders, files become docs, headings become sections, and text, code and tables become blocks. A local link becomes a reference when it names one imported Markdown file. rdy infers no decision, status, author or relation: the importing session is the author.
- The
rdy:project-opsruleset of the agent guide takes an agent through a migration.
- Preview first with
- Reconstructed decisions. A new decision basis,
reconstructed, marks a decision that an agent inferred from code or a running system, and that nobody ruled. Only a person can approve such a decision: no authority policy accepts it. - More in the agent guide. The built-in guide now covers how to revise a decision, how to sort design changes while you code, what to do when a block comes back a second time, onboarding phases, and Markdown and format-3 imports.
Changes
- No format change. Store format 19, dump format 4, and sync stream formats 2 and 3 stay, and no store feature is added. rdy 0.49.0 opens a store made by rdy 0.48.0 as it is, and loads every earlier dump. You do nothing to move. rdy 0.48.0 shows a decision whose
authority_basisisreconstructed, but refuses a write that changes it, such as an edit or a supersede, and an import of a file that holds one. Change such decisions with rdy 0.49.0 or later. - Derived ids. The schema pack gained
reconstructed. So the ids that rdy derives for a new change, such as tension and landing ids, differ from the ids that rdy 0.48.0 would compute. The ids in your store do not change when you upgrade. - An import that fails as it seals says whether rdy undid it. When rdy cannot prove that it cut the store back, the import refuses with
E_IO"import outcome is indeterminate". Reopen the project and look at the target view before you retry. This applies to format-3 and Markdown imports. rdy statusprintsmcp http:lines beforeviews:.rdy_schema: theE_SITErow also covers MCP over HTTP that is off or has no valid token file. The fourW_HOOK_*warnings are new rows. TheE_FIELD_KINDfix for a wrongauthority_basislistsreconstructed.
Fixes
- A revoked repo link keeps its rules. After a repo link is revoked, the instructions that the project adopted through it stay in force, and so do the locks of their organization or team sets. Before,
rdy_instructionsleft them out. - A cancelled call frees its place. An MCP call that the client cancels while it waits for its turn is withdrawn. Before, it kept its place in the queue.
- Site landmarks. The "On this page" aside and each note and example callout have accessible names. Question callouts read "Open question".
- Project delete. While a project is deleted, its running daemon writes nothing into the project's folder.
Security
- rustix 1.1.6. rdy builds with rustix 1.1.6, which fixes RUSTSEC-2026-0486.
Project and build
- New dependencies. MCP over HTTP uses the streamable HTTP server of rmcp 3.9.0, with hyper, hyper-util, getrandom and subtle. The Markdown import uses pulldown-cmark and unicase. The third-party notices in each archive list them: 196 crates.io packages for macOS, and 195 for Linux and Windows.
Feedback
This is early. Tell us what worked and what did not: https://github.com/adrenickchrome/rdy-core/issues
Known issues in this release:
- A dispute, or a dispute resolution, made after a removal request still makes the request stale. Make the removal request again.
- A ruleset's "when" text can show two paragraphs when the first block of the ruleset holds two.
- When the project and your meta project each hold close to 5,000 rulesets, the menu can pass its 5,000-entry limit.
- When rdy cannot read the folder of your meta project, it treats the meta project as missing. Your own rules are then left out with no error.
- A validation error from your meta project loses its list of issues.
rdy setupcan overwrite a change that another tool saves toCLAUDE.mdorAGENTS.mdwhile it runs. Run it when no other tool is saving those files.- A malformed
loadvalue is refused with a different message from the documented one. instructions.personset outside the user config warns only on the CLI's standard error, not in the tool reply or the CLI's JSON.- The CLI's plain-text briefing shows neither the as-built status nor
W_AS_BUILT_OVERRIDE.rdy showand the MCP tools show both. - A review page does not show the Planned or since label on removed content.
- A confirm can silence
W_AS_BUILT_OVERRIDEeven when another as-built item of the same proposal was updated, not confirmed. - When a decision's
builtchanges and then changes back, an earlier confirm silencesW_AS_BUILT_OVERRIDEagain. rdy publication check --againstcan miss what a shown section reveals when a planned decision outside the selection becomes built.- In a project with very many keys in one doc, a key change can land without a new assessment.
- A rule that you remove twice and then state a third time, with the same text, selectors, ruleset and reason, stops as not ready. Give it a different reason.
- The tool schemas show example ids, such as
D-W2HXR,FW-E3andM2c3, that look like real ids. They are only examples. Earlier releases showed them too. - On Windows, the checksum step of the install guide,
Get-FileHash, fails with "not recognized" when another program starts Windows PowerShell 5.1 from PowerShell 7. Run the step in a normal PowerShell 5.1 or 7 window. - Your meta project has its own daemon.
rdy serve --stopin a project does not stop it. - A misspelt or unknown kind under a pack's
tensions_acrossis ignored with no warning. The docs say it warns withW_CONFIG_UNKNOWN. - Repo links. All but the first of these need deliveries from rdyhub:
- Two views that each add a repo link with the same alias, for different repos, can both land. Reads then use the link with the lower block id.
- A misspelt link kind on a cited target, such as
decided_byy, is accepted with no warning. - A new project refuses a whole delivery with
E_UNRESOLVED_REFwhen the delivery holds a version that was already redacted. - When two links deliver the same version, a removal proof taken through one link also erases the other link's copy.
rdy fsckthen fails for the other link. - With two links to one project, adopting a new version of its instructions through one link also moves the other link's baseline.
- An adopted instruction set takes its ruleset doc and its
requiredflag from the latest delivery, but its rule text from the adopted version. - After a link is changed to another repo, a delivery equal to the last one is taken as unchanged, and still names the old repo.
- MCP over HTTP:
- A power loss soon after the first start with MCP over HTTP on can lose the token file. Saved client settings then stop working. Run
rdy mcp --http-configagain, and update the client.
- A power loss soon after the first start with MCP over HTTP on can lose the token file. Saved client settings then stop working. Run
- Warning hooks:
- A real Claude Code edit on Windows is not yet proven. A real Claude Code edit on macOS, the native Windows hook tests and a real commit in PowerShell through the code hook stand in for it.
- The code hook does not see a decision that is only proposed, in a view that has not landed. It reports the commit as checked, with no warning.
- When the code hook must visit more than 5,000 blocks to reach a cited block's decision, it reports the commit as checked, with no warning.
- The edit hook can warn about a doc that the working copy leaves out, when the doc's folder has a
_folder.yamlthat is not valid. - When an editor saves
.claude/settings.local.jsonwhile rdy installs or removes the edit hook, the editor's change can be lost with noW_HOOK_CONFLICT. Install or remove the hook when no editor is saving that file. - If you change the arguments of rdy's entry in
.claude/settings.local.jsonand install the edit hook again, the file gets a secondPostToolUseentry. - When the
commit-msglauncher has lost its executable bit, installing the code hook again keeps it with no warning, and Git ignores it. - With
rdy mcp --no-daemon,rdy_hookcannot install or remove a hook. Startrdy mcpwithout--no-daemon. - On a slow or busy Windows machine, a code check can end with
W_HOOK_UNAVAILABLE(deadline), because it has 2 seconds. The commit still goes ahead.
- Markdown import:
- A local link whose text has formatting keeps the raw Markdown:
[**bold**](a.md)shows**bold**. The report has no row for it. - Front matter that rdy does not support becomes a YAML code block, not plain text.
- In a file whose lines end with a carriage return only, rdy does not read the front matter, and the report gives wrong line numbers.
- When rdy converts a reference link, it removes the link's definition even when an image still uses it.
- A source folder that is a symbolic link is imported. If the folder is replaced while rdy reads it, rdy can read the old folder.
- A folder with several hundred empty subfolders can fail with
E_IO"Too many open files" on a system that allows 256 open files. - When the first write of an import fails and rdy cannot undo it, the refusal reads
E_IO"index error", not "import outcome is indeterminate". Reopen the project before you retry.
- A local link whose text has formatting keeps the raw Markdown:
Third-party source (MPL-2.0)
rdy is licensed MIT OR Apache-2.0. The binaries also contain two libraries under the Mozilla Public License 2.0: imbl 7.0.2 and imbl-sized-chunks 0.2.0. This release attaches the exact source code of each, as its crates.io crate file. Each SHA-256 matches rdy's Cargo.lock at this release:
- imbl-7.0.2.crate — SHA-256:
46bad832b9b463ed9398b8506488cc2e3b897a9d44f13af115f382aac71f4fec - imbl-sized-chunks-0.2.0.crate — SHA-256:
2a0813be332553f857953298749fa19549e8b61b80589757c29b4e2a804fa9c6
Each archive's THIRD-PARTY-NOTICES.txt gives the license of every library in the binary.
About Release 1
Release 1 (rdy 0.47.0) is the first release of rdy with a compatibility promise.
rdy stays below 1.0 during the beta, and the promise holds anyway.
From this release on, a change that breaks a contract surface ships with its upgrade path, in the same release. The contract surfaces are:
- the store, dump, sync batch and working-copy formats, and signatures;
- the CLI's commands, arguments, flags, exit codes and
--jsonoutput; - the MCP tools: their names, parameters and result fields;
- the
E_*andW_*codes; - the config keys and the pack format;
- the Markdown export layouts and the site's URLs.
A renamed name keeps working, with a warning, for two minor releases and at least 30 days, whichever ends later.
Text for people, such as messages, fix texts and help, can change in any release. Match a code, never its text.
Content that the docs mark as planned is outside the promise.
Every later rdy reads every dump that this rdy writes.
If this rdy refuses the store of a project from a preview with E_STORE_FORMAT, move the project with dump and load.
Run rdy dump --out <file> with the old rdy. Then run rdy load <file> <dir> with this rdy, into a directory with no store.
Report problems at https://github.com/adrenickchrome/rdy-core/issues.
Verify the download (optional)
Every release is signed. SHA256SUMS lists the three archives and the sample project tally.rdydump, and SHA256SUMS.sig is its OpenSSH signature (namespace rdy-release-v1, principal rdy-release). rdy's machine release key signs this release.
Release signing key:
rdy-release namespaces="rdy-release-v1" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIUyk+U70yjuD/Ixg86ti9BBo0Kc/NL0ps3KAOAIVC/8
Fingerprint: SHA256:Tj8hfra0U07asaeSZkt1b5e1HGJ+w8vMzLrn+G6/+/M. It is the same as in the README.
| Platform | Target | Tested on |
|---|---|---|
| macOS arm64 | aarch64-apple-darwin |
macOS 26.6.2 |
| Linux amd64 | x86_64-unknown-linux-gnu |
Ubuntu 26.04.1 LTS |
| Windows amd64 | x86_64-pc-windows-msvc |
Windows 11 Pro 25H2 |
To check the signature and the hash before you install, download the archive, SHA256SUMS and SHA256SUMS.sig into one folder and run:
On macOS arm64, for an archive downloaded with curl:
cd '/path/to/download' &&
'printf' '%s\n' 'rdy-release namespaces="rdy-release-v1" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIUyk+U70yjuD/Ixg86ti9BBo0Kc/NL0ps3KAOAIVC/8' > '/path/to/download/release-allowed-signers' &&
'ssh-keygen' '-Y' 'verify' '-f' 'release-allowed-signers' '-I' 'rdy-release' '-n' 'rdy-release-v1' '-s' 'SHA256SUMS.sig' < '/path/to/download/SHA256SUMS' &&
'shasum' '-a' '256' '-c' '--ignore-missing' 'SHA256SUMS' &&
'mkdir' '/path/to/unpack' '/path/to/rdy-0.49.0' &&
'tar' '-xzf' '/path/to/download/rdy-0.49.0-aarch64-apple-darwin.tar.gz' '-C' '/path/to/unpack' &&
'mkdir' '-p' '/path/to/rdy-0.49.0/bin' &&
'install' '-m' '755' '/path/to/unpack/rdy-0.49.0-aarch64-apple-darwin/rdy' '/path/to/rdy-0.49.0/bin/rdy' &&
'/path/to/rdy-0.49.0/bin/rdy' '--version'On Linux amd64:
cd '/path/to/download' &&
'printf' '%s\n' 'rdy-release namespaces="rdy-release-v1" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIUyk+U70yjuD/Ixg86ti9BBo0Kc/NL0ps3KAOAIVC/8' > '/path/to/download/release-allowed-signers' &&
'ssh-keygen' '-Y' 'verify' '-f' 'release-allowed-signers' '-I' 'rdy-release' '-n' 'rdy-release-v1' '-s' 'SHA256SUMS.sig' < '/path/to/download/SHA256SUMS' &&
'sha256sum' '-c' '--ignore-missing' 'SHA256SUMS' &&
'mkdir' '/path/to/unpack' '/path/to/rdy-0.49.0' &&
'tar' '-xzf' '/path/to/download/rdy-0.49.0-x86_64-unknown-linux-gnu.tar.gz' '-C' '/path/to/unpack' &&
'mkdir' '-p' '/path/to/rdy-0.49.0/bin' &&
'install' '-m' '755' '/path/to/unpack/rdy-0.49.0-x86_64-unknown-linux-gnu/rdy' '/path/to/rdy-0.49.0/bin/rdy' &&
'/path/to/rdy-0.49.0/bin/rdy' '--version'On Windows amd64, in PowerShell:
& {
$ErrorActionPreference = 'Stop'
Set-Location -LiteralPath 'C:\path\to\download'
$s = [IO.File]::Open('C:\path\to\download\release-allowed-signers', [IO.FileMode]::OpenOrCreate, [IO.FileAccess]::Write, [IO.FileShare]'ReadWrite, Delete'); $s.SetLength(0); $b = [Text.Encoding]::UTF8.GetBytes('rdy-release namespaces="rdy-release-v1" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIUyk+U70yjuD/Ixg86ti9BBo0Kc/NL0ps3KAOAIVC/8' + [char]10); $s.Write($b, 0, $b.Length); $s.Close()
& 'cmd.exe' '/d' '/c' 'ssh-keygen.exe -Y verify -f release-allowed-signers -I rdy-release -n rdy-release-v1 -s SHA256SUMS.sig < SHA256SUMS'
if ($LASTEXITCODE -ne 0) { throw 'a step failed' }
$n = 0; foreach ($line in [IO.File]::ReadAllLines('C:\path\to\download\SHA256SUMS')) { $want = $line.Substring(0, 64); $name = $line.Substring(66); $file = [IO.Path]::Combine('C:\path\to\download', $name); if (Test-Path -LiteralPath $file) { $got = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLower(); if ($got -cne $want) { throw ($name + ': FAILED') }; [Console]::Out.Write($name + ': OK' + [char]10); $n++ } }; if ($n -eq 0) { throw 'no archive was checked' }
foreach ($dir in @('C:\path\to\unpack', 'C:\path\to\rdy-0.49.0')) { if (Test-Path -LiteralPath $dir) { throw ($dir + ' exists') }; [void][IO.Directory]::CreateDirectory($dir) }
& (Join-Path $env:SystemRoot 'System32\tar.exe') '-xzf' 'C:\path\to\download\rdy-0.49.0-x86_64-pc-windows-msvc.tar.gz' '-C' 'C:\path\to\unpack'
if ($LASTEXITCODE -ne 0) { throw 'a step failed' }
[void][IO.Directory]::CreateDirectory('C:\path\to\rdy-0.49.0\bin')
[IO.File]::Copy('C:\path\to\unpack\rdy-0.49.0-x86_64-pc-windows-msvc\rdy.exe', 'C:\path\to\rdy-0.49.0\bin\rdy.exe')
& 'C:\path\to\rdy-0.49.0\bin\rdy.exe' '--version'
if ($LASTEXITCODE -ne 0) { throw 'a step failed' }
}
# Add the version's bin directory to PATH in this session:
# $env:Path = 'C:\path\to\rdy-0.49.0\bin;' + $env:Path
# rdy needs SSH_AUTH_SOCK, even when ssh works without it. Set it to the agent pipe:
# $env:SSH_AUTH_SOCK = '\\.\pipe\openssh-ssh-agent'On macOS arm64, for an archive downloaded with a web browser:
# In Safari, turn off “Open safe files after downloading” before downloading. Keep the original .tar.gz file.
# After both checks pass, remove com.apple.quarantine from the archive before extraction. Skip this command if the archive has no com.apple.quarantine attribute.
cd '/path/to/download' &&
'printf' '%s\n' 'rdy-release namespaces="rdy-release-v1" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIUyk+U70yjuD/Ixg86ti9BBo0Kc/NL0ps3KAOAIVC/8' > '/path/to/download/release-allowed-signers' &&
'ssh-keygen' '-Y' 'verify' '-f' 'release-allowed-signers' '-I' 'rdy-release' '-n' 'rdy-release-v1' '-s' 'SHA256SUMS.sig' < '/path/to/download/SHA256SUMS' &&
'shasum' '-a' '256' '-c' '--ignore-missing' 'SHA256SUMS' &&
'xattr' '-d' 'com.apple.quarantine' '/path/to/download/rdy-0.49.0-aarch64-apple-darwin.tar.gz' &&
'mkdir' '/path/to/unpack' '/path/to/rdy-0.49.0' &&
'tar' '-xzf' '/path/to/download/rdy-0.49.0-aarch64-apple-darwin.tar.gz' '-C' '/path/to/unpack' &&
'mkdir' '-p' '/path/to/rdy-0.49.0/bin' &&
'install' '-m' '755' '/path/to/unpack/rdy-0.49.0-aarch64-apple-darwin/rdy' '/path/to/rdy-0.49.0/bin/rdy' &&
'/path/to/rdy-0.49.0/bin/rdy' '--version'Add the version's bin directory to PATH in this shell.
Replace <version-prefix> with the version prefix, such as /path/to/rdy-0.49.0:
export PATH="<version-prefix>/bin:$PATH"