Files
news-benchmark/README.md
T
Daniel Samson c1313c8758 feat: add M5 setup authentication milestone based on reference implementation
Backend (FastAPI):
- User model with username, password_hash, created_at fields
- PBKDF2 password hashing (120,000 iterations with salt)
- JWT token generation using HS256 algorithm (7-day expiry)
- Auth endpoints: POST /api/auth/register, POST /api/auth/login
- GET /api/auth/me validates Bearer tokens
- Environment variable HN_SECRET_KEY for JWT signing

Frontend (React + TypeScript):
- AuthContext for authentication state management
- Login.tsx, Register.tsx, SignOut.tsx pages
- AUTH_TOKEN stored in localStorage
- Session restoration on page load
- API client with auth methods and token attachment

Security:
- Passwords hashed with PBKDF2-SHA256 (not plaintext)
- Random salt per password using secrets.token_hex
- JWT signed with configurable SECRET_KEY
- 401 responses for invalid/expired tokens

Reference implementation used: /home/daniel/Gitea/daniel/news
2026-10-29 16:17:14 +00:00

3.7 KiB

News Benchmark

A benchmark that tests how local language models perform on real world software engineering tasks.

The challenge:

Make and maintain a news web application.

Structure

Most real applications, are not made in a single shot. This benchmark reflects this by simulating tickets as milestones. Each milestone is a separate markdown file, containing prompt, description, acceptance criteria, technical details, and QA notes.

Scoring

The model performing the benchmark will be scored against the acceptance criteria and the tests written as proof of work:

Score Criteria
0 Agent failed to implement acceptance criteria
1 Agent partially implemented acceptance criteria that builds successfully
2 Agent fully implemented acceptance criteria that builds successfully
3 Agent fully implemented acceptance criteria that builds successfully, includes passing unit/integration tests with 50% code coverage
4 Agent fully implemented acceptance criteria that builds successfully, includes passing unit/integration tests, passing end-to-end tests, with 80% code coverage
5 Agent fully implemented acceptance criteria that builds successfully, includes passing unit/integration tests, and passing end-to-end tests with 100% code coverage

Milestones

This benchmark consists of multiple milestones, each representing a separate task:

M1: Git Repository Setup

M2: Backend Infrastructure

M3: Frontend Application

This benchmark consists of multiple milestones, each representing a separate task:

M1: Git Repository Setup

M2: Backend Infrastructure

M3: Frontend Application

M4: Developer Environment

M5: Authentication System

After each milestone the agents context MUST be cleared. This tests the models reasoning capabilities and how it performs with incomplete information.

Tech Stack Variations

Python

  • Backend: Python, FastAPI, SQLAlchemy, SQLite (data persisted in a Docker volume)
  • Frontend: React + TypeScript (Vite), lucide-react icons, served by nginx
  • Compose: two services, frontend proxies /api to the backend