Skip to content

Fix importer self-test after BiometricPrompt doc link fix - #2028

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-fix-biometric-importer-self-test
Nov 29, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-fix-biometric-importer-self-test

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: f23f7ef6cd14c3c460d33037bb38cee98c623f4e

Dimension Assessment Rationale
Change confidence 9.5/10 ↑ Test-only change retains both defaults and all three complete safety conditions.
↑ Full importer self-test passes; Gemini review found no issues.
Diagnosis confidence 10/10 ↑ Reproduced failure after #1997 changed the live XML method label from # to a dot; the guard preserved those bytes correctly.
Evidence fit 10/10 ↑ Correcting only the expected XML label removes the reported failure; source fixtures and future-source expectations still require #.

Cause

#1997 (81f1249, R117) changed BiometricPrompt#authenticate(...) to BiometricPrompt.authenticate(...) in the existing Builder remarks. TestBiometricAllowedAuthenticatorsRemarksGuard loads that live XML, but its preservation assertion still required the official source's # label.

Fix

Pass the expected complete availability sentence to AssertCompleteContract. The preserved live-XML case requires the dot label; the future-source placeholder import case still requires the unchanged official # label. Both defaults, availability, credential and key-generation conditions remain required. No production logic or documentation XML changes.

Checks

  • dotnet run tools\importer.cs -- --self-test: PASS.
  • Full isolated self-test: PASS.
  • git diff --check: PASS.
  • Rubber-duck review explicitly used gemini-4-argon, confirmed in local assistant_usage_events; no findings.

A separate synthetic repair-fixture failure occurred with this Windows checkout's CRLF raw strings. The same source with LF line endings passes; the repo-root run also passes after local newline normalization. This adds no further Git diff and is not a campaign XML change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 29, 2026 01:18
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 29, 2026 01:18

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.

🟢 Approval recommended

There are no active review issues for the importer self-test expectation update.

No open issues 🎉

What changed in this PR

Updates the importer self-test to match the documentation label corrected in #1997, without changing production logic or documentation XML.

Changes:

  • Parameterizes the expected availability sentence in the contract assertion.
  • Expects the dotted method label in preserved XML while retaining the official # label for future-source imports.
  • Keeps assertions for both defaults and all three safety conditions.
File Description
tools/​importer.cs Adjusts self-test expectations to distinguish preserved XML from imported source text.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed the test-only importer change. The preserved live BiometricPrompt XML is correctly checked using the dot-form method label, while future-source imports retain the # form. Both local-function callers are updated, and the production importer behavior is unchanged.

No blocking issues found in the changed assertions and their input/output integration. Static review only; I did not execute the importer or its self-tests.

@jonathanpeppers
jonathanpeppers merged commit 849a9e0 into main Nov 29, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-fix-biometric-importer-self-test branch November 29, 2026 02:06
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.

3 participants