Skip to content

Spec - #20

Merged
pankaj4u4m merged 8 commits into
mainfrom
spec
May 16, 2026
Merged

Spec#20
pankaj4u4m merged 8 commits into
mainfrom
spec

Conversation

@pankaj4u4m

Copy link
Copy Markdown
Collaborator

No description provided.

pankaj4u4m and others added 8 commits May 15, 2026 09:02
- Updated test for pricing to ensure no prefix fallback for unknown variants.
- Added normalization tests for model versioning with dot and dash formats.
- Adjusted compact advise logic to require higher utilization percentage for compaction.
- Introduced new tests for model routing recommendations based on task and prior errors.
- Simplified installation script tests and ensured correct paths for MCP binaries.
- Added smoke tests for MCP stdio protocol to validate JSON-RPC message handling.
- Enhanced compact output tests to include new conditions for auto-compaction.
- Improved context compressor tests to preserve recent turns and validate handover packet rendering.
- Updated tests to replace direct command invocations with `tools call` for search, read, edit, and memory operations.
- Adjusted assertions to reflect changes in output format and structure.
- Modified expected tool names in tests to align with new context-based architecture.
- Enhanced session optimization tests to include new savings reporting and routing features.
- Added new tests for session compaction and model routing savings.
- Ensured all tests reflect the transition from task-based to context-based tool handling.
- New package src/atelier/infra/benchmarks/ with publisher.py, markdown_renderer.py
- Jinja2 template templates/post.md.j2 for weekly benchmark posts
- PublishReport dataclass aggregates routing, compact, quality and replay results
- Delta comparison vs prior week (reports/YYYY-W(N-1)/benchmark.json)
- atelier benchmark publish CLI command (--since, --output, --corpus, --dry-run)
- Reports written to reports/YYYY-Www/benchmark.{md,json} + reports/index.json
- 30 passing tests covering all acceptance criteria
- First real publication committed in reports/2026-W20/

Closes spec 05 (Shipped)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Backend (9 new FastAPI routes):
- GET /v1/sessions, /v1/sessions/{id}
- GET /v1/memory/facts, /v1/memory/facts/{fact_id}
- GET /v1/insights, /v1/outcomes/summary, /v1/outcomes/{session_id}
- GET /v1/reports, /v1/reports/{week}
- 26 passing unit tests in tests/core/service/test_api_week2_routes.py

Frontend TypeScript client (frontend/src/api.ts):
- 10 new interfaces: SessionSummary, SessionReport, TopTool, MemoryFact,
  InsightsSessionSummary, OutcomesSummary, Opportunity, InsightsWindow,
  ReportMeta, ReportContent
- 9 new API methods

New pages:
- Sessions.tsx — sortable table of recent sessions, click → detail
- SessionDetail.tsx — full SessionReport (cost breakdown, top tools, savings)
- Outcomes.tsx — route/compact outcome scores with empty state
- Reports.tsx — benchmark report list + react-markdown renderer
- Telemetry.tsx — old Insights content moved here

Updated pages:
- Insights.tsx — rebuilt to show InsightsWindow (top sessions, vendor/tool cost, opportunities)
- Memory.tsx — added cross-vendor tab as default; knowledge blocks as second tab
- App.tsx — new routes (/sessions/:id, /traces, /memory, /insights, /telemetry, /outcomes, /reports); updated NAV_ITEMS

Tests:
- Sessions.test.tsx, SessionDetail.test.tsx, Outcomes.test.tsx, Reports.test.tsx (new)
- Insights.test.tsx, Memory.test.tsx (updated)
- All 27 new/updated tests passing; Watchdogs pre-existing failure unchanged

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ndbox and actionable savings

- Restructured Optimizations page for a cleaner, linear flow (Summary -> Configuration -> Comparison -> History -> Actions -> Evidence).
- Added interactive Policy Sandbox with sliders and switches for tuning quality floor, context trigger, and compaction features.
- Updated candidate grid to display potential savings in green rather than absolute cost.
- Removed redundant CandidateSummaryCard and Task mix sections.
- Refactored backend `_pct_change` to return fractional values for consistent UI display.
- Adjusted `Economy` and `Maximum Saving` presets to use distinct compaction triggers and correct quality penalties.
- Removed unused imports in various test files to clean up the codebase.
- Updated test names for clarity and consistency, such as changing `test_context_reuse_inject_runtime_reasoning` to `test_context_reuse_inject_context`.
- Enhanced error handling in tests by skipping tests when required fixtures or conditions are not met.
- Adjusted assertions in tests to reflect changes in expected outputs and improved test coverage for new features.
- Renamed and refactored functions related to monitoring and watchdogs for better alignment with their functionality.
- Consolidated test logic for better maintainability and readability, particularly in tests related to session parsing and artifact handling.
@pankaj4u4m
pankaj4u4m merged commit ebe7a09 into main May 16, 2026
1 of 6 checks passed
pankaj4u4m added a commit that referenced this pull request Jun 18, 2026
pankaj4u4m added a commit that referenced this pull request Jun 21, 2026
pankaj4u4m added a commit that referenced this pull request Jun 21, 2026
pankaj4u4m added a commit that referenced this pull request Jun 22, 2026
pankaj4u4m added a commit that referenced this pull request Jul 2, 2026
pankaj4u4m added a commit that referenced this pull request Jul 2, 2026
pankaj4u4m added a commit that referenced this pull request Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant