Skip to content

[codex] add collaborator dev container context - #83193

Closed
liorsbg wants to merge 1 commit into
openclaw:mainfrom
liorsbg:codex/collaborator-readiness
Closed

liorsbg wants to merge 1 commit into
openclaw:mainfrom
liorsbg:codex/collaborator-readiness

Conversation

@liorsbg

@liorsbg liorsbg commented May 17, 2026

Copy link
Copy Markdown

Summary

  • Add a single-service source development container for collaborator onboarding.
  • Add project context and a dated collaborator-readiness plan with current state, setup commands, and open decisions.
  • Document source-container setup separately from the production Docker Gateway flow, including quiet setup and explicit local token retrieval.

Verification

  • pnpm docs:list
  • pnpm format:docs:check
  • pnpm docs:check-mdx
  • pnpm lint:docs
  • pnpm docs:check-i18n-glossary
  • bash -n scripts/docker/dev-setup.sh scripts/docker/dev-token.sh
  • docker compose -f docker-compose.dev.yml config --services
  • git diff --check origin/main...HEAD
  • docker compose -f docker-compose.dev.yml run --rm openclaw-dev scripts/docker/dev-setup.sh
  • docker compose -f docker-compose.dev.yml run --rm openclaw-dev scripts/docker/dev-token.sh (verified by 64-character length only; token not printed)
  • docker compose -f docker-compose.dev.yml run --rm --service-ports openclaw-dev pnpm gateway:watch:raw
  • curl -sS -o /tmp/openclaw-dev-gateway-smoke.html -w '%{http_code} %{content_type}\n' http://127.0.0.1:18789/ -> 200 text/html; charset=utf-8

Behavior addressed: Collaborators get a documented, single-container source development workflow plus repo context/spec handoff files.
Real environment tested: Local Docker/Compose on this macOS worktree using the openclaw-dev service with fresh named volumes and ignored .local/ state.
Exact steps or command run after this patch: See Verification commands above.
Evidence after fix: Compose reports only openclaw-dev; fresh volume setup completed; token helper returned a 64-character token length without printing the token; Gateway reached ready and host curl returned 200 text/html; charset=utf-8.
Observed result after fix: The source checkout can be installed and the Gateway can be reached from the host through the single compose service.
What was not tested: Broad pnpm check*/test suites were not run in this Codex worktree; final clean Codex review closeout was attempted but nested review terminated before a summary after prior accepted findings were fixed.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts docker Docker and sandbox tooling triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. size: M labels May 17, 2026
@clawsweeper

clawsweeper Bot commented May 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

Workflow note: Future ClawSweeper reviews update this same comment in place.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by maintainer comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors can comment @clawsweeper re-review or @clawsweeper re-run on their own open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

Summary
The PR adds a source-development Docker image, Compose service, VS Code devcontainer, setup/token helper scripts, labeler coverage, and collaborator setup docs/context.

Reproducibility: not applicable. This PR adds a new collaborator source-container workflow rather than fixing a reported bug. The PR body does provide after-patch Docker/Compose proof for the new workflow.

Real behavior proof
Sufficient (live_output): The PR body includes after-patch Docker/Compose commands, token-helper verification, gateway startup, and host curl output showing the dev gateway was reachable.

Next step before merge
This is a fresh draft feature with an overlapping active devcontainer PR, so the next action is maintainer Docker/docs direction rather than an automated repair.

Security
Cleared: The diff adds Docker execution surface and token handling, but uses a pinned Node base digest, ignored local state, and explicit token printing with no concrete supply-chain regression found.

Review details

Best possible solution:

Choose one maintainer-approved collaborator container path, reconcile it with #62503, and keep the source-container docs/scripts aligned with the existing Docker security and config contracts.

Do we have a high-confidence way to reproduce the issue?

Not applicable; this PR adds a new collaborator source-container workflow rather than fixing a reported bug. The PR body does provide after-patch Docker/Compose proof for the new workflow.

Is this the best way to solve the issue?

Unclear; the dedicated Compose-backed source container is a plausible solution, but the active overlap with #62503 means maintainers should choose or consolidate the design before merge.

Acceptance criteria:

  • pnpm docs:list
  • pnpm format:docs:check
  • pnpm docs:check-mdx
  • pnpm lint:docs
  • pnpm docs:check-i18n-glossary

What I checked:

Likely related people:

  • steipete: Recent history shows work on Dockerfile base/auth behavior and source setup docs, including exposed-startup auth and setup workflow changes adjacent to this PR's Docker/auth surface. (role: recent Docker/gateway-auth contributor; confidence: high; commits: abb06c6e4047, 031c3b22deef; files: Dockerfile, docs/start/setup.md, docs/install/docker.md)
  • obviyus: Recent Dockerfile and Docker setup commits touch packaged Docker behavior and auth-profile mounting adjacent to the new dev-container setup. (role: recent Docker packaging contributor; confidence: medium; commits: c3e31466392e; files: Dockerfile, scripts/docker/setup.sh, docker-compose.yml)
  • brokemac79: Recent Docker setup history includes container-side config path pinning, directly adjacent to this PR's dev-container config path and setup script behavior. (role: recent Docker setup contributor; confidence: medium; commits: 3cf296185f22; files: docker-compose.yml, scripts/docker/setup.sh)
  • sallyom: Recent Dockerfile history includes Docker build frontend behavior, relevant to reviewing the new Dockerfile.dev build shape. (role: recent Dockerfile contributor; confidence: medium; commits: e1795256d5a2; files: Dockerfile, Dockerfile.dev)

Remaining risk / open question:

  • The PR overlaps feat: add devcontainer for cross-platform development #62503, which could leave maintainers with competing devcontainer/source-container designs unless one direction is chosen.
  • The PR is still draft and its body explicitly says broad pnpm check*/test suites and final review closeout were not completed.

Codex review notes: model gpt-5.5, reasoning high; reviewed against af62fd45cdbf.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. impact:security Security boundary, credential, authz, sandbox, or sensitive-data risk. labels May 17, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 17, 2026
@liorsbg

liorsbg commented May 17, 2026

Copy link
Copy Markdown
Author

Closing this draft because it was opened against the upstream OpenClaw repository by mistake. The collaborator handoff work is being moved to a new private repository instead.

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

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation impact:security Security boundary, credential, authz, sandbox, or sensitive-data risk. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. scripts Repository scripts size: M triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant