Skip to content

Add Bravos AI docs and browser-based review queue plan#100

Draft
Jacksondr5 wants to merge 4 commits intomainfrom
t3code/browser-import-scraping
Draft

Add Bravos AI docs and browser-based review queue plan#100
Jacksondr5 wants to merge 4 commits intomainfrom
t3code/browser-import-scraping

Conversation

@Jacksondr5
Copy link
Copy Markdown
Owner

@Jacksondr5 Jacksondr5 commented Apr 13, 2026

Summary

  • Added evergreen Bravos AI product docs under docs/product/bravos-ai/ and linked them from the product docs index.
  • Documented the browser-based Bravos review queue design and implementation plan, centered on Browserbase-backed ingestion and /imports/bravos.
  • Removed the legacy bulkUpdateTrades Convex mutation and updated the trade/import UI toward the new Bravos workflow.
  • Added new Bravos page, helper, and test-id scaffolding in the app and E2E layers.
  • Removed obsolete chart URL import tests and related import plumbing.

Testing

  • Not run
  • Documentation-only and scaffolding changes were reviewed from the diff; no automated validation was executed in this branch

Summary by CodeRabbit

  • Documentation
    • Added design documentation for Bravos browser-based review workflow, detailing approval-first architecture, connection management, and scheduled ingestion processes.
    • Added Bravos AI product documentation covering system architecture, knowledge base design, knowledge representation model, and future roadmap across V1, V1.5, and V2+ phases.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
trade-tracker Ready Ready Preview, Comment Apr 13, 2026 2:44am

Request Review

@Jacksondr5 Jacksondr5 marked this pull request as draft April 13, 2026 02:37
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 13, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3f00cc5b-a28b-4503-881f-95553a71304e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

This PR adds comprehensive documentation for a new Bravos browser-based review queue workflow and Bravos AI product features. The changes include design specifications and implementation roadmaps for the browser-based ingestion pipeline using Browserbase, along with product documentation covering the Bravos AI system architecture, knowledge representation model, knowledge base design, and future roadmap phases.

Changes

Cohort / File(s) Summary
Browser-based Review Queue
docs/plans/2026-04-11-bravos-browser-review-queue-design.md, docs/plans/2026-04-11-bravos-browser-review-queue-implementation.md
Added design specification and implementation roadmap for Browserbase-backed Bravos workflow, including connection state management, scheduled/manual crawls via Convex cron, approval-first review items, and detailed task breakdown with test expectations.
Bravos AI Product Documentation
docs/product/bravos-ai/..., docs/product/README.md
Added product documentation directory with system architecture map, knowledge base design, knowledge representation model, future-scope roadmap (V1/V1.5/V2+ phases), and index entry linking to Bravos AI docs.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: adding Bravos AI documentation and browser-based review queue planning documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch t3code/browser-import-scraping

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

Copy link
Copy Markdown

@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

🧹 Nitpick comments (4)
docs/product/bravos-ai/knowledge-base.md (1)

517-527: Consider renaming the concluding heading to avoid duplication.

The document has two "Summary" headings (lines 17 and 517). The concluding section could be renamed to "Conclusion" or "Summary And Next Steps" to improve document structure and resolve the markdownlint warning.

📝 Suggested heading alternatives
-## Summary
+## Conclusion

or

