1.5 KiB
1.5 KiB
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
canSupportProjectClaimandwarningfields 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.tssrc/utils.tssrc/features/projectChronicle/guardPrompt.tstests/secondBrainTrace.test.tstests/projectChronicleGuardPrompt.test.ts
Verification
./node_modules/.bin/tsc --noEmitnpm 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.