Skip to content

feat: add a Temporal workflow skeleton - #9

Closed
tbhb-dev-agent-pull-requests[bot] wants to merge 1 commit into
mainfrom
agent/build-temporal-workflow-skeleton
Closed

tbhb-dev-agent-pull-requests[bot] wants to merge 1 commit into
mainfrom
agent/build-temporal-workflow-skeleton

Conversation

@tbhb-dev-agent-pull-requests

Copy link
Copy Markdown

Why

Graph needs a working Temporal workflow and worker before later indexing work can build on them. The test must prove an activity runs through the pinned development server.

Behavior change

Adds an echo activity, a ping workflow that calls it once, and an asynchronous run_worker(address, task_queue) entry. The worker connects only to its supplied address and runs until cancelled. Adds temporalio>=1.36.1 and its lockfile entries. The pytest test verifies the echoed result against an in-memory server on a free loopback port. It checks cluster health before running the worker and reaps the server after cancelling the worker.

Decisions

Chose the server's documented frontend.enableServerVersionCheck=false setting to turn off outbound version checks. The server binds to 127.0.0.1 and runs headless.

Deviations from the task

The pytest macro's underlying rule rejects external repository files in data with the error only files of the main repository can be checked. Its supported path_tools argument supplies the pinned //:temporal binary through PATH instead, with its executable name passed in env.

Risk

Tech debt: the pytest dev-server test is skipped on Windows (same gap as PR #5). See #5.

Tech debt: the free-port scan can race another process, matching the existing helper.

Security debt: this workflow turns off the workflow sandbox because the existing plugin package imports Click, whose gettext call fails sandbox validation on Python 3.15. Workflow code must remain deterministic.

Verification

  • uv lock with uv 0.13.7: passed. Selected Temporal SDK 1.36.1, released November 14.
  • bazelisk test //...: all 27 targets passed. Pytest reports two passing tests and 100% branch coverage.
  • bazelisk run //:format: passed. git diff --exit-code and git diff --check passed afterward.
  • bazelisk test //:ruff_test //:pyrefly_test //:deptry_test //:pylint_test //:vulture_test //:complexipy_test //:bandit_test //:pytest_test: all eight passed.
  • bazelisk test //:pip_audit_test: passed.
  • The requested private-identifier scan passed without matches.
  • tbhbdev alpha pr check: passed. 137 added code lines (limit 400), 169 added raw lines (limit 1,500).

The pytest log reports:

Started Temporal dev server; cluster is healthy
Ping workflow echoed its input through the activity
Stopped and reaped Temporal dev server
Required test coverage of 100% reached. Total coverage: 100.00%

Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.1-sol;session=sha-256-64:dfcf609669cdcf62;surface=exec
@tbhb-agent

Copy link
Copy Markdown
Collaborator

Closed on the basis that its GitHub author is the bot account app/tbhb-dev-agent-pull-requests and it has no Opened-by line.

Superseded by #10: same commit tree on agent/temporal-workflow-skeleton, the branch named in the task

Generated-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-haiku-5-5;session=sha-256-64:c0f9bb806fecbdfc;subagent=sha-256-64:093f04a7d32cf99a;surface=cli

@tbhb-agent tbhb-agent closed this Nov 25, 2026
@tbhb-agent
tbhb-agent deleted the agent/build-temporal-workflow-skeleton branch November 25, 2026 07:44
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