feat(project): agent-accessible activity feed (pad project activity + MCP action)#877
Merged
Conversation
… MCP action)
Add a non-streaming, bounded activity query so agents can catch up on
what other agents/users changed since they last worked — the query
counterpart to the live `pad project watch` SSE stream.
- CLI: `pad project activity [--limit N] [--actor user|agent] [--since DATE]`
backed by the existing GET /workspaces/{ws}/activity feed.
- MCP: `pad_project.activity` action (passThrough) + cloud HTTP route.
- Extend the activity endpoint with a server-side `since` date filter
(handler parse + store SQL clause) so limit/actor/since behave
identically across CLI, stdio MCP, and cloud HTTP transports.
- Bump ToolSurfaceVersion 0.11 -> 0.12 (drift guard, README, CLAUDE.md,
instructions.md) and add a SKILL.md querying-guidance line.
Tests: store since-filter test, HTTP dispatch test, catalog action test.
Claude-Session: https://claude.ai/code/session_019knGmnHcx5rrgWXQ8V8DZS
Add activity to readOnlyActions so the serialized MCP tool surface emits read_only:true (missing entries default to write). Spot-check it in tool_surface_test.go to guard against regression. Claude-Session: https://claude.ai/code/session_019knGmnHcx5rrgWXQ8V8DZS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TASK-2018
GET /workspaces/{ws}/activitywas web-UI-only, so agents couldn't ask what OTHER agents did since they last worked. This adds an agent-accessible, non-streaming query form.Changes
pad project activity [--limit N] [--actor user|agent] [--since DATE]— bounded, non-streaming snapshot of the enriched activity feed (item refs, titles, field-level change details). The query counterpart to the livepad project watchSSE stream.pad_project.activityaction (passThrough on local stdio) + cloud HTTP route in the route table.since: extendedGET /workspaces/{ws}/activitywith asince=YYYY-MM-DDfilter (handler parse + store SQLcreated_at >=clause, applied beforeLIMIT) solimit/actor/sincebehave identically across CLI, stdio MCP, and cloud HTTP.actorfilters the stored actor category (user/agent), documented as such.0.11→0.12— updatedversion.go, the drift guard, README, CLAUDE.md, instructions.md, and a SKILL.md querying line.Tests
since-filter test (SQLite + Postgres).Gates
golangci-lint,go test ./...,go build ./cmd/pad,go test ./internal/mcp/...(drift guard), andmake test-pg(store + server) all green. Two codex review rounds → CLEAN.https://claude.ai/code/session_019knGmnHcx5rrgWXQ8V8DZS