惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
博客园 - 【当耐特】
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
Y
Y Combinator Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
MyScale Blog
MyScale Blog
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - brief-hq/dcbench: Benchmark test repo: Next.js p...
hank9 · 2026-05-19 · via Hacker News - Newest: "AI"

Decision Compliance Benchmark (dcbench)

License: MIT Paper

How Product Context Improves AI Coding Agent Decision Compliance by 49%

This repository contains the benchmark suite, test application, and scoring harness from the paper "Context-Augmented Code Generation" by Drew Dillon and Kasyap Varanasi (Brief).

Key Finding

AI coding agents with access to product context achieve 95% decision compliance versus 46% for agents with codebase access alone—a 49 percentage point improvement.

Metric Claude Code Claude Code + Brief Delta
Decision Compliance 19/41 (46%) 39/41 (95%) +49%
Tasks at 100% 2/8 6/8 +4 tasks
Blocking Violations 5 0 -100%
Merge-Ready 25% 100% +75%
Cost per Merge-Ready Task $2.07 $0.66 -68%

What This Benchmark Measures

Decision compliance: the rate at which an AI coding agent follows established product, design, and engineering decisions.

Real engineering teams accumulate decisions over time: which UI components are canonical vs. deprecated, which middleware wrappers are mandatory for compliance, which patterns are preferred. These decisions are often recorded in product tools but rarely appear in the codebase itself.

This creates a fundamental information asymmetry. An agent with codebase access alone must infer team intent from code patterns. When the decision is invisible, the agent defaults to whatever pattern it encounters first.

Repository Structure

├── benchmark/           # Benchmark harness, runner, scorer, and seed data
│   ├── run.ts           # CLI entry point
│   ├── runner.ts        # Task execution with git isolation
│   ├── scorer.ts        # Decision compliance scoring
│   ├── tasks.ts         # 8 benchmark task definitions
│   ├── seed.ts          # Seeds Brief workspace with test data
│   └── seed-data.ts     # Product decisions, personas, signals, competitors
├── src/                 # Prism Analytics - Next.js 14 test application
│   ├── app/             # App router pages and API routes
│   ├── components/      # React UI components
│   └── lib/             # Database access and utilities
└── drizzle.config.ts    # Database configuration

The Test Application: Prism Analytics

A clean-room Next.js 14 application with Drizzle ORM and SQLite containing realistic production patterns:

  • Authentication middleware
  • Pagination helpers
  • Design system components
  • Audit logging utilities

15 product decisions (D-001 through D-015) are seeded across 5 categories: Technical (6), Design (4), Product (2), Process (1), General (1). Plus 3 personas, 5 customer signals, and 3 competitor profiles.

Benchmark Tasks

Task Description Points Gotcha Decisions
TASK-001 CSV Export to Dashboard 6 D-002 (wt 3), D-001 (wt 2), D-003 (wt 1)
TASK-003 Cursor Pagination to Users API 5 D-004 (wt 2), D-010 (wt 3)
TASK-004 Notification Preferences Page 4 D-011 (wt 2), D-008 (wt 2)
TASK-006 Dark Mode Toggle to Settings 4 D-009 (wt 1), D-014 (wt 3)
TASK-008 Bulk Delete for Admin Dashboard 4 D-003 (wt 1), D-002 (wt 3)
TASK-009 Search to API Endpoints 7 D-010 (wt 3), D-004 (wt 2), D-013 (wt 2)
TASK-012 Rate Limiting to API Routes 6 D-010 (wt 3), D-006 (wt 3)
TASK-013 Export Audit Log Viewer 5 D-002 (wt 3), D-005 (wt 2)

What Is a "Gotcha"?

A gotcha is a product decision that a coding agent will naturally get wrong without product context.

Example: TASK-001 asks the agent to "add a CSV export button to the analytics dashboard." The gotchas:

  • D-002 (weight 3, blocking): Export must use withAuditLog() for SOC-2 compliance. The function exists but nothing says it's required.
  • D-001 (weight 2): Use DateRangePicker, not CalendarRange. But CalendarRange is still imported elsewhere—a trap.
  • D-003 (weight 1): Use variant="secondary" (read-only), not variant="primary" (mutations).

An agent scoring 0/6 builds a working CSV export that fails SOC-2 audit, uses a deprecated component, and has incorrect styling. It compiles. It runs. It is wrong.

Configurations

Config A: Claude Code (Baseline)

claude -p <prompt> --output-format json --dangerously-skip-permissions
  • Full codebase access, no product context

Config B: Claude Code + Brief

brief build --confirm <prompt>
  • Product context retrieval via Brief tools
  • Spec generation with acceptance criteria
  • Mid-build consultations

Running the Benchmark

Prerequisites

  • Node.js 18+
  • Claude Code CLI
  • Brief CLI (for Config B)

Setup

git clone https://github.com/brief-hq/dcbench.git
cd dcbench
npm install
cp .env.example .env.local
npm run db:push

Seed Brief Workspace (Config B only)

npx tsx benchmark/seed.ts --api-url https://app.briefhq.com --api-key <your-key>

Run Tasks

# Single task
npx tsx benchmark/run.ts --task TASK-001 --config A

# All tasks, both configs, 3 runs each
npx tsx benchmark/run.ts --all --configs A,B --runs 3

Per-Decision Results

ID Decision Claude Code CC + Brief Visible in Code?
D-001 DateRangePicker 100% 100% Yes
D-002 Audit log (SOC-2) 33% 100% Partial
D-008 PostHog feature flags 0% 100% No
D-014 @t3-oss/env-nextjs 0% 100% No

The pattern: 100% on decisions visible in code, 0-33% on decisions requiring product context.

Scoring

  1. Automated: Regex pattern matching against git diffs
  2. LLM-as-judge: Claude scores PRs on 5 rubrics (0-5 each)
  3. Human verification: Blind review of all PRs

Each task runs 3 times per configuration to account for non-deterministic behavior.

Limitations

  • Decisions designed to create measurable gap; real-world distributions may differ
  • 8 tasks, 1 repository, 1 model family (Claude)
  • Results tied to Brief's architecture

This is a proof-of-concept benchmark, not a definitive field result.

Citation

@article{dillon2025context,
  title={Context-Augmented Code Generation: How Product Context Improves
         AI Coding Agent Decision Compliance by 49\%},
  author={Dillon, Drew and Varanasi, Kasyap},
  year={2026}
}

Links

License

MIT - see LICENSE


Authors: Drew Dillon (drew@briefhq.ai), Kasyap Varanasi (kasyap@briefhq.ai)