Skip to content

docs(agent): agent-workflows ground truth + comment hygiene#4770

Closed
mmabrouk wants to merge 1 commit into
feat/vercel-messages-protocol-versionfrom
docs/agent-workflows-ground-truth
Closed

docs(agent): agent-workflows ground truth + comment hygiene#4770
mmabrouk wants to merge 1 commit into
feat/vercel-messages-protocol-versionfrom
docs/agent-workflows-ground-truth

Conversation

@mmabrouk

@mmabrouk mmabrouk commented Jun 19, 2026

Copy link
Copy Markdown
Member

This PR is part of a stack. Review bottom-up.

Each PR's diff is only its own delta. Merge from the bottom. This PR's base is #4769 (merge that first).

Context

The agent-workflows design folder grew during an exploratory build. It mixed current facts, dead RFCs, and per-work-package scratch notes, so a reviewer could not tell what the code does today from what we once planned. This PR reorganizes that folder so the design is readable before anyone reads behavior. It also strips stale internal labels from a handful of live code comments. Read this PR first.

The base is feat/vercel-messages-protocol-version, so this diff shows only its own delta. This is slice #1 of the stack defined in pr-stack.md (documentation and comment hygiene).

What this changes

Three groups, no behavior change.

(a) New current-state design pages. ground-truth.md maps every live code surface and lists what is implemented, not implemented, and planned. meeting-alignment.md, implementation-review.md, agent-template.md, protocol.md, triggers.md, and status.md cover alignment, a review of the current build, the planned template object, the wire protocol, trigger plans, and overall status. pr-stack.md proposes the reviewable slicing this PR begins.

(b) Historical material moved under trash/. Old scratch notes and work-package POCs (WP-1 through WP-8, harness-port-redesign, old RFCs, research spikes) move there unchanged. They stay for provenance and explain why decisions were made. They are not current state.

(c) Stale labels removed from live code comments. Five files drop WP-2, WP-6, and WP-8 markers and old harness or file names that no longer match the code. The edits touch comments, docstrings, and YAML comments only. No logic, no env values, no control flow changes.

What to verify

Two checks decide this PR.

First, confirm the five code files change comments only. services/oss/src/agent/app.py, services/oss/src/agent/schemas.py, sdks/python/agenta/sdk/agents/adapters/harnesses.py, and services/agent/README.md reword comments or prose. hosting/docker-compose/ee/docker-compose.dev.yml rewords comments and leaves every key and value untouched. No runtime behavior moves.

Second, confirm ground-truth.md is now the single source of truth. It states that when another design page disagrees with it, that page and the referenced code win. The other pages should defer to it rather than restate or contradict it.

How to review this PR

Read docs/design/agent-workflows/ground-truth.md first. It is the map. Then skim pr-stack.md for the slicing rationale that the rest of the stack follows. Then spot-check that the five code files are comment-only; for example gh pr diff 4770 and confirm the changed lines in those files are comment lines. Treat trash/ as intentional archival. Do not review it line by line.

Make the agent-workflows design folder readable before reviewers look at
behavior, and strip stale work-package labels from live comments.

- Add current-state pages: ground-truth, meeting-alignment,
  implementation-review, pr-stack, agent-template, protocol, triggers, status.
- Move historical scratch/ POC material under trash/ (kept for provenance).
- Remove WP-2/WP-6/WP-8 and "legacy"/old-name references from code comments
  in app.py, schemas.py, harnesses.py, docker-compose.dev.yml, and the runner
  README. No behavior change.
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jun 19, 2026 3:41pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: cadeec04-7b61-44d1-818a-7dab6dbd8a05

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/agent-workflows-ground-truth

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dosubot dosubot Bot added documentation Improvements or additions to documentation size:XXL This PR changes 1000+ lines, ignoring generated files. labels Jun 19, 2026
@mmabrouk

Copy link
Copy Markdown
Member Author

Reviewer guide: where to look

This is a docs and comment-hygiene PR with no behavior change. To review it fast:

  • Start at docs/design/agent-workflows/ground-truth.md. It is the map to read first: a table of every live code surface, plus what is implemented, not implemented, and planned. It declares itself the single source of truth that the other pages defer to.
  • Read docs/design/agent-workflows/pr-stack.md for the slicing rationale. This PR is slice dashboard setup #1 (documentation and comment hygiene); the page lays out the rest of the stacked work and the review order.
  • The five touched code files change comments only. For example, hosting/docker-compose/ee/docker-compose.dev.yml rewords comments (drops WP-2 labels, adds a licensing note on the Daytona snapshot) and leaves every env key and value untouched.
  • services/oss/src/agent/app.py, services/oss/src/agent/schemas.py, sdks/python/agenta/sdk/agents/adapters/harnesses.py, and services/agent/README.md reword comments, a docstring, and prose. No logic moves.
  • Treat trash/ as intentional archival kept for provenance. Do not review it line by line.

environment:
DOCKER_NETWORK_MODE: ${DOCKER_NETWORK_MODE:-bridge}
# Agent workflow (WP-2): reach the harness wrapper sidecar in-network.
# Agent workflow: reach the agent runner sidecar in-network.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment-only: the stale WP-2 label is dropped for plain wording. The env key (AGENTA_AGENT_PI_URL) and its value are unchanged below.

# -full base) so Daytona runs skip the ~150s per-invoke `npm install pi`. We
# ship the builder (poc/build_rivet_snapshot.py), not the snapshot itself: each
# operator builds their own, so we never distribute a Claude-containing image.
# See services/agent/docker/README.md for the licensing posture.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment-only: this adds the licensing rationale for the Daytona snapshot (ship the builder, not a Claude-containing image). No compose key or value changes here.

app = ag.create_app()
# No builtin URI yet: registering the agent as a first-class workflow type
# (`agenta:builtin:agent:v0`) and its interface is WP-6. Here we register the handler
# (`agenta:builtin:agent:v0`) is still future work. Here we register the handler

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment-only: the WP-6 label is replaced with 'still future work'. The registration call below is unchanged.

@mmabrouk

Copy link
Copy Markdown
Member Author

Superseded. Replacing the path-based stack with PRs sliced by functional area showing final code only, so reviewers don't comment on intermediate scaffolding that a later PR rewrites. See the new set.

@mmabrouk mmabrouk closed this Jun 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Preview URL https://gateway-production-864d.up.railway.app/w
Image tag pr-4770-fb38a70
Status Failed
Railway logs Open logs
Logs View workflow run
Updated at 2026-06-19T16:43:33.278Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant