Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8b99ea8
fix(deps): update platform while preserving existing profiles
lklimek Sep 10, 2026
9cbf464
fix(deps): pin platform to 63cf57f
lklimek Sep 10, 2026
3057fe3
docs(migration): add fixture contract, capture recipe and matrix design
lklimek Sep 10, 2026
8ff28cf
feat(mcp): add read-only identity_list and app_storage_status tools
lklimek Sep 11, 2026
931dc29
test(migration): add cross-version migration matrix harness
lklimek Sep 11, 2026
b1db9ce
Merge branch 'worktree-agent-a2fcb5657487e74bb' into feat/migration-t…
lklimek Sep 11, 2026
7b31feb
Merge branch 'worktree-agent-a4b3674e1b8943e08' into feat/migration-t…
lklimek Sep 11, 2026
474e440
docs(migration): record real v0.9.3 fixture capture and its proof-for…
lklimek Sep 11, 2026
e502a57
ci(migration): add migration-matrix workflow, fixture scripts and pin…
lklimek Sep 11, 2026
c236e4f
fix(migration): resolve fixture archive by documented manifest key
lklimek Sep 11, 2026
c127508
ci(migration): add fixture bootstrap upload and make the matrix fail …
lklimek Sep 11, 2026
f82f38e
test(migration): record v0.9.3 fixture artifact run
lklimek Sep 11, 2026
a213fe7
fix(migration-matrix): stop a test-env leak from clobbering DET_CLI_BIN
lklimek Sep 11, 2026
ac06bd2
docs(ai-design): add platform_compatibility bridge pattern reference
lklimek Sep 11, 2026
b197b1b
fix(mcp): restore the legacy network before the det-cli boot picks one
lklimek Sep 11, 2026
c9848f8
test(migration-matrix): assert the read-only data.db contract and uma…
lklimek Sep 11, 2026
4f0b519
test(migration-matrix): expect StorageUpdateNeedsDesktop for password…
lklimek Sep 11, 2026
d8f2522
fix(logging): cap rmcp logging so raw MCP tool arguments never reach …
lklimek Sep 11, 2026
94512c7
feat(storage-update): finish a protected-wallet storage update non-in…
lklimek Sep 11, 2026
3cb16a5
test(migration): boot the v0.9.3 fixture again with its password supp…
lklimek Sep 11, 2026
d4ec6aa
docs(storage-update): record the non-interactive password decision
lklimek Sep 11, 2026
eded628
fix(det-cli): keep wallet passwords off plain HTTP and out of stdin's…
lklimek Sep 11, 2026
b977562
fix(migration-matrix): skip SPV-gated address derivation for legacy-d…
lklimek Sep 11, 2026
3f46f12
test(migration): real-data platform_compatibility fixture from v1.0.0…
lklimek Sep 11, 2026
4d74032
ci(migration): relay large fixture archives through a draft release a…
lklimek Sep 11, 2026
6faaf8f
chore(migration-fixtures): record the weekly-20260908 fixture's uploa…
lklimek Sep 11, 2026
b82ccd6
Merge origin/v1.0-dev into feat/migration-test-matrix
lklimek Sep 11, 2026
d718695
Merge branch 'v1.0-dev' into feat/migration-test-matrix
lklimek Sep 14, 2026
e855f4f
ci(migration): run the matrix on every PR 983 branch push
lklimek Sep 14, 2026
0280335
test: harden migration matrix outcomes and password handling
lklimek Sep 14, 2026
579b0bd
fix(migration): enforce fixture integrity and credential isolation
lklimek Sep 14, 2026
c76de0d
fix(mcp): inspect storage without initialization and report wallet ow…
lklimek Sep 14, 2026
25b491b
ci(migration): validate fixture scripts before building
lklimek Sep 14, 2026
d74a66f
test(migration): use runner-provided grep for script assertions
lklimek Sep 14, 2026
a8a826b
test(cli): check request read in redirect regression
lklimek Sep 14, 2026
d9c297c
Merge remote-tracking branch 'origin/v1.0-dev' into feat/migration-te…
lklimek Sep 14, 2026
8b1dd8f
ci: renew migration fixture archives through pull requests
lklimek Sep 14, 2026
57e5ce1
Merge remote-tracking branch 'origin/v1.0-dev' into ci/migration-fixt…
lklimek Sep 23, 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
11 changes: 4 additions & 7 deletions .github/workflows/migration-fixture-bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ name: Migration Fixture Bootstrap
# nothing but jq and the GitHub API, and hands the bytes to the verifying job
# as a same-run artifact. Delete the draft once the run has succeeded.
#
# This is not capture automation: it captures nothing, runs on no schedule and
# opens no PR. A human dispatches it and records the run id in the manifest.
# Manual capture upload and recovery; scheduled renewal uses
# migration-fixture-renewal.yml and proposes updated pointers in a PR.
#
# USAGE, small archive:
# gh workflow run migration-fixture-bootstrap.yml \
Expand All @@ -44,11 +44,8 @@ name: Migration Fixture Bootstrap
# Either way, copy the values from the run's step summary into the entry's
# `artifact` block in tests/migration-fixtures/manifest.json.
#
# RETENTION HAZARD: artifacts expire, and 90 days is the ceiling for a public
# repository. Before the manifest's `expires_at`, re-dispatch with the same
# bytes and record the new `workflow_run_id`/`expires_at`. Once the artifact
# has expired, the migration matrix fails (download-fixtures.sh --strict)
# until that is done.
# For manual renewal, re-dispatch with the same bytes and record the returned
# pointers. Expired archives require a saved copy; the matrix fails without it.
#
# REVOCATION: `gh run delete <run-id>` removes the artifact together with the
# run's inputs payload.
Expand Down
210 changes: 210 additions & 0 deletions .github/workflows/migration-fixture-renewal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
name: Migration Fixture Renewal

on:
schedule:
- cron: "23 5 * * 1"
workflow_dispatch:
inputs:
base_branch:
description: Branch whose manifest should be renewed
default: v1.0-dev
type: string
dry_run:
description: Verify downloads without uploading archives or opening a PR
default: true
type: boolean
force:
description: Include archives more than 30 days from expiry
default: false
type: boolean
pull_request:
paths:
- .github/workflows/migration-fixture-renewal.yml
- scripts/migration-fixtures/**

concurrency:
group: fixture-renewal-${{ inputs.base_branch || github.event.pull_request.number || 'v1.0-dev' }}
cancel-in-progress: false

permissions: {}

jobs:
tests:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Test renewal contracts
run: python3 -m unittest discover -s scripts/migration-fixtures -p test_renewal.py -v
- name: Test fixture scripts
env:
TMPDIR: ${{ runner.temp }}
run: bash scripts/migration-fixtures/test-scripts.sh

plan:
needs: tests
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
outputs:
matrix: ${{ steps.plan.outputs.matrix }}
count: ${{ steps.plan.outputs.count }}
base: ${{ steps.plan.outputs.base }}
steps:
- uses: actions/checkout@v4
with:
path: automation
persist-credentials: false
- uses: actions/checkout@v4
with:
ref: ${{ inputs.base_branch || 'v1.0-dev' }}
path: source
persist-credentials: false
- name: Select archives due within 30 days
id: plan
env:
GH_TOKEN: ${{ github.token }}
BASE_BRANCH: ${{ inputs.base_branch || 'v1.0-dev' }}
FORCE: ${{ inputs.force }}
DRY_RUN: ${{ inputs.dry_run }}
run: |
set -euo pipefail
git check-ref-format --branch "$BASE_BRANCH"
args=()
if [ "$FORCE" = true ]; then args+=(--force); fi
matrix=$(python3 automation/scripts/migration-fixtures/renewal.py plan \
--manifest source/tests/migration-fixtures/manifest.json "${args[@]}")
pending=$(gh pr list --repo "$GITHUB_REPOSITORY" --base "$BASE_BRANCH" \
--state open --limit 100 --json headRefName,url \
--jq '.[] | select(.headRefName | startswith("ci/migration-fixture-renewal-")) | .url')
if [ -n "$pending" ] && [ "$DRY_RUN" != true ]; then
echo "Review the existing renewal PR before publishing another: $pending" >> "$GITHUB_STEP_SUMMARY"
matrix='{"include":[]}'
fi
count=$(jq '.include | length' <<< "$matrix")
{
echo "matrix=$matrix"
echo "count=$count"
echo "base=$BASE_BRANCH"
} >> "$GITHUB_OUTPUT"
echo "Selected $count archive(s) for renewal on $BASE_BRANCH." >> "$GITHUB_STEP_SUMMARY"

renew:
needs: plan
if: needs.plan.outputs.count != '0'
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.plan.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Download and verify original archive
env:
GH_TOKEN: ${{ github.token }}
FIXTURE: ${{ toJSON(matrix.fixture) }}
run: |
set -euo pipefail
jq '{schema_version: 1, fixtures: [.]}' <<< "$FIXTURE" > "$RUNNER_TEMP/selected.json"
bash scripts/migration-fixtures/download-fixtures.sh \
--manifest "$RUNNER_TEMP/selected.json" --dest "$RUNNER_TEMP/archives" --strict
python3 scripts/migration-fixtures/renewal.py verify \
--manifest "$RUNNER_TEMP/selected.json" --archives "$RUNNER_TEMP/archives"
- name: Upload identical archive
if: github.event_name != 'workflow_dispatch' || !inputs.dry_run
id: upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.fixture.artifact.artifact_name }}
path: ${{ runner.temp }}/archives/${{ matrix.fixture.artifact.archive_filename }}
if-no-files-found: error
retention-days: 90
compression-level: 0
overwrite: true
- name: Record actual upload expiry
if: github.event_name != 'workflow_dispatch' || !inputs.dry_run
env:
GH_TOKEN: ${{ github.token }}
ARTIFACT_ID: ${{ steps.upload.outputs.artifact-id }}
FIXTURE: ${{ toJSON(matrix.fixture) }}
run: |
set -euo pipefail
gh api "repos/$GITHUB_REPOSITORY/actions/artifacts/$ARTIFACT_ID" > "$RUNNER_TEMP/upload.json"
mkdir -p "$RUNNER_TEMP/receipts"
jq --slurpfile uploaded "$RUNNER_TEMP/upload.json" \
'{fixture_id: .id, source_artifact: .artifact, uploaded: $uploaded[0]}' \
<<< "$FIXTURE" > "$RUNNER_TEMP/receipts/receipt.json"
python3 scripts/migration-fixtures/renewal.py apply \
--manifest "$RUNNER_TEMP/selected.json" --receipts "$RUNNER_TEMP/receipts"
mv "$RUNNER_TEMP/receipts/receipt.json" "$RUNNER_TEMP/receipts/$(jq -r .id <<< "$FIXTURE").json"
- name: Share verified renewal receipt
if: github.event_name != 'workflow_dispatch' || !inputs.dry_run
uses: actions/upload-artifact@v4
with:
name: fixture-renewal-record-${{ matrix.fixture.id }}
path: ${{ runner.temp }}/receipts/*.json
retention-days: 7
if-no-files-found: error
overwrite: true

propose:
needs: [plan, renew]
if: github.event_name != 'workflow_dispatch' || !inputs.dry_run
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
actions: read
steps:
- uses: actions/checkout@v4
with:
path: automation
persist-credentials: false
- uses: actions/checkout@v4
with:
ref: ${{ needs.plan.outputs.base }}
path: source
- uses: actions/download-artifact@v4
with:
pattern: fixture-renewal-record-*
path: ${{ runner.temp }}/receipts
merge-multiple: true
- name: Prepare manifest-only pull request
working-directory: source
env:
GH_TOKEN: ${{ github.token }}
BASE_BRANCH: ${{ needs.plan.outputs.base }}
EXPECTED_COUNT: ${{ needs.plan.outputs.count }}
run: |
set -euo pipefail
test "$(find "$RUNNER_TEMP/receipts" -name '*.json' | wc -l)" -eq "$EXPECTED_COUNT"
python3 ../automation/scripts/migration-fixtures/renewal.py apply \
--manifest tests/migration-fixtures/manifest.json --receipts "$RUNNER_TEMP/receipts"
branch="ci/migration-fixture-renewal-$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT"
git switch -c "$branch"
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add tests/migration-fixtures/manifest.json
git commit -m 'ci: renew migration fixture artifact retention'
git push origin "HEAD:refs/heads/$branch"
cat > "$RUNNER_TEMP/pr-body.md" <<'EOF'
Historical migration archives are approaching expiry. This refresh preserves their exact bytes and extends their availability for migration tests.

Only artifact run pointers and retention metadata change. Archive sizes and SHA-256 digests were verified before upload; actual expiry was read back from GitHub. No wallet capture or migration was performed.

Review and merge this PR before the old artifacts expire. Run the migration matrix against this branch before merging. If GitHub requests approval for Actions on this bot-created PR, approve those checks.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>
EOF
gh pr create --repo "$GITHUB_REPOSITORY" --base "$BASE_BRANCH" --head "$branch" \
--draft --title 'ci: renew migration fixture artifacts' --body-file "$RUNNER_TEMP/pr-body.md" \
| tee -a "$GITHUB_STEP_SUMMARY"
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

### Added

- A scheduled workflow renews expiring migration fixture archives without
changing their contents and proposes updated manifest pointers in a PR.

- Migration tests also replay public user/DPNS and Evonode identities serialized
by v0.9.3, checking their metadata and every public key after repeated startup.

Expand Down
Loading
Loading