Remove repo reports and add recurrence guard
This commit is contained in:
@@ -20,6 +20,7 @@ import {
|
||||
} from "../internal/agent/runtime.mjs";
|
||||
import { activeReportLifecycle } from "../internal/dev-report-lifecycle.mjs";
|
||||
import { DEV_ENDPOINT, DEV_FRONTEND_ENDPOINT, ENVIRONMENT_DEV } from "../internal/protocol/index.mjs";
|
||||
import { ensureNotRepoReportsPath, tempReportPath } from "./src/report-paths.mjs";
|
||||
import {
|
||||
collectD601K3sNativeEvidence,
|
||||
collectPublicEntrypoints,
|
||||
@@ -35,7 +36,7 @@ import {
|
||||
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const fixedNow = () => "2026-05-22T00:00:00.000Z";
|
||||
const requiredDocs = ["docs/dev-acceptance-matrix.md", "docs/dev-m4-agent-loop.md"];
|
||||
const reportPath = "reports/dev-gate/dev-m4-agent-loop.json";
|
||||
const reportPath = tempReportPath("dev-m4-agent-loop.json");
|
||||
const preflightCommand = "node scripts/dev-m4-agent-loop-smoke.mjs --live --confirm-dev --confirmed-non-production";
|
||||
const dryRunCommand = "node scripts/dev-m4-agent-loop-smoke.mjs --dry-run";
|
||||
|
||||
@@ -64,7 +65,7 @@ async function readText(relativePath) {
|
||||
}
|
||||
|
||||
async function writeJSON(relativePath, value) {
|
||||
const absolutePath = path.join(repoRoot, relativePath);
|
||||
const absolutePath = ensureNotRepoReportsPath(repoRoot, relativePath, "--report");
|
||||
await mkdir(path.dirname(absolutePath), { recursive: true });
|
||||
await writeFile(absolutePath, `${JSON.stringify(value, null, 2)}\n`, "utf8");
|
||||
}
|
||||
@@ -275,7 +276,7 @@ function buildReport(
|
||||
|
||||
return {
|
||||
$schema: "https://hwlab.pikastech.local/schemas/dev-gate-report.schema.json",
|
||||
$id: "https://hwlab.pikastech.local/reports/dev-gate/dev-m4-agent-loop.json",
|
||||
$id: "https://hwlab.pikastech.local/dev-m4-agent-loop.json",
|
||||
reportVersion: "v1",
|
||||
issue: "pikasTech/HWLAB#37",
|
||||
taskId: "dev-m4-agent-loop",
|
||||
|
||||
Reference in New Issue
Block a user