Repository navigation
fix: resolve code-quality findings that point at real defects - #9157
Conversation
- agents.html linked agent.contact.website with HTML escaping only, so a javascript: URL became a clickable link; the existing (unused) safeHttpsUrl() helper now gates it to https: URLs. - Outreach red-team scenarios spam_within_week and new_member_immediate_dm compared hard-coded constants, so they always passed. They now run the production shouldContact() rules against a synthetic relationship, with a regression test. - Delete static/schemas/validation-example.cjs: it read a schema path (v1/core/product.json) that no longer exists and crashed on start. - committees.html restores the button's original markup on failure instead of a hard-coded copy (originalHtml was scoped inside the try). - Reindent the PropertyCrawler crawl block whose indentation suggested it sat outside the surrounding try. - Add explicit semicolons in two admin-domain-health map callbacks. - Drop conditions that were always true or always false: a dead ternary in the certification reminder, the outreach simulator's shouldContact flag, repeated stripe/authMiddleware/response/forecast guards. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
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. |
bolt-app.ts and addie-chat.ts changed, so their source hashes did. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean code-quality PR with no blocking or medium findings.
Checked against the decision table top-down:
- No critical/high findings (row 1 n/a).
- gated_paths: false (row 2 n/a).
- high_risk is true, but all reasons are
(modified)— no(deleted)(row 3 n/a). The reviewer verified each "dead guard" removal against base source (stripe&& stripeunder theif (!stripe)early return; addie-chat.ts unconditionalresponse.textderef; bolt-app.ts ternary insideif (!certContextText); product-factory.tsforecastassigned in all branches; outreach-simulator.tscontinuebefore removed check). The removed registry-api.tsauthMiddlewarethrows fail closed, not an auth bypass. - No medium findings at all (rows 4, 5, 8 n/a).
- No prior decision (row 6 n/a).
- No no-auto-approve team match (row 7 n/a).
- No
static/schemas/source/**change, so no changeset needed and no schema↔docs/oneOf/immutable-artifact concerns; deleted validation-example.cjs has no other references.
With zero findings and no escalation trigger, this falls through to row 9 = approve.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean subsequent pass with no findings.
This run's delta over the prior clean (approve) pass is a single generated artifact — server/src/addie/generated/tool-surface-inventory.generated.json — with two SHA entries updated (bolt-app.ts, addie-chat.ts) to track source files that already changed and passed review in the prior clean pass. No reviewable logic; the file is a regenerated inventory excluded from the largest-file rule.
Checks:
- No critical/high findings → row 1 does not fire.
- gated_paths: false → row 2 does not fire.
- high_risk is true, but all reasons are
(modified)with no accompanying medium-or-higher finding, and none are(deleted)→ rows 3, 5 do not fire. - No medium findings in any sensitive category → row 4 does not fire.
- Prior decision was
approve(notescalate), and this run surfaces no new findings → row 6 does not fire. - No no-auto-approve team match → row 7 does not fire.
- Zero medium findings → row 8 does not fire.
Falls through to row 9 → approve. The high_risk flag is heuristic; a modified-file match with no reviewer concern is presumed safe.
…extprotocol#9159) No conflicts. server/src/http.ts changed on both sides in separate hunks: this branch's first-use DOMPurify loader and training-agent prewarm, and main's two Stripe product lookups. git's merge keeps both. Resolution ledger: - mechanical: none - semantic: none; the auto-merged file was read, and main adds no SDK barrel imports or eager loads of the first-use modules Check: typecheck passes, and the full server unit suite passes (867 files, 14,707 tests, 31 skipped; main adds no server tests).
Problem
Several GitHub Code Quality findings in adcp point at real defects rather than style:
server/public/agents.htmlescapedagent.contact.websitefor HTML but did not check the scheme, so ajavascript:URL became a clickable link.spam_within_weekandnew_member_immediate_dmcompared hard-coded constants, so they always passed whatevershouldContact()did.static/schemas/validation-example.cjsreadv1/core/product.json, which no longer exists, and crashed on start.server/public/committees.htmlrestored a hard-coded copy of the button's markup after a failed request, becauseoriginalHtmlwas scoped inside thetry.Fix
agents.html: the existing, unusedsafeHttpsUrl()helper now gates the website link tohttps:URLs.outreach-scenarios.ts: the two scenarios run the productionshouldContact()rules against a synthetic relationship.tests/addie/outreach-scenarios.test.tscovers them.validation-example.cjsis deleted.committees.htmlkeeps the button's original markup and restores it on failure.PropertyCrawlercrawl block is reindented, because its indentation suggested it sat outside the surroundingtry;admin-domain-healthmap callbacks get explicit semicolons;shouldContactflag, and repeated stripe,authMiddleware, response and forecast guards.Not changed
The four missing-
awaitfindings inserver/src/db/client.ts(around lines 537 and 673) are deliberate. That code compares promise objects by identity, so addingawaitwould break it. They should be dismissed as false positives.The unused-code removal and the new oxlint rules are in a separate PR, so this one stays reviewable.
Testing
The pre-push storyboard matrix was skipped locally (it takes hours on this machine), so this PR relies on CI for it.
No changeset: no protocol release surface changes.
🤖 Generated with Claude Code