Repository navigation
docs(standards): let Adapters use Logic about their external thing and keep private caches - #300
Merged
Merged
Conversation
sergej-koscejev
force-pushed
the
claude/env-logic-state-standards-3000ba
branch
from
November 18, 2026 19:28
177ff41 to
a35a7b7
Compare
sergej-koscejev
force-pushed
the
claude/env-logic-state-standards-3000ba
branch
2 times, most recently
from
November 18, 2026 19:35
c30f00e to
8086e4b
Compare
…d keep private caches
sergej-koscejev
force-pushed
the
claude/env-logic-state-standards-3000ba
branch
from
November 18, 2026 19:39
8086e4b to
daefe08
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.
Summary
Two rules for Adapters, without a new class kind or a new term:
adapter-deps: an Adapter may depend on Logic about its own external thing (adapter-one-thing). That Logic hides an Environment decision (decoding the format, deciding when a file's size and modification time prove it unchanged), and it lives in the Adapter's package. Logic that hides a Behavior decision, such as which MPS Modules to skip, stays outside the Adapter (adapter-translates-only). Adapter → Logic still points inward.adapter-cache(new): an Adapter may keep a private cache, in-memory data that only saves work. The test: if the Adapter dropped the cache before a call, would that call give the same results and behave the same for a user or client, only slower? If not, it is State (state-justified). Cache invalidation is Logic (adapter-deps);state-one-ownerapplies in the same way as to State.A third commit changes
docs/agents/prose-guidelines.md: use thewriting-for-agentsskill when you write or review anything that agents read, not only skills andAGENTS.md.The new text pushed
design-standards.mdover thefile-sizelimit, so the first commit moves Part 2 (Plan / Execute) word for word todocs/agents/plan-execute.mdand leaves a short summary with a link.docs/agents/ ├── design-standards.md # Part 2 is now a summary + link +└── plan-execute.md # plan-split, plan-complete, executor-follows-plan, dry-run-plans-onlyWhere to look
adapter-depsis "about the Adapter's own external thing" (adapter-one-thing), not the sibling-path test: Code Mode needs descriptor decoding too, and the Adapter may still use it.adapter-cachehas one test ("only saves work") and uses "cache" for both content caches and memory of what was already refreshed. The examples are described in general words;ClassPathFingerprintsandExternalProjectRefreshkeep their invalidation checks inline today.Evidence
Before: with only the new rules,
prekfile-sizefails:design-standards.md: 20990 bytes, limit is 20000 bytes.After:
prek runon all commits: Prettier, markdownlint-cli2 and file-size pass (18749 and 2677 bytes).Merge Danger
Blast Radius: docs
Agents and reviewers that cite these rules get the new wording; no code changes.