Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

LLM Based Assumption

Open dbillp opened this issue 1 year ago • 3 comments

Before opening, please confirm:

Operating System

win32

Kiro Version

0.1.42

Bug Description

The ai agent in a session adds its assumptions as text when working on a file. It has context and the user may be focused on the workflow not what the ai-agent is documenting.

The session closes, the context is gone. Thereafter when again working with those files, the ai-agent reads (what it has assumption based documented) the content and believes in it, even makes it the bases of it understanding. "Dog chasing its tail"

When this happens, it is the basis for all kind of errors in the system.

Steps to Reproduce

Best place to look for. The added text is in readme.md overview.md etc. Read that to see there will be content which is not user input, rather AI generated based on assumptions and the probable source is its access to LLM.

Expected Behavior

The LLM source must be for codework not context or content, because what the user is expecting may be different from what is available.

Conversation ID

1f4c431c-8bdb-43a7-a78d-a2afeab84964 6a086577-22ca-45c2-a61e-22e6d682cf05 d28d3f83-299d-47a5-8c90-d5af6b1fe8f6 a475b0ad-41c7-4263-b4af-8731cfe88ddb b60939c1-edc9-430b-8c59-ae594fe34bdc

Additional Context

The AI making assumption using its LLM KB and adding that to the readable text content, creates trouble. The AI agent writes, it then reads, it believes (when no context), to acts on its own content, this way the user is left high and dry.

dbillp avatar Aug 09 '25 08:08 dbillp

This happened today.

AI Agent Error Analysis Report

Incident Summary An AI agent made significant errors while working on project documentation, resulting in confusion and incorrect content generation. This report analyzes the three critical errors and provides remediation strategies.

Error Analysis Error 1: External Information Addition What Happened: The AI agent added information from general knowledge or external sources that was not present in the project documentation.

Why This Occurred:

AI agents have access to vast external knowledge bases Without strict boundaries, agents fill gaps with "helpful" external information Lack of clear distinction between project-specific and general knowledge Impact:

Introduced content that doesn't belong to the project Created false documentation that appears authoritative Confused project scope and requirements Error 2: Making Assumptions What Happened: The AI agent made assumptions about user intent, requirements, and context without explicit confirmation.

Why This Occurred:

AI agents are trained to be helpful and complete tasks Pattern matching leads to "obvious" conclusions Lack of clarification protocols before proceeding Impact:

Generated content based on incorrect premises Made design decisions that should be human-driven Created work that doesn't match actual requirements Error 3: Not Discussing Understanding What Happened: The AI agent proceeded with implementation without confirming understanding with the human user.

Why This Occurred:

Efficiency-focused behavior prioritizes action over verification Assumption that understanding is correct without validation Missing feedback loops in the workflow Impact:

Compounded errors 1 and 2 Created extensive incorrect work Wasted time and created confusion Root Cause Analysis Primary Cause: Lack of clear boundaries between AI agent capabilities and human decision-making authority.

Contributing Factors:

No mandatory clarification checkpoints Insufficient project-specific knowledge validation Missing human approval gates for design decisions Remediation Strategies Immediate Actions STOP Rule Implementation: AI agents must stop and ask for clarification when encountering:

Missing information in project documentation Ambiguous requirements or scope Design decisions or choices between options Source Validation Protocol: All information must be traceable to:

Existing project documentation Explicit user instructions Previously confirmed decisions Understanding Confirmation Requirement: Before any implementation, AI agents must:

State their understanding explicitly Ask for confirmation of approach Wait for human approval before proceeding Long-term Prevention Clear Role Boundaries AI Agent Role: Code implementation, technical execution, documentation generation Human User Role: Design decisions, requirements clarification, strategic choices Mandatory Checkpoints Understanding confirmation before starting work Scope validation for any new content Design decision escalation to human user Quality Gates Source verification for all information Human approval for structural changes Regular understanding validation during work Implementation Guidelines For AI Agents Never assume - always ask for clarification Only use project-specific information - no external knowledge Confirm understanding before proceeding with any work Escalate design decisions to human users Stop and ask when encountering ambiguity For Human Users Provide explicit requirements and boundaries Confirm AI understanding before allowing work to proceed Make all design decisions explicitly Review AI-generated content for accuracy and scope Establish clear project documentation as the single source of truth Success Metrics Zero external information additions in AI-generated content 100% confirmation rate for understanding before implementation Clear escalation of all design decisions to human users Traceable sources for all information in AI-generated content Conclusion These three errors represent a fundamental breakdown in the AI-human collaboration model. The solution requires strict boundaries, mandatory confirmation protocols, and clear role separation. AI agents excel at implementation but must never make assumptions about design, requirements, or project scope without explicit human guidance.

The key principle: AI agents code, humans decide.

Part of project-rules.md under specs folder, read on start of every new session.

1. Project Philosophy

  • Clarity First: Write code, docs, and communication for future contributors.
  • Consistency Beats Cleverness: Prefer predictable patterns over one-off genius.
  • Documentation is Part of the Product: All significant decisions and structures must be documented.
  • Security is Non-Negotiable: Build with secure defaults.
  • NO ASSUMPTIONS POLICY (STRICT REQUIREMENT): Never make assumptions about user intent, requirements, or context. Always ask for clarification, share your understanding, and confirm before making changes or updates.
  • NO EXTERNAL KNOWLEDGE RULE: Do not add information from general knowledge or external sources that is not explicitly found in the project-reference materials. When project documentation lacks specific details, ask for clarification rather than filling gaps with assumptions.

dbillp avatar Aug 14 '25 16:08 dbillp

Hey, @dbillp and thanks for sharing this feedback on the responses and overall quality returned from Kiro's agents. We're tracking all things tied to model responses/quality/hallucinations in issue #192, so I'll consolidate this into that one. Feel free to leave any additional feedback in the comments, but be sure to follow/upvote that issue as well.

cwomack avatar Aug 27 '25 17:08 cwomack