Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8383611
Add native steps for discarding one unpublished construction stage
leonardoaraujosantos Nov 16, 2026
c0f27df
Expose owner-only construction discard in the runtime and HTTP API
leonardoaraujosantos Nov 16, 2026
ab3904c
Add recovery-discard CLI, doctor check and TUI command hints
leonardoaraujosantos Nov 16, 2026
f782ca4
Test construction discard through real process death
leonardoaraujosantos Nov 16, 2026
099aeac
Document construction evidence discard and record implementation notes
leonardoaraujosantos Nov 16, 2026
aaa8597
Refuse a discard confirmation that names an activity instead of the r…
leonardoaraujosantos Nov 16, 2026
ff203c5
Pin that a binary-document owner never gains snapshot recovery authority
leonardoaraujosantos Nov 16, 2026
3ec8174
Kill the service at restore and recovery boundaries the cut matrix le…
leonardoaraujosantos Nov 16, 2026
2c349f3
Document interrupted keep/rollback recovery and record the new cut ev…
leonardoaraujosantos Nov 16, 2026
0516045
Test the terminal path from an unavailable code preview into journal …
leonardoaraujosantos Nov 16, 2026
bee24bf
Kill keep/rollback and cancelled-preparation payload cleanup mid-dele…
leonardoaraujosantos Nov 16, 2026
20734f4
Fix discard CI: Unix-only helpers, doctor check list, compressed upgr…
leonardoaraujosantos Nov 16, 2026
7ddcdaa
Merge remote-tracking branch 'origin/feat/construction-evidence-disca…
leonardoaraujosantos Nov 16, 2026
58764dc
Run the recovery cut scenarios in a managed Git worktree and in CI
leonardoaraujosantos Nov 16, 2026
324d0f1
Test recovery routes directly and through the SDK against a real server
leonardoaraujosantos Nov 16, 2026
ca8a726
Refuse keep cleanup of a private slot inode the restore never owned
leonardoaraujosantos Nov 16, 2026
bf64362
Keep repeated acknowledgement from rewriting acknowledged intents
leonardoaraujosantos Nov 16, 2026
84461cf
Record the recovery-path review findings and remaining owner questions
leonardoaraujosantos Nov 16, 2026
c9fde71
Document idempotent acknowledgement and owned-only keep cleanup
leonardoaraujosantos Nov 16, 2026
4044d5c
Tick managed-recovery tasks M2-M8 for local evidence; platform result…
leonardoaraujosantos Nov 16, 2026
6393e08
Strip debug sections from the upgrade test's stand-in release binary
leonardoaraujosantos Nov 17, 2026
25554f5
Merge remote-tracking branch 'origin/feat/construction-evidence-disca…
leonardoaraujosantos Nov 17, 2026
3decd33
Merge remote-tracking branch 'origin/main' into feat/managed-recovery…
leonardoaraujosantos Nov 17, 2026
6528579
Merge remote-tracking branch 'origin/main' into feat/managed-recovery…
leonardoaraujosantos Nov 18, 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
21 changes: 21 additions & 0 deletions .github/workflows/non-git-snapshot-proof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@ jobs:
set -euo pipefail
mkdir -p "$TMPDIR"
cargo test --locked -p cyber-cli --features native-git-acceptance --test branches_cli preparation_ -- --nocapture --test-threads=1 2>&1 | tee preparation-client-proof.log
- name: Owner-only construction evidence discard and its process-death cuts
if: ${{ !cancelled() && (runner.os != 'Linux' || steps.sandbox.outcome == 'success') }}
env:
TMPDIR: /tmp/c${{ github.run_number }}
shell: bash
run: |
set -euo pipefail
mkdir -p "$TMPDIR"
cargo test --locked -p cyber-cli --features native-git-acceptance --test branches_cli construction_discard:: -- --nocapture --test-threads=1 2>&1 | tee construction-discard-proof.log
- name: Prepared cancellation metadata retirement
if: ${{ !cancelled() && (runner.os != 'Linux' || steps.sandbox.outcome == 'success') }}
env:
Expand Down Expand Up @@ -210,6 +219,16 @@ jobs:
set -euo pipefail
mkdir -p "$TMPDIR"
cargo test --locked -p cyber-cli --features native-git-acceptance --test branches_cli zero_payload:: -- --nocapture --test-threads=1 2>&1 | tee zero-payload-retirement-proof.log
- name: Restore and recovery process-death cuts
if: ${{ !cancelled() && (runner.os != 'Linux' || steps.sandbox.outcome == 'success') }}
env:
TMPDIR: /tmp/c${{ github.run_number }}
shell: bash
run: |
set -euo pipefail
mkdir -p "$TMPDIR"
cargo test --locked -p cyber-cli --features native-git-acceptance --test branches_cli restore_cuts:: -- --nocapture --test-threads=2 2>&1 | tee recovery-cut-proof.log
cargo test --locked -p cyber-cli --features native-git-acceptance --test branches_cli ordinary_cuts:: -- --nocapture --test-threads=1 2>&1 | tee -a recovery-cut-proof.log
- name: JSONL driver and atomic last-message regressions
if: ${{ !cancelled() && (runner.os != 'Linux' || steps.sandbox.outcome == 'success') }}
env:
Expand Down Expand Up @@ -282,9 +301,11 @@ jobs:
fallback-collection-proof.log
git-cli-recovery-proof.log
preparation-client-proof.log
construction-discard-proof.log
preparation-retirement-proof.log
paired-retirement-proof.log
zero-payload-retirement-proof.log
recovery-cut-proof.log
jsonl-driver-proof.log
structured-result-proof.log
instruction-limits-proof.log
Expand Down
19 changes: 19 additions & 0 deletions crates/cyber-app/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,25 @@ impl ToolHost for AppHost {
self.builtin.snapshot_checkout_constructions(info)
}

fn snapshot_construction_stage(
&self,
info: &cyber_server::runtime::SessionInfo,
name: &str,
) -> Result<Option<cyber_server::runtime::NativeConstructionStage>, String> {
self.builtin.snapshot_construction_stage(info, name)
}

fn fence_snapshot_construction(
&self,
info: &cyber_server::runtime::SessionInfo,
stage: &cyber_server::runtime::NativeConstructionStage,
) -> Result<
Box<dyn cyber_server::runtime::ConstructionFence>,
cyber_server::runtime::ConstructionFenceError,
> {
self.builtin.fence_snapshot_construction(info, stage)
}

fn reacquire_snapshot_location(
&self,
info: &cyber_server::runtime::SessionInfo,
Expand Down
4 changes: 4 additions & 0 deletions crates/cyber-app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ impl App {
.map_err(|error| error.to_string())?;
}
host.attach(runtime.clone());
if opts.snapshots {
// Owner-confirmed construction discards whose unlink failed are retried forever.
cyber_server::runtime::construction_discard::spawn_retry(runtime.clone());
}
// One fair scheduler of the slots of every Workflow agent of this server
// (`workflows.max_concurrent`, reduced to the core count), fixed at startup like the
// listener settings.
Expand Down
Loading
Loading