Skip to content

Qualify the Feature 043 QA edge source handoff - #1363

Merged
brettheap merged 3 commits into
mainfrom
qualify-private-connectivity-qa-edge-handoff
Nov 23, 2026
Merged

brettheap merged 3 commits into
mainfrom
qualify-private-connectivity-qa-edge-handoff

Conversation

@brettheap

@brettheap brettheap commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Record the independently reviewed C-01 source scope for the twelve exact Opensoft-Tenant QA edge paths. This draft contains the OpenSpec handoff and the four reviewed source-material records needed to establish protected reachability. The active Feature 043 definition and all rollout gates remain in force.

Validation

  • Pinned OpenSpec validation added one passing item and retained the preexisting accepted exception.
  • The initial doc-health run found two unregistered coordinator base references. The repair declares both local pins and preserves the Tenant reference's own repository.
  • The committed C-01 evidence files remain byte-identical. The measured pin census and path, locality, and orphan checks cover the repaired declarations.
  • Independently reviewed scope and evidence hashes are preserved byte-for-byte.

Landing order

After this material is reviewed and becomes reachable from protected main, regenerate the receipt against the landed objects. Qualify the receipt, land its exact pin declaration, and then register its protected reference with the Feature 043 verifier. Definition activation and Q1 require their own accepted evidence.

Summary by Sourcery

Establish the staged, independently qualified handoff for the Feature 043 QA edge source receipt without activating the successor definition or changing rollout gates.

New Features:

  • Add a governance change for admitting the independently reviewed Feature 043 QA edge source-scope receipt covering the twelve exact Tenant paths.
  • Define exact protected receipt registration while preserving the active definition, existing evidence, and rollout decisions.

Enhancements:

  • Add precise local reachability classification for QA edge protected-base references and protect the associated evidence paths from unreachable or mismatched substitutions.

Tests:

  • Add regression coverage for exact local and cross-repository pin classification and update measured pin-count expectations.

Chores:

  • Record the OpenSpec change and its reviewed C-01 source-material evidence in the sequencing corpus.

@sourcery-ai

sourcery-ai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Add the reviewed C-01 scope, source decision, independent review, and attestor preflight records that establish the evidence for the handoff.

  • openspec/changes/qualify-private-connectivity-qa-edge-handoff/review/c01-independent-review.json L1-56
  • openspec/changes/qualify-private-connectivity-qa-edge-handoff/review/c01-scope-and-freeze.json L1-168
  • openspec/changes/qualify-private-connectivity-qa-edge-handoff/review/c01-source-decision.json L1-80
  • openspec/changes/qualify-private-connectivity-qa-edge-handoff/review/protected-c01-attestor-preflight.json L1-12

Implementation

Register the two exact QA edge handoff fields as path-scoped pins, requiring local reachability for coordinator references while preserving Tenant repository ownership.

  • scripts/doc_health/pin_class.py L474-496

Configuration

Record the new handoff as an active, depth-zero OpenSpec change in the sequencing corpus ledger.

  • tests/sequenced_after/corpus-ledger.yaml L315

Documentation

Document the source-only admission proposal, its exact registration requirements, protected landing order, and separation from later definition activation.

  • openspec/changes/qualify-private-connectivity-qa-edge-handoff/.openspec.yaml L1-2
  • openspec/changes/qualify-private-connectivity-qa-edge-handoff/design.md L1-72
  • openspec/changes/qualify-private-connectivity-qa-edge-handoff/proposal.md L1-46
  • openspec/changes/qualify-private-connectivity-qa-edge-handoff/specs/private-connectivity-qa-edge-source-admission/spec.md L1-35
  • openspec/changes/qualify-private-connectivity-qa-edge-handoff/tasks.md L1-10

Tests

Cover exact local and cross-repository QA edge pin classification, orphan handling, and the updated measured pin census.

  • tests/doc-health/test_pin_reachability.py L2622-2658
  • tests/doc-health/test_sentinel_vocabulary.py L1204-1206

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T09:28:05.085137Z 2067cb1 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 3cf6063109

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: e3d7e8ddda

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 2067cb1f1b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review November 23, 2026 13:19
@brettheap
brettheap enabled auto-merge November 23, 2026 13:20

@sourcery-ai sourcery-ai Bot 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.

Hey - I've found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="scripts/doc_health/pin_class.py" line_range="482" />
<code_context>
+        key="protected_head", key_form="field",
+        generator="feature 043 QA edge C-01 scope and freeze record",
+        reproduction=MEASURED, locality=REPO_LOCAL, presence=CURRENT,
+        locality_from=("repository",),
+        note="The coordinator and the Tenant each declare a protected head. "
+             "The local pin owes reachability; the Tenant pin keeps its owner.",
</code_context>
<issue_to_address>
**Foreign label skips local reachability**

