Add Tecnix revision identity for remote eval caching - #58
Draft
jacobmichels wants to merge 1 commit into
Draft
Conversation
jacobmichels
force-pushed
the
jacob/tecnix-eval-cache-contract
branch
from
September 5, 2026 05:44
5218593 to
b664cca
Compare
jacobmichels
changed the base branch from
main
to
jacob/tecnix-functional-tests-sqlite
September 5, 2026 22:02
jacobmichels
force-pushed
the
jacob/tecnix-eval-cache-contract
branch
from
September 5, 2026 22:03
b664cca to
316987b
Compare
jacobmichels
changed the base branch from
jacob/tecnix-functional-tests-sqlite
to
jacob/tecnix-cache-result-contract
September 5, 2026 23:26
jacobmichels
force-pushed
the
jacob/tecnix-eval-cache-contract
branch
from
September 5, 2026 23:26
316987b to
1ef9433
Compare
jacobmichels
force-pushed
the
jacob/tecnix-eval-cache-contract
branch
from
September 6, 2026 00:15
1ef9433 to
dd3d40f
Compare
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.
Sharing evaluation-cache candidates needs an identity for the evaluator that produced them. The existing cache scopes rows by repository location, resolver, and arguments, but does not distinguish evaluator revisions.
This PR adds that identity groundwork: a full Tecnix revision in the SQLite row key, revision-aware reads and writes, and Nix/Meson build metadata that supplies the revision. Unknown or abbreviated stamps bypass persistence. Mutable developer shells remain unversioned by default.
This is new support for future remote-cache reuse, not the remote transport implementation. It does not add upload/fetch, portable repository keys, or publisher authentication. It preserves the selected-output payload and target-value reconstruction from #57, which is the layer below this change.
Checks:
builtinsandgcfunctional suites plusnix-expr-tests: 3/3 passed with a revision-stamped test build.This PR is the top layer of the native GitHub stack: #59 → #57 → #58. Its base is #57; #59 supplies SQLite for the isolated tests.
World adoption follow-up
When World bumps Tecnix to a revision containing this cache-identity support, update
system/tectonix/tecnix-package.nixin that same World change to stamp the fulltecnixSrc.revinto.version-tecnix, rather than truncating it to nine characters. The full-revision gate otherwise bypasses persistent evaluation caching for the World package.That packaging edit is explicitly deferred. It is not part of either Tecnix PR, and no root-worktree edit should be carried by this work.