Repository navigation
fix(dir-sim): directory lanes bind by predicate; licence coverage follows the nextLink chain - #2108
Merged
Merged
Conversation
…lows the nextLink chain Codex P2 findings on #2107: DirLanes::lane_of mapped by field position (an SMTP-before-UPN basis read the wrong attribute); coverage counted end pages only, so first + last page with the middle missing read Complete. Now lane_of resolves UPN_IRI / SMTP_IRI and refuses other predicates; build_fetched keeps request URLs and coverage walks the chain; without URLs more than one page is Unverified, which LicenseLanes refuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
AdaWorldAPI
marked this pull request as ready for review
November 16, 2026 14:48
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the two Codex P2 findings on #2107, which arrived just before it was merged. Both are real on
main.1.
DirLanes::lane_ofmapped by field position (#2106's code)Before: a basis listing SMTP before UPN bound without complaint. Field 0 then read the UPN lane, and an unrelated predicate at position 0 or 1 was also accepted.
Now:
lane_ofresolves the field's identity.UPN_IRI(dir:userPrincipalName) andSMTP_IRI(dir:primarySmtp) are new public constants. Any other predicate has no lane, and binding it is refused asUnbound.directory_lanes_bind_by_predicate_not_position. Field 0 of an SMTP-first basis reads SMTP and never UPN;dir:departmentisUnbound.2. Licence coverage counted end pages only
Before: a first page that links onward plus the terminal page, with the middle page missing, read as
Complete.LicenseLanes::overthen served planes in which that page's users were silently absent.Now:
LicensePlanes::build_fetched(view, version, Vec<(request_url, page)>, skus)keeps each page's request URL.coverage()walks the@odata.nextLinkchain: page k+1 is the page whose request URL is page k's link, in any delivery order.Complete;Partial;Ambiguous.build), pages alone can only prove a single page complete, a missing end partial, and two ends ambiguous. More than one page is nowCoverage::Unverified, whichLicenseLanesrefuses like any non-Completestate.Tests (
license_planes.rs):coverage_from_links_alone_never_claims_two_pages_completethe_link_chain_sees_a_missing_middle_page: complete in two delivery orders; a missing middle page is never complete; a missing last page isPartial; a loop isAmbiguous.The
license_dt64fixture now fetches with URLs.Disable run: coverage ignoring the URLs turns the licence tests red.
API note:
buildkeeps its signature. A caller that needsCompletefor more than one page must usebuild_fetched.Checks:
dt64, 299 without, 0 failed.-D warnings: clean with no features, withdt64and withrbac.Generated by Claude Code