-## Summary
+## Summary And Next Steps
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/product/bravos-ai/knowledge-base.md` around lines 517 - 527, The final
section currently uses a duplicate "Summary" heading which triggers markdownlint
and confuses structure; change that concluding heading text (the second
"Summary" block containing the V1 purpose paragraph and bullet list) to a
non-duplicative title such as "Conclusion" or "Summary And Next Steps" so the
document has a single top-level Summary and a distinct closing section; locate
the heading string "## Summary" in the final block and replace it with the
chosen alternative.
docs/plans/2026-04-11-bravos-browser-review-queue-implementation.md (1)

170-237: Consider documenting Browserbase quota and rate limit handling.

Task 3 introduces Browserbase integration but doesn't specify how to handle:

  • API rate limits during scheduled daily scans
  • Project/account quota exhaustion
  • Cost monitoring or usage tracking

While line 532 acknowledges potential environment setup divergence, adding these operational considerations to the design or implementation notes would help ensure robust production behavior.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/plans/2026-04-11-bravos-browser-review-queue-implementation.md` around
lines 170 - 237, Add operational documentation and minimal implementation hooks
for Browserbase quota and rate-limit handling: update the design notes to
describe expected behaviors for API rate limits, project quota exhaustion, and
cost/usage tracking and add implementation-level hooks in the Browserbase
wrapper (the createSession, openListingPage, openPostPage code paths and the
contextId persistence logic in bravosBrowser) to (1) detect 429/quota errors and
apply exponential backoff+retry with jitter, (2) surface a circuit-breaker or
temporary disable flag when repeated quota errors occur, and (3) emit usage
metrics/log entries and an alerting hook (e.g., increment counters, expose
last-usage timestamp and monthly-call counts via env-configurable thresholds
such as BROWSERBASE_API_KEY and new env vars for RATE_LIMIT_THRESHOLD or
QUOTA_ALERT_THRESHOLD) so scheduled scans can respect limits and ops can monitor
cost; add brief docs describing expected retry policy, backoff parameters, alert
thresholds, and which env vars control them.
docs/product/bravos-ai/system-map.md (1)

265-283: Consider renaming the concluding heading to avoid duplication.

