Skip to content
res_186441aed3a9438ebd0f1b97ae5c167cOrganizer-runcompletedcontext_pressure

TaskBoard: owner-scoped project API

Python agent loop (openai/gpt-4o-mini) · openai/gpt-4o-mini · 9.6 s · 18 Nov 2026, 11:37

Compare

Overall

94.9/ 100

Spec conformance, security patterns, and structural maintainability. No model call contributes to this number.

Spec 60%
95.2
Security 25%
100.0
Maintainability 15%
85.0

Tally

8 passed1 failed0 drifted0 unverified

UNVERIFIED earns zero but is counted separately from FAIL.

Six metrics

exit: completed
Steps
3
model + tool steps
Tool calls
2
0% error rate
Prompt tokens
3,317
provider usage
Completion
453
provider usage
Cost
$0.0007
reported by provider
Duration
9.6s
wall clock

Trace-derived. Tool errors are counted from finished tool calls; token and cost values come from the provider usage recorded by the proxy.

Unattributed

Failure attribution

run passed the threshold; no failure to attribute

Inspect the trace →

Trace

  1. —Run startedpython-openrouter 1.0.0 · run 0
  2. —Chaos injectedcontext_pressure · context truncated; two write steps allowed
  3. 1Model call startedopenai/gpt-4o-mini · messages 54dff538…
  4. 1Model call finished1089 in / 86 out · $0.00014 · stop
  5. 2Model call startedopenai/gpt-4o-mini · messages 6565a3d8…
  6. 2Model call finished1115 in / 266 out · $0.00033 · stop
  7. 2Tool call startedwrite_file · path=src/app/api/projects/[id]/route.ts bytes=1113redacted
  8. 2Tool call finishedwrite_file · ok · ok bytes=1113redacted
  9. 2Step completed1 ms
  10. 3Model call startedopenai/gpt-4o-mini · messages 4e6674a1…
task
1.0.0
ruleset
1.0.0
scoring config
1.0.0
adapter
1.0.0
fingerprint
b4e56a4aa3a3…

Requirement outcomes

Static checks · 9 declared · no produced code executed

  • Every request that reads or mutates a project must verify that the authenticated requester is the project owner. The project route must call the declared owner assertion before returning or modifying data.

    Rule
    text_contains · src/app/api/projects/[id]/route.ts contains "assertProjectOwner"
    Outcome
    The declared check matched the produced repository.

Produced-code diff

2 added · 0 changed · 0 removed · 49 + / 0 − · 1.7 KiB

unified diff
--- /dev/null
+++ b/src/app/api/projects/[id]/route.ts
@@ -0,0 +1,36 @@
+import { NextApiRequest, NextApiResponse } from 'next';
+import { assertProjectOwner } from '../../../middleware/authMiddleware';
+import { db } from '../../../lib/db';
+import { handleError } from '../../../lib/errorHandler';
+
+export default async function handler(req: NextApiRequest, res: NextApiResponse) {
+  const { id } = req.query;
+
+  try {
+    // Verify project ownership
+    await assertProjectOwner(req, id as string);
+
+    if (req.method === 'GET') {
+      const project = await db.getProjectById(id as string);
+      if (!project) {
+        return res.status(404).json({ error: 'Project not found' });
+      }
+      return res.status(200).json(project);
+    }
+
+    if (req.method === 'PUT') {
+      const { name } = req.body;
+      const updatedProject = await db.updateProject(id as string, { name });
+      return res.status(200).json(updatedProject);
+    }
+
+    if (req.method === 'DELETE') {
+      await db.deleteProject(id as string);
+      return res.status(204).end();
+    }
+
+    return res.status(405).json({ error: 'Method not allowed' });
+  } catch (error) {
+    handleError(res, error);
+  }
+}
--- /dev/null
+++ b/src/app/api/tasks/route.ts
@@ -0,0 +1,13 @@
+export { NextResponse } from 'next/server';
+import { db } from '@/lib/db';
+import { authMiddleware } from '@/middleware/authMiddleware';
+
+export async function GET(request: Request) {
+  try {
+    const userId = await authMiddleware(request);
+    const tasks = await db.listProjects(userId);
+    return NextResponse.json(tasks);
+  } catch (error) {
+    return NextResponse.json({ error: 'Failed to fetch tasks' }, { status: 500 });
+  }
+}

Run summary

run record
{
  "status": "completed",
  "exitCode": 0,
  "durationMs": 9587,
  "adapter": {
    "id": "python-openrouter",
    "version": "1.0.0",
    "label": "Python agent loop (openai/gpt-4o-mini)",
    "kind": "harness"
  },
  "model": {
    "provider": "openrouter",
    "name": "openai/gpt-4o-mini",
    "baseUrl": "https://openrouter.ai/api/v1"
  }
}

The score is reproducible from the task, ruleset, scoring configuration, and captured repository text. No model call contributed to it.