Skip to content

Key the Workspace-Edit Rule on the Window Hosting a Session - #2927

Merged
ptr727 merged 5 commits into
developfrom
feature/workspace-edit-key-2834
Oct 13, 2026
Merged

ptr727 merged 5 commits into
developfrom
feature/workspace-edit-key-2834

Conversation

@ptr727

@ptr727 ptr727 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

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-workspace edit 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-conduct carries the section as a generated include, regenerated with scripts/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.md drops the "VS Code config home" axis, which said editor settings may live in .vscode/*.json against "Editor and Tasks", and SKILL.md stops listing VS Code config as an adaptation axis.

No other surface states the edit rule (swept with git grep -n 'code-workspace' and git grep -n -i reload).

Local review

Recorded local-strict-review passes 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

ptr727 and others added 3 commits October 12, 2026 17:49
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]>
Copilot AI lite review requested due to automatic review settings October 13, 2026 00:58
@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b2ccb5d5-096f-4300-a755-a083b096a855
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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-conduct guidance.
  • 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.

Comment thread GOVERNANCE.md Resolved
@codecov

codecov Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.00%. Comparing base (1607ba4) to head (62ea7b0).
⚠️ Report is 1 commits behind head on develop.

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           
Flag Coverage Δ
python-3.13 60.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

ptr727 and others added 2 commits October 12, 2026 18:03
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]>
@ptr727

ptr727 commented Oct 13, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 62ea7b07e710be4a90ce1d00a521c68b9ed1e3eb, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit e2e94e2 into develop Oct 13, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/workspace-edit-key-2834 branch October 13, 2026 01:58
ptr727 added a commit that referenced this pull request Oct 13, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants