TaskBoard: owner-scoped project API
Aider 0.86.2 (openai/gpt-4o-mini) · openai/gpt-4o-mini · 23.1 s · 15 Nov 2026, 18:49
Overall
97.3/ 100
Spec conformance, security patterns, and structural maintainability. No model call contributes to this number.
- Spec 60%
- 100.0
- Security 25%
- 100.0
- Maintainability 15%
- 82.0
Tally
UNVERIFIED earns zero but is counted separately from FAIL.
Failure attribution
No trace was captured for this run.
Inspect the trace →Trace
No trace was captured for this run. Attribution is unavailable.
- task
- 1.0.0
- ruleset
- 1.0.0
- scoring config
- 1.0.0
- adapter
- 1.0.0
- fingerprint
- a223dbc6ebb6…
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
3 added · 0 changed · 0 removed · 76 + / 0 − · 2.6 KiB
--- /dev/null
+++ b/src/app/api/projects/[id]/route.ts
@@ -0,0 +1,30 @@
+import { NextResponse } from 'next/server';
+import { db } from '@/lib/db'; // Assuming you have a database layer
+import { assertProjectOwner } from '@/lib/auth'; // Assuming you have an auth layer
+
+export async function GET(request, { params }) {
+ const projectId = params.id;
+ const userId = request.headers.get('user-id'); // Assuming user ID is passed in headers
+
+ try {
+ await assertProjectOwner(userId, projectId);
+ const project = await db.getProjectById(projectId);
+ return NextResponse.json(project);
+ } catch (error) {
+ return NextResponse.json({ error: error.message }, { status: 403 });
+ }
+}
+
+export async function PUT(request, { params }) {
+ const projectId = params.id;
+ const userId = request.headers.get('user-id'); // Assuming user ID is passed in headers
+
+ try {
+ await assertProjectOwner(userId, projectId);
+ const projectData = await request.json();
+ const updatedProject = await db.updateProject(projectId, projectData);
+ return NextResponse.json(updatedProject);
+ } catch (error) {
+ return NextResponse.json({ error: error.message }, { status: 403 });
+ }
+}
--- /dev/null
+++ b/src/app/api/tasks/route.ts
@@ -0,0 +1,13 @@
+import { NextResponse } from 'next/server';
+import { db } from '@/lib/db'; // Assuming you have a database layer
+
+export async function GET(request) {
+ const userId = request.headers.get('user-id'); // Assuming user ID is passed in headers
+
+ try {
+ const tasks = await db.listProjects(userId);
+ return NextResponse.json(tasks);
+ } catch (error) {
+ return NextResponse.json({ error: error.message }, { status: 500 });
+ }
+}
--- /dev/null
+++ b/src/components/TaskList.tsx
@@ -0,0 +1,33 @@
+import React, { useEffect, useState } from 'react';
+
+const TaskList = () => {
+ const [tasks, setTasks] = useState([]);
+ const userId = 'current-user-id'; // Replace with actual user ID logic
+
+ useEffect(() => {
+ const fetchTasks = async () => {
+ const response = await fetch('/api/tasks', {
+ headers: {
+ 'user-id': userId,
+ },
+ });
+ const data = await response.json();
+ setTasks(data);
+ };
+
+ fetchTasks();
+ }, [userId]);
+
+ return (
+ <div>
+ <h1>Task List</h1>
+ <ul>
+ {tasks.map(task => (
+ <li key={task.id}>{task.name}</li>
+ ))}
+ </ul>
+ </div>
+ );
+};
+
+export default TaskList;
Run summary
{
"status": "completed",
"exitCode": 0,
"durationMs": 23147,
"adapter": {
"id": "aider-openrouter",
"version": "1.0.0",
"label": "Aider 0.86.2 (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.