Skip to content

Add scoped agent reporting endpoint - #15

Merged
ECWireless merged 1 commit into
mainfrom
feat/agent-reporting-endpoint
Sep 29, 2026
Merged

ECWireless merged 1 commit into
mainfrom
feat/agent-reporting-endpoint

Conversation

@ECWireless

Copy link
Copy Markdown
Owner

Summary

  • add a scoped, read-only historical duration report endpoint
  • aggregate direct entries by stored work date and node with current completion state
  • document the API and cover authorization, validation, boundaries, aggregation, completed tasks, active-timer exclusion, and empty results

Verification

  • ESLint
  • TypeScript and Next.js route generation
  • 113 unit tests
  • 92 PostgreSQL integration tests
  • production build
  • independent technical and security/privacy reviews

Copilot AI balanced review requested due to automatic review settings September 29, 2026 04:23
@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
timetree Ready Ready Preview Sep 29, 2026 4:24am UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The implementation matches the documented contract and includes comprehensive integration coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Adds a scoped, read-only agent API endpoint for historical duration reporting.

Changes:

  • Adds authenticated date-range report routing and aggregation.
  • Documents response semantics, boundaries, and exclusions.
  • Adds integration coverage for validation, authorization, aggregation, scoping, and empty results.
File Description
src/​app/​api/​agent/​v1/​report/​route.ts Implements the authenticated report endpoint.
src/​lib/​server/​agent-api-service.ts Aggregates scoped historical durations.
src/​lib/​agent/​contracts.ts Defines report response types.
tests/​integration/​agent-api.test.ts Covers report behavior and security boundaries.
SPEC.md Specifies the fifth agent API operation.
README.md Documents report usage and semantics.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ECWireless
ECWireless merged commit 9383068 into main Sep 29, 2026
4 checks passed
@ECWireless
ECWireless deleted the feat/agent-reporting-endpoint branch September 29, 2026 04:29

This branch was successfully deployed

1 active deployment
Preview — d7d6b338 Deployed Sep 29, 2026 by vercel[bot]
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.

2 participants