Files
openclaw/scripts/github/real-behavior-proof-policy.d.mts
Peter SteinbergerandGitHub 3d1b771035 fix(ci): catch script declaration drift before merge (#110248)
* fix(ci): verify script declaration contracts

* fix(ci): harden declaration export analysis

* fix(ci): cover opaque script module exports

* test(ci): cover cyclic script declaration barrels
2026-07-18 02:54:26 +01:00

39 lines
1.2 KiB
TypeScript

export const PROOF_OVERRIDE_LABEL: "proof: override";
export const PROOF_SUFFICIENT_LABEL: "proof: sufficient";
export const NEEDS_PR_CONTEXT_LABEL: "triage: needs-pr-context";
type PullRequest = Record<string, unknown>;
type Comment = Record<string, unknown>;
type Evaluation = {
status: string;
reason: string;
applies: boolean;
passed: boolean;
missingSections: string[];
};
export function readBoundedGitHubApiJson(
response: Response,
label: string,
maxBytes?: number,
options?: { timeoutMs?: number },
): Promise<unknown>;
export function isMaintainerTeamMember(params?: {
token?: string;
org?: string;
login?: string;
teamSlug?: string;
fetch?: typeof globalThis.fetch;
timeoutMs?: number;
}): Promise<boolean>;
export function hasAuthoredPullRequestSection(heading: string, body?: string): boolean;
export function hasClawSweeperExactHeadProof(params?: {
pullRequest?: PullRequest;
comments?: Comment[];
}): boolean;
export function evaluateClawSweeperExactHeadProof(params?: {
pullRequest?: PullRequest;
comments?: Comment[];
}): Evaluation;
export function evaluatePullRequestContext(params?: { pullRequest?: PullRequest }): Evaluation;
export function labelsForPullRequestContext(evaluation: Evaluation): string[];