Skip to content

Restore Sentinel authoritative-hostname regression - #219

Merged
sodejm merged 1 commit into
mainfrom
codex/issue-207-preserve-hostname-test
Oct 8, 2026
Merged

sodejm merged 1 commit into
mainfrom
codex/issue-207-preserve-hostname-test

Conversation

@sodejm

@sodejm sodejm commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

Restore the authoritative-reference hostname regression test that was absent from merged PR #217. The test accepts the exact Microsoft documentation hostname and rejects a deceptive suffix, Microsoft text embedded in an unrelated URL path, and Microsoft text in URL user information.

Follow-up to #207 and #217. Validator behavior is unchanged.

Validation

  • Full make check passed in this dedicated worktree on commit 50a1468.
  • Focused Ruff and git diff --check passed.
  • Independent Codex review covered exact commit 50a14682e1961e628a893bf545e25fbb15556c19, found no actionable issues, and reproduced the focused test (1/1 passed).
  • All 17 hosted checks passed on exact commit 50a14682e1961e628a893bf545e25fbb15556c19 (verified 2026-10-06 02:10 UTC).

Impact

This restores one regression test. Documentation already describes the merged behavior, so no documentation change is required. No schema, migration, dependency, or operational behavior changes are included. The test uses synthetic URLs and requires no live Microsoft tenant.

Follow up on #207 and merged PR #217 by restoring coverage for deceptive hostname, path, and user-info URLs.

[skip-docs: test-only restoration; the merged hostname behavior and its documentation are unchanged]
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T02:09:00.149951Z 50a1468 Draft marked ready
ℹ️ 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 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: 50a14682e1

ℹ️ 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 on lines +163 to +164
def test_authoritative_reference_requires_exact_hostname(self) -> None:
self.assertEqual(_reference_record("https://learn.microsoft.com/docs")['kind'], "authoritative")

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 Wire the restored regression into the check suite

At the repository's CI entry point, this test is never collected: .github/workflows/repository-contract.yml invokes make check, while scripts/agent/check.py runs the root tests/ suite and only the attack-path plugin's unit tests, and this plugin's package.json declares no unit-test command. A future regression in deceptive-host classification would therefore leave the normal checks green, so wire this module into the plugin validation or make check path.

AGENTS.md reference: AGENTS.md:L171-L172

Useful? React with 👍 / 👎.

@sodejm
sodejm merged commit a2c244e into main Oct 8, 2026
17 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