Skip to content

Sync upstream dev into re-dev (2026-11-18) - #76

Merged
gedaiu merged 4 commits into
re-devfrom
sync/upstream-dev-2026-11-18
Nov 18, 2026
Merged

gedaiu merged 4 commits into
re-devfrom
sync/upstream-dev-2026-11-18

Conversation

@gedaiu

@gedaiu gedaiu commented Nov 18, 2026

Copy link
Copy Markdown

Brings re-dev up to upstream dev at 3d307f62: three commits, deeplethe#1512 (fact successors are looked up within their knowledge base), deeplethe#1239 (ADR 0067, each task chooses its model) and deeplethe#1397 (only changed items are charged against the custom sync budget, ADR 0072). The dev and main mirrors were fast-forwarded to upstream first.

Conflicts. None; the merge was clean.

Schema version. Unchanged at 125: upstream added no migration.

🤖 Generated with Claude Code

Maya-Kid and others added 4 commits November 18, 2026 17:01
Signed-off-by: Maya Kid <BinjunYann@gmail.com>
* ADR 0067: each task chooses its model

Signed-off-by: dada-yan <BinjunYann@gmail.com>

* ADR 0067 is accepted, with the answers to its three open questions folded into the decisions

Profiles stay per workspace, implication::read_phrases goes under alignment,
a base's unset tasks follow the task defaults; decision 4 names the connection
test as its one exception and decision 5 says where chat_reasoning_effort and
embed_dim go (0035), as asked in the 2026-10-19 review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Signed-off-by: dada-yan <BinjunYann@gmail.com>
Co-authored-by: Wayland Yang <wayland@WaylanddeMacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: WaylandYang <145302500+WaylandYang@users.noreply.github.com>
, ADR 0072) (deeplethe#1397)

* Charge only changed items against the custom sync budget (deeplethe#1212, ADR 0072)

Signed-off-by: Royce Lam <roycelam@umich.edu>

* Satisfy clippy on the custom sync budget change

Signed-off-by: Royce Lam <roycelam@umich.edu>

* Custom's bound is the source's own checkpoint, so it can be cleared once, and a capped round is failed without an alert (deeplethe#1212, ADR 0072)

The custom bound used to be derived from the audit history — the last `ok` run's
`started_at`. That says when the previous round began, not how far it read: a
capped round recorded `ok` too, so the lower bound could step over items that
were never read, and the bound could not be cleared without rewriting the rows
the same paragraph says to preserve.

The bound becomes a value on the source, `sources.sync_checkpoint` — the column
migration 0119 already added. NULL means "no bound", which is where every
existing source starts, so the upgrade *is* the reset (ADR 0072's Recovery
section): the first round re-reads the whole window, and unchanged content
dedups into no new version and no new job. Custom's checkpoint advances to the
start of the round that read the whole response rather than to now, so changes
that arrive during a round stay in the next round's window.

A capped round is recorded as failed, but it does not raise a source.sync_failed
alert: it did not break, it stopped, and the next round resumes from the same
place. `finish_sync` couples the status write to the alert, so the store grows
`finish_sync_quiet` for this case. The run error says "changed 200 items"
rather than "read", because the budget is charged against changed items.

`sync_source` now returns its stats, so a test can assert that the whole
response was read instead of only the slice the budget allowed. The 450-item
case covers the three rounds it takes to read one window whole, and it reads the
alerts table to show that the capped rounds raised no sync-failed alert.

Signed-off-by: Royce Lam <roycelam@umich.edu>

* A custom item changed while a round is running is still read by the next one, so 0072's status line can be closed (deeplethe#1212, ADR 0072)

Signed-off-by: Royce Lam <roycelam@umich.edu>

---------

Signed-off-by: Royce Lam <roycelam@umich.edu>
Co-authored-by: Wayland Yang <wayland@WaylanddeMacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: WaylandYang <145302500+WaylandYang@users.noreply.github.com>
@gedaiu
gedaiu merged commit 0956486 into re-dev Nov 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants