Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b3b8cf9
refactor: route ovens through a code-owned handler registry
apresmoi Jul 13, 2026
dfaaa9d
feat: persist oven data bindings per repo
apresmoi Jul 13, 2026
eaa26ab
feat: pin oven revision in runs with lineage sidecar
apresmoi Jul 13, 2026
c2e2b3f
fix: isolate registered ovens from malformed packages and verify run …
apresmoi Jul 13, 2026
8e7d4ee
fix: size run snapshot byte caps to normalized oven limits
apresmoi Jul 13, 2026
f9e028b
fix: make lifecycle moves crash-safe with atomic locking
apresmoi Jul 13, 2026
0fb066a
fix: re-open filtered projects and route duplicate-id burnlists by pl…
apresmoi Jul 13, 2026
c335761
fix: close remaining lock and rename races in lifecycle moves
apresmoi Jul 13, 2026
f3bd929
ci: add verify workflow and manual npm publish workflow
apresmoi Jul 13, 2026
63c0aa6
ci: guard publish to main, push before publish, test node 18/20/22
apresmoi Jul 14, 2026
1a9513f
fix: atomic oven update, add oven fork lineage, drop legacy layout
apresmoi Jul 14, 2026
9f4f4ed
fix: resolve oven bindings per repo and flag untrusted oven data
apresmoi Jul 14, 2026
b451005
fix: make lifecycle close crash-recoverable
apresmoi Jul 14, 2026
0877314
fix: safe target reclaim, validated resumable close, binding override…
apresmoi Jul 14, 2026
2d7e1b7
fix: store custom ovens at repo root and lock oven package updates
apresmoi Jul 14, 2026
735efd0
fix: publish custom ovens via atomic symlink pointer with lock-free r…
apresmoi Jul 14, 2026
f368503
fix: retain reader revisions, self-heal oven migration, junction on w…
apresmoi Jul 14, 2026
4c80b62
fix: publish custom ovens via atomic pointer file for cross-platform …
apresmoi Jul 14, 2026
0263c95
fix: retirement-grace oven rev GC, fail-closed reads, strict pointer …
apresmoi Jul 14, 2026
750ef5f
fix: touch retired oven rev before pointer swap for crash-safe grace
apresmoi Jul 14, 2026
6eaab94
fix: umbrella oven root, path containment, per-oven isolation, regist…
apresmoi Jul 14, 2026
1f1df3a
fix: oven write size guard, containment, per-oven isolation, blocked …
apresmoi Jul 14, 2026
e830fc3
refactor: split oven CLI and route tests under 400 lines; tag after p…
apresmoi Jul 14, 2026
7ea3a3f
fix: true per-row dashboard isolation, idempotent publish, ovenId val…
apresmoi Jul 14, 2026
52354ba
fix: refuse to overwrite a malformed binding store; harden blocked-ro…
apresmoi Jul 14, 2026
dbe2378
feat: identify custom ovens per repo (repoKey) with global built-ins
apresmoi Jul 14, 2026
4193a3a
feat: refuse oven writes to un-ignored repo state; init ignores .local
apresmoi Jul 14, 2026
3f04f89
fix: commit-bound publish/tag recovery; validate package components i…
apresmoi Jul 14, 2026
3fd9036
fix: strict per-repo oven identity, init keeps .local ignored, commit…
apresmoi Jul 14, 2026
8277b9a
fix: resolve built-in ovens globally (repoKey selects data); npm ci a…
apresmoi Jul 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
pull_request:
branches:
- main
push:
branches:
- main

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
node-version: [18, 20, 22]
steps:
- name: Check out
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Build dashboard
run: npm run build:dashboard

- name: Verify
run: npm run verify

- name: Verify package payload
run: npm run verify:package
299 changes: 299 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,299 @@
name: Publish

# Manual-only. Every publish and tag is bound to the version-bump commit, even
# when a rerun happens after main has advanced.
on:
workflow_dispatch:
inputs:
bump:
description: "Version bump"
required: true
default: "patch"
type: choice
options:
- patch
- minor
- major

permissions:
contents: write

concurrency:
group: publish
cancel-in-progress: false

jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
cache: npm
cache-dependency-path: package-lock.json

- name: Refuse to publish from a non-main ref
run: |
set -euo pipefail
if [[ "${GITHUB_REF}" != "refs/heads/main" ]]; then
echo "Publish must run from main; got ${GITHUB_REF}."
exit 1
fi

- name: Refresh current main
run: |
set -euo pipefail
git fetch origin main
git checkout --detach origin/main

- name: Determine release action
id: release-state
run: |
set -euo pipefail
current="$(node -p "require('./package.json').version")"
tag="v${current}"
npm_error="$(mktemp)"
if npm_version="$(npm view "burnlist@${current}" version 2>"$npm_error")"; then
if [[ "$npm_version" != "$current" ]]; then
echo "npm returned version '$npm_version', expected '$current'."
exit 1
fi
npm_state=present
elif grep -Eq '(^|[^[:alnum:]])E404([^[:alnum:]]|$)' "$npm_error"; then
npm_state=missing
else
echo "npm view failed while checking burnlist@${current}:"
cat "$npm_error"
exit 1
fi
rm -f "$npm_error"

if [[ "$npm_state" == "missing" ]]; then
action=publish
else
git_error="$(mktemp)"
if git ls-remote --exit-code --tags origin "refs/tags/${tag}" >"$git_error" 2>&1; then
action=verify-tag
else
status=$?
if [[ "$status" -eq 2 ]]; then
action=tag
else
echo "git ls-remote failed while checking ${tag}:"
cat "$git_error"
exit 1
fi
fi
rm -f "$git_error"
fi
echo "current=${current}" >> "$GITHUB_OUTPUT"
echo "action=${action}" >> "$GITHUB_OUTPUT"
echo "Release action: ${action} (${tag})"

