EMERGENT NOTES (2026-02-26)
Documents a discovered semantic inversion where benign hypotheses triggered alerts, and proposes prompt-level mitigations plus a recursive learning loop.
What this file does
Documents a discovered semantic inversion where benign hypotheses triggered alerts, and proposes prompt-level mitigations plus a recursive learning loop.
When to use it
- Debugging false positive alerts from an LLM-based threat detection pipeline
- Designing a feedback loop for human-in-the-loop prompt refinement
- Planning to split a single pipeline into threat and normality insight lanes
- Reviewing how confidence scoring interacts with alert escalation logic
EMERGENT NOTES (2026-02-26)
Context
- We observed repeated alerts for clearly benign hypotheses (for example: "Normal system activity").
- This was unexpected but important: the system is coherent, but optimizing the wrong semantic target in part of the pipeline.
What Happened
- The pipeline treated high hypothesis confidence as alert-worthiness, even when the hypothesis content described non-threat behavior.
- In several cases, proposer output included non-threat labels (for example
none,normal_system_activity) and benign descriptions. - Verifier then "supported" those statements (truth-of-statement), which increased confidence.
- Alerting logic escalated based on confidence/status, not threat polarity.
Confirmed Examples
- Hypothesis
#6503attack_type: none- Description: "Normal system activity"
- Reached
alerted, produced open alert.
- Hypothesis
#6548attack_type: none- Description: "Normal system activity"
- Reached
alerted, produced open critical alert.
- Hypothesis
#6563attack_type: normal_system_activity- Description explicitly normal/routine operations
- Reached
alerted, produced open critical alert.
Key Insight
- Current
confidenceis epistemic ("how true is this statement?"), not adversarial ("how likely is threat?"). - This creates semantic inversion:
- "It is normal activity" can be highly true,
- and then incorrectly promoted to high-confidence alert.
Why This Is Interesting
- The model is producing a stable second class of outputs:
- Threat hypotheses (intended lane)
- Normality/operations hypotheses (emergent lane)
- This appears patterned and repeatable, not random drift.
- Potentially useful if intentionally routed into a separate "normal ops insight" channel.
Current Prompt Snapshot (Proposer KS)
- Live proposer system prompt asks for attack hypotheses, but does not strictly enforce:
- "benign/normal => return []"
- "only allowed threat taxonomy values"
- Runtime prompt template does say "Return [] if no clear attack patterns", but model still emitted benign hypotheses in practice.
Discussion Outcomes
- Team preference: do not hard-block with code guardrails yet; explore implications first.
- Prompt-only mitigation is preferred initially.
- We acknowledged prompt-only changes usually improve behavior, but are not deterministic.
Proposed Prompt-Level Mitigation (No Hard Blocking)
- Strengthen proposer contract:
- Only malicious/adversarial/policy-violating hypotheses in threat lane.
- Benign/normal/maintenance/routine findings must return
[]. - Restrict attack_type to explicit taxonomy values.
- Add explicit negative examples:
- Cron jobs, service restarts, routine daemon logs ->
[].
- Cron jobs, service restarts, routine daemon logs ->
Recursive Learning Idea (Adaptive, Human-First)
- Add a feedback loop that appends learned prompt addenda from reviewed false positives.
- Workflow:
- Auto-flag candidate "no-threat issue" cases.
- Human labels (
false_positive,true_positive,uncertain). - Store concise "lesson" entries.
- Append recent/high-quality lessons to proposer prompt (token-capped).
- Periodically distill lessons to avoid prompt bloat.
Candidate Auto-Flag Signals
- Alerted hypothesis with non-taxonomy attack_type (
none,normal_system_activity, etc.). - Benign-language patterns in description/summary:
- "normal", "routine", "expected", "cron", "service startup", "maintenance".
- High confidence + benign semantics + alert escalation (contradiction signal).
Suggested Longer-Term Architecture
- Split conceptual lanes:
- Threat lane (existing)
- Normality/ops-insight lane (new)
- Route proposer outputs by polarity, not just confidence.
- Keep human-in-loop for truth labels; automate triage, not final truth.
Important Session Decision
- A guardrail patch was prototyped locally and then fully reverted on request.
- No guardrail changes from that experiment remain in the working tree.
Open Questions For Next Session
- Do we formalize a separate Normality Insight artifact/table now, or first do prompt revision only?
- Where should human labeling UI live (Hypothesis page, Alert page, both)?
- How many prompt lessons to include at runtime before context quality degrades?
- Should learning be domain-specific (
netopslessons only fornetops)?
What's inside
Context, 3 confirmed examples, key insight, discussion outcomes, proposed mitigation, recursive learning idea, auto-flag signals, longer-term architecture, open questions, 9 sections total.
Change this for your project
- Replace hypothesis IDs like
#6503with your own alert identifiers - Replace
attack_type: noneandnormal_system_activitywith your own taxonomy values - Replace
netopswith your own domain name if using domain-specific lessons
Where it goes
A prompt collection. Copy the individual prompts you need rather than the whole file.
Worth borrowing
- Auto-flagging contradictions between high confidence and benign semantics as candidate false positives
- Storing human-labeled lessons as concise prompt addenda to iteratively improve model behavior
- Routing proposer outputs by polarity (threat vs normality) rather than only by confidence
Related Documents
starProject
Lists 120+ starred open-source projects across AI, DevOps, Flutter, and web development for discovery and inspiration.
midjourney-expert
Serves as a reference for Midjourney V7/Niji 7 prompting, covering parameters, reference systems, editing tools, and moderation workarounds.
🎣 Hooks & Headlines Generator
Generates 20, 30 headline variations across 10 proven formulas, with psychological reasoning and platform-specific best practices.
Daily Agent Tasks Framework
Gives you a daily structure for assigning strategic work to Claude and development work to Codex, organized by project priority and current sprint.