The document has two "Summary" headings (lines 22 and 265). The concluding section could be renamed to "Conclusion" or "Summary And Recommendations" to improve document structure and resolve the markdownlint warning.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/product/bravos-ai/system-map.md` around lines 265 - 283, The document
ends with a duplicated "Summary" heading which triggers markdownlint; rename the
concluding heading text "Summary" to a non-duplicate title such as "Conclusion"
or "Summary And Recommendations" in the section that contains the final bullets
(the block beginning with "- source ingestion and normalization" and the "The
recommended sequencing is:" list) so the two headings are unique and the
markdownlint warning is resolved.
docs/plans/2026-04-11-bravos-browser-review-queue-design.md (1)

186-204: Consider adding retry policy for transient Browserbase failures.

The failure handling section covers auth invalidity and listing page changes, but doesn't specify behavior for transient Browserbase service failures (e.g., network timeouts, service unavailable). Consider documenting:

  • Retry policy for transient failures during scheduled scans
  • Whether failed scheduled runs should be retried automatically or require manual intervention
  • Maximum retry attempts before marking the connection as needs_reconnect

This would help implementation teams understand the expected resilience behavior.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/plans/2026-04-11-bravos-browser-review-queue-design.md` around lines 186
- 204, Add a concise retry policy subsection under the "Failure And Reconnect
Behavior" heading that specifies behavior for transient Browserbase failures:
define which errors are considered transient (e.g., network timeouts, 5xx
service unavailable), whether scheduled scans automatically retry, the retry
interval/backoff strategy and max attempts, and the threshold at which the
connection is marked needs_reconnect; also update the dashboard card and the
/imports/bravos section to surface retry state (last retry attempt, attempts
remaining) alongside connection status, last successful sync, last failed sync
and pending review count so implementers (and the Reconnect flow) know when to
escalate to manual intervention.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/plans/2026-04-11-bravos-browser-review-queue-implementation.md`:
- Line 3: The document contains an AI-only directive "**For Claude:** REQUIRED
SUB-SKILL: Use superpowers:executing-plans" which may confuse human readers;
update the plan by either removing that AI-specific line or clearly annotating
it as an AI-only instruction (e.g., add a short note like "AI-only: instructions
for automated agents" or separate AI-specific steps into their own section) so
human developers reading the plan are not confused—locate the exact token "**For
Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans" and either delete
it or wrap it in an explicit "AI agent instructions" block with explanatory
context.

---

Nitpick comments:
In `@docs/plans/2026-04-11-bravos-browser-review-queue-design.md`:
- Around line 186-204: Add a concise retry policy subsection under the "Failure
And Reconnect Behavior" heading that specifies behavior for transient
Browserbase failures: define which errors are considered transient (e.g.,
network timeouts, 5xx service unavailable), whether scheduled scans
automatically retry, the retry interval/backoff strategy and max attempts, and
the threshold at which the connection is marked needs_reconnect; also update the
dashboard card and the /imports/bravos section to surface retry state (last
retry attempt, attempts remaining) alongside connection status, last successful
sync, last failed sync and pending review count so implementers (and the
Reconnect flow) know when to escalate to manual intervention.

In `@docs/plans/2026-04-11-bravos-browser-review-queue-implementation.md`:
- Around line 170-237: Add operational documentation and minimal implementation
hooks for Browserbase quota and rate-limit handling: update the design notes to
describe expected behaviors for API rate limits, project quota exhaustion, and
cost/usage tracking and add implementation-level hooks in the Browserbase
wrapper (the createSession, openListingPage, openPostPage code paths and the
contextId persistence logic in bravosBrowser) to (1) detect 429/quota errors and
apply exponential backoff+retry with jitter, (2) surface a circuit-breaker or
temporary disable flag when repeated quota errors occur, and (3) emit usage
metrics/log entries and an alerting hook (e.g., increment counters, expose
last-usage timestamp and monthly-call counts via env-configurable thresholds
such as BROWSERBASE_API_KEY and new env vars for RATE_LIMIT_THRESHOLD or
QUOTA_ALERT_THRESHOLD) so scheduled scans can respect limits and ops can monitor
cost; add brief docs describing expected retry policy, backoff parameters, alert
thresholds, and which env vars control them.

In `@docs/product/bravos-ai/knowledge-base.md`:
- Around line 517-527: The final section currently uses a duplicate "Summary"
heading which triggers markdownlint and confuses structure; change that
concluding heading text (the second "Summary" block containing the V1 purpose
paragraph and bullet list) to a non-duplicative title such as "Conclusion" or
"Summary And Next Steps" so the document has a single top-level Summary and a
distinct closing section; locate the heading string "## Summary" in the final
block and replace it with the chosen alternative.

In `@docs/product/bravos-ai/system-map.md`:
- Around line 265-283: The document ends with a duplicated "Summary" heading
which triggers markdownlint; rename the concluding heading text "Summary" to a
non-duplicate title such as "Conclusion" or "Summary And Recommendations" in the
section that contains the final bullets (the block beginning with "- source
ingestion and normalization" and the "The recommended sequencing is:" list) so
the two headings are unique and the markdownlint warning is resolved.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0a439a43-c6aa-4931-97ba-3f1f92705cc5

📥 Commits

Reviewing files that changed from the base of the PR and between b94346f and 9edcef8.

📒 Files selected for processing (8)
  • docs/plans/2026-04-11-bravos-browser-review-queue-design.md
  • docs/plans/2026-04-11-bravos-browser-review-queue-implementation.md
  • docs/product/README.md
  • docs/product/bravos-ai/README.md
  • docs/product/bravos-ai/future-scope.md
  • docs/product/bravos-ai/knowledge-base.md
  • docs/product/bravos-ai/knowledge-representation.md
  • docs/product/bravos-ai/system-map.md

@@ -0,0 +1,532 @@
# Bravos Browser Review Queue Implementation Plan

> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

AI agent instruction may confuse human developers.

Line 3 contains > **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans which appears to be a directive for an AI coding agent rather than human developers. If this plan is intended for human use, consider removing or clarifying this instruction. If it's dual-purpose (AI + human), consider adding a note explaining the AI-specific instructions.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/plans/2026-04-11-bravos-browser-review-queue-implementation.md` at line
3, The document contains an AI-only directive "**For Claude:** REQUIRED
SUB-SKILL: Use superpowers:executing-plans" which may confuse human readers;
update the plan by either removing that AI-specific line or clearly annotating
it as an AI-only instruction (e.g., add a short note like "AI-only: instructions
for automated agents" or separate AI-specific steps into their own section) so
human developers reading the plan are not confused—locate the exact token "**For
Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans" and either delete
it or wrap it in an explicit "AI agent instructions" block with explanatory
context.

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