Repository navigation
Key the Workspace-Edit Rule on the Window Hosting a Session - #2927
Conversation
The rule was keyed on where the editing agent runs, but the harm it names is a reload dropping a session in the window that has the file loaded. It now binds when that window hosts a live agent session, the editing agent's own or one it knows of, and an agent that knows of no such session edits the file directly. This closes the console-agent gap and lifts the bar on editing a file only another, session-free window has loaded. The Editor and Tasks pointer now says opening a folder keeps the file editable from a session in that window, and python-codestyle's profiles reference drops an axis that let editor settings live in .vscode/*.json, which Editor and Tasks forbids. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The local review found the headline binding on whether the window hosts a session while the body binds on whether the agent knows it does, so the two could give opposite answers. The headline now carries the knowledge condition, the ask-the-maintainer case is limited to the agent's own window, and the referents the pointer bullet left dangling are named. python-codestyle's SKILL.md stops listing VS Code config as an adaptation axis, since profiles.md no longer carries one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A second local review found that narrowing the ask to the agent's own window left a case with no instruction, an agent unsure whether a window it knows hosts a session has the file loaded, and that the pointer in Editor and Tasks sent that case to a direct edit. The ask now covers whatever the default assumption leaves unsettled, the pointer states it, and its last sentence names the window that opened the folder. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟡 Changes recommended
The direct-edit wording remains ambiguous when the agent is uncertain whether a loaded window hosts a session.
1 open finding
What changed in this PR
Updates the workspace-edit rule to key restrictions on known live sessions in windows loading the workspace file, and removes the obsolete Python VS Code configuration axis.
Changes:
- Revises governance and generated
agent-conductguidance. - Removes obsolete Python profile documentation.
- Regenerates skill distributions and source digests.
| File | Description |
|---|---|
GOVERNANCE.md |
Updates workspace-edit rules and pointer guidance. |
.github/skills/python-codestyle/SKILL.md |
Removes the obsolete adaptation axis. |
.github/skills/python-codestyle/references/profiles.md |
Removes VS Code configuration guidance. |
.github/skills/agent-conduct/SKILL.md |
Generated governance guidance. |
.claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md |
Generated Python skill update. |
.claude-plugin/fleet-skills/skills/python-codestyle/references/profiles.md |
Generated profile update. |
.claude-plugin/fleet-skills/skills/agent-conduct/SKILL.md |
Generated governance guidance. |
.claude-plugin/fleet-skills/.source-digests/python-codestyle |
Updated source digest. |
.claude-plugin/fleet-skills/.source-digests/agent-conduct |
Updated source digest. |
.agents/skills/python-codestyle/SKILL.md |
Updates authored Python skill guidance. |
.agents/skills/python-codestyle/references/profiles.md |
Updates authored profile guidance. |
.agents/skills/agent-conduct/SKILL.md |
Canonical propagated governance guidance. |
🧠 Review effort: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2927 +/- ##
========================================
Coverage 60.00% 60.00%
========================================
Files 17 17
Lines 8773 8773
========================================
Hits 5264 5264
Misses 3509 3509
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The direct-edit sentence could be read to cover an agent unsure whether its own window has the file loaded, which the ask was meant to catch. The direct edit now waits until the agent can tell no window with the file loaded hosts a session it knows of, and anything short of that goes to the maintainer. The Editor and Tasks pointer states the default assumption it relied on, and the folder exemption now holds only where every window holding the checkout opened it as a folder. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sentence it compared against was removed when the rule was rekeyed, so the word pointed at an exemption the text no longer states. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…y-Pass Record, and Write-Guard cd Scoping to Main (#2930) - #2926 resolves `spec/audit.py`'s hub name lazily through a cached accessor, so an importing script parses its arguments before any git read, and `tests/test_cli_usage.py` now records `git` so every entry point is held to "before any read" - #2927 keys the workspace-edit rule on whether a window that has the `.code-workspace` loaded hosts a live agent session the editing agent knows of, rather than on where the editing agent runs, aligns the "Editor and Tasks" pointer, and drops the `python-codestyle` profiles bullet that contradicted it - #2929 attests every push a recorded local pass covers, the opening push included, makes the published attestation the evidence Merge Gate item 2's promotion case reads, and stops `pr_review.py` reading an attestation on the head Copilot's first round landed on as that head's coverage - #2928 reads a bare `git push` after a plain leading `cd` (joined by `&&` or `;`) or `-C` in that directory in `gh-write-guard`, denies one after any other `cd` form, and scans `bash -c` / `sh -c` bodies for pushes and bypass flags. The heredoc-text false denial is deliberately left unfixed after ten review rounds each found a bypass in a carve-out, so #2821 stays open for it Closes #2829 Closes #2834 Closes #2835 Closes #2897 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Part of #2834
Part of #2835
Maintainer ruling implemented: the workspace-edit rule is keyed on whether a VS Code window that has the file loaded hosts a live agent session the editing agent knows of, its own included, rather than on where the editing agent runs.
Changes
GOVERNANCE.md"Verification Discipline": the.code-workspaceedit rule binds while the agent knows a window with the file loaded hosts a live agent session. An agent treats any window other than its own as hosting no session unless it knows otherwise, so a standalone-console agent still edits directly by default, and an agent in one window may edit a file only another session-free window has loaded. The reload rationale, the hand-back, the unloaded-file exemption, and the ask-the-maintainer case are kept.agent-conductcarries the section as a generated include, regenerated withscripts/build_dist.py.GOVERNANCE.md"Editor and Tasks": the pointer bullet restates the new key, states the ask case, and its last sentence now holds for a session in the window that opened the folder.python-codestyle:references/profiles.mddrops the "VS Code config home" axis, which said editor settings may live in.vscode/*.jsonagainst "Editor and Tasks", andSKILL.mdstops listing VS Code config as an adaptation axis.No other surface states the edit rule (swept with
git grep -n 'code-workspace'andgit grep -n -i reload).Local review
Recorded
local-strict-reviewpasses at the frontier tier on every pushed head. The third pass on the opening head left three findings past its edit budget (an agent unsure about its own window read as a direct-edit case, the pointer omitting the default assumption, and the folder exemption failing where a second window loads the same checkout's workspace file). Copilot raised the first independently. All three are fixed in f641b4f, and the pass over the fix head found one orphaned "too", dropped in 62ea7b0, whose own pass found nothing.🤖 Generated with Claude Code