Skip to content
res_0e08688f699640daadace37c12a771e1Samplecompleted

TaskBoard: owner-scoped project API

Fake fixture (taskboard/regressed) · no model (fake baseline) · 17 ms · 15 Nov 2026, 15:38

Compare
Capped

A critical failure limited the overall score to 59.9.

  • Critical spec failure — overall capped at 59.9

Overall

59.9/ 100

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

Spec 60%
52.4
Security 25%
100.0
Maintainability 15%
90.0

Tally

7 passed2 failed0 drifted0 unverified

UNVERIFIED earns zero but is counted separately from FAIL.

Unattributed

Failure attribution

No trace was captured for this run.

Inspect the 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
13d40b8d80a9…

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 did not match the produced repository.

Produced-code diff

4 added · 1 changed · 0 removed · 112 + / 1 − · 2.9 KiB

unified diff
--- a/package.json
+++ b/package.json
@@ -1,9 +1,9 @@
 {
+  "name": "taskboard-regressed",
-  "name": "taskboard-compliant",
   "private": true,
   "dependencies": {
     "next": "^16.0.0",
     "react": "^19.0.0",
     "react-dom": "^19.0.0"
   }
 }
--- /dev/null
+++ b/src/app/api/projects/[id]/route.ts
@@ -0,0 +1,30 @@
+import { NextResponse } from "next/server";
+
+import { db } from "../../../../lib/db";
+
+type RouteContext = {
+  params: Promise<{ id: string }>;
+};
+
+export async function GET(_request: Request, context: RouteContext) {
+  const { id } = await context.params;
+  const project = await db.getProject(id);
+
+  if (!project) {
+    return NextResponse.json({ error: "Project not found" }, { status: 404 });
+  }
+
+  return NextResponse.json({ project });
+}
+
+export async function PUT(request: Request, context: RouteContext) {
+  const { id } = await context.params;
+  const body = await request.json();
+  const project = await db.updateProject(id, body);
+
+  if (!project) {
+    return NextResponse.json({ error: "Project not found" }, { status: 404 });
+  }
+
+  return NextResponse.json({ project });
+}
--- /dev/null
+++ b/src/app/api/tasks/route.ts
@@ -0,0 +1,16 @@
+import { NextResponse } from "next/server";
+
+import { db } from "../../../lib/db";
+
+export async function GET() {
+  const projects = await db.listProjects();
+  const tasks = projects.flatMap((project) => [
+    {
+      id: `${project.id}-task-1`,
+      projectId: project.id,
+      title: `Review ${project.name}`,
+    },
+  ]);
+
+  return NextResponse.json({ tasks });
+}
--- /dev/null
+++ b/src/components/TaskList.tsx
@@ -0,0 +1,47 @@
+"use client";
+
+import { useEffect, useState } from "react";
+
+import { db } from "../lib/db";
+
+type Task = {
+  id: string;
+  title: string;
+};
+
+export function TaskList() {
+  const [tasks, setTasks] = useState<Task[]>([]);
+
+  useEffect(() => {
+    let active = true;
+
+    void db.listProjects().then((projects) => {
+      if (!active) {
+        return;
+      }
+
+      setTasks(
+        projects.map((project) => ({
+          id: `${project.id}-task-1`,
+          title: `Review ${project.name}`,
+        })),
+      );
+    });
+
+    return () => {
+      active = false;
+    };
+  }, []);
+
+  if (tasks.length === 0) {
+    return <p>No tasks yet.</p>;
+  }
+
+  return (
+    <ul>
+      {tasks.map((task) => (
+        <li key={task.id}>{task.title}</li>
+      ))}
+    </ul>
+  );
+}
--- /dev/null
+++ b/src/lib/auth.ts
@@ -0,0 +1,18 @@
+import { db } from "./db";
+import { getSession } from "./session";
+
+// Synthetic fixture: no real auth.
+export async function requireSession() {
+  return getSession();
+}
+
+export async function assertProjectOwner(
+  session: { userId: string },
+  projectId: string,
+): Promise<void> {
+  const project = await db.getProject(projectId);
+
+  if (!project || project.ownerId !== session.userId) {
+    throw new Error("Forbidden");
+  }
+}

Run summary

run record
{
  "status": "completed",
  "exitCode": 0,
  "durationMs": 17,
  "adapter": {
    "id": "fake",
    "version": "1.0.0",
    "label": "Fake fixture (taskboard/regressed)",
    "kind": "baseline"
  },
  "model": null
}

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