Skip to content

Route an Observed-Data Finding by Repository Visibility - #3953

Merged
ptr727 merged 18 commits into
developfrom
feature/3952-observed-data-by-visibility
Nov 9, 2026
Merged

ptr727 merged 18 commits into
developfrom
feature/3952-observed-data-by-visibility

Conversation

@ptr727

@ptr727 ptr727 commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

A review finding that committed text holds observed data had no outcome of its own. It was either listed in a PR body and forgotten, or rewritten without the maintainer hearing of it. A rewrite of the current text still leaves the data in git history. Whether that history needs a rewrite is the maintainer's call, and it matters most when a repository is or becomes public.

This implements the maintainer's scheme from #3952.

What it covers. The route applies to confirmed observed data, whatever the finding's class. A value the repository constructed is disproved under outcome 2 instead. A sweep for the finding's siblings is owed at a class sweep's reach.

The cases. For the finding and each sibling, the first case that fits decides:

Where the data is What happens
In no pushed commit Removed from the unpushed commits before the push, whatever the edit budget. No record.
In a public repository's pushed history (the hub included), or a carrying repository's copy of hub-authored text An ordinary item of "Escalate to the maintainer when", so work stops and the thread stays open. No escalation, issue, comment, answer, or budget-stop line names the commit, file, line, or value, or quotes the reviewer.
In a private repository's pushed history Replaced in the current text where it still sits, even in an untouched file and whatever the budget. It is recorded either way under an Observed data recorded heading naming location, kind, and any other PR whose review raised it, never the value. Both PRs carry the new history-data label, and the maintainer is told if the label is missing.

Recording details.

  • Visibility is read live.
  • On a promotion PR, a replacement goes through its own feature PR. A record with nothing to replace goes in the promotion's body.
  • A thread-less finding is answered by kind only: Listed in the body for a private one, naming the PR holding the record, or Awaiting maintainer for an escalation.

Going public. Before a repository becomes public, the maintainer:

  1. lists every PR carrying history-data or the heading, plus each PR a heading names;
  2. rewrites its history;
  3. deletes review comments showing the data;
  4. asks GitHub Support to purge the cached PR refs and any submitted review body showing it.

A rewrite alone leaves each PR's commits readable.

Landed text in general, such as a posted comment, is still reported to the maintainer rather than quietly rewritten.

Changes

  • GOVERNANCE.md "Representative Data in Agent-Authored Text": the routing bullet and the go-public bullet.
  • host-setup/agent-safety/claude/claude-md-safety.md: the same rule in the host-wide block, condensed. It reaches ~/.claude/CLAUDE.md on the next agent-safety install.
  • pr-review-conduct:
    • The "Every finding ends in a listed outcome" preamble sends an observed-data finding to outcome 4's new first bullet.
    • "Escalate to the maintainer when" gains the public and hub-text case and limits what it may name.
    • "Answering a suppressed finding" answers it by kind.
    • Merge Gate item 3 and its carrying-repository paragraph defer to the bullet.
    • drive-pr regenerates its include.
  • local-strict-review: a spent edit budget neither pushes unpushed observed data nor skips a private replacement. An escalated finding is listed by kind alone.
  • repo-config/labels.json and README "Labels": the history-data label. It reaches each repository on its next repo-config/configure.sh apply.

Closes on promotion: #3952

Verification

  • scripts/build_dist.py --check: generated skill distributions are current.
  • scripts/prose_lint.py --diff origin/develop: no violations.
  • tests/test_configure_project.py (34 tests, including the label payload) and tests/test_prose_lint.py: pass.
  • host-setup/agent-safety/claude/test_install.py: 183 tests pass.
  • Local strict review: eighteen recorded agent-skill passes. Midway, the maintainer chose to route the public and hub-text case through the existing escalation path rather than special-case it, which ended a run of integration gaps. The final pass found nothing.

🤖 Generated with Claude Code

ptr727 and others added 3 commits November 9, 2026 08:16
Closes #3952 on promotion. A review finding that committed text holds
observed data had no outcome of its own, so it was listed and forgotten
or rewritten without the maintainer hearing of it. The maintainer's
scheme routes it by where the data sits and who can read it:

- Not yet committed: replace it with constructed data before the commit.
- In a private repository's history: replace it in the current text,
  note location and kind in the pull request, and label it
  `history-data`.
- In a public repository's history: stop and alert the maintainer,
  naming only the repository and the kind of data.
- In text the hub authors: file a hub issue, and the carrying
  repository moves on.

Before a repository becomes public, its `history-data` pull requests are
listed so the maintainer can decide on a history rewrite or a
delete-and-recreate. GOVERNANCE.md, the host-wide block, outcome 4,
Merge Gate item 3, and the fleet label set carry it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of 36d42ab.

- The cases are ordered, hub-authored text first, so carried hub text
  is never edited locally inside a byte-locked section.
- The hub is public, so its `decision` issue withholds file, line, and
  value. The carrying repository still moves on.
- The line between "fix quietly" and "already exposed" is the push.
  Data in unpushed commits is removed from those commits.
- The outcome 4 bullet takes a finding of either class, sends a
  promotion pull request's replacement through a feature pull request,
  and parks an away run behind an ordinary `decision` issue that names
  no location.
- The carrying-repository tracker route defers to it.
- GOVERNANCE.md and the host block keep the general rule that landed
  text is reported rather than quietly rewritten.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the second local strict review.

- The outcome list opens by sending an observed-data finding to its
  bullet whatever its class, so an `introduced` one is not fixed
  forward past the routing.
- Unpushed commits come first in the order. The hub-text case is a
  carrying repository's, so the hub's own pushed data is the public case.
- A public-case alert names no file or pull request. An away run stops
  the group and names it only in its final report.
- A repository without the `history-data` label keeps the body note as
  the record. The host block hands the hub issue to the maintainer where
  the session's scope does not allow the write.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 9, 2026 16:35
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

…Going Public

Answers the third local strict review, listed on the pull request, with
the maintainer's two calls:

- Observed data in hub-authored text is alerted privately, like any
  public repository's, with no hub issue. The carrying repository moves
  on. A public repository's work stops.
- Before a repository goes public, its history is rewritten and the
  maintainer asks GitHub Support to purge the cached pull request refs.
  A rewrite alone leaves each pull request's commits readable.

Also:

- The unpushed case is keyed on whether any pushed commit holds the data.
- backlog-burndown parks such a group with no public pointer.
- The three surfaces agree on naming the repository in the alert and on
  telling the maintainer when the label is missing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

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 review identifies unresolved routing, fallback-record, and public-exposure contradictions that could suppress required history records or disclose sensitive findings across the governing procedures.

13 open issues
What changed in this PR

This pull request routes observed-data findings according to commit state and repository visibility, adds the history-data label, and synchronizes the related governance and agent-skill guidance.

Changes:

  • Defines handling for unpushed data, private history, hub-authored content, and public repository history.
  • Adds and documents the history-data repository label.
  • Updates governance, host safety guidance, review-conduct procedures, drive workflows, generated distributions, and source digests.
File Description
repo-config/​README.md Documents the history-data label and its pre-publication purpose.
repo-config/​labels.json Declares the fleet-wide history-data label.
host-setup/​agent-safety/​claude/​claude-md-safety.md Mirrors observed-data routing rules for host-wide sessions.
GOVERNANCE.md Defines observed-data routing and pre-publication history handling.
.github/​skills/​pr-review-conduct/​SKILL.md Packages updated review-conduct guidance for GitHub Copilot.
.github/​skills/​drive-pr/​SKILL.md Packages updated drive guidance for GitHub Copilot.
.claude-plugin/​fleet-skills/​skills/​pr-review-conduct/​SKILL.md Packages updated review-conduct guidance for Claude Code.
.claude-plugin/​fleet-skills/​skills/​drive-pr/​SKILL.md Packages updated drive guidance for Claude Code.
.claude-plugin/​fleet-skills/​.source-digests/​pr-review-conduct Updates the generated review-conduct source digest.
.claude-plugin/​fleet-skills/​.source-digests/​drive-pr Updates the generated drive source digest.
.agents/​skills/​pr-review-conduct/​SKILL.md Defines the authoritative observed-data review procedure.
.agents/​skills/​drive-pr/​SKILL.md Includes the authoritative review procedure in the PR-driving workflow.

This pull request is too complex or risky for automated approval.

Review effort: Lite

Comment thread GOVERNANCE.md Resolved
Comment thread GOVERNANCE.md Resolved
@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.66%. Comparing base (b38e084) to head (e879f27).
⚠️ Report is 121 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3953      +/-   ##
===========================================
- Coverage    81.60%   78.66%   -2.95%     
===========================================
  Files           26       37      +11     
  Lines         9070    12620    +3550     
===========================================
+ Hits          7402     9928    +2526     
- Misses        1668     2692    +1024     
Flag Coverage Δ
python-3.13 78.66% <ø> (-2.95%) ⬇️

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 14 commits November 9, 2026 08:48
Answers the fourth local strict review on the maintainer's call to stop
special-casing. Observed data in a public repository's pushed history or
in hub-authored text is now an item of "Escalate to the maintainer
when", so every procedure that already reads that list stops the work,
keeps the thread open, and tells the maintainer. That covers the review
loop, unthreaded findings, local-strict-review's budget, and burndown
raising, parking, ranking, and reporting.

The one public trace allowed is the neutral sentence "a history question
about this repository awaits the maintainer", quoting no anchor, file,
pull request, or value. backlog-burndown's park names no option or pull
request for it and skips commenting it onto pull requests.

A spent edit budget no longer lets unpushed observed data reach a push.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of daba7be. Allowing only one neutral
sentence in every record broke the ordinary park, decision-triage, and
promotion-hold steps that the escalation now runs through. The review
thread already sits on the pull request, so naming that pull request
adds no exposure.

- The rule is narrowed: no record names the commit, file, line, or
  value, or quotes the reviewer's words. backlog-burndown's carve-out
  is removed, so a park names its decision issue and holds a promotion
  as any other does.
- local-strict-review's budget stop no longer pushes unpushed observed
  data.
- A thread-less observed-data finding is answered by kind only, with
  `Fixed in <SHA>` for a replacement and `Awaiting maintainer` for an
  escalation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ublic

Answers the local strict review of ebb1182, listed on the pull request.

- The go-public listing also finds pull requests carrying an `Observed
  data replaced` heading, since a repository without the label keeps
  only that.
- Review comments showing the data are deleted before the toggle, since
  neither a rewrite nor a ref purge removes them.
- The pull request whose review raised the finding takes the label too,
  so a promotion's thread is listed.
- The host block bans the same names and quotes GOVERNANCE.md and the
  escalation item do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of e702fb0. GOVERNANCE.md, the host
block, and outcome 4 now all record a private replacement under an
`Observed data replaced` heading that names the location, the kind, and
any other pull request whose review raised it. Both pull requests carry
`history-data` where the label exists. The go-public listing takes each
pull request a heading names, so a promotion's review comment is found
even in a repository without the label.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of e9bdc3c, listed on the pull request.

- The README "Labels" entry and the label description put
  `history-data` on the raising pull request as well as the replacing
  one, and list heading-named pull requests every time.
- Merge Gate item 3 sends observed data on an intent unit, as well as a
  verbatim one, to outcome 4's observed-data bullet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of ed63eab.

- GOVERNANCE.md and the host block limit the route to committed text,
  as outcome 4 does. Observed data in a posted comment stays under the
  general rule that landed text is reported rather than quietly
  rewritten.
- A submitted review body cannot be deleted, so the go-public GitHub
  Support request names any that shows the data.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of ea8ad04.

- The outcome-list preamble applies once the data is confirmed as
  observed, so a constructed fixture value is disproved under outcome 2
  rather than stalling the pull request as an escalation.
- The go-public step's "all three" becomes "all of these", since four
  actions precede the toggle.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of a69474e.

- In a private repository, data still in pushed history but no longer
  in the current text replaces nothing, and its `Observed data replaced`
  record and label are still owed, so the go-public listing finds it.
- The README no longer claims the listing holds every exposure. It holds
  the ones this record caught, and the maintainer's notes hold the
  escalated or reported ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of 21d6dfc. Data already gone from the
current text replaces nothing, so wording keyed on a replacement left
that case without a label, a promotion record, or an answer.

- The heading becomes `Observed data recorded`, and the label goes on
  the pull request holding the record and the one whose review raised
  it, on every surface and in the label description.
- A thread-less recorded finding is answered `Listed in the body`.
- local-strict-review's spent budget lists an escalated observed-data
  finding by kind only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of 1767a72. On a promotion pull
request the record sits in a separate feature pull request, so a
thread-less `Listed in the body` answer names that pull request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of 61e0f7e. A feature pull request
with no change cannot be opened, so on a promotion pull request only a
replacement goes through a feature pull request. A record with nothing
to replace goes in the promotion's own body.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of 19f128c. A spent edit budget could
leave a private repository's replacement unmade while its record was
written, so the data stayed in the current text with a record implying
otherwise. The replacement is now made whatever the budget, beside the
unpushed-data removal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of ae8b1d5. The observed-data route
runs ahead of outcome 1, so it skipped outcome 1's class sweep and left
siblings in the same text unreplaced, unrecorded, or unreported. It now
sweeps as outcome 1 does and routes each sibling by its own case, on
every surface.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answers the local strict review of 2a6bf25. GOVERNANCE.md and the host
block now say the sibling sweep is owed and reaches as far as any real
finding's class sweep, files the change does not touch included, as
pr-review-conduct already requires.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

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

@ptr727
ptr727 merged commit 75aedf4 into develop Nov 9, 2026
19 of 21 checks passed
@ptr727
ptr727 deleted the feature/3952-observed-data-by-visibility branch November 9, 2026 19:41
ptr727 added a commit that referenced this pull request Nov 9, 2026
## Summary

Fixes a CodeRabbit finding on the #4005 promotion.

`backlog-burndown`'s worker brief said a `pre-existing` sibling in a
file another group holds "needs no edit, so it needs none of the
adjudication". That stopped being true with #3953. A private
repository's observed-data replacement is an edit that
`pr-review-conduct` outcome 4 requires even in a file the change does
not otherwise touch. So the worker either left the data in place or
edited another group's file.

## Changes

- **"Dispatching a Worker":** where outcome 4 requires an edit in
another group's file, the worker reports it for adjudication under
"Grouping and File Claims".
- **"Grouping and File Claims":** a loser that needs the file for an
edit outcome 4 owes parks rather than narrowing, beside the existing doc
and manifest disagreement case. Narrowing would drop the replacement
outcome 4 owes.

## Verification

- `scripts/build_dist.py --check`: generated skill distributions are
current.
- `scripts/prose_lint.py --diff origin/develop`: no violations.
- Local strict review: three recorded `agent-skill` passes. The first
two raised the narrowing gap and where the rule had to live, both
answered in the commits that followed. The final pass found nothing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
ptr727 added a commit that referenced this pull request Nov 9, 2026
…sing Observed Data (#4005)

## Summary

Promotes #3945, #3953, #4006, #4008, and #3951 to `main`.

- **A burndown's review loop no longer files its own backlog (#3945).**
- `pr-review-conduct` outcome 4 sends a defect class's untouched sites
to one issue, reusing an open one that no merged or claimed fix covers.
A defect-free near-duplicate is dropped. GOVERNANCE.md "Design Before
Code" and "Triaging findings" defer to the class sweep rather than
always filing.
  - A "file the rest" answer covers one pull request.
- `backlog-burndown`'s worker brief quotes outcome 4 whole and adds no
filing instruction of its own.
- Step 8 reports a run-to-date net flow beside the backlog, with how
much of it awaits promotion. It changes no ranking, and an attended run
asks once per run whether to continue.
- **An observed-data review finding is routed by repository visibility
(#3953).** The route applies to confirmed observed data in committed
text, whatever the finding's class, with a sibling sweep.
  - Data no pushed commit holds is removed before the push.
- Data in a public repository's history, the hub included, or in a
carrying copy of hub-authored text, is an ordinary escalation that names
no commit, file, line, or value.
- Data in a private repository's history is replaced where it still sits
and recorded under an `Observed data recorded` heading, with the new
`history-data` label on both pull requests.
- Before a repository goes public, its history is rewritten, revealing
review comments are deleted, and GitHub Support purges the cached pull
request refs.
- The rule lives in GOVERNANCE.md, the host-wide block,
`pr-review-conduct`, `local-strict-review`, and
`repo-config/labels.json`.
- **A claimed-file sibling whose outcome needs an edit is adjudicated
(#4006).** A private repository's observed-data replacement in a file
another group holds goes for adjudication, and the group parks rather
than narrowing, so the replacement is not dropped. This answers
CodeRabbit's finding on this promotion.
- **An unplaced review part showing observed data is held for the
maintainer (#4008).** No agent acknowledges it, and no escalation quotes
its raw text, until the maintainer answers. The agent then posts the
acknowledgment. This answers Copilot's finding on this promotion, and
the finer mechanics are in #4007.
- **Dependabot actions-deps bump (#3951).**

## Verification

- #3945 merged with a clean final local pass, which was attested, and
with every check green. Copilot's seven threads and CodeRabbit's two
were fixed and resolved.
- #3953 merged with a clean final local pass, which was attested, and
with every check green. Its thirteen hosted threads on its first head
were fixed by later commits and resolved.
- #4008 merged with a clean final local pass, which was attested, and
with every check green.
- #4006 merged with a clean final local pass, which was attested,
Copilot recommending approval, and every check green.
- On #3945 and #3953, `scripts/build_dist.py --check` and
`scripts/prose_lint.py` were clean. #3953 also passed the label-payload
tests and the host-block installer tests.

## After the merge

- `history-data` reaches each fleet repository on its next
`repo-config/configure.sh apply`.
- The host-wide block reaches `~/.claude/CLAUDE.md` on the next
agent-safety install.

Closes #3952

🤖 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