Skip to content

Docs/v7.61 deployment guide#22

Merged
dsecurity49 merged 7 commits into
mainfrom
docs/v7.61-deployment-guide
May 25, 2026
Merged

Docs/v7.61 deployment guide#22
dsecurity49 merged 7 commits into
mainfrom
docs/v7.61-deployment-guide

Conversation

@dsecurity49
Copy link
Copy Markdown
Owner

@dsecurity49 dsecurity49 commented May 25, 2026

Summary by CodeRabbit

  • Documentation

    • Rewrote README for a clearer publish→claim→fulfill flow; expanded quickstart with Python SDK and curl/bash examples, job visibility guidance, auth modes, routing hints, and lifecycle notes.
    • Added operational guidance: capacity/performance tables, benchmarks, deployment recommendations, safe limits, env var and API reference updates.
  • Documentation

    • Clarified benchmark/run guidance in CONTRIBUTING.
  • Tests

    • Tests now lazily load credentials and better distribute jobs across publishers.

Review Change Stack

- Added deployment capacity and Docker benchmarks to README
- Promoted SPEC.md status to Stable with operational characteristics
- Added benchmarking instructions to CONTRIBUTING.md
- Documented worker deployment scenarios in Examples/README.md
- Added deployment security guidelines to SECURITY.md
- Added Enterprise Stress Suite (stest_ui.py) to tests/
- Scrubbed legacy URLs from example worker scripts
Updated README to improve clarity and organization.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 25, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e8888aca-b80b-4de8-811e-af5223a5f3c0

📥 Commits

Reviewing files that changed from the base of the PR and between 86fccd8 and 63d5612.

📒 Files selected for processing (1)
  • tests/stest_ui.py

📝 Walkthrough

Walkthrough

Docs: README reorganized around publish→claim→fulfill with expanded quickstarts, job visibility, smart routing, and extensive operational/benchmark/reference content. CONTRIBUTING benchmark numbers updated. Tests: stress-suite now lazily loads API key and evenly splits publisher jobs across publishers.

Changes

README Documentation Restructure & Operational Guidance

Layer / File(s) Summary
Core Concepts & Authentication Restructure
README.md
Opening sections rewritten with clearer top-level flow (publish → claim → fulfill), condensed "How it works", updated differentiators, and restructured authentication around standard and strict client modes.
Quickstart Workflows & Job Visibility
README.md
Job Visibility clarifies private (default) vs public semantics and warns about public jobs. Adds "Quickstart (curl / Bash)" with publish (priority/delay), claim, and fulfill examples, auto-requeue/backoff and Retry-After guidance, and smart routing headers (X-Worker-ID, X-Worker-Capabilities).
Features, Architecture & Setup Documentation
README.md
Expands example use cases, features, architecture guarantees, limitations, and updates setup instructions through Docker entrypoint.
Operational Guidance & Deployment Reference
README.md
Adds deployment capacity/performance tables, benchmark/profile imagery, deployment recommendations, safe operating limits, environment variables reference (strict/HMAC toggle), and API reference including /fail/<id> and /admin/cleanup.
CONTRIBUTING: Benchmark updates
CONTRIBUTING.md
Replaces prior benchmark bullets with updated throughput and P99 latency numbers and run metadata.

Test harness: stest_ui.py

Layer / File(s) Summary
Lazy API key loader & worker usage
tests/stest_ui.py
Adds _API_KEY_CACHE and ensure_api_key() to fetch API key on first use; publisher_worker and runtime_worker now accept api_key: str and construct IntentClient with that value.
Publisher job splitting in run_profile
tests/stest_ui.py
Distributes total config["jobs"] across publishers using base = jobs // publishers plus remainder (+1 for first rem publishers), computing per-publisher job counts and passing the shared api_key into each publisher task.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 Hops through the changelog bright,
Docs polished in the morning light;
Keys cached lazy, publishers fair,
Jobs split neat with careful care.
Cheers from the rabbit — hop, repair!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Docs/v7.61 deployment guide' is directly related to the main changes: the PR significantly expands README.md with extensive operational guidance including deployment capacity/performance tables, deployment recommendations, and safe operating limits.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/v7.61-deployment-guide

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

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Around line 370-386: The performance numbers in the README table under "Recent
stress tests on Docker/Render" must be reconciled with the CHANGELOG v7.61 entry
and the CONTRIBUTING "HIGH" section: determine whether these are separate runs
or the same run; if one is the canonical v7.61 validation, update the README
table, the CHANGELOG v7.61 entry, and the CONTRIBUTING HIGH section to use that
canonical set of metrics (success %, P99 latency, j/s) so they match exactly, or
if they are different runs, label each with a unique run-id/timestamp and short
descriptor (e.g., "v7.61 validation run" vs "internal stress run") and add the
run metadata (command, environment, date) to each location for clarity. Ensure
you edit the README table rows, the CHANGELOG v7.61 paragraph, and the
CONTRIBUTING HIGH section consistently and include the chosen canonical
identifier or run metadata.

