description:'Read-only pre-commit review of the current git diff across every DevPlace quality dimension, with adversarial verification of each finding before it is reported',
phases:[
{title:'Diff',detail:'collect the changed files and a summary of the diff'},
{title:'Review',detail:'each dimension reviews the diff in parallel'},
{title:'Verify',detail:'adversarially refute each candidate finding against source'},
?`git diff ${base}... and git diff (unstaged) and git status --porcelain`
:`git status --porcelain, git diff, and git diff --staged`
constdiff=awaitagent(
`Read-only. Collect the set of changed files in this repository for review using ${diffCmd}. Keep only existing files under devplacepy/ and tests/. Return the file list and a one-paragraph summary of what changed. Do not modify anything.`,
log('No changed files under devplacepy/ or tests/; nothing to review.')
return{files:[],confirmed:[]}
}
constfileList=files.join('\n')
log(`Reviewing ${files.length} changed file(s) across ${DIMENSIONS.length} dimensions`)
constreviewed=awaitpipeline(
DIMENSIONS,
(dimension)=>
agent(
`Operate in REPORT mode (read-only). Review ONLY the changes in these files for your single dimension. Read the actual diff (git diff -- <file>) and enough surrounding context to judge intent. Confirm each finding against the source.\n\nChanged files:\n${fileList}`,
`You are an independent skeptic, not the agent that raised this finding. A "${dimension.key}"-dimension maintenance agent flagged the candidate below in this diff; your job is solely to REFUTE it from a fresh, unbiased read of the source. Open the file, read the changed region and its context, and decide if it is a genuine violation introduced by this diff. Rule it out (isReal=false) if it is a contract identifier, DATA rather than prose, vendored, pre-existing and untouched by this diff, or already correct under a known exemption. When uncertain, default to isReal=false.\n\nFinding:\n- file: ${finding.file}\n- line: ${finding.line==null?'unspecified':finding.line}\n- severity: ${finding.severity}\n- rule: ${finding.rule}\n- message: ${finding.message}`,