# Development Log: No Evidence, No Project Claim

## Purpose
Prevent hallucinated project implementation claims when Second Brain provides only general architecture notes.

## Problem
The assistant could read general notes such as `API Gateway.md` and then describe API Gateway as if it were implemented in the current project. General concept references are useful, but they are not evidence of the current project state.

## Implementation Summary
- Added source type classification for Second Brain Trace documents:
  - Project Evidence
  - User Decision
  - General Knowledge
  - Reference Only
- Added `canSupportProjectClaim` and `warning` fields to trace documents.
- Updated trace context to include No Evidence, No Project Claim rules.
- Added grounding guidance based on project evidence and grounding score.
- Updated base system prompt to separate confirmed facts, inferences, general knowledge, and verification needs.
- Updated Chronicle Guard prompt with the same evidence policy.
- Added tests for General Knowledge notes such as API Gateway.

## Changed Files
- `src/features/secondBrainTrace.ts`
- `src/utils.ts`
- `src/features/projectChronicle/guardPrompt.ts`
- `tests/secondBrainTrace.test.ts`
- `tests/projectChronicleGuardPrompt.test.ts`

## Verification
- `./node_modules/.bin/tsc --noEmit`
- `npm run compile`
- `./node_modules/.bin/jest --runInBand`

## Result
The assistant should now treat general architecture notes as concepts only, not as proof that the current project implements those concepts.