In `@tests/stest_ui.py`:
- Around line 605-620: The current computation jobs_per_pub = max(1,
config["jobs"] // config["publishers"]) drops any remainder and can
under-publish; change the submit loop that builds publish_futures to compute
base = config["jobs"] // config["publishers"] and rem = config["jobs"] %
config["publishers"] and pass base + (1 if i < rem else 0) as the jobs argument
to publisher_worker for each publisher index i (use the loop index in the list
comprehension or switch to an explicit for-loop) so the remainder jobs are
distributed among the first rem publishers and the total published equals
config["jobs"].
- Around line 748-749: The -h short flag for the high-intensity option conflicts
with the standard help flag; update the argument registration in
group.add_argument (currently using "-h", "--high") to use a non-conflicting
short option such as "-H" or drop the short option and keep only "--high",
update the help string if needed, and search for any callers/tests that parse or
invoke "-h"/"--high" (or expect the old short flag) and update them to the new
flag to avoid breaking usage.
- Line 74: The module currently calls get_api_key() at import time by assigning
API_KEY = get_api_key(), causing failures during import/help; change this to
lazy loading by removing the module-level API_KEY and add an ensure_api_key()
function (or reuse an existing one) that calls get_api_key() at runtime, then
update callers such as run_profile(), publisher_worker and runtime_worker to
pass api_key=ensure_api_key() when constructing IntentClient (e.g.,
IntentClient(base_url=BASE_URL, api_key=ensure_api_key(), timeout=30)) so the
key is only fetched when actually needed.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 55ad7c56-ae11-401c-90c7-7a3631bd1103

📥 Commits

Reviewing files that changed from the base of the PR and between e2673d8 and 93387a6.

⛔ Files ignored due to path filters (4)
  • assets/benchmarks/intent_bus_timeline_high.png is excluded by !**/*.png
  • assets/benchmarks/intent_bus_timeline_low.png is excluded by !**/*.png
  • assets/benchmarks/intent_bus_timeline_medium.png is excluded by !**/*.png
  • assets/benchmarks/throughput.png is excluded by !**/*.png
📒 Files selected for processing (10)
  • CHANGELOG.md
  • CONTRIBUTING.md
  • Examples/README.md
  • Examples/discord_worker.sh
  • README.md
  • SECURITY.md
  • SPEC.md
  • logger.sh
  • tests/stest_ui.py
  • worker.sh

Comment thread README.md
Comment thread tests/stest_ui.py Outdated
Comment thread tests/stest_ui.py Outdated
Comment thread tests/stest_ui.py Outdated
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 25, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 3 file(s) based on 3 unresolved review comments.

Files modified:

  • CONTRIBUTING.md
  • README.md
  • tests/stest_ui.py

Commit: 86fccd8b88843c154acf7c3a97c06b2dfa78fd42

The changes have been pushed to the docs/v7.61-deployment-guide branch.

Time taken: 3m 13s

Fixed 3 file(s) based on 3 unresolved review comments.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/stest_ui.py`:
- Line 410: The test can hang if ensure_api_key() raises SystemExit when called
inside publisher_worker/runtime_worker because the orchestration loop waits for
publish_futures and metrics["published"] may remain 0; fix by failing fast: call
ensure_api_key() once before spawning threads/futures and store its result in a
local variable, then pass that api_key into IntentClient(...) in
publisher_worker and runtime_worker (referencing IntentClient, ensure_api_key,
publisher_worker, runtime_worker, and the orchestration loop that checks
metrics["published"]); this guarantees the process exits immediately on
missing/empty ~/.apikey instead of delaying termination.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: cb0bcb03-64f5-4420-9cff-0192d39b7415

📥 Commits

Reviewing files that changed from the base of the PR and between d0b4d96 and 86fccd8.

📒 Files selected for processing (3)
  • CONTRIBUTING.md
  • README.md
  • tests/stest_ui.py
✅ Files skipped from review due to trivial changes (1)
  • CONTRIBUTING.md

Comment thread tests/stest_ui.py Outdated
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 25, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 1 file(s) based on 1 unresolved review comment.

Files modified:

  • tests/stest_ui.py

Commit: 63d561236a72bf359b8eafc630bbb705ed6b8f19

The changes have been pushed to the docs/v7.61-deployment-guide branch.

Time taken: 2m 45s

Fixed 1 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
@dsecurity49 dsecurity49 merged commit 1b76888 into main May 25, 2026
7 checks passed
@dsecurity49 dsecurity49 deleted the docs/v7.61-deployment-guide branch May 25, 2026 15:19
@coderabbitai coderabbitai Bot mentioned this pull request May 26, 2026
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