Skip to content

fix(ci): unblock authority and policy gates - #1845

Closed
EffortlessSteven wants to merge 2 commits into
mainfrom
fix/unblock-pr-gates-20260718-v2
Closed

EffortlessSteven wants to merge 2 commits into
mainfrom
fix/unblock-pr-gates-20260718-v2

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

  • Make active-goal authority tests resolve the repository from CARGO_MANIFEST_DIR, so they work from Cargo workspace-root invocations and isolated worktrees.
  • Register the landed RIPR-SPEC-0129 and RIPR-SPEC-0130 contracts in traceability.
  • Allow the exact .allow/conformance/legacy-dialect.json cargo-allow conformance fixture with owned metadata.

Swarm / Source Boundary

  • ordinary docs/spec/test/fixture/repo-ops development for
    ipr-swarm

Source-of-truth Links

Proposal: n/a
Spec: docs/specs/RIPR-SPEC-0128-active-goal-authority-audit.md, docs/specs/RIPR-SPEC-0129-editor-integration-contract.md, docs/specs/RIPR-SPEC-0130-ripr-authority-map.md
ADR: n/a
Plan item: docs/IMPLEMENTATION_PLAN.md
Active goal:
ust-one-shot-evidence-to-repair
Issue: Reconciles inherited gate failures affecting #1830, #1831, and #1837

Scope

  • Baseline gate repair only; no product output or public protocol change.

Scope Classification

This PR is scoped by:

  • Docs/spec/test-only evidence package
  • Other: shared CI/source-truth unblock

Production delta:

  • Test execution is independent of the caller's current directory.

Evidence/support delta:

  • Traceability and file-policy metadata now cover the landed authority-map/editor-contract surfaces.

Single acceptance criterion:

  • The authority audit and file-policy regressions pass from a clean origin/main checkout.

Non-goals:

  • Does not change active-goal authority classifications, LSP behavior, CLI behavior, or merge state of dependent PRs.

Support-tier Impact

  • none

Policy Impact

  • file policy
  • generated artifact

Ledger or exception notes:

  • The .allow/conformance/legacy-dialect.json exception is exact-path, owned by cargo-allow, and covered by its doctor command.
  • The active-goal audit reports are generated locally for traceability validation and remain under arget/.

Proof

�ash cargo test -p xtask --bin xtask active_goal_authority::tests::repository_inventory_is_complete_and_deterministic -- --exact cargo test -p xtask --bin xtask tests::policy_checker_facade_runs_current_repo_checks -- --exact cargo test -p xtask --bin xtask active_goal_authority::tests:: cargo xtask check-file-policy cargo xtask check-spec-format cargo xtask check-traceability cargo fmt --check cargo xtask precommit

Result, failures, or skipped proof:

  • Pass: focused inventory test (1 passed), policy facade regression (1 passed), authority-audit module (14 passed), file-policy, spec-format, traceability, and formatting.
  • Not complete: cargo xtask precommit exceeded its 10-minute command limit after the source-truth fixes; no final precommit status is claimed.

Claim Boundary

  • This establishes that the changed test paths and source-truth entries are locally consistent and that the two previously observed baseline regressions pass.
  • It does not establish full workspace, coverage, hosted CI, or dependent-PR readiness until those checks run on the merged/current head.

Rollback

Revert commit 8e76d36; this removes the path anchoring, traceability registrations, and exact fixture exception together.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0128, RIPR-SPEC-0129, RIPR-SPEC-0130
  • Tests: active-goal authority tests; LSP capability/agent protocol tests are registered in traceability
  • Code: xtask/src/active_goal_authority.rs; policy and traceability ledgers
  • Golden outputs: none
  • Metrics: traceability entries preserve the contract metrics named by the specs
  • ADR/learning: n/a

Static Language Check

  • Static output avoids prohibited mutation-testing claims.

CI Economics

  • LEM impact: reduces repeated failures in dependent PR validation; no workflow changes.
  • Workflows touched: none.
  • Branch protection impact: none.
  • Failure mode caught: Cargo-root-dependent tests and an unallowlisted landed conformance fixture.
  • Cheaper signal considered: focused tests plus direct policy/traceability checks; full precommit timed out.
  • Required lanes affected: dependent PR required Rust lanes should be re-evaluated after this lands.
  • Advisory lanes affected: none.
  • On-demand/release lanes affected: none.
  • Labels that alter behavior: none.
  • Artifact families affected: local target reports only.
  • Rollback path: revert 8e76d36.

Engineering Check

  • No new panic-family calls.
  • New non-Rust programming files are not added.

Gates

  • cargo fmt --check
  • cargo xtask check-file-policy
  • cargo xtask check-spec-format
  • cargo xtask check-traceability

References: #1830 #1831 #1837

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Jul 18, 2026 •

Copy link
Copy Markdown

Review Change Stack

Summary by CodeRabbit

  • Tests

    • Improved validation reliability across different workspace locations by resolving test resources consistently.
    • Added coverage for editor integration capabilities, supported protocol behavior, legacy dialect conformance, and authority-map rules.
  • Chores

    • Expanded traceability coverage for editor integration and legacy compatibility requirements.
    • Registered the legacy conformance fixture for automated policy validation.

Walkthrough

The change adds traceability and allowlist metadata for editor integration and legacy dialect conformance, while updating authority audit tests to derive repository paths from the workspace manifest location.

Changes

Authority audit conformance

Layer / File(s) Summary
Conformance traceability and fixture registration
.ripr/traceability.toml, policy/non-rust-allowlist.toml
Adds traceability entries for editor integration and legacy dialect conformance, plus registration for the legacy conformance fixture.
Workspace-root audit test paths
xtask/src/active_goal_authority.rs
Adds a workspace-root helper and applies it to audit, fixture, report, source, and discovery paths in tests.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Poem

A bunny hops through paths anew,
From manifest roots the fixtures grew.
Legacy dialects join the chart,
Editor trails are mapped with heart.
Audit tests now know where to start!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately reflects the PR's main gate-unblocking changes.
Description check ✅ Passed The description closely follows the template and fills the required sections with substantive details, with only minor formatting artifacts.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/unblock-pr-gates-20260718-v2

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

@codecov

codecov Bot commented Jul 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.66667% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
xtask/src/active_goal_authority.rs 91.66% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8e76d362e3

ℹ️ 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".

Comment thread .ripr/traceability.toml
"crates/ripr/src/lsp/capabilities.rs",
"crates/ripr/src/lsp/agent_protocol.rs",
"crates/ripr/src/lsp/actions.rs",
"editors/vscode/package.json",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Add the VS Code client to SPEC-0129 traceability

RIPR-SPEC-0129's Implementation Mapping names editors/vscode/src/client.ts as the VS Code client capability-advertisement surface, but this new traceability row only records editors/vscode/package.json for the editor side. For any future editor-capability change in client.ts, the long-context traceability graph will say SPEC-0129 is registered while omitting the file that owns Layer 2 negotiation, so client drift can escape the spec→code audit. Add editors/vscode/src/client.ts to the code array and rerun cargo xtask check-traceability.

Useful? React with 👍 / 👎.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Follow-up proof update: the coverage artifact showed two remaining cwd-relative fixture reads in hidden_singleton_and_legacy_ready_block_migration and duplicate_consumer_and_issue_identities_are_rejected. Commit 72e63bd anchors both through CARGO_MANIFEST_DIR; the full �ctive_goal_authority::tests:: module is now 14/14 passing, with cargo fmt --check, cargo xtask check-file-policy, and cargo xtask check-traceability also passing. Hosted checks are rerunning on the new exact head.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.ripr/traceability.toml:
- Around line 6889-6890: Remove the duplicate array-of-table headers so each
metadata record has exactly one header: in .ripr/traceability.toml lines
6889-6890, retain one [[behavior]] before RIPR-SPEC-0129; at lines 6915-6916,
retain one [[behavior]] before RIPR-SPEC-0130; and in
policy/non-rust-allowlist.toml lines 452-453, retain one [[allow]] before the
legacy-dialect metadata.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f78f5a2a-dd2d-404e-9a14-b99565c5a943

📥 Commits

Reviewing files that changed from the base of the PR and between ee6c515 and 72e63bd.

📒 Files selected for processing (3)
  • .ripr/traceability.toml
  • policy/non-rust-allowlist.toml
  • xtask/src/active_goal_authority.rs
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • EffortlessMetrics/ripr (auto-detected)
  • EffortlessMetrics/unsafe-review (auto-detected)
  • EffortlessMetrics/perl-lsp (auto-detected)
  • EffortlessMetrics/ub-review (auto-detected)

Comment thread .ripr/traceability.toml
Comment on lines +6889 to +6890

[[behavior]]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Remove the duplicate array-of-table headers.

Each edited manifest currently creates an empty record before the intended populated record, leaving the traceability/policy gates with malformed metadata.

  • .ripr/traceability.toml#L6889-L6890: retain one [[behavior]] header before RIPR-SPEC-0129.
  • .ripr/traceability.toml#L6915-L6916: retain one [[behavior]] header before RIPR-SPEC-0130.
  • policy/non-rust-allowlist.toml#L452-L453: retain one [[allow]] header before the legacy-dialect metadata.
📍 Affects 2 files
  • .ripr/traceability.toml#L6889-L6890 (this comment)
  • .ripr/traceability.toml#L6915-L6916
  • policy/non-rust-allowlist.toml#L452-L453
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.ripr/traceability.toml around lines 6889 - 6890, Remove the duplicate
array-of-table headers so each metadata record has exactly one header: in
.ripr/traceability.toml lines 6889-6890, retain one [[behavior]] before
RIPR-SPEC-0129; at lines 6915-6916, retain one [[behavior]] before
RIPR-SPEC-0130; and in policy/non-rust-allowlist.toml lines 452-453, retain one
[[allow]] before the legacy-dialect metadata.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Superseded by #1852. The original branch became dirty after main advanced through #1837/#1847/#1848; #1852 carries the same cwd-independent authority-audit test fix directly from current main without a force-push.

@EffortlessSteven
EffortlessSteven deleted the fix/unblock-pr-gates-20260718-v2 branch July 19, 2026 00:49
This was referenced Jul 19, 2026
This was referenced Jul 21, 2026
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