Skip to content

Task: Add clear error message for guardrail violations #656

@rjmurillo-bot

Description

@rjmurillo-bot

Task

Add clear error message E_INVESTIGATION_HAS_IMPL for investigation-only guardrail violations.

Parent Story

Implementation

Fail 'E_INVESTIGATION_HAS_IMPL' @"
Investigation skip claimed but staged files contain implementation artifacts:
  $($implementationFiles -join "`n  ")

Investigation sessions may only stage:
  - .agents/sessions/ (session logs)
  - .agents/analysis/ (investigation outputs)
  - .agents/retrospective/ (learnings)
  - .serena/memories/ (memory updates)
  - .agents/security/ (security assessments)

Remove implementation artifacts or obtain QA validation.
"@

Acceptance Criteria

  • Error code is unique and searchable (E_INVESTIGATION_HAS_IMPL)
  • Lists all violating files
  • Documents allowed paths for user reference
  • Provides actionable remediation guidance

Location

scripts/Validate-Session.ps1

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-memoryContext persistence agentagent-qaTesting and verification agentagent-retrospectiveLearning extraction agentagent-securitySecurity assessment agentarea-infrastructureBuild, CI/CD, configurationbugSomething isn't workingenhancementNew feature or requestpriority:P0Critical: Blocks core functionality, security vulnerability, or data losstaskTask-level work item under a story

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions