Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
8b5b703
Carry scheduling controls with qualified administration and cancellat…
benhook1013 Nov 12, 2026
ad7b08d
Carry qualified CI hint admission fixes through PR #84
benhook1013 Nov 12, 2026
cd50ed5
Carry bounded CI hint repairs with updated stack ancestry
benhook1013 Nov 12, 2026
d740b01
Carry CI supersession and evidence fixes with updated stack ancestry
benhook1013 Nov 12, 2026
15d7500
chore: carry CI attention capability and scheduler lifetime fixes
benhook1013 Nov 12, 2026
bf47fbe
Carry migration fixture index consistency repair into PR #84
benhook1013 Nov 12, 2026
fcc40a6
Carry qualified CI watch repair through #84
benhook1013 Nov 12, 2026
6617e43
Carry qualified CI watch client rearm repair through #84
benhook1013 Nov 12, 2026
837568a
Carry qualified CI watch Hosted repairs through #84
benhook1013 Nov 12, 2026
f00f355
Carry verified #78 and #88 review fixes through #84
benhook1013 Nov 12, 2026
23b90a8
Carry verified review corrections from carry-83
benhook1013 Nov 12, 2026
90ab112
Carry the verified review fixes through carry-83
benhook1013 Nov 12, 2026
06d6f4c
Carry advanced CI attention fix through review stack
benhook1013 Nov 12, 2026
ea6d1b2
Carry validated CI watch review fixes through stack
benhook1013 Nov 12, 2026
390fae9
Carry validated CI watch admission, recovery and evidence fixes
benhook1013 Nov 12, 2026
c13a3a5
Carry deterministic registration-fence test through review stack
benhook1013 Nov 12, 2026
38e9d7d
Carry complete CI refresh budgets and validated watch proof fixes
benhook1013 Nov 12, 2026
350a456
Carry bounded CI watch authentication and validated review fixes
benhook1013 Nov 12, 2026
df02ebc
Carry CI watch cancellation and historical selector regression assert…
benhook1013 Nov 12, 2026
585be3c
Carry strict CI watch response validation and test corrections
benhook1013 Nov 12, 2026
e627cae
Carry claim-safe lifecycle hints and pinned CI watch recovery
benhook1013 Nov 12, 2026
4060889
Merge commit '067694c886909571326697e9c1a16e779205bb39' into HEAD
benhook1013 Nov 12, 2026
a11774e
Merge commit '5c9159b72a4826da3630d49d1346530a3293c02a' into HEAD
benhook1013 Nov 12, 2026
e04e00c
Validate retained scheduling continuity and clarify held review guidance
benhook1013 Nov 12, 2026
0f0fe83
Isolate invalid scheduling candidates and preserve durable intent fences
benhook1013 Nov 13, 2026
efd948a
Integrate settled history fixes while preserving scheduling holds and…
benhook1013 Nov 13, 2026
168f65f
Carry recovery isolation while preserving negotiated scheduling status
benhook1013 Nov 13, 2026
901b230
Carry qualified review split and CI watch fixes into scheduling
benhook1013 Nov 13, 2026
54a44bf
Carry qualified lifecycle recovery and CI validation fixes through stack
benhook1013 Nov 13, 2026
e777ef6
Carry validated quota retention and scheduler isolation fixes
benhook1013 Nov 13, 2026
f15adb5
Carry validated driverless recovery and shared Draft probe fixes
benhook1013 Nov 13, 2026
3a4f2f8
Carry verified CI watch PR-number documentation through stack
benhook1013 Nov 13, 2026
0dcb758
Carry validated optional allowance projection repair
benhook1013 Nov 13, 2026
975b531
Carry cooldown fixes and preserve upper scheduling history helper
benhook1013 Nov 13, 2026
219a08d
Carry verified retained identity and retry fences through current stack
benhook1013 Nov 13, 2026
38bf360
Carry durable negative allowance recovery and isolated evidence handling
benhook1013 Nov 13, 2026
8ffa1ed
Carry qualified quota recovery fixes into slice 84
benhook1013 Nov 13, 2026
9e5b843
Merge qualified parent carry into PR #84
benhook1013 Nov 13, 2026
633ffaa
Fix scheduling review findings and carry qualified parent
benhook1013 Nov 14, 2026
ec008d9
Carry qualified parent schema and recovery fixes into scheduling
benhook1013 Nov 14, 2026
ca3635e
Carry qualified parent recovery and scheduler fixes
benhook1013 Nov 14, 2026
5028a24
Preserve typed operation isolation through scheduling carry
benhook1013 Nov 14, 2026
f3323f1
Carry verified disconnected-workspace classification through scheduling
benhook1013 Nov 14, 2026
fcc3a02
Carry qualified runtime fixes and balance CI review execution test pa…
benhook1013 Nov 14, 2026
e2ce0bf
Merge commit 'e81c9e5027dcd614e123c811d16707542f5f9588' into HEAD
benhook1013 Nov 14, 2026
123ac8e
Merge branch 'dot/fc83-carry-1500' into dot/fc84-carry-1500
benhook1013 Nov 14, 2026
994e822
Keep malformed retained operation flags local during recovery
benhook1013 Nov 14, 2026
30382d8
Preserve progress and restore validation for corrupt scheduling holds
benhook1013 Nov 14, 2026
08d2675
Prove healthy work progresses in the same corruption-hold pass
benhook1013 Nov 14, 2026
0c3b04f
Preserve retained scheduling authority and isolate malformed selections
benhook1013 Nov 15, 2026
30517bc
Carry current administration parent into automatic scheduling headroom
benhook1013 Nov 17, 2026
976eae3
Keep automatic scheduling backend separate from bound clients
codex Nov 18, 2026
1ac5a9d
Carry qualified administration fixes into scheduling backend checkpoint
codex Nov 18, 2026
518eb25
Merge remote-tracking branch 'origin/dot/controller-administration-he…
benhook1013 Nov 18, 2026
f245142
Preserve cooldown history across unused scheduling holds
benhook1013 Nov 18, 2026
5084daa
fix: preserve admission preparation on damaged retained configuration
benhook1013 Nov 18, 2026
79e6bb2
Merge commit 'ca6c9bc897851d07b04bb33dcef6e525005ff3f0' into dot/pr84…
benhook1013 Nov 18, 2026
1a09332
Merge updated administration parent after dependency merge
benhook1013 Nov 18, 2026
9787a70
Test hosted queue cancellation after resuming the predecessor
benhook1013 Nov 19, 2026
7ae8f91
Prove the automatic CLI comparison rejects a stale head
benhook1013 Nov 19, 2026
010615f
Pin the account used for automatic CLI selection
benhook1013 Nov 19, 2026
4e50e61
Reconcile scheduling stack with dedicated final CI lane
benhook1013 Nov 19, 2026
50a28a4
Reject stale scheduling projections in backup snapshots
benhook1013 Nov 19, 2026
c2928f7
Refuse a backup missing a retained paused pull control
benhook1013 Nov 19, 2026
fedecd6
Roll back automatic review enqueue on transient overload
benhook1013 Nov 19, 2026
2193fa5
Validate automatic recovery and detached draft evidence
benhook1013 Nov 19, 2026
197e5c9
Reselect Hosted work after its queue boundary expands
benhook1013 Nov 19, 2026
bccff13
Sync FireController review parent and cover scheduling proof reads
benhook1013 Nov 19, 2026
9684aa6
Carry corrected supervisor cursor parent into review stack
benhook1013 Nov 19, 2026
f7c73a4
Carry acknowledgement fix and strengthen scheduling proof
benhook1013 Nov 19, 2026
035d97f
Carry the validated administration parent forward
benhook1013 Nov 20, 2026
d57fc8f
Carry the qualified retirement-note parent into scheduling
benhook1013 Nov 20, 2026
f1886ea
Merge commit '730ba6eafcd9aa8b91ddf8a20b7053e9437bbd28' into HEAD
benhook1013 Nov 20, 2026
fcde591
Strengthen scheduling recovery proof and canonical declaration
benhook1013 Nov 20, 2026
939c334
Carry consistent startup test snapshot into scheduling
benhook1013 Nov 20, 2026
f09467c
Carry merged main into the scheduling headroom stack
benhook1013 Nov 21, 2026
eeb2ef1
Reject cycles in retained front-frame parent observations
benhook1013 Nov 21, 2026
a806756
Carry current main and isolate claimed scheduling read contention
benhook1013 Nov 21, 2026
400a3d9
Test legacy retained cycle isolation without weakening writer validation
benhook1013 Nov 21, 2026
c10970b
Merge main into the review scheduling stack
benhook1013 Nov 21, 2026
8654742
Address retained scheduling, fairness and restore review findings
benhook1013 Nov 21, 2026
765dbee
Preserve adoption recovery and ordered review selection
benhook1013 Nov 21, 2026
a15e409
Preserve current scheduling basis and reservation reporting
benhook1013 Nov 21, 2026
771b4c3
Keep queued diagnostics when reservations become incompatible
benhook1013 Nov 21, 2026
0039ce5
Validate native revision type for orphan resume snapshots
benhook1013 Nov 21, 2026
9127fe0
Preserve historical pull resume revisions on offline restore
benhook1013 Nov 22, 2026
c088aa0
Require exact scheduling events and prove independent queue claims
benhook1013 Nov 22, 2026
ede8d9d
Fence quarantined review selection custody and preserve provenance
benhook1013 Nov 22, 2026
1ef96a4
Preserve legacy backup inventory without linked custody
benhook1013 Nov 22, 2026
91bf70a
Base automatic review scheduling on the retained front snapshot prere…
benhook1013 Nov 22, 2026
963e6ed
Merge commit '45e36f1e9bc07f06fe602b3b4e3e7b985ab987b5' into HEAD
benhook1013 Nov 22, 2026
79e2e62
Preserve scheduling intent and queue claim continuity
benhook1013 Nov 22, 2026
9ced68f
Merge commit '963e6edc9a7e1b1261c21eb2eb2a76cb48bc725f' into HEAD
benhook1013 Nov 22, 2026
5757751
Integrate merged review front snapshots from main
benhook1013 Nov 22, 2026
8a619e4
Preserve scheduler origin and isolate candidate prefixes
benhook1013 Nov 22, 2026
f7d0ed7
Layer automatic Hosted and CLI review scheduling on retained review c…
benhook1013 Nov 23, 2026
91409b2
Resolve scheduling findings and carry #115
benhook1013 Nov 24, 2026
eb16481
Test durable acceptance order without a legacy timestamp
benhook1013 Nov 24, 2026
391d5bd
Carry the latest guarded FireController parent without changing owned…
benhook1013 Nov 25, 2026
83d1030
Use the full-plan helper signature in the scheduler fixture
benhook1013 Nov 25, 2026
48fc6fb
Carry the durable automatic acceptance guard without changing owned s…
benhook1013 Nov 25, 2026
07eac1d
Carry verified wait custody and degraded scheduling guards
benhook1013 Nov 25, 2026
61de854
Carry the historical wait test fixture correction
benhook1013 Nov 25, 2026
72b6fe2
Carry verified review evidence invariants through automatic scheduling
benhook1013 Nov 25, 2026
644a211
Carry bounded selection response diagnostics without scheduling changes
benhook1013 Nov 25, 2026
17c7546
Carry typed selection finish rollback without lane changes
benhook1013 Nov 25, 2026
9f736a3
Carry typed unused-preparation handling without changing downstream b…
benhook1013 Nov 25, 2026
10a6e5c
Scope scheduling preference and document recovery boundaries
benhook1013 Nov 25, 2026
03dff72
Address Hosted scheduling and custody review findings
benhook1013 Nov 25, 2026
e9c7590
Address retained scheduling review findings
benhook1013 Nov 25, 2026
84eebef
Keep unchanged no-child review settlement on accepted basis
benhook1013 Nov 25, 2026
2ab9fc5
Carry selected-lane settlement guard and isolate scheduling review state
benhook1013 Nov 27, 2026
94094fd
Align automatic scheduling branch with review recovery
benhook1013 Nov 28, 2026
ae387ec
Keep final scheduling refusals local and atomic
benhook1013 Nov 28, 2026
1faefaf
Carry updated FireController parent into #84
benhook1013 Nov 29, 2026
0518457
Carry parent review fixes into #84
benhook1013 Nov 29, 2026
f6e6901
Carry the updated FireController parent into PR #84
benhook1013 Nov 29, 2026
5ae4979
Carry review evidence fixes and align scheduling regression tests
benhook1013 Nov 29, 2026
b70c6e1
Carry review recovery fixes and align source-hold regression test
benhook1013 Nov 29, 2026
323b814
Exercise oversized scheduling settlement with a genuine selection
benhook1013 Nov 29, 2026
d033043
Record durable scheduling authority and preserve eligible Hosted retries
benhook1013 Nov 29, 2026
33279a0
Carry scheduling fixes and retain Hosted allowance attribution
benhook1013 Nov 29, 2026
5200bb7
Carry retained review qualification and scheduling checks
benhook1013 Nov 29, 2026
8462ae8
Carry expanded qualification without changing scheduling behavior
benhook1013 Nov 29, 2026
59d3d2b
Carry #115 batched review fixes into #84
benhook1013 Nov 29, 2026
c11eda5
Require completed source history for Hosted continuity
benhook1013 Nov 29, 2026
ebbe21c
Carry #115 review fixes into #84
benhook1013 Nov 29, 2026
ad44de2
Carry #115 final review fixes into #84
benhook1013 Nov 29, 2026
e3cacba
Carry #115 review fixes into #84
benhook1013 Nov 29, 2026
02cb203
Preserve combined tree after #115 test split on #84
benhook1013 Nov 29, 2026
a54251b
Carry current main through #84
benhook1013 Nov 29, 2026
1240468
Retain exact historical Hosted cooldown without admitting work
benhook1013 Nov 29, 2026
d4d3528
Carry #123 qualification correction through #84
benhook1013 Nov 29, 2026
7b6a7c3
Carry shutdown test correction through the review stack
benhook1013 Nov 29, 2026
de3efe0
Carry retained review fixes through FireController stack
benhook1013 Nov 29, 2026
83b5e46
Carry confirmed CLI predecessor hold fix
benhook1013 Nov 29, 2026
723522c
Verify retained negative cooldown while the pull is paused
benhook1013 Nov 29, 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
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The [Hosted source foundation](delivery.md#hosted-source-foundation) records the
- [Hosted capacity settlement](hosted-settlement.md): guarded administrator recovery after verified external termination, preserving evidence and preventing automatic reposts.
- [Per-PR review rounds](review-round-controls.md): explicit native grants, close, taper, cumulative accounting and bound-client contracts.
- [Retained review operations](review-operations.md): provider-free discovery, compact status and original Hosted observer diagnostics.
- [Review scheduling](review-scheduling.md): per-PR pauses, accepted review work and retained-state recovery.
- [Automatic review scheduling](review-scheduling.md): explicit default-off channel automation, scoped authorizers and durable PR pauses.
- [Native review execution](review-execution.md): durable operations, provider adapters, isolated workspaces and the remaining dispatch/cutover boundary.
- [Source refresh and observed policy](review-source.md): explicit background source reads, retained observations and provider-free policy assessment.
- [Job checkpoints](job-checkpoints.md): immutable progress records, guarded appends, explicit latest/archive reads and integration status.
Expand Down
82 changes: 70 additions & 12 deletions docs/review-scheduling.md

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions internal/backup/review_selection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,59 @@ func TestSelectionQuarantineInventoryRefusesV1NameCollision(t *testing.T) {
assertCurrentSummaryInventoryRefused(t, bundle, false)
}

func TestSelectionQuarantineInventoryRetainsAutomaticChildWithoutAuthority(t *testing.T) {
f, _, _ := schedulingBackupFixture(t)
ctx := t.Context()
const children = `SELECT * FROM review_operations ORDER BY id`
const authors = `SELECT * FROM review_automatic_selections ORDER BY selection_id`
const journal = `SELECT * FROM events ORDER BY sequence`
beforeChildren, beforeAuthors, beforeJournal := restoreRows(t, f.store.DB(), children), restoreRows(t, f.store.DB(), authors), restoreRows(t, f.store.DB(), journal)
var selection, operation string
var revision int64
if err := f.store.DB().QueryRow(`SELECT s.id,s.operation_id,s.revision FROM review_selections s JOIN review_automatic_selections a ON a.selection_id=s.id WHERE a.pull_number<>0`).Scan(&selection, &operation, &revision); err != nil {
t.Fatal(err)
}
// Construct only the canonical post-hold metadata for a normal synthetic
// selection. No inconsistent queued binding or provider dispatch is staged.
if err := f.store.BackgroundWrite(ctx, func(ctx context.Context, tx *sql.Tx) error {
if _, err := tx.ExecContext(ctx, `INSERT INTO review_selection_quarantine
(selection_id,project_id,original_operation_id,original_state,observed_revision) VALUES(?,?,?,'selecting',?)`, selection, f.project, operation, revision); err != nil {
return err
}
_, err := tx.ExecContext(ctx, `UPDATE review_selections SET state='held',reason='linked_selection_quarantined',
revision=revision+1,operation_id=NULL WHERE id=?`, selection)
return err
}); err != nil {
t.Fatal(err)
}
bundle := restoreBundle(t, f)
destination := filepath.Join(t.TempDir(), "inactive-custody")
if _, err := Restore(ctx, bundle.Path, destination); err != nil {
t.Fatal(err)
}
db, err := openSnapshot(ctx, filepath.Join(destination, "firecontroller.sqlite"))
if err != nil {
t.Fatal(err)
}
defer db.Close()
if !reflect.DeepEqual(beforeChildren, restoreRows(t, db, children)) ||
!reflect.DeepEqual(beforeAuthors, restoreRows(t, db, authors)) ||
!reflect.DeepEqual(beforeJournal, restoreRows(t, db, journal)) {
t.Fatal("restoring forensic custody changed the child, origin, or event history")
}
var got string
if err := db.QueryRow(`SELECT original_operation_id FROM review_selection_quarantine WHERE selection_id=?`, selection).Scan(&got); err != nil || got != operation {
t.Fatal("original automatic operation identity was not retained", got, err)
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
var state, reason string
var heldRevision int64
var link sql.NullString
if err := db.QueryRow(`SELECT state,reason,revision,operation_id FROM review_selections WHERE id=? AND project_id=?`, selection, f.project).
Scan(&state, &reason, &heldRevision, &link); err != nil || state != "held" || reason != "linked_selection_quarantined" || heldRevision != revision+1 || link.Valid {
t.Fatal("restore changed the held, unlinked selection", state, reason, heldRevision, link.Valid, err)
}
}

func TestSelectionQuarantineInventoryRejectsDanglingEmptyV2Marker(t *testing.T) {
f, _ := selectionInventoryFixture(t, "queued")
bundle := restoreBundle(t, f)
Expand Down
Loading
Loading