mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-06 07:38:47 +01:00
style(server): keep GitHub recovery rationale in the audit
Remove newly added code comments under CONTRIBUTING.md while preserving the complete non-comment TypeScript token streams and all regression assertions. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
9b880d4376
commit
cbe3fbea7c
3 files changed
+21
-7
No files matched your search
@@ -292,3 +292,17 @@ tree identical to the previously validated branch, so already-landed parent
|
|||||||
changes no longer inflate this PR's diff. Fresh current-head CI and review
|
changes no longer inflate this PR's diff. Fresh current-head CI and review
|
||||||
must evaluate the constraint evidence before this slice can merge; an old
|
must evaluate the constraint evidence before this slice can merge; an old
|
||||||
conditional verdict or neutral check is not treated as a pass.
|
conditional verdict or neutral check is not treated as a pass.
|
||||||
|
|
||||||
|
|
||||||
|
## Repository comment rule follow-up
|
||||||
|
|
||||||
|
Apply CONTRIBUTING.md's prohibition on new code comments consistently to this
|
||||||
|
slice too. Seven newly added comment lines are removed: two in the constraint
|
||||||
|
regression and five explaining GitHub pagination guards. The database-constraint
|
||||||
|
evidence above and pagination/partial-window rationale in this audit remain the
|
||||||
|
durable explanation. TypeScript parsing proves both affected files retain the
|
||||||
|
exact non-comment token stream; no recovery predicate, guard, assertion, deadline
|
||||||
|
or transport call changes. The 22-case current recovery acceptance and earlier
|
||||||
|
751-case runtime evidence keep their stated revisions and scope. Fresh head CI
|
||||||
|
and review are still required; neither an old score nor comment-only equivalence
|
||||||
|
by itself satisfies the merge gates.
|
||||||
@@ -16150,8 +16150,8 @@ describeEmbeddedPostgres("chat channel control-plane integration", () => {
|
|||||||
const f = await githubPreIngressRecoveryFixture();
|
const f = await githubPreIngressRecoveryFixture();
|
||||||
const [endpoint] = await readChatEndpointsById(f.endpoint.id);
|
const [endpoint] = await readChatEndpointsById(f.endpoint.id);
|
||||||
await f.makeScanDue();
|
await f.makeScanDue();
|
||||||
// Exercise the actual database boundary without disabling constraints or
|
|
||||||
// inventing a row that supported writers cannot commit.
|
|
||||||
const mutation = mode === "null"
|
const mutation = mode === "null"
|
||||||
? db.execute(sql`update ${chatEndpoints} set assigned_agent_id = null where ${chatEndpoints.id} = ${endpoint.id}`)
|
? db.execute(sql`update ${chatEndpoints} set assigned_agent_id = null where ${chatEndpoints.id} = ${endpoint.id}`)
|
||||||
: mode === "missing"
|
: mode === "missing"
|
||||||
|
|||||||
@@ -1252,9 +1252,9 @@ export function createGitHubWebhookIngress(db: Db, options: GitHubWebhookIngress
|
|||||||
appToken,
|
appToken,
|
||||||
cursor,
|
cursor,
|
||||||
});
|
});
|
||||||
// GitHub's official recovery recipe uses newest-first pagination
|
|
||||||
// and stops at the age floor. Reject observed ordering drift rather
|
|
||||||
// than assuming unseen pages cannot contain a successful sibling.
|
|
||||||
for (const attempt of result.deliveries) {
|
for (const attempt of result.deliveries) {
|
||||||
const timestamp = Date.parse(attempt.deliveredAt);
|
const timestamp = Date.parse(attempt.deliveredAt);
|
||||||
if (timestamp > previousTimestamp)
|
if (timestamp > previousTimestamp)
|
||||||
@@ -1269,8 +1269,8 @@ export function createGitHubWebhookIngress(db: Db, options: GitHubWebhookIngress
|
|||||||
cursor = result.nextCursor;
|
cursor = result.nextCursor;
|
||||||
truncated = page === 2;
|
truncated = page === 2;
|
||||||
}
|
}
|
||||||
// All pages in this time window are needed to rule out a successful
|
|
||||||
// sibling; do not act on a partial window after hitting the work cap.
|
|
||||||
if (truncated) {
|
if (truncated) {
|
||||||
outcome = "history_limit_reached";
|
outcome = "history_limit_reached";
|
||||||
nextDelay = 5 * 60_000;
|
nextDelay = 5 * 60_000;
|
||||||
|
|||||||
Reference in new issue
Block a user