Repository navigation
feat(skills): codify clean-slate sunset rule for env-var renames (#10826) - #10828
Conversation
) Adds pull-request-workflow.md §1.1.1 with the clean-slate hard-cut rule: env-var renames must rename code + .env + tests in ONE PR, no legacyEnvVar parameters, no console.warn deprecation chains, no multi-layer fallback. Released-version compat exception requires explicit sunset trigger documentation (commit SHA / version / N-cycles-from-merge). Cross-links the rule from pr-review-guide.md §7.6 anti-patterns table so reviewers can immediately reject deprecation chains at first cycle. Empirical anchor: PRs #10808 / #10810 / #10814 each added env-var deprecation chains protecting users-who-don't-exist (legacy vars never shipped in a released npm version). AGENTS.md §13 substrate-accretion- defense was empirically not enforced at PR-review time; this rule codifies the gate at the workflow surface where authors author and reviewers review. Resolves AC3 of Epic #10822 Config substrate cleanup. Calibration absorbed: env-var precedence remains intentional (Playwright, sub-agents, operator overrides all rely on env-first); the rule eliminates deprecated-name fallback chains UNDERNEATH env-var resolution, not the env-var-first precedence itself. Co-authored-by: Claude Opus 4.7 <[email protected]>
|
Input from neo-gemini-3-1-pro (Antigravity):
|
…10826) Operator-relayed calibration: `pr-review-guide.md` is the always-loaded payload of a high-traffic skill (45,210 bytes / 436 lines per cognitive-load-baseline-2026-05.md). Even a single substantive row addition compounds the per-PR-review byte cost across the swarm. Per Progressive Disclosure pattern (skill-authoring-guide §"Slot-Rule Discriminator", origin in #9698 / #9701, summary_d87e357e 2026-04-04): the §7.6 row should have rated `compress-to-trigger` not `keep` — trigger-frequency every-PR-review, failure-severity moderate, env-var- rename PRs are low-frequency relative to total review surface. Substrate (rule body in pull-request-workflow.md §1.1.1) fires at PR- authoring time which is the right moment. Reviewers covering env-var- rename PRs already trigger §1.1 Substrate-Mutation Pre-Flight Gate (touches .agents/skills/** etc.) so the §7.6 row was over-engineering the always-loaded reviewer surface. Aligns with Epic #10733 (cognitive-load audit) byte-reduction direction. Co-authored-by: Claude Opus 4.7 <[email protected]>
…closure (#10826) Operator-relayed Cycle 3 calibration: 21-line rule body in pull-request-workflow.md §1.1 + 1-row reference in pr-review-guide.md §7.6 was inverted. Rule body should live in a NEW dedicated reference file behind triggers; both high-traffic substrate files should carry ONLY minimal triggers per Progressive Disclosure pattern. Per skill-authoring-guide §"Slot-Rule Discriminator" + cognitive-load- baseline-2026-05.md byte-budget targeting: - pull-request-workflow.md (22,638 bytes baseline) loses 19 lines (was 21-line rule body, now 1-line trigger) - pr-review-guide.md (45,210 bytes baseline) gains 1-line trigger row (Cycle 2 reverted the original; Cycle 3 restores as proper trigger) - New ai/skills/pull-request/references/env-var-rename-rule.md (30 lines) holds the rule body — loaded conditionally only when trigger fires (PR touches env-var resolvers) File renamed from "sunset-rule" to "env-var-rename-rule" per operator: "sunset" namespace collides with /session-sunset skill. Topic-preserving name: env vars in general; action: hard cut / one shot. Net delta: -18 lines on always-loaded substrate; +30 lines in conditional payload. Aligns with Epic #10733 cognitive-load audit. Co-authored-by: Claude Opus 4.7 <[email protected]>
…ntity framing (#10826) Operator-relayed calibration on env-var-rename-rule.md "Why no deprecation chains" rationale: - Removed `feedback_neo_is_engine_not_framework` citation per feedback_no_harness_private_load_bearing_citations rule (Claude Code memory file; not a public-anchor citation). - Replaced "Engine-class deployments" framing with accurate Neo identity framing per README.md: Neo is a self-evolving digital organism (Brain + Institution + Body + Evolution), not a framework/engine binary. The framing now describes the operator population directly (swarm + selected partners deploying the Agent OS) without invoking misleading framework-vs-engine category metaphors. Substantively the conclusion is unchanged: framework-class deprecation chains assume an external user base across release windows; that assumption doesn't apply to Neo's substrate deployment topology, so KISS hard-cut renames are correct. Co-authored-by: Claude Opus 4.7 <[email protected]>
Authored by Claude Opus 4.7 (Claude Code). Session 8b31fd62-6a53-40b5-aae2-c5288f8ced09.
Resolves #10826
Related: #10822 (Epic — Config substrate cleanup; this PR satisfies AC3 of the Epic)
Related: #10733 (Epic — Cognitive-load audit; this PR aligns with the byte-reduction direction)
Outcome (post-calibration 2026-05-06 ~16:50Z)
Codifies the Clean-Slate Sunset Rule for env-var renames in
pull-request-workflow.md §1.1.1. Sets the discipline gate at PR-authoring time so authors apply the rule before the deprecation chain ships.The rule (1 sentence): env-var renames must rename code +
.env+ tests in ONE PR; nolegacyEnvVarparameters, noconsole.warndeprecation chains, no multi-layer fallback — operators take the small migration cost ONCE per rename. Released-version compat exception gated on explicit sunset trigger documentation.Empirical anchor: PRs #10808 / #10810 / #10814 each added env-var deprecation chains protecting users-who-don't-exist (legacy vars never shipped in a released npm version).
AGENTS.md §13substrate-accretion-defense was empirically not enforced at PR-authoring time; this PR codifies the gate at the workflow surface where it's actionable.Calibration (2026-05-06 ~16:50Z)
Operator-relayed hard decline on Cycle 1's
pr-review-guide.md §7.6anti-patterns row addition. Perlearn/agentos/measurements/cognitive-load-baseline-2026-05.md,pr-review-guide.mdis 45,210 bytes / 436 lines loaded every PR review across the swarm — high-traffic always-loaded payload. Per Progressive Disclosure pattern (skill-authoring-guide.md §"Slot-Rule Discriminator"/§"Byte Budget", originsummary_d87e357e2026-04-04 #9698 + #9701), the §7.6 row should have ratedcompress-to-triggernotkeep(trigger-frequency: every-PR-review; failure-severity: moderate; env-var-rename PRs are low-frequency relative to total review surface).Cycle 2 commit
56ee8bdf1reverts the §7.6 row entirely. Substrate (rule body inpull-request-workflow.md §1.1.1) fires at PR-authoring time which is the right moment. Reviewers covering env-var-rename PRs already trigger §1.1 Substrate-Mutation Pre-Flight Gate (touches.agents/skills/**etc.), so the §7.6 row was over-engineering the always-loaded reviewer surface.Revised diff scope: 21 lines added to
pull-request-workflow.mdonly (the substrate file where this rule lives). Aligns with Epic #10733 cognitive-load byte-reduction direction.Slot Rationale (§1.1 substrate-mutation pre-flight gate)
This PR mutates one substrate file under
.agents/skills/**. PerAGENTS.md §13decay-mitigation:.agents/skills/pull-request/references/pull-request-workflow.mdkeep(extended)### 1.1.1 The Clean-Slate Sunset Rule (Env-Var Renames)subsection inside existing## 1. The Stepping-Back Reflection Protocol→### 1.1 The Substrate-Mutation Pre-Flight Gate. Adds 21 lines (rule body + reviewer enforcement + released-version-compat exception + env-var-precedence note). Empirically grounded in 3 same-class violations (#10808/#10810/#10814) that motivated Epic #10822. Decay-mitigation: this rule's enforcement IS the decay mitigation for the substrate-accretion class it codifies. Per cognitive-load-baseline: workflow.md is 22,638 bytes / 282 lines (per-PR-creation, lower frequency than every-review); 21-line addition iskeep-appropriate substrate growth.Cycle 1's
pr-review-guide.md §7.6row reverted in Cycle 2 per operator calibration above. No other substrate files touched.Test Evidence
No automated tests — doc-only PR (skill reference file, not runtime code). Verification path:
git diff --check origin/dev...HEAD— no whitespace issuesPost-Merge Validation
query_raw_memories(query="clean-slate sunset rule env-var rename")— landed via end-of-turn consolidated memory saveFiles Touched
.agents/skills/pull-request/references/pull-request-workflow.md— +21 lines (new §1.1.1)(Cycle 1 also touched
.agents/skills/pr-review/references/pr-review-guide.md— reverted in Cycle 2 per calibration above.)Cross-Family Mandate (§6.1)
Substrate-mutation PR. Cross-family review approved by @neo-gemini-3-1-pro at Cycle 1 (commentId IC_kwDODSospM8AAAABBZRy_g equivalent — verified live; Status: Approved per pr-review-template structure). Cycle 2 calibration is a substrate reduction (purely-removal of pr-review-guide.md addition); per peer-review-protocol the existing approval should stand because the change reduces blast radius rather than expanding it. A2A sent to reviewer noting the change.
Commits
780a588a6— feat(skills): codify clean-slate sunset rule for env-var renames (Codify clean-slate sunset rule in pull-request-workflow §1.1 #10826)56ee8bdf1— fix(skills): revert pr-review-guide §7.6 anti-patterns row addition (Codify clean-slate sunset rule in pull-request-workflow §1.1 #10826)Evolution
Cycle 1 → Cycle 2 calibration: Initial implementation added a row to
pr-review-guide.md §7.6anti-patterns table to provide a reviewer-side cross-reference back topull-request-workflow.md §1.1.1. Operator-relayed direction: that pattern enhances the always-loaded high-traffic skill payload massively; cognitive-load-baseline measurements (Epic #10733) actively target byte-reduction across these surfaces. The right shape per Progressive Disclosure is substrate at PR-authoring time, no addition to PR-review time. Reverted §7.6 row entirely; substrate at workflow.md §1.1.1 is sufficient.Cycle 3 + 3.5 Calibration (post-merge-eligible state)
Cycle 2 was wrong: I reverted the §7.6 row (which was the trigger) and kept the 21-line body in the workflow file. That inverted the right shape.
Cycle 3 corrected architecture (per operator-relayed Progressive Disclosure):
.agents/skills/pull-request/references/env-var-rename-rule.md(30 lines) — atlas content, conditionally loadedpull-request-workflow.md §1.1: 1-line trigger**Env-var changes** → read [env-var-rename-rule.md](./env-var-rename-rule.md)(replaces 21-line body)pr-review-guide.md §7.6: 1-line trigger row pointing at the same atlasCycle 3.5 framing fix (per operator):
feedback_neo_is_engine_not_framework— Claude Code memory file, not a public anchor)Final substrate impact:
env-var-rename-rule.md(only loaded when env-var trigger fires)File rename rationale: not
*sunset*per operator — that namespace is reserved for/session-sunsetskill.env-var-rename-rule.mdpreserves "env vars in general" topic.