docs(agents): record PR #784 sticky-set/hard-set primitives as landed#787
Merged
Conversation
Update state.py row in the Key files table to mention _sticky_set and _hard_set alongside _StickyContext, remove #740 from the open-refactor list (landed as PR #784), and add a Decisions-already-landed entry covering what changed and why (cache()/meta() sticky semantics + the reverse-order reset guarantee BoundWrapper needs).
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
agents/DEVELOPING.md: state.py row in the Key files table now names_sticky_setand_hard_setalongside_StickyContext, with the sticky-vs-scoped and reverse-order-reset semantics each primitive owns.ContextVarset/reset dance acrosscache(),meta(), andBoundWrapper.__call__#740 (landed as PR refactor(state): extract sticky-set / hard-set ContextVar primitives #784); the trailing parenthetical alongside the 2026-07-09/10 bullet now points to both Refactor: eliminateMetaData.keys/pre/postkey-name duplication in built-in metadata classes #738/refactor(metadata): single-source built-in schema via _keys ClassVar #763 and Refactor: extract a single sticky-set primitive to deduplicate theContextVarset/reset dance acrosscache(),meta(), andBoundWrapper.__call__#740/refactor(state): extract sticky-set / hard-set ContextVar primitives #784.cache()/meta()and the manual reverse-ordertry/finallyinBoundWrapper.__call__) and the tests intests/unit/test_cache_sticky.py.Audit sweep of the rest of
agents/AGENTS.mdandagents/DEVELOPING.mdagainst the source tree found no other drift since PR #785 — the only substantive code change since that docs update was PR #784.Test plan
_sticky_set/_hard_setare the two primitives currently defined insrc/fleche/state.pyand called fromcache()/meta()/BoundWrapper.__call__.Generated by Claude Code