Skip to main content

Mere

@jeremy/merev2026.11.05.16· MIT· 1d agoBEHAVIORSWORKFLOWSREPORTSACCEPTED WARNINGS
01README

Mere domain behaviors: source artifacts, a pinned toolchain, source-tree validation, and reproducible rescue-image assembly.

02Behaviors6
@jeremy/mere/sourcev2026.11.04.1source.ts

Global Arguments

ArgumentTypeDescription
githubToken?stringOptional. Falls back to GITHUB_TOKEN, GH_TOKEN, then `gh auth token`.
anityaBaseUrl?string
fn prepareBump(recipeBinding?: string, recipe: string, version?: string)
Decide and prepare a version bump for one recipe: look up upstream,
ArgumentTypeDescription
recipeBinding?string
recipestring
version?stringEmpty targets the newest stable release in the recipe's current
fn latest(name: string, currentVersion: string, url?: string, sourceUrl?: string, anityaProjectId?: number)
Find the newest stable upstream version of one recipe: GitHub tags
ArgumentTypeDescription
namestring
currentVersionstring
url?string
sourceUrl?string
anityaProjectId?number
fn scanLatest(recipeBinding?: string, concurrency?: number)
Look up the latest upstream version of every recipe in one call
ArgumentTypeDescription
recipeBinding?string
concurrency?number
fn fetchHash(url: string)
Download an HTTPS source and compute BLAKE3 without shell commands. HTTPS redirects are followed (max 5); a verified cache is reused by URL.
ArgumentTypeDescription
urlstring

Resources

bump(infinite)— What a bump of one recipe will do, with its new source hashes
upstream(infinite)— Latest upstream version of one recipe
artifact(infinite)— Downloaded source and its BLAKE3 digest
@jeremy/mere/toolchainv2026.11.04.1toolchain.ts

Global Arguments

ArgumentTypeDescription
mereVersionstring
mereRoot?stringIsolated mere root. Empty derives .swamp/mere/<name>/root under the repo.
configUrl?string
publicKeyUrl?string
fn provision(archivePath: string, sha256: string)
Install an already-downloaded, checksum-verified mere binary and
ArgumentTypeDescription
archivePathstringPath of the mere binary already downloaded and checksum-verified by a
sha256stringExpected SHA-256 of the file at archivePath (from the release's SHA256SUMS).
fn status(sha256: string)
Re-verify the installed binary's digest and report the root's state.
ArgumentTypeDescription
sha256string

Resources

toolchain(infinite)— The provisioned mere binary and isolated root
@jeremy/mere/recipev2026.11.04.1recipe.ts

Global Arguments

ArgumentTypeDescription
repoUrl?stringGit URL of the recipe repository: https, ssh:// or scp-style (git@host:path).
ref?string
checkoutPath?stringEmpty derives .swamp/mere/checkouts/merelinux under the repo.
toolchain?stringName of the @jeremy/mere/toolchain behavior whose provisioned mere
ensureCheckout?booleanClone or update the checkout through @swamp/git before reading. Set
fn workspace(key: string)
Compute the standard paths for one piece of work: the shared
ArgumentTypeDescription
keystring
fn cleanWorktree(key: string, branch: string)
Remove a stale bump worktree and its local branch so a retry starts
ArgumentTypeDescription
keystring
branchstring
fn dependents(name: string)
List the recipes whose `depends` name this recipe or its -dev
ArgumentTypeDescription
namestring
fn summarize(recipe: string, sourceBinding?: string, runId: string)
Write the title, commit message, PR body and labels for a bump from
ArgumentTypeDescription
recipestring
sourceBinding?string
runIdstring
fn validate(recipe: string, checkoutPath: string)
Run `mere dev validate` on a recipe in a worktree: mere is the
ArgumentTypeDescription
recipestring
checkoutPathstringThe per-run worktree holding the recipe to check; absolute.
fn build()
Run `mere dev build` on a recipe in a worktree, in the isolated
fn setVersion(recipe: string, version: string, release?: number, sources?: array, checkoutPath: string, allowHardcodedVersion?: boolean)
Move a recipe to a new version in a worktree: edits only the version
ArgumentTypeDescription
recipestring
versionstring
release?number
sources?array
checkoutPathstringThe per-run worktree to edit. Never the shared checkout; required.
allowHardcodedVersion?boolean
fn read(recipe: string)
Parse one recipe (<category>/<name>) from the checkout.
ArgumentTypeDescription
recipestring
fn scan()
Parse every recipe in the tree in one pass (one resource per recipe).

Resources

recipe(infinite)— One parsed recipe
change(infinite)— A recorded edit of one recipe: before and after
workspace(infinite)— Standard paths for one bump run: shared checkout and worktree
cleanup(infinite)— Result of removing a stale bump worktree
summary(infinite)— Title, commit message, PR body and labels for a change
dependents(infinite)— Recipes that depend on one recipe
validation(infinite)— Result of `mere dev validate` on one recipe
build(infinite)— Result of `mere dev build` on one recipe, with its outputs
scan(infinite)— Outcome of a tree scan, including recipes that failed to parse

Files

buildLog(text/plain)— mere's build log for the latest build of a recipe
@jeremy/mere/policyv2026.11.05.1policy.ts
fn checkCommit(message?: string, rawCommit?: string, title?: string, branch?: string, expectedSubject?: string, expectedAuthorEmail?: string, maxSubjectLength?: number, subjectPattern?: string, allowBody?: boolean, forbidTrailers?: boolean, branchPattern?: string)
Check a commit message (before committing) or an existing commit (after)
ArgumentTypeDescription
message?stringThe commit message to check; or give rawCommit.
rawCommit?string`git log -1 --format='%an <%ae>%n%B'` output, to check a commit that exists.
title?stringThe PR title; must equal the subject.
branch?string
expectedSubject?string
expectedAuthorEmail?string
maxSubjectLength?number
subjectPattern?string
allowBody?boolean
forbidTrailers?boolean
branchPattern?string

Resources

commitCheck(infinite)— Result of checking a commit message against the rules
@jeremy/mere/treev2026.08.23.4tree.ts
fn fmtCheck(sourcePath: string)
Check Mere source formatting with fixed argv `zig fmt --check src build.zig build.zig.zon`.
ArgumentTypeDescription
sourcePathstringAbsolute path to a Mere package-manager source checkout or isolated worktree under the repository's .swamp/mere directory.
fn build(sourcePath: string)
Build the Mere package-manager source tree with fixed argv `zig build`.
ArgumentTypeDescription
sourcePathstringAbsolute path to a Mere package-manager source checkout or isolated worktree under the repository's .swamp/mere directory.
fn test(sourcePath: string)
Run the full Mere package-manager test suite with fixed argv `zig build test --summary all`.
ArgumentTypeDescription
sourcePathstringAbsolute path to a Mere package-manager source checkout or isolated worktree under the repository's .swamp/mere directory.
fn releaseBuild(sourcePath: string)
Build the portable Mere release artifact with fixed argv `zig build -Doptimize=ReleaseSmall -Dcpu=baseline`.
ArgumentTypeDescription
sourcePathstringAbsolute path to a Mere package-manager source checkout or isolated worktree under the repository's .swamp/mere directory.
fn smoke(sourcePath: string)
Run the built Mere CLI's machine-readable describe command with fixed argv `./zig-out/bin/mere describe`.
ArgumentTypeDescription
sourcePathstringAbsolute path to a Mere package-manager source checkout or isolated worktree under the repository's .swamp/mere directory.

Resources

fmt-result(infinite)— Mere package-manager formatting check result
build-result(infinite)— Ordinary Mere package-manager build result
test-result(infinite)— Mere package-manager test result
baseline-build-result(infinite)— Portable baseline release build result
smoke-result(infinite)— Built Mere CLI describe smoke-test result
@jeremy/mere/rescue-imagev2026.11.05.16rescue_image.ts
fn build(sourcePath: string, outputDir: string, workspaceRoot: string, sourceCommit: string, repositoryUrl?: string, workerLabel: string, environmentProfile: string, swampRepoDir: string, swampServerTokenFile?: string, mereDevBehavior: string, mereVersion: string, linuxPackage: string, mereDevRoot: string, mereBinary: string, toolProfileRoot: string, ovmfToolProfileRoot: string, safetySentinelPath: string, includeFixture?: boolean, fullCompare?: boolean)
Run the pinned rescue assembler with fixed argv, then verify source provenance, reproducibility, output containment, and disk safety.
ArgumentTypeDescription
sourcePathstring
outputDirstring
workspaceRootstring
sourceCommitstring
repositoryUrl?string
workerLabelstring
environmentProfilestring
swampRepoDirstring
swampServerTokenFile?string
mereDevBehaviorstring
mereVersionstring
linuxPackagestring
mereDevRootstring
mereBinarystring
toolProfileRootstring
ovmfToolProfileRootstring
safetySentinelPathstring
includeFixture?boolean
fullCompare?boolean

Resources

rescue-build(infinite)— Verified rescue-image build output and digest summary
rescue-manifest(infinite)— Machine-readable rescue-image manifest with provenance
rescue-safety(infinite)— Disk-safety acceptance evidence for one rescue-image attempt
03Workflows4
@jeremy/mere/recipe-scan47f78aa9-727f-4d8d-ada1-32688f61d7e2

Parse every merelinux recipe, then look up each one's latest upstream version. Read-only and token-free; run on a schedule, then read the upstream-drift report.

scan
1.parse${{ inputs.recipeBinding }}.scan— Parse the recipe tree (one resource per recipe)
2.latest${{ inputs.sourceBinding }}.scanLatest— Look up the latest upstream version of every recipe
@jeremy/mere/recipe-bump29d815ec-61b9-4472-b17c-df785b8a9f88

Bump one merelinux recipe: decide the target version, download and hash its sources, edit the recipe in a per-run worktree, validate and build it with mere, write the PR text from data, then hand the change to deliver-change. No model calls. Defaults to the newest stable release in the recipe's current series; pass version to move to another.

prepare
1.scan${{ inputs.recipeBinding }}.scan— Update the checkout and parse the tree
2.plan${{ inputs.sourceBinding }}.prepareBump— Pick the target version and hash its sources
build
1.workspace${{ inputs.recipeBinding }}.workspace— Paths for this bump; the worktree is named by the branch
2.clean${{ inputs.recipeBinding }}.cleanWorktree— Remove a stale worktree and local branch from an earlier try
3.worktree— A per-run worktree on the bump branch
4.set-version${{ inputs.recipeBinding }}.setVersion
5.validate${{ inputs.recipeBinding }}.validate
6.build${{ inputs.recipeBinding }}.build
7.summarize${{ inputs.recipeBinding }}.summarize— Write the PR text from recorded data
deliver
1.deliver-change
@jeremy/mere/deliver-changedad80562-7653-498f-bedf-44b1d17c2602

Commit a worktree's change, check the commit against the commit standards, push its branch, check the pushed diff is only what was expected, build and verify a change packet, then plan, create and read back the pull request as an ordinary PR. Optionally stops for a person's approval before anything is pushed (requireApproval). Never merges: the merge is manual.

prepare
1.check-message— The commit message, PR title and branch meet the standards
2.commit— Commit only the allowed paths
3.read-commit— Read back the commit that was actually made
4.verify-commit— The real commit has the expected subject, no body or trailers, and the expected author
gate
1.approve-push— Optional gate before anything leaves this machine
publish
1.push— Push the branch; never forced
2.diff— List what the pushed branch changes against its base
3.assert-scoped— The pushed diff is not empty and has only allowed paths
4.create-packet${{ inputs.packetBinding }}.create
5.verify-packet${{ inputs.packetBinding }}.verify
6.assert-packet
7.plan-pr${{ inputs.prBinding }}.planPr
8.apply-pr${{ inputs.prBinding }}.applyPr
9.verify-pr${{ inputs.prBinding }}.verifyPr
@jeremy/mere/mere-change958c949d-1d59-4371-affe-e1901ecbc1d0

Validate and deliver one scoped change to the Mere package-manager source tree. The workflow never edits source: it runs formatting, build, tests, and the built CLI smoke check, then delegates commit, push, approval, and pull request creation to deliver-change. Merge remains manual.

validate
1.fmt-check— Check source formatting before any delivery action.
2.assert-fmt
3.build
4.assert-build
5.test
6.assert-test
7.smoke
8.assert-smoke
deliver
1.deliver-change
04Reports3
@jeremy/mere/build-summaryworkflow
build_summary.ts

Summarize recipe build results, package outputs, durations, and failures recorded by a workflow.

merebuild
@jeremy/mere/upstream-driftworkflow
upstream_drift.ts

Which merelinux recipes are behind upstream, which could not be checked, and why.

meredrift
@jeremy/mere/work-costmethod
work_cost.ts

Summarize imported coding-agent sessions, token counts, wall time, tool calls and bypass labels.

mereagentcost
05Previous Versions15
2026.11.05.15MIT
2026.11.05.14MIT
2026.11.05.13MIT
2026.11.05.12MIT
2026.11.05.11MIT
2026.11.05.10MIT
2026.11.05.9MIT
2026.11.05.8MIT
2026.11.05.7MIT
2026.11.05.6MIT
2026.11.05.5MIT
2026.11.05.4MIT
2026.11.05.3MIT

Added 1 behaviors. updated labels

2026.11.04.9MIT

Added 1 reports

2026.11.04.8MIT
06Stats
A
93 / 100
Downloads
2
Archive size
109.1 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented0/1missing
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned

08Platforms
09Labels