Release: v2.36.4 - Datacollector Knowledge Sync
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# 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.
|
||||
@@ -15,3 +15,4 @@
|
||||
- Tuned Second Brain Trace retrieval quality: raw notes are excluded by default, curated records are preferred, and trace wording now says selected context rather than overstating actual usage.
|
||||
- Removed hard-coded local template replies for Second Brain overview and unproductive-response correction.
|
||||
- Added progressive answer format guidance: short conclusion first, brief summary second, detailed answer third.
|
||||
- Added No Evidence, No Project Claim rules and Second Brain source type classification to prevent general notes from being treated as project implementation evidence.
|
||||
|
||||
Reference in New Issue
Block a user