From f8e48533d9d21d3e16687e08094c7ab074e9fcb0 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2026 06:43:37 +0000 Subject: [PATCH] chore: refine fidelity verification constraints\n\n- Update issue creation command with correct labels and title prefix.\n- Update commit message format to exact "[chore: fidelity-pass]".\n- Ensure JSON schemas are staged prior to commit.\n- Reformat output report to use strict technical Markdown structure. Co-authored-by: beginwebdev2002 <102213457+beginwebdev2002@users.noreply.github.com> --- vibe-check-runner.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vibe-check-runner.js b/vibe-check-runner.js index 1ebff4a..bf33069 100644 --- a/vibe-check-runner.js +++ b/vibe-check-runner.js @@ -217,10 +217,11 @@ async function runVibeCheck() { try { execSync(`git add ${file}`); + execSync('git add benchmarks/suites/*.json benchmarks/criteria/*.json 2>/dev/null || true'); // Only commit if there are changes (badge might already be there) const status = execSync('git status --porcelain', { encoding: 'utf-8' }); - if (status.includes(file)) { - execSync(`git commit -m "chore: fidelity-pass for ${file}"`); + if (status.includes(file) || status.includes('benchmarks/')) { + execSync(`git commit -m "[chore: fidelity-pass]"`); execSync(`git push origin HEAD:main`); } else { console.log(`Badge already present in ${file}, skipping commit.`); @@ -236,13 +237,13 @@ async function runVibeCheck() { if (!fs.existsSync(reportDir)) fs.mkdirSync(reportDir, { recursive: true }); const reportPath = path.join(reportDir, `violation-${tech}-${Date.now()}.md`); - const reportContent = `# Critical Violation Report\n\nFile: ${file}\nFidelity Score: ${score}%\nThreshold: 95%\nBreakdown: ${JSON.stringify(breakdown)}\n\nGenerated Code:\n\`\`\`typescript\n${generatedCode}\n\`\`\`\n\nReview the AST rules.`; + const reportContent = `# Critical Violation Report\n\n> [!CAUTION]\n> Fidelity Score dropped below 95%.\n\n**File:** \`${file}\`\n**Fidelity Score:** ${score}%\n**Threshold:** 95%\n\n## Breakdown\n| Metric | Score |\n|---|---|\n| Arch Integrity | ${breakdown.arch} |\n| Type Safety | ${breakdown.type} |\n| Security | ${breakdown.security} |\n| Efficiency | ${breakdown.efficiency} |\n\n## Generated Code\n\`\`\`typescript\n${generatedCode}\n\`\`\`\n\nReview the AST rules.`; fs.writeFileSync(reportPath, reportContent); console.log(`Generated violation report: ${reportPath}`); try { - execSync(`gh issue create --title "Fidelity Gap: ${file}" --body-file ${reportPath}`); + execSync(`gh issue create --title "Critical Issue: Fidelity Gap for ${file}" --label "critical,bug" --body-file ${reportPath}`); console.log(`Created GitHub Issue for ${file}`); } catch (err) { console.error('Failed to create GitHub Issue (gh cli might not be installed or authenticated):', err.message);