Repository navigation
feat(core,cli): caller-supplied validity, remember/update --valid-from/--valid-until (#1598) - #1649
Merged
Merged
Conversation
ajianaz
force-pushed
the
feat/caller-validity-1598
branch
from
November 3, 2026 00:50
dccb0f0 to
ad280d9
Compare
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
…m/--valid-until (#1598)
ajianaz
force-pushed
the
feat/caller-validity-1598
branch
from
November 3, 2026 00:56
ad280d9 to
f38e4d6
Compare
This was referenced Nov 3, 2026
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.
What
The additive part of #1598 (design: #1648,
docs/plans/2026-11-03-time-travel-1598.md§5.1).uteke remember --valid-from/--valid-untilanduteke update --valid-from/--valid-until(RFC3339) write thevalid_from/valid_untilcolumns thatrecall --atandlist --atread.memory::types::Validity,Uteke::set_validity(validated: the interval must start before it ends after the change is applied to the stored values; a deprecated memory is refused),RememberRequest::validityapplied byrun_rememberafter the write, likeauthor/source.--valid-untilwithout--valid-fromis refused. Onupdatethe validity is written first, so a refusal leaves the other fields of the same call untouched.valid_untilthat is already in the past (CASE WHEN deprecated = 0 AND valid_until < now THEN valid_until ELSE now END). Every existing live row hasvalid_until IS NULL, so its deprecation is unchanged. Restore still clearsvalid_until(documented limitation).Why
#1598 / Atlas finding 8: a caller could not say when a fact was true;
valid_fromwas always the write time.No CORE change.
RememberRequest::decodedoes not fillvalidity, soPOST /rememberkeeps storing the wirevalid_from/valid_untilas metadata (same as uteke-cloud). Moving those into the columns waits on the contract issue uteke-cloud#458 (Gitea). With a running server,rememberwith the new flags uses the local store, as other flags the HTTP body cannot carry do. No HTTP/MCP surface changes;cargo run -p docgenproduces no diff.Testing
remember_exectests: the wire fields stay metadata only; caller validity reaches the columns;set_validitykeeps the side that is not set and refuses empty or inverted intervals and deprecated memories; deprecation keeps an end that is already past, and cuts a future end to the deprecation time and leaves rows without a caller end unchanged.crates/uteke-cli/tests/validity_flags.rs(real binary, local store): remember writes the interval andlist --athonours it; bad intervals store nothing; a refusedupdatedoes not apply the--importancefrom the same call.cargo test -p uteke-core -p uteke-cli -p uteke-server -p uteke-mcp,cargo clippy --workspace --all-targets -D warningsandcargo fmtall pass locally.