Skip to content

Resync the Instruction Set With the Hub - #667

Merged
ptr727 merged 2 commits into
developfrom
chore/resync-hub
Nov 9, 2026
Merged

ptr727 merged 2 commits into
developfrom
chore/resync-hub

Conversation

@ptr727

@ptr727 ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

Part of a hub resync of this repository, per the hub's RESYNC.md section 3 step 1 (the instruction set first). It closes the verbatim section findings of audit run 2026-11-09T16:22:15Z | hub c175d557.

  • Re-vendors the stale AGENTS.md and GOVERNANCE.md verbatim sections with carry.py apply-sections. That carries the two sections the hub added, "Design Before Code" and "Trust Boundaries and Hardening Effort". Every replaced region matched a past hub revision byte for byte, so none held a local addition. The tool asserted that every other region came through unchanged.
  • Brings CODESTYLE.md to the hub's current text and keeps this repo's "NxWitness Conventions" and "NxWitness .NET Conventions" sections. Those are the only content the carried-instruction-file-guard probe found absent from the hub.
  • Aligns the AGENTS.md and GOVERNANCE.md preambles with the hub's wording, keeping the pointers to ARCHITECTURE.md and OPERATIONS.md. AGENTS.md also names CODESTYLE.md as the home for language conventions.
  • Corrects ARCHITECTURE.md "Template Adaptations", which said carried files are taken by full-file replacement. Followed literally, that would delete the repo-local sections above at the next resync.
  • Adds a root .prose-gate.json naming .vscode/settings.json under hub_hosted. The carried "Editor and Tasks" section names that path to forbid it, and this repo once tracked it, so the prose gate's dead-path check flags the re-vendored line. The fleet-side fix is tracked at GOVERNANCE.md Editor and Tasks Names .vscode/settings.json to Forbid It, Which Every Carrier That Ever Deleted That File Reads as a Dead Path ProjectTemplate#1612.

WORKFLOW.md is this repo's own rewrite of the contract rather than a hub copy, so it is reconciled in the workflow-interface pull request rather than overwritten here.

Merge Order

The second of three sibling resync pull requests, all riding the same develop -> main promotion:

  1. Re-Vendor the Carried Skills Tree and Markdown Lint Config #665, the skills tree. This pull request's "Where the Rules Live" routes to decision-triage and away mode, which only that tree carries.
  2. This pull request.
  3. Resync the Intent-Fidelity Carried Files With the Hub #666, the intent files. Its AUDIT.md links to the "Script and Utility File Names" section this CODESTYLE.md adds.

Local Review

Two recorded local-strict-review passes ran. The first raised three findings: the AGENTS.md conventions pointer and the ARCHITECTURE.md claim, both fixed in 939555e, and the copilot-instructions.md gap, which #666 resolves. The second pass, on the current head, raised none.

🤖 Generated with Claude Code

ptr727 and others added 2 commits November 9, 2026 08:28
Re-vendor the stale AGENTS.md and GOVERNANCE.md verbatim sections with
carry.py apply-sections, and carry the two GOVERNANCE.md sections the hub
added since the last resync, Design Before Code and Trust Boundaries and
Hardening Effort.

Bring CODESTYLE.md to the hub's current text while keeping this repo's
two local sections, NxWitness Conventions and NxWitness .NET Conventions.
Align the AGENTS.md and GOVERNANCE.md preambles with the hub's wording,
keeping the pointers to ARCHITECTURE.md and OPERATIONS.md.

Add a .prose-gate.json naming .vscode/settings.json, because the carried
Editor and Tasks section names that path to forbid it, and this repo once
tracked it, so the dead-path check reads the changed line as stale.

Audit run 2026-11-09T16:22:15Z | hub c175d557.

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

The AGENTS.md preamble named only ARCHITECTURE.md and OPERATIONS.md as
the home for this repo's own conventions, while its language conventions
live in CODESTYLE.md. ARCHITECTURE.md said carried files are taken by
full-file replacement, which would delete this repo's own CODESTYLE.md
sections and preambles at the next resync.

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

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e37c9b8 and 939555e.

Files selected for processing: 5

  • .prose-gate.json
  • AGENTS.md
  • ARCHITECTURE.md
  • CODESTYLE.md
  • GOVERNANCE.md
  • 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

@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

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

@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 57.01%. Comparing base (e37c9b8) to head (939555e).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #667   +/-   ##
========================================
  Coverage    57.01%   57.01%           
========================================
  Files           15       15           
  Lines         1375     1375           
  Branches       108      108           
========================================
  Hits           784      784           
  Misses         573      573           
  Partials        18       18           
Flag Coverage Δ
dotnet 57.01% <ø> (ø)

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

A critical documentation contradiction could cause publishers to use ref-scoped concurrency and allow concurrent runs to race over shared Docker tags and releases.

1 open issue
What changed in this PR

This pull request resynchronizes NxWitness’s carried instruction set with the ProjectTemplate hub while preserving repository-specific conventions and documenting section-aware convergence.

Changes:

  • Re-vendors AGENTS.md, GOVERNANCE.md, and CODESTYLE.md with current hub guidance and retained NxWitness-specific sections.
  • Corrects ARCHITECTURE.md to describe section-aware resynchronization instead of full-file replacement.
  • Adds .prose-gate.json for the intentionally absent .vscode/settings.json path.
  • Requires reconciliation of publisher concurrency, VS Code settings, and standalone-script dependency guidance.
File Description
AGENTS.md Updates agent bootstrap, delegation, skill routing, and repository instruction mappings.
GOVERNANCE.md Refreshes governance, workflow, verification, communication, and editor guidance.
CODESTYLE.md Adds current style rules for operations, parsing, naming, and script dependencies.
ARCHITECTURE.md Documents section-aware convergence of carried template content.
.prose-gate.json Declares the intentionally absent .vscode/settings.json path for prose validation.

This pull request requires changes.

Review effort: Lite

Comment thread GOVERNANCE.md Resolved
ptr727 added a commit that referenced this pull request Nov 9, 2026
## Summary

Part of a hub resync of this repository. It closes the `file-naming`
finding of audit run `2026-11-09T16:22:15Z | hub c175d557`, per the
maintainer's decision to rename rather than exempt.

- Renames the eleven `Make/*.sh` scripts to the lowercase-hyphenated
form the hub's `CODESTYLE.md` "Script and Utility File Names" requires,
such as `Build.sh` to `build.sh` and `Down-develop.sh` to
`down-develop.sh`. They are pure renames with mode 100755 kept.
- Updates every call and mention of them in the scripts,
`OPERATIONS.md`, `README.md`, and `WORKFLOW.md`. In `Make/build.sh`, the
human-authored usage comments gain only a `./` prefix, per this repo's
rule to leave human-authored comments as written.
- The prose gate reads each touched line, so the long sentences those
mentions sat in are split, keeping their meaning.

Anyone running the scripts by their old names needs the new ones.
`Make/Test*.yml` and the JSON files keep their names, since the rule
covers scripts only.

This pull request is independent of the other resync pull requests
(#665, #667, #666, and the workflow-interface one), apart from
`WORKFLOW.md`, where it may need a trivial rebase.

## Local Review

Two recorded `local-strict-review` passes ran. The first found one
meaning change in a split `OPERATIONS.md` sentence, fixed in 4f1c99d.
The second, on the current head, found none.

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@ptr727
ptr727 merged commit 0baa0d7 into develop Nov 9, 2026
21 checks passed
@ptr727
ptr727 deleted the chore/resync-hub branch November 9, 2026 17:14
ptr727 added a commit that referenced this pull request Nov 9, 2026
## Summary

Part of a hub resync of this repository, per the hub's `RESYNC.md`
section 3 step 6 (intent files, by hand). It closes the intent
advisories and the `readme` letter of audit run `2026-11-09T16:22:15Z |
hub c175d557`.

- `AUDIT.md` and `.gitattributes`, each byte-identical to a past hub
revision, now carry the hub's current text.
- `.editorconfig` takes the hub's current comments and keeps this repo's
`dotnet_analyzer_diagnostic.severity = suggestion` line under `[*.cs]`.
- `.github/copilot-instructions.md` takes the hub's current runbook,
which adds `pr_review.py attest` and the coverage reading the
re-vendored `pr-review-conduct` relies on. This repo's Disproved Claims
ledger stays empty rather than taking the hub's own entries, per
`copilot-instructions-keeper`.
- The README GitHub pre-release shield gains `filter=*-g*`, per the
hub's `spec/readme-structure.md`. This repo cuts no GitHub prerelease,
so the badge will read "no matching releases found", which that spec
accepts.
- `cspell.json` already carries every hub word plus this repo's own, so
it is unchanged.

The `.editorconfig` and `.gitattributes` comment edits are the hub's
text, hence the `comments` label.

## Merge Order

This is the last of three sibling resync pull requests, all riding the
same `develop -> main` promotion:

1. #665, the skills tree.
2. #667, the instruction-set resync. Its `CODESTYLE.md` carries the
"Script and Utility File Names" section that this pull request's
`AUDIT.md` links to.
3. This pull request.

## Local Review

One recorded `local-strict-review` pass ran against this head. Its
single finding was the `CODESTYLE.md` link dependency above, which the
instruction-set pull request resolves.

🤖 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
## Summary

Part of a hub resync of this repository, per the hub's `RESYNC.md`
section 3 step 3 (verbatim re-vendors). It closes the `tree` and
`.markdownlint-cli2.jsonc` findings of audit run `2026-11-09T16:22:15Z |
hub c175d557`.

- Re-vendors `.github/skills/**` with `carry.py apply`. That refreshes
the stale skills, carries the new `decision-triage` skill, and prunes
`unattended-handoff`, which the hub retired in
ptr727/ProjectTemplate#3735.
- Re-vendors `.markdownlint-cli2.jsonc`, whose hub copy split its
comments into one sentence per line. The comment lines are the hub's
verbatim text, hence the `comments` label.

The tree is byte-identical to the hub's `.github/skills/` at `c175d557`.
The config is byte-identical to the hub's root copy.

## Merge Order

This lands together with two sibling resync pull requests, and all three
ride the same `develop -> main` promotion:

1. This pull request.
2. #667, the instruction-set resync. Its re-vendored `AGENTS.md` "Where
the Rules Live" routes to `decision-triage` and away mode, which only
this tree carries. In turn, this tree removes the `unattended-handoff`
skill the current `AGENTS.md` still names.
3. The intent-files resync (`chore/resync-intent-files`). Its
`.github/copilot-instructions.md` names `pr_review.py attest` and the
coverage reading this tree's `pr-review-conduct` relies on.

## Local Review

One recorded `local-strict-review` pass ran against this head. Its three
findings were all the cross-PR dependencies above, and the two sibling
pull requests resolve them.

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


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Added a guided decision-triage workflow for reviewing open questions,
gathering context, and recording maintainer decisions.
* **Documentation**
* Updated guidance for repository setup, code and documentation
standards, audits, pull requests, releases, and CI to clarify procedures
and verification expectations.
  * Expanded handoff guidance for tracking work and resuming sessions.
* **Removals**
  * Removed the unattended handoff workflow guidance.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

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

## Summary

Part of a hub resync of this repository, per the hub's `RESYNC.md`
section 3 step 4 (interface workflows). It closes the two `interface`
and `concurrency` findings of audit run `2026-11-09T16:22:15Z | hub
c175d557`, per the maintainer's decision to adopt the hub's shape for
both.

- **CI trigger, WORKFLOW.md D1.5.** `test-pull-request.yml` moves from a
push on every branch to `pull_request`, a push to `develop`, and
dispatch. Only a `pull_request` run takes the ruleset-bound name `Check
pull request workflow status job`, through the hub's expression `name:`.
A push or dispatch run posts `Check workflow status job`, so it cannot
post the required context on a pull request's head without that pull
request's gates. The ruleset context string is unchanged.
- The inline change gate diffs a pull request's head against its merge
base with the base branch. It still builds everything on a dispatch, on
a new branch, or when git cannot compute the range.
- The smoke build reads `github.base_ref || github.ref_name`, so a pull
request into `main` (including the `codegen-main` one) checks `main`'s
matrix rows.
- **Publisher concurrency, WORKFLOW.md D7.1.** `publish-release.yml`
takes the hub's ref-scoped group, with the run-id suffix for a push the
plan does not publish. The actor allowlist in the expression matches
`publish-plan-task.yml` at the pinned SHA. `main` and `develop`
publishes push disjoint Docker tags, since only `main` pushes the base
images and readmes.
- This repo's `WORKFLOW.md` and `ARCHITECTURE.md` now describe the new
shape.

Behavior changes worth knowing: a push to a feature branch with no pull
request no longer runs CI, and a push to `main` no longer runs CI. The
publisher's own `validate` job still re-runs the gate on every published
commit.

The carried `GOVERNANCE.md` "Workflow YAML Conventions" and the
`workflow-ci-contract` skill's D7.1 already state the ref-scoped group
in the hub. #667 and #665 carry that text, which also answers the
Copilot thread on #667.

## Local-Pass Finding, Fixed

The opening push's edit budget left one `introduced` finding for this
pull request's loop. It is now fixed:

- `WORKFLOW.md` S14, D7.4, the CI diagram's deletion branch, and the
section-3 summary expected a branch-deletion push to start a CI run
whose jobs skip. Fixed in 9138869: deleting any branch but `develop`
starts no run, and only a `develop` deletion reaches the guard.
- The pass over that fix found the guard's stated rationale wrong. A
deletion run's `github.sha` is not all zeros, since GitHub reverts it to
the default branch's tip. Fixed in c0e3a5d, here and in the workflow
comment that carried the same claim.

## Local Review

Six recorded `local-strict-review` passes ran. Together they drove the
doc fixes in 19f0ea2, 1e452dd, 9138869, and c0e3a5d, and confirmed the
workflow code on every event. The pass on the current head raised none.

🤖 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
## Summary

Promotes a hub resync of this repository to `main`. It brings the
repository from 80 drift findings and 2 letters to 0 defects (audit run
`2026-11-09T17:40:03Z | hub c175d557 | branch override develop`).

- #667 resyncs the instruction set. That is the `AGENTS.md` and
`GOVERNANCE.md` verbatim sections, including the new "Design Before
Code" and "Trust Boundaries and Hardening Effort" sections, and
`CODESTYLE.md` with this repo's own two sections kept.
- #665 re-vendors the carried `.github/skills` tree and
`.markdownlint-cli2.jsonc`.
- #666 resyncs the intent-fidelity files: `AUDIT.md`, `.gitattributes`,
`.editorconfig`, `.github/copilot-instructions.md`, and the README
pre-release shield.
- #669 adopts the hub's CI shape. CI runs on `pull_request`, a `develop`
push, and dispatch, and only a `pull_request` run takes the
ruleset-bound check name. The publisher's concurrency group is
ref-scoped.
- #668 renames the `Make/*.sh` scripts to lowercase-hyphenated names.

## Behavior Changes on Main

- After this merges, a push to `main` no longer runs CI. The publisher's
own `validate` job still gates every publish.
- The publisher's concurrency group becomes ref-scoped. A `main` publish
and a `develop` dispatch no longer queue behind each other, since they
push disjoint tags.
- `Make/*.sh` scripts are invoked by their new lowercase names.

## Remaining Advisories

- The `cspell.json` and `version.json` intent advisories are date hints
only. `cspell.json` already carries every hub word, and `version.json`
differs only in indentation, its floor being the maintainer's.
- `.coderabbit.yaml`, `.pr_agent.toml`, and `.github/agent-policy.json`
read as undeclared, which ptr727/ProjectTemplate#3914 tracks.

## Pre-existing findings, not filed

- `OPERATIONS.md:11`, class `pre-existing`. CodeRabbit notes that
`build.sh` builds each Dockerfile without the `Make/Matrix.json` build
arguments, so the documented `create.sh` then `build.sh` check does not
verify the matrix's multiple version rows. It also notes that
`create.sh` refreshes the matrix first. The sentence predates this
promotion, which only split it.
- `OPERATIONS.md:42`, class `pre-existing`. CodeRabbit notes that
re-running the publisher against an old pin commit would move the
mutable `latest` and `stable` tags back to older product versions, and
that a rebuild with mutable base tags does not restore the original
image. The recovery advice predates this promotion, which only split its
sentence.

🤖 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