Repository navigation
Conversation
Copilot
AI
changed the title
[WIP] Resume timed out session for agent
No-op: Build badges already present on main
Mar 26, 2026
This was referenced May 21, 2026
4 tasks
This was referenced Jun 7, 2026
This was referenced Jun 15, 2026
Closed
zackees
added a commit
that referenced
this pull request
Jun 26, 2026
…oduct (#925) (#928) Two changes addressing zccache#925 (soldr#977 open question #4): 1. Stability documentation on `HostIdentity`. Each of the three fields (`product`, `instance_id`, `workspace_id`) has a different stability contract; today the doc-comment is one line that doesn't explain any of them. A new table-form doc-block spells out: - What each field controls (per #919: `current_backend_identity` is keyed on the synthesized endpoint which embeds all three). - The recommended stability for embedded hosts. - What breaks if the contract is violated (e.g. instance_id churning per restart re-pays the SHA-256 plateau PR #919 fixed). 2. `HostIdentity::default_for_product(product)` helper. Returns a `HostIdentity` whose `instance_id` is stable across daemon restarts on the same machine + same install. The hash mixes: - The product string (so two products in the same process get different ids even when they share an exe — soldr + fbuild embedding simultaneously is a real scenario). - A version-tagged domain separator (`zccache-host-identity-v1`). - `std::env::current_exe()` (so the same install on the same machine yields the same id across restarts). `workspace_id` is set equal to `instance_id` — the no-op single- namespace form, matching the type-level doc's recommended default until the per-compile migration lands. Falls back to a product-only hash if `current_exe` is unavailable rather than panicking — better degradation in a host daemon. What's NOT in this PR: moving `workspace_id` to `CompileRequest`. That is a bigger API change (it needs `CompileRequest` to carry it) and is deferred to a follow-up. The docs explicitly call it out as a planned future change so callers can pre-emptively keep workspace_id = instance_id today and get a free upgrade later. Tests: - `default_for_product_is_stable_within_one_process` - `default_for_product_differs_per_product` - `default_for_product_instance_id_is_16_bytes_of_hex` (locks the hex format because `embedded_endpoint` prints it on the diagnostic surface) Closes #925. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced Jul 11, 2026
zackees
added a commit
that referenced
this pull request
Jul 11, 2026
…1044) (#1045) * fix(daemon-core): address COW materialization follow-up findings (#1042) Fixes 4 of the 5 confirmed correctness bugs and the confirmed test-coverage regression from the post-merge review of #1040 (issue #1042): - artifact_io.rs: write the digest sidecar for a blob's final name *before* the publishing rename, not after — a digest-write failure can no longer leave an orphaned, undigested blob visible in the cache (finding #1). - artifact_io.rs: persist_artifact_file tries a hardlink before falling back to a full copy, restoring the STORE-direction fast path that commit 49dd59c dropped when it switched to reflink-then-copy (finding #4/#5). break_output_hardlink_before_compile already unconditionally detaches any shared alias (OS link-count based, not registry-based) before a compiler writes to that path again, so sharing an inode with the freshly-compiled source is safe. - link_registry.rs / write_cached.rs: commit_hardlink_registration no longer marks a blob suspect on a merely-unresolvable output identity (only on a genuine identity mismatch), and a commit failure now falls back to a copy the same way a failed std::fs::hard_link already does, instead of hard-failing the whole materialization (finding #3). - fs_caps.rs: cap the per-volume-pair capability cache at 4096 entries, clearing it wholesale when exceeded — a cheap, self-correcting bound on the previously-unbounded growth (finding #6, PLAUSIBLE/low severity). - tests/write_cached.rs: restored deterministic hardlink-tier assertions in 4 tests (including the issue #197 poisoning regression test) that had been weakened to silently skip their actual invariant when the hardlink tier wasn't taken (finding #5). Finding #2 (evicting valid pre-existing/pre-#1039 blobs with no digest sidecar) was investigated but NOT fixed as originally scoped: a first attempt trusted any digest-less blob with hardlink_count <= 1, but that heuristic is unsound — a since-deleted alias could have poisoned the blob before being removed, and link count only reflects the present, not whether a risky mutation window existed in the past. This was caught by the existing failed_restart_eviction_restores_readonly_and_retries_after_alias_delete regression test. Reverted to the original conservative eviction. Finding #1's fix already eliminates the primary real-world trigger (a freshly-persisted blob can no longer become visible without its digest); the remaining cost is a one-time cache miss for blobs written by a pre-#1039 zccache version on upgrade, which is the safer trade-off. Added regression tests for findings #1, #3, #4, and the reverted-#2 investigation. Local: 434/434 zccache-daemon-core unit tests pass on Windows; Docker Linux validation pending. * fix: harden COW persistence and parallelize rust-plan restore Closes #1042\nCloses #1044 * style: format COW and restore changes * fix: preserve compiler output writability on store hardlinks * test: allow shared inode store fast path * fix: migrate legacy COW blob digests Closes #1046 * test: skip hardlink-only cases on unsupported filesystems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The original PR #3 requested adding per-platform CI badges (Linux, macOS, Windows) to the README. The previous agent timed out before reporting completion.
Investigation confirms no changes are needed — the badges and backing workflows already exist on
main:ci-linux.yml,ci-macos.yml,ci-windows.ymleach call the reusableci-check.ymlwith the appropriateosinputmainThis was shipped in prior commits (notably
262616b). Closing as already complete.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.