- name: Verify completed release tag
if: steps.release-state.outputs.action == 'verify-tag'
env:
VERSION: v${{ steps.release-state.outputs.current }}
run: |
set -euo pipefail
npm_error="$(mktemp)"
if ! artifact_commit="$(npm view "burnlist@${VERSION#v}" gitHead 2>"$npm_error")"; then
echo "npm view failed while reading ${VERSION} gitHead:"
cat "$npm_error"
exit 1
fi
rm -f "$npm_error"
if [[ ! "$artifact_commit" =~ ^[0-9a-f]{40}$ ]]; then
echo "npm metadata for ${VERSION} does not contain a full gitHead SHA."
exit 1
fi
git cat-file -e "${artifact_commit}^{commit}"
git merge-base --is-ancestor "$artifact_commit" origin/main
tag_refs="$(git ls-remote --exit-code --tags origin "refs/tags/${VERSION}" "refs/tags/${VERSION}^{}")"
tag_target="$(awk -v ref="refs/tags/${VERSION}" '$2 == ref { direct = $1 } $2 == ref "^{}" { peeled = $1 } END { print peeled ? peeled : direct }' <<<"$tag_refs")"
if [[ ! "$tag_target" =~ ^[0-9a-f]{40}$ || "$tag_target" != "$artifact_commit" ]]; then
echo "Remote tag ${VERSION} does not point to npm artifact ${artifact_commit}."
exit 1
fi

- name: Bump version
id: bump
if: steps.release-state.outputs.action == 'verify-tag'
run: |
set -euo pipefail
next="$(npm version "${{ inputs.bump }}" --no-git-tag-version)"
echo "version=${next}" >> "$GITHUB_OUTPUT"
echo "Bumped to ${next}"

- name: Set release version
id: release
env:
ACTION: ${{ steps.release-state.outputs.action }}
CURRENT_VERSION: ${{ steps.release-state.outputs.current }}
BUMPED_VERSION: ${{ steps.bump.outputs.version }}
run: |
set -euo pipefail
version="v${CURRENT_VERSION}"
if [[ "$ACTION" == "verify-tag" ]]; then version="$BUMPED_VERSION"; fi
echo "version=${version}" >> "$GITHUB_OUTPUT"

- name: Commit and push version bump
if: steps.release-state.outputs.action == 'verify-tag'
env:
NEXT_VERSION: ${{ steps.release.outputs.version }}
ACTOR: ${{ github.actor }}
ACTOR_ID: ${{ github.actor_id }}
run: |
set -euo pipefail
git config user.name "$ACTOR"
git config user.email "${ACTOR_ID}+${ACTOR}@users.noreply.github.com"
git add package.json package-lock.json
git commit -m "chore(release): ${NEXT_VERSION}"
git push origin HEAD:main

- name: Resolve and verify release commit
id: release-commit
env:
ACTION: ${{ steps.release-state.outputs.action }}
VERSION: ${{ steps.release.outputs.version }}
run: |
set -euo pipefail
if [[ "$ACTION" == "verify-tag" ]]; then
release_commit="$(git rev-parse HEAD)"
elif [[ "$ACTION" == "tag" ]]; then
npm_error="$(mktemp)"
if ! release_commit="$(npm view "burnlist@${VERSION#v}" gitHead 2>"$npm_error")"; then
echo "npm view failed while reading ${VERSION} gitHead:"
cat "$npm_error"
exit 1
fi
rm -f "$npm_error"
else
release_commit="$(git log -1 --format=%H --grep="^chore(release): ${VERSION}$" origin/main)"
if [[ -z "$release_commit" ]]; then
echo "Could not find the version-bump commit for ${VERSION} on origin/main."
exit 1
fi
fi
if [[ ! "$release_commit" =~ ^[0-9a-f]{40}$ ]]; then
echo "Release commit for ${VERSION} is not a full SHA."
exit 1
fi
git cat-file -e "${release_commit}^{commit}"
git merge-base --is-ancestor "$release_commit" origin/main
commit_version="$(git show "${release_commit}:package.json" | node -p "JSON.parse(require('fs').readFileSync(0, 'utf8')).version")"
if [[ "$commit_version" != "${VERSION#v}" ]]; then
echo "Release commit ${release_commit} does not contain version ${VERSION}."
exit 1
fi
echo "sha=${release_commit}" >> "$GITHUB_OUTPUT"

- name: Check out exact release commit
env:
RELEASE_COMMIT: ${{ steps.release-commit.outputs.sha }}
run: git checkout --detach "$RELEASE_COMMIT"

# Install from the RELEASE commit's lockfile so gate + publish match the released tree.
- name: Install dependencies for the release commit
run: npm ci

- name: Verify any existing remote tag
env:
VERSION: ${{ steps.release.outputs.version }}
RELEASE_COMMIT: ${{ steps.release-commit.outputs.sha }}
run: |
set -euo pipefail
git_error="$(mktemp)"
if tag_refs="$(git ls-remote --exit-code --tags origin "refs/tags/${VERSION}" "refs/tags/${VERSION}^{}" 2>"$git_error")"; then
tag_target="$(awk -v ref="refs/tags/${VERSION}" '$2 == ref { direct = $1 } $2 == ref "^{}" { peeled = $1 } END { print peeled ? peeled : direct }' <<<"$tag_refs")"
if [[ ! "$tag_target" =~ ^[0-9a-f]{40}$ || "$tag_target" != "$RELEASE_COMMIT" ]]; then
echo "Remote tag ${VERSION} does not point to release commit ${RELEASE_COMMIT}."
exit 1
fi
else
status=$?
if [[ "$status" -ne 2 ]]; then
echo "git ls-remote failed while checking ${VERSION}:"
cat "$git_error"
exit 1
fi
fi
rm -f "$git_error"

- name: Gate exact release commit
run: |
npm run build:dashboard
npm run verify
npm run verify:package

- name: Publish to npm
if: steps.release-state.outputs.action != 'tag'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Bind npm artifact to release commit
id: artifact
env:
VERSION: ${{ steps.release.outputs.version }}
RELEASE_COMMIT: ${{ steps.release-commit.outputs.sha }}
run: |
set -euo pipefail
npm_error="$(mktemp)"
if ! npm_version="$(npm view "burnlist@${VERSION#v}" version 2>"$npm_error")"; then
echo "npm view failed while confirming ${VERSION}:"
cat "$npm_error"
exit 1
fi
if [[ "$npm_version" != "${VERSION#v}" ]]; then
echo "npm returned version '$npm_version', expected '${VERSION#v}'."
exit 1
fi
if ! artifact_commit="$(npm view "burnlist@${VERSION#v}" gitHead 2>>"$npm_error")"; then
echo "npm view failed while reading ${VERSION} gitHead:"
cat "$npm_error"
exit 1
fi
rm -f "$npm_error"
if [[ ! "$artifact_commit" =~ ^[0-9a-f]{40}$ || "$artifact_commit" != "$RELEASE_COMMIT" ]]; then
echo "npm artifact ${VERSION} is not bound to release commit ${RELEASE_COMMIT}."
exit 1
fi
git cat-file -e "${artifact_commit}^{commit}"
git merge-base --is-ancestor "$artifact_commit" origin/main
echo "sha=${artifact_commit}" >> "$GITHUB_OUTPUT"

- name: Tag published release
env:
NEXT_VERSION: ${{ steps.release.outputs.version }}
ARTIFACT_COMMIT: ${{ steps.artifact.outputs.sha }}
run: |
set -euo pipefail
git_error="$(mktemp)"
if tag_refs="$(git ls-remote --exit-code --tags origin "refs/tags/${NEXT_VERSION}" "refs/tags/${NEXT_VERSION}^{}" 2>"$git_error")"; then
tag_target="$(awk -v ref="refs/tags/${NEXT_VERSION}" '$2 == ref { direct = $1 } $2 == ref "^{}" { peeled = $1 } END { print peeled ? peeled : direct }' <<<"$tag_refs")"
if [[ ! "$tag_target" =~ ^[0-9a-f]{40}$ || "$tag_target" != "$ARTIFACT_COMMIT" ]]; then
echo "Remote tag ${NEXT_VERSION} does not point to npm artifact ${ARTIFACT_COMMIT}."
exit 1
fi
echo "Tag ${NEXT_VERSION} already points to the npm artifact."
exit 0
fi
status=$?
if [[ "$status" -ne 2 ]]; then
echo "git ls-remote failed while checking ${NEXT_VERSION}:"
cat "$git_error"
exit 1
fi
rm -f "$git_error"
git tag "${NEXT_VERSION}" "${ARTIFACT_COMMIT}"
git push origin "${NEXT_VERSION}"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Burnlist ships with two default Ovens:
- **Checklist** tracks the active work queue.
- **Differential Testing** renders aligned reference and candidate series, optional aggregate telemetry, and optional exact-first evidence.

Custom Ovens use the same two-file package. An Oven cannot run commands, collect or transform project data, mutate project files, import arbitrary UI, or start an agent. See the [Oven contract](skills/burnlist/references/oven-contract.md) for the complete boundary.
Custom Ovens use the same two-file package and are scoped to the repository that owns their ignored local state; built-in Ovens are global. An Oven cannot run commands, collect or transform project data, mutate project files, import arbitrary UI, or start an agent. `--ovens-dir` overrides custom Oven storage only for the dashboard's launch repository, while other observed repositories continue to use their own `.local/burnlist/ovens/`. See the [Oven contract](skills/burnlist/references/oven-contract.md) for the complete boundary.

## Differential Testing

Expand Down
4 changes: 2 additions & 2 deletions bin/burnlist.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Usage:
burnlist differential-testing validate-bundle <bundle/current.json>
burnlist differential-testing schema
burnlist differential-testing sdk
burnlist oven <list|view|create|update> ...
burnlist oven <list|view|bind|unbind|bindings|create|update> ...
burnlist new [--repo <path>]
burnlist show <id>[#<item>] [--repo <path>]
burnlist ready <id> [--repo <path>]
Expand All @@ -137,7 +137,7 @@ Options:
--auto-port Try the next available loopback port.
--host <host> Bind host; loopback is required by default.
--state-dir <path> Override ignored dashboard observer state.
--ovens-dir <path> Override custom Oven storage.
--ovens-dir <path> Override launch-repository custom Oven storage only.
--runs-dir <path> Override Run snapshot storage.
--oven-data <id=path> Bind one Oven to a read-only normalized JSON payload.
--version, -v Print the installed Burnlist version.
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { Filter } from "@lib";

export function App() {
const section = currentSection();
const selected = useMemo(selectedBurnlist, [window.location.pathname]);
const selected = useMemo(selectedBurnlist, [window.location.pathname, window.location.search]);
const [filter, setFilter] = useState(() => filterFromUrl(FILTERS));
const { projects, progress, error, loading } = useDashboardData({ section, selected });

Expand Down
Loading
Loading