Repository navigation
docs(standards): compose around a component instead of growing it - #45
Merged
Merged
Conversation
Requirements-only plan for a shared rule that makes composing around a component the default and narrows the shim ban. Revised after a red-team verdict of block: the rule now keys on dependencies, inputs and test preconditions rather than flags; keeps the dependency rule intact; closes the fallback loophole; and tightens the behaviour probes.
… record Requirements review found the own-job carve-out arguable, the shim ban contradicting the request, composed agent tools reading as violations, and no precedence over loaded skill guidance. The rule now keys only on an added dependency, I/O boundary or input; shims and decorators are encouraged and only unrequested compatibility paths stay banned; a composed tool is a new component. Adds the solution record the rule needs.
…econd paths A change that adds a dependency, I/O boundary or input a component does not already have goes in a separate module that uses its interface; a change needing none of those stays inside. SF-SHP-5 now bans an unrequested second path to existing behaviour rather than any shim.
systemfsoftware-bot
marked this pull request as ready for review
December 3, 2026 00:31
Contributor
|
This pull request is merged. |
…ence SF-SHP-5 Review found the new-input trigger would block type tightening (SF-IMP-1) and core-shell data flow (SF-SHP-1), SF-SHP-5 ran to three sentences, and the agent-tool clause carried an agent-precedence phrase that belongs in working rules. Plain-data inputs now stay inside; the wrapper exemption is limited to adding a new concern; the tool clause keys on operations sharing no step.
Contributor
Author
|
Review dispositions (independent review of head 683e2d3; fixes at d5e76e6) Fixed:
Refuted:
Accepted residual (P2): a change reusing a dependency the component already imports for a new concern is not caught by the dependency trigger; the one-job clause and REVIEW.md's Accretion clause cover repeat cases. |
Contributor
Author
|
Review lane receipt (head d5e76e6) dispositions, fixed at a2d7f79:
|
…plan verification no longer lists unrun probes
Contributor
Author
|
Follow-up review (head a2d7f79) dispositions, fixed at abe0c68:
|
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.
Intent
Make composition the default way to add a concern to a tool, command or module, and stop the shim ban from reading as a ban on composition.
docs/plans/2026-12-02-1859-feat-composition-over-accretion-plan.md. Solution record (the incident behind the rule):docs/solutions/architecture-patterns/a-new-concern-goes-around-a-component-not-into-it.md.Non-goals
No edit to
REVIEW.md(any standards violation is already a blocking P1, and the Accretion clause already escalates repeat findings to design). No grader or lint rule (SF-GATE-2). No change to, or mention of, any third-party tool-design skill.Decisions and rejected alternatives
Verification
deno task check:Checked 12 files, exit 0.git show --stat 1fe648a: onlyCODING_STANDARDS.md, one rule ID added, none removed.SF-GATE-5 grader proof
A reviewer (
claude -p --model haiku, hooks off) was given the review policy, the standards file, the PR task and one diff, and asked forBLOCK <rule>orMERGE. Raw outputs:mainstandardsmakeFetchimports a cache store and gainscacheSecondswithGetCachewrapper wired incli.tsgetUseralias in a compat modulemethodunion withHEADThe change refuses the failing case it targets (red on
main, green on the branch), still refuses an unrequested alias (no loosening of SF-SHP-5), and passes the clean cases.Rollback
Revert the squash commit. No consumer cites SF-SHP-10 yet.
Head: abe0c68
Merge
Merged with
--adminas break glass: the merge queue reports every condition met ("Merge queue is ready") but this repository has no Mergify automation rule that enqueues on approval or a label ("no workflow automation rules configured"), so the queue cannot take the PR without a manual queue command.