Repository navigation
Dedupe clones 2 - #332
Dedupe clones 2#332
Conversation
The snapshot write path now delegates to a write_turn_file helper instead of inlining the tempfile, fsync, and directory sync logic. This keeps the store method focused on migration and logging while the write mechanics live in one place. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
The store now fsyncs the parent directory after renaming the temp file into place, so a crash or power loss between persist and the next flush cannot drop the snapshot and defeat cold-boot recovery. The sync stays best-effort on platforms that do not support opening a directory for syncing. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
Both tracing and logging middleware repeated the same lock-and-increment boilerplate at every hook, so a private bump helper now applies the update under the mutex. Behaviour is unchanged. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
Removed an extra closing brace that had been left after the LoggingMiddleware impl block, which would have broken compilation. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
The cancellation and drain boundaries duplicated the same settle, checkpoint, status, and event sequence, so both now delegate to a single helper that selects the marker, terminal status, event, and drained flag from a stop kind. Behaviour is unchanged. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
The duplicated inline conversions of edges, branches, and waiting sets in CompiledGraph and GraphBuilder are replaced by shared edge_pairs, conditional_routes, and waiting_sets helpers. This removes the copy-pasted mapping logic without changing the resulting topology. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
Move the edge, branch, and barrier map flattening into standalone helper functions so the topology extraction can reuse them without duplicating the conversion logic. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
Extend the import list in the export module to bring in HashMap, HashSet, Branch, and NodeId, preparing the module for upcoming topology work that needs these types. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
Update the vendored tinyinference submodule to a newer revision. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
Record sha2 in Cargo.lock now that a crate in the workspace depends on it. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
|
Warning Review limit reached
This review includes 5 billable files and costs up to $1.25. Or wait 38 minutes for your next included review. View limit detailsLimit details: You’ve used all 2 included reviews currently available. Review configuration: ⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Tiny Sweeper reviewTiny Sweeper reviewed this change across 6 lane(s) and found 1 active actionable finding(s). Detailed lane evidence and any incomplete work are listed below. State: Ready for maintainer review Review snapshot
Completeness: Complete What changedThe review could not produce a supported behavioral summary; inspect the cited changed surface and lane details below. FeaturesNone identified with supported citations. TestsNo supported feature-to-test mapping was produced. Test execution is not inferred. Findings
Before mergeNone. How this fits togetherflowchart LR
n0["Result"]:::impacted
n1["new"]:::impacted
n2["read_thread_turns"]:::impacted
n3["list"]:::impacted
n2 -->|uses| n0
n2 -->|calls| n1
n3 -->|uses| n0
n3 -->|calls| n1
n3 -->|calls| n2
classDef changed fill:#0d4429,stroke:#238636,color:#e6edf3
classDef impacted fill:#161b22,stroke:#6e7681,color:#c9d1d9
classDef flagged fill:#5a1e02,stroke:#d93f0b,color:#ffffff
classDef blocking fill:#67060c,stroke:#f85149,color:#ffffff
Agent review detailscritique
security
tests
commits
description
e2e
Evidence and run details
|
There was a problem hiding this comment.
tinysweeper found nothing blocking. Approving.
$0.0107 · 211,327 in / 7,633 out · 24,767 cached (12%) · gpt-5.6-luna, glm-5.3-flash
critique: $0.0044 · 90,291 in / 2,988 out · 14,222 cached (16%) · gpt-5.6-luna
security: $0.0060 · 94,747 in / 2,772 out · 7,153 cached (8%) · gpt-5.6-luna
tests: $0.0001 · 9,189 in / 229 out · 1,792 cached (20%) · glm-5.3-flash
description: $0.0001 · 8,678 in / 556 out · 1,472 cached (17%) · glm-5.3-flash
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9a3f20ec60
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -1 +1 @@ | |||
| Subproject commit fdffc2a454af2b04e5052eb38dd3add8a6db1b85 | |||
| Subproject commit a32eec8138d7be0978dd232ec9f93af33945dbe6 | |||
There was a problem hiding this comment.
Preserve the newly merged tinyinference revision
This pointer moves vendor/tinyinference from fdffc2a back to a32eec81, exactly reversing the dependency upgrade in the immediate parent: PR #326's 2a3ffe0d explicitly advances a32eec81 to fdffc2a as the latest revision and removes the obsolete sha2 dependency, while this patch restores both the old pointer and that lockfile entry. Consequently every workspace crate using the vendored inference packages silently loses the just-merged tinyinference #65 changes; keep fdffc2a unless this commit is intentionally reverting that PR. This dependency rollback is also unrelated to the clone-deduplication refactor.
AGENTS.md reference: AGENTS.md:L100-L102
Useful? React with 👍 / 👎.
Summary
API Or Behavior Changes
Tests
cargo fmt --checkcargo clippy --all-targets -- -D warningscargo clippy --all-targets --all-features -- -D warningscargo build --all-targetscargo build --all-targets --all-featurescargo testcargo test --all-featuresDocumentation