Skip to content

fix(security): require canonical evidence timestamp identity - #491

Merged
seonghobae merged 3 commits into
mainfrom
fix/security-evidence-canonical-updated-at
Aug 23, 2026
Merged

fix(security): require canonical evidence timestamp identity#491
seonghobae merged 3 commits into
mainfrom
fix/security-evidence-canonical-updated-at

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

RED boundary

evaluateSecurityEvidence() currently trims updated_at before parsing, so buyer/security evidence with surrounding whitespace can be normalized into an authoritative timestamp instead of preserving exact evidence identity.

RED 8ea42e4e658efdd14421d476f7db6d56bae6d751 adds a focused regression requiring padded updated_at evidence to fail closed while retaining valid ISO date/RFC 3339 acceptance. Keep Draft until the RED is observed, the smallest production repair lands, and unchanged exact-head application/reviewer/Security evidence is terminal-success.

@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@seonghobae, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 43 minutes

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5521cd94-52fe-461b-8581-545956628d3d

📥 Commits

Reviewing files that changed from the base of the PR and between 45f458c and d6b9435.

📒 Files selected for processing (2)
  • scripts/lib/security-checklist.mjs
  • test/security-checklist.test.ts

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

Comment @coderabbitai help to get the list of available commands.

@seonghobae
seonghobae marked this pull request as ready for review August 23, 2026 04:45
@seonghobae
seonghobae merged commit cb6b811 into main Aug 23, 2026
15 of 17 checks passed
@seonghobae
seonghobae deleted the fix/security-evidence-canonical-updated-at branch August 23, 2026 04:45

@devin-ai-integration devin-ai-integration 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.

Devin Review found 1 potential issue.

Open in Devin Review

export function evaluateSecurityEvidence(value) {
const failures = [];
const updatedAt = typeof value?.updated_at === "string" ? value.updated_at.trim() : "";
const updatedAt = typeof value?.updated_at === "string" ? value.updated_at : "";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Behavior change missing from CHANGELOG

Dropping .trim() makes whitespace-padded updated_at evidence fail closed, a behavior change. CONTRIBUTING.md requires a ## Unreleased CHANGELOG entry for every behavior change, and none was added for this security-evidence module.

Prompt for agents
CONTRIBUTING.md requires a CHANGELOG.md ## Unreleased entry for every behavior change. This PR changes evaluateSecurityEvidence in scripts/lib/security-checklist.mjs to reject whitespace-padded updated_at values (fail-closed) by removing .trim(). Add a new bullet under the ## Unreleased section of CHANGELOG.md describing that the security-validation evidence boundary now requires an exact canonical updated_at timestamp identity and rejects surrounding whitespace. Match the Korean prose style of the surrounding CHANGELOG entries.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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