Repository navigation
refactor: isolate build identity and final-result snapshot retention - #769
Merged
Merged
Conversation
yyjeqhc
force-pushed
the
refactor/build-identity-snapshot-retention
branch
from
September 29, 2026 01:40
27b8c6a to
eceb292
Compare
5 tasks done
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.
Summary
Current PR base:
399fa74420f01aaaee2b7a11e3f78ff0f82527ff(latest main when this review pass started). The original build-invalidation experiment was developed from the earlier9877de8eaudit baseline; the branch is now cleanly based on current main.Three independently reviewable commits:
dfa56505— isolate checkout-dependent build identity from core. Move the existing collector fromwebcodex-core/build.rsto a smallwebcodex-build-infoprovider, consumed only by Server, Runner, CLI and Desktop composition. Core retains stable metadata types and pure formatting. Update all consumers, both lockfiles and workspace boundary policy. No new external dependency, duplicated collector, mutable global initialization or runtime Git lookup.eceb292a— isolate live inspection and sealed result retention. Keep the existing shared snapshot registry, authorization and diff producer, but use explicit internal retention classes. Live browsing can no longer consume the quota of sealed Final Changes.55c735da— review documentation follow-up. Add standing canonical tool naming/model-surface guidance todocs/agent/tool-contract-guidelines.md: names describe operations rather than Direct/Gateway policy; naming verbs and gateway suffixes are constrained; category/semantics/model-surface policy stay separate; Direct exposure reasons use the CoreWorkflow / HostIntegration / Presentation / Continuation / Gateway design vocabulary without creating a second taxonomy.Measured build invalidation
Same local command before/after:
cargo check --locked --offline -p webcodex -p webcodex-runner -p webcodex-cli --message-format=json. Each revision has a warm run, identical repeat, then a child-only synthetic commit override with unchanged source/ref state. Count unique workspace packages with any non-fresh compiler artifact.Only
webcodex-build-info,webcodex,webcodex-runner, andwebcodex-clichange in the candidate identity-only phase; core/domain artifacts remain fresh. These are single local check observations, not controlled multi-run performance or release/link-time claims. Warm/migration runs are not compared as speed evidence. No artifacts with the synthetic identity were deployed.Preserved boundaries
--version,--build-info-json, runtime/desktop metadata and protocol generation. Internal Rust capture moves to the provider; public wire fields remain unchanged.Review follow-up
Independent review of the current
origin/main..55c735darange found no production-code blocker in the build-identity split or snapshot-retention isolation.The review specifically checked:
No Rust review-fix commit was needed. The only branch change from this review is the naming/surface design guidance above. The PR description was also updated because its previous commit/final-tree SHAs referred to a pre-rebase branch state.
Validation
Current final HEAD:
55c735daa520c1d02dee9fbc5d12343e3e36462f.Existing branch validation:
CARGO_BUILD_JOBS=4 cargo check --locked --offline --manifest-path apps/desktop/src-tauri/Cargo.toml --lib: Linux Desktop consumer compiles. It emits 30 warnings in existing Desktop code; this PR does not claim a warning-free Desktop build.cargo fmt --all --checkand existing branchgit diff --checkpassed.Independent review rerun:
python3 -B -m unittest scripts.tests.test_build_identity -v: 5 passed.cargo test -p webcodex-build-info: 2 passed.cargo test -p webcodex --lib tool_runtime::changes::tests: 10 passed.bash scripts/workspace_boundary_check.sh: all 21 packages pass.git diff --check: passed.No complete root/workspace suite or native Windows/macOS execution was run locally in this review pass; GitHub CI remains independent validation. No deployment, service restart, release or merge was performed.
Details:
docs/implementation/build-identity-isolation.md, the retention section ofdocs/agent/ui-progressive-loading.md, and the canonical naming/model-surface section indocs/agent/tool-contract-guidelines.md.