Skip to content

feat: integrate CrewAI automation workspace - #1

Merged
justgithubaccount merged 3 commits into
mainfrom
feat/crewai-automation
Oct 29, 2026
Merged

justgithubaccount merged 3 commits into
mainfrom
feat/crewai-automation

Conversation

@justgithubaccount

@justgithubaccount justgithubaccount commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Outcome

Add an Automation workspace for the existing CrewAI API in the same UI, without merging backend services.

  • Independent flows/agents/health discovery and honest loading/empty/error/stale states.
  • Manual named or server-default flow execution with namespace, optional app name and JSON context.
  • Fresh acknowledgement for each submission; pending guard, no automatic POST retry, preserved form on failure.
  • Final answer, step agent/task/output/duration, trace ID and metadata from the actual response contract.
  • Separate server-only CREWAI_API_URL / CREWAI_API_TIMEOUT_MS and fixed /api/automation proxy. Shared transport preserves Chat API behavior.
  • Reject hidden namespace/app-name overrides, arbitrary routes/URLs, browser credential forwarding and cross-origin writes.
  • Responsive navigation and result inspection at 320/390/1440px; documentation and CI integration check.

Verification

  • Clean install; baseline 11 unit tests passed before changes.
  • npm run check: strict types, zero-warning ESLint, 21 unit/contract tests.
  • npm run build, npm run format:check, npm audit --audit-level=high: PASS; audit reports zero vulnerabilities.
  • PLAYWRIGHT_CHANNEL=chrome npm run test:e2e: 19 scenarios PASS with no retries.
  • PLAYWRIGHT_CHANNEL=chrome npm run test:integration:automation: real Next proxy → explicit loopback HTTP fixture PASS; target/context, no browser cookie forwarding, origin/override guards verified.
  • Desktop/mobile screenshots opened and inspected; images remain outside source.
  • Fresh-context review of 647663b3f05c1a6e913eeb3f76778705c8c9abf1..2852b17530f7eac756c3e4b6a3e35b1ef8f7837b: no Critical/Important/Minor change requests; reviewer independently ran all 21 unit tests. This is code evidence, not human approval. Final exact-head CI is linked on this PR.
  • Exact-head CI run 40862809271: SUCCESS, including 21 unit tests, 19 Chromium scenarios and the real-proxy integration check.

Review evidence limits / decisions

  • Real CrewAI execution, infrastructure effects and provider readiness remain UNKNOWN: they are excluded from this implementation; a connected runtime must be tested separately.
  • The reviewer checked local code, not live PR state. The executor separately checked exact head/base, CI and discussions. There are no discussion/review comments at handoff; this evidence must be refreshed if the head moves.
  • Browser/build/audit were run by the executor and repeated in CI, not independently re-run by the reviewer. This does not rule out shared coverage blind spots.
  • No deferred code-review findings. No merge/deployment authorization inferred.

Handoff state

Base: 647663b3f05c1a6e913eeb3f76778705c8c9abf1.
Head: 2852b17530f7eac756c3e4b6a3e35b1ef8f7837b.
Branch: feat/crewai-automation. Main is unchanged; PR is not merged.
Drift: local_repo=NONE_DETECTED, routed_artifacts=NOT_CHECKED (not used by this UI task), live_runtime=UNKNOWN (no real CrewAI connected).
branch_merge_status: NOT_AUDITED.

Boundaries

Verified CrewAI contract: 0835d3102555e6cef4fb700c56969ecddc6f6ddd, src/auto_k8s_pilot/api.py / flow_runner.py.

No backend mutation, real flow execution, paid LLM call, cloud resource, merge or deployment. Tests use explicit fixtures, never production fallback. The current API has no persisted run history, live step updates or cancellation; the UI does not invent them. A timeout or leaving the page does not cancel upstream work. An actual CrewAI runtime must be connected separately; source-public does not mean runtime-public.

Design: docs/superpowers/specs/2026-10-29-automation-design.md.
Evidence: docs/automation-validation.md.

@justgithubaccount
justgithubaccount marked this pull request as ready for review October 29, 2026 11:08
@justgithubaccount
justgithubaccount merged commit 17fe253 into main Oct 29, 2026
1 check passed
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