When a contributor changes the coordinator block’s `repository` value to a non-local spelling while its `protected_head` is unreachable, `site_locality` trusts the `repository` value in the same block as `protected_head`; labeling the coordinator block as foreign makes `verify` return `NOT_APPLICABLE`, so an unreachable coordinator pin is not reported and the caller sees the handoff pass this reachability check.

Bind the coordinator entry to the canonical local repository (or otherwise validate its expected owner) before allowing its locality declaration to bypass local reachability.
</issue_to_address>

### Comment 2
<location path="tests/sequenced_after/corpus-ledger.yaml" line_range="316" />
<code_context>
   qualify-private-headscale-without-sonarcloud: {state: active, class: co-modifier, declares: [authorize-private-connectivity-internal-production, commission-headscale-production], depth: 7, prose: false, moved_by: "#1361", moved_on: "2026-11-22"}
</code_context>
<issue_to_address>
**Ledger bypasses its seeder**

When the new ledger row is added directly rather than emitted by the seeding command, the new hand-authored row bypasses the ledger’s sole permitted `--seed-ledger` rewrite path, so the machine-derived corpus record can be changed without being produced from the live corpus.

Generate the ledger change with `scripts/validate-sequenced-after.py --seed-ledger` and retain the resulting row.
</issue_to_address>

Sourcery assessment

Approval pending. 2 findings to address first.

Blocking findings: scripts/doc_health/pin_class.py:482, tests/sequenced_after/corpus-ledger.yaml:316


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

key="protected_head", key_form="field",
generator="feature 043 QA edge C-01 scope and freeze record",
reproduction=MEASURED, locality=REPO_LOCAL, presence=CURRENT,
locality_from=("repository",),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Foreign label skips local reachability

When a contributor changes the coordinator block’s repository value to a non-local spelling while its protected_head is unreachable, site_locality trusts the repository value in the same block as protected_head; labeling the coordinator block as foreign makes verify return NOT_APPLICABLE, so an unreachable coordinator pin is not reported and the caller sees the handoff pass this reachability check.

Bind the coordinator entry to the canonical local repository (or otherwise validate its expected owner) before allowing its locality declaration to bypass local reachability.

Prompt for AI agents
In `scripts/doc_health/pin_class.py` at line 482:

**Foreign label skips local reachability**

When a contributor changes the coordinator block’s `repository` value to a non-local spelling while its `protected_head` is unreachable, `site_locality` trusts the `repository` value in the same block as `protected_head`; labeling the coordinator block as foreign makes `verify` return `NOT_APPLICABLE`, so an unreachable coordinator pin is not reported and the caller sees the handoff pass this reachability check.

Bind the coordinator entry to the canonical local repository (or otherwise validate its expected owner) before allowing its locality declaration to bypass local reachability.

qualify-avatar-live-voice: {state: active, class: co-modifier, declares: absent, prose: false, moved_by: "#623", moved_on: "2026-09-03"}
qualify-private-connectivity-production: {state: active, class: sole, declares: [add-private-connectivity, implement-private-connectivity-binding, establish-headscale-install-ownership, establish-openxsoft-hosted-connectivity, register-private-connectivity-evidence-pins], depth: 3, prose: false, moved_by: "#1309", moved_on: "2026-11-12"}
qualify-private-connectivity-qa-edge-handoff: {state: active, class: sole, declares: [], depth: 0, prose: false, moved_by: "#1363", moved_on: "2026-11-23"}
qualify-private-headscale-without-sonarcloud: {state: active, class: co-modifier, declares: [authorize-private-connectivity-internal-production, commission-headscale-production], depth: 7, prose: false, moved_by: "#1361", moved_on: "2026-11-22"}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Ledger bypasses its seeder

When the new ledger row is added directly rather than emitted by the seeding command, the new hand-authored row bypasses the ledger’s sole permitted --seed-ledger rewrite path, so the machine-derived corpus record can be changed without being produced from the live corpus.

Generate the ledger change with scripts/validate-sequenced-after.py --seed-ledger and retain the resulting row.

Prompt for AI agents
In `tests/sequenced_after/corpus-ledger.yaml` at line 316:

**Ledger bypasses its seeder**

When the new ledger row is added directly rather than emitted by the seeding command, the new hand-authored row bypasses the ledger’s sole permitted `--seed-ledger` rewrite path, so the machine-derived corpus record can be changed without being produced from the live corpus.

Generate the ledger change with `scripts/validate-sequenced-after.py --seed-ledger` and retain the resulting row.

From AGENTS.md L49:

- `tests/sequenced_after/corpus-ledger.yaml` — the machine-derived per-change sweep ledger, rewritten only by `scripts/validate-sequenced-after.py --seed-ledger`; the required `pytest-suite` fails when it disagrees with the OpenSpec corpus.

@brettheap
brettheap merged commit 01006b2 into main Nov 23, 2026
19 checks passed
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.

1 participant