feat(server): implement serve CLI subcommand and align Dockerfile entrypoint #1272
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!1272
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/server-serve-entrypoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The
cleveragents server serveCLI subcommand already exists inserver.pyandDockerfile.serveralready usespython -m cleveragentsas its ENTRYPOINT withserver serveas the CMD. This PR adds the missing BDD test coverage to formally verify the entrypoint alignment.Changes
features/k8s_helm_chart.feature: Added two new scenarios:Server Dockerfile uses python -m cleveragents as ENTRYPOINT— verifies the ENTRYPOINT instruction uses the spec-mandatedpython -m cleveragentsformServer Dockerfile CMD uses server serve subcommand— verifies the CMD includes theserverandservetokensfeatures/steps/k8s_helm_chart_steps.py: Added two new step definitions:the ENTRYPOINT should use "{entrypoint}"— parses the ENTRYPOINT line and checks each tokenthe CMD should include "{cmd_a}" and "{cmd_b}"— parses the CMD line and checks both tokensVerification
The
server servecommand is fully implemented insrc/cleveragents/cli/commands/server.pyand is registered under theserverTyper sub-app. The Dockerfile already uses:The k8s
deployment.yamlalready usescommand: ["python", "-m", "cleveragents"]withargs: ["server", "serve", ...].Closes #1088
🔒 Claimed by pr-reviewer-5. Starting independent code review.
python -m cleveragents serve) #1088python -m cleveragents serve) #1088Review claimed by reviewer pool instance reviewer-pool-1. Dispatching independent code review.
Independent Code Review — PR #1272
Summary
This PR adds BDD test coverage for the
Dockerfile.serverentrypoint alignment with the specification. Thecleveragents server serveCLI subcommand already exists inserver.py, and the Dockerfile already usespython -m cleveragentsas ENTRYPOINT withserver serveas CMD. This PR formalizes that contract with two new Behave scenarios.Files Reviewed
features/k8s_helm_chart.feature— 2 new scenarios addedfeatures/steps/k8s_helm_chart_steps.py— 2 new step definitions addedDockerfile.server— verified ENTRYPOINT/CMD alignment (unchanged by this PR)src/cleveragents/cli/commands/server.py— verifiedservesubcommand existsReview Criteria
✅ Specification Alignment
python -m cleveragentsas the server entrypoint. The Dockerfile uses exactly this form. The new tests verify this contract.✅ API Consistency
✅ Test Quality
✅ Correctness
context.dockerfile_contentfrom the existing step.✅ Type Safety
re.Pattern[str].✅ Code Quality
✅ Security
Minor Notes (non-blocking)
Closes #1088instead ofISSUES CLOSED: #1088format — functionally equivalent.Type/Tasklabel andv3.6.0milestone — adding administratively.Verdict: APPROVED ✅
Clean, well-typed BDD test additions that verify the Dockerfile entrypoint alignment with the specification.
python -m cleveragents serve) #1088