ms-ai-architect/tests/test-summary-output.sh
Kjell Tore Guttormsen baa2d0220b feat(ultraplan-local): v1.6.0 — /ultraresearch-local deep research command
Add /ultraresearch-local for structured research combining local codebase
analysis with external knowledge via parallel agent swarms. Produces research
briefs with triangulation, confidence ratings, and source quality assessment.

New command: /ultraresearch-local with modes --quick, --local, --external, --fg.
New agents: research-orchestrator (opus), docs-researcher, community-researcher,
security-researcher, contrarian-researcher, gemini-bridge (all sonnet).
New template: research-brief-template.md.

Integration: --research flag in /ultraplan-local accepts pre-built research
briefs (up to 3), enriches the interview and exploration phases. Planning
orchestrator cross-references brief findings during synthesis.

Design principle: Context Engineering — right information to right agent at
right time. Research briefs are structured artifacts in the pipeline:
ultraresearch → brief → ultraplan --research → plan → ultraexecute.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 08:58:35 +02:00

39 lines
1.4 KiB
Bash
Executable file

#!/bin/bash
# test-summary-output.sh — Validate summary-agent output structure
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "$SCRIPT_DIR/lib/e2e-helpers.sh"
FIXTURE="$SCRIPT_DIR/fixtures/summary/fixture.md"
if [ ! -f "$FIXTURE" ]; then
echo "ERROR: Fixture not found: $FIXTURE"
echo "Run: bash tests/capture-fixture.sh to generate fixtures"
exit 1
fi
init_suite "Summary Agent"
# Structure checks
assert_has_section "$FIXTURE" "Sammendrag" "Has summary header"
assert_has_section "$FIXTURE" "Beslutningsnotat" "Has decision note section"
assert_has_section "$FIXTURE" "Nøkkeltall" "Has key figures section"
# Content quality
assert_min_lines "$FIXTURE" 50 "Minimum 50 lines"
assert_min_tables "$FIXTURE" 1 "At least 1 table (key figures)"
assert_has_nok_amounts "$FIXTURE" 3 "At least 3 NOK amounts"
# Encoding
assert_encoding_ok "$FIXTURE" "UTF-8 encoding valid"
assert_no_ascii_approximation "$FIXTURE" "No ASCII approximation of Norwegian chars"
# Cross-references
assert_matches_pattern "$FIXTURE" "S[0-9]" "References other sections (S-numbers)"
assert_matches_pattern "$FIXTURE" "(Sikkerhet|sikkerhet)" "Cross-references security"
assert_matches_pattern "$FIXTURE" "(Kostnad|kostnad|TCO)" "Cross-references cost"
assert_matches_pattern "$FIXTURE" "(Go|NO-GO|anbefaling|Anbefaling)" "Contains recommendation"
assert_matches_pattern "$FIXTURE" "(Fase|fase)\s*[0-9]" "References implementation phases"
print_summary