Skip to content

docs(census): CEN-01 crosswalk integrity checker, evidence timestamps, 3572 count (#9500) - #10678

Merged
dezren39 merged 1 commit into
mainfrom
queue/16095-9500-cen-01-crosswalk
Nov 16, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/16095-9500-cen-01-crosswalk

Conversation

@dezren39

@dezren39 dezren39 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

CEN-01 — requirement/source-occurrence crosswalk integrity (#9500, task 16095)

Implements the CEN-01 slice (marker pmo-9196:CEN-01) now that its gate PR #9225 has merged.

Added

  • census/check_requirements_crosswalk.py (--check / --self-test): validates the 389 semantic IDs occurring exactly once and matching inventory/requirements.jsonl; every occurrence citation resolving to the inventory/dispositions.jsonl ledger with matching source file + line; group/alias edges (child_requirement_ids, duplicate_of); the exact 8-value status vocabulary; modality preservation; full evidence objects (pin/path/symbol/lines/test/timestamp at the census pin) on verified existing / partially implemented rows; real design anchors (file + heading slug); the 215-key command inventory and slice map (identical key sets, no wildcard, slice assignments consistent). Occurrences no crosswalk row cites are emitted as explicit per-class unmapped rows (metadata 69, heading 52, formatting 25, candidate_link 1 — S-066, which carries semantic_refs).
  • census/test_requirements_crosswalk.py: 3 tests, including the named oracle test_requirements_crosswalk_rejects_missing_duplicate_occurrence_and_unresolved_design_anchor, the remaining negative classes (wrong span, status typo, partial row without evidence, missing group child, wildcard mapping), and a live-data pass over the real ledgers.

Fixed (found by the new checker on its first run)

  • 8 partially implemented rows (C-R106, C-R107, C-R109, C-R133, C-R138, C-R142, C-R144, C-R155) had existing_evidence.timestamp: null; set to the census snapshot value 2026-11-13T04:00Z census snapshot (code pinned to SHA) their pinned evidence was taken at.
  • requirements-crosswalk.md stated 3,571 disposition rows in two places; the ledger carries 3,572 since the recovered S-066 occurrence (see design(pm-orchestration): Requirement/source-occurrence crosswalk integrity #9500). Corrected, with a validation note naming the checker.

Verification

  • check_requirements_crosswalk.py --check → OK (389 IDs, 3572 dispositions, 215 command keys); before the data fixes it failed with exactly the 9 defects above.
  • python3 -m unittest test_requirements_crosswalk -v → 3 passed (oracle test listed by exact name in the run).
  • check_requirements_crosswalk.py --self-test → OK.
  • inventory/check_inventory.py --check and inventory/check_requirements.py --check: outputs byte-identical to their pre-existing failures on clean main at f05ec2b (source-hash/segmentation drift in the inventory snapshot) — no regression from this change; that drift is inventory-slice scope, not CEN-01's.

No production adoption, migration, deployment, or live acceptance is claimed.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 16, 2026 10:24
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T10:25:02.514159Z
We couldn’t complete this review. Comment @codex review to try again.
a5efde0 PR opened
ℹ️ 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

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 16, 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 55 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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9af8e851-7bfe-4573-a43c-878f7da1e537
Commits

Reviewing files that changed from the base of the PR and between f05ec2b and a5efde0.

Files selected for processing: 4

  • doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/census/check_requirements_crosswalk.py
  • doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/census/requirements-crosswalk.jsonl
  • doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/census/requirements-crosswalk.md
  • doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/census/test_requirements_crosswalk.py
  • 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

@dezren39

Copy link
Copy Markdown
Member Author

Codex disposition (task 16095, lane code-a): the Codex code review on this PR failed to run — Codex usage limits reached (review summary, commit a5efde0) — and posted zero inline findings. There is no undispositioned Codex finding; merging under the standing criteria (checker + tests verified on the laptop worktree, diff matches the CEN-01 packet scope).

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