Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions tools/loop-audit/src/auditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ async function findSkills(root: string): Promise<string[]> {

async function detectLoopActivity(root: string): Promise<{ present: boolean; evidence: string[] }> {
const evidence: string[] = [];
const stateCandidates = [...STATE_FILES, 'STATE.md'];
const stateCandidates = [...STATE_FILES];

// 1. Look for "Last run" timestamps or dated entries inside state files (strong real-usage signal)
for (const sf of stateCandidates) {
Expand Down Expand Up @@ -375,9 +375,6 @@ export async function auditProject(target: string): Promise<AuditResult> {
for (const f of SAFETY_FILES) {
if (await fileExists(path.join(root, f))) { safetyDocPresent = true; break; }
}
if (!safetyDocPresent) {
safetyDocPresent = await fileExists(path.join(root, 'docs', 'safety.md'));
}

const mcpPresent = (await Promise.all(MCP_FILES.map(f => fileExists(path.join(root, f))))).some(Boolean) ||
/MCP|mcp server|plugins & connectors/i.test(loopMdContent);
Expand Down
4 changes: 2 additions & 2 deletions tools/mcp-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ server.tool(

const { cost } = pattern;
const mix = level === 'L1'
? { noop: 0.7, report: 0.3, action: 0 }
? { noop: 0.6, report: 0.4, action: 0 }
: level === 'L2'
? { noop: 0.6, report: 0.25, action: 0.15 }
? { noop: 0.5, report: 0.3, action: 0.2 }
: { noop: 0.4, report: 0.35, action: 0.25 };

const realisticPerRun = cost.tokens_noop * mix.noop
Expand Down