Skip to content

Yellow-hat: Labro's architectural discipline as its core differentiator — leverage docs, perspectives system, and multi-provider architecture more aggressively #37

Closed

Description

@labro-bot

This is an autonomous proactive suggestion requested by Labro.
Agent: opencode:opencode/deepseek-v4-flash-free
Perspective: yellow-hat

Focus on what is genuinely going well. What strengths, advantages, or
underexploited assets does this project have? How could they be leveraged more?


Agent findings will be posted as a comment below.

Activity

  1. labro-bot commented on Jun 9, 2026

    @labro-bot
    ContributorAuthor

    Yellow-Hat Analysis: What Labro Does Well and How to Build on It

    1. Exceptional Architecture Documentation

    Labro has one of the best-documented codebases I've seen for a solo project of this size: PRD, ARCHITECTURE.md, ROADMAP, 7+ ADRs, WHY.md, CASE-FOR-SELF-BUILD.md, OPERATIONS.md, MODEL-SELECTION.md, DEPLOYMENT.md, and CONTEXT.md. Every design decision is recorded with rationale, alternatives considered, and trade-offs accepted. This is rare and extremely valuable — it means the project survives context switches, on-boards new contributors fast, and decisions don't get silently reversed.

    How to leverage more: Expose the ADR/architecture docs more prominently. Consider an ARCHITECTURE.md badge in the README right next to the quality-gate badges. The quality of these docs is a differentiator — make it visible.

    2. Multi-Provider Agent Registry

    Supporting Claude Code, Codex, and OpenCode from day one is a strategic strength that most similar tools lack. OpenCode alone opens access to 300+ models via OpenRouter — from GPT-4o to DeepSeek to Mistral to Llama. The model-slug format (agent:provider/model@effort) is cleanly parsed and stored in three separate SQLite columns for queryability.

    How to leverage more: The labro review command shows per-run cost, but there's no cross-provider cost-vs-outcome comparison dashboard. The data is in the DB — a single query like SELECT provider, model, COUNT(*), AVG(total_cost_usd) FROM runs WHERE outcome='success' GROUP BY provider, model could power a "best-value agent per task source" table. This would help operators make informed model selection decisions.

    3. The Perspectives System (32 Perspectives, 7 Groups)

    The perspectives system is genuinely novel. Left to its own devices, an agent asked to "suggest an improvement" will find the same kinds of things every time. The 32 perspectives (Six Thinking Hats, Belbin roles, temporal shifts, stakeholder lenses, etc.) force genuinely varied output. This is the kind of thoughtful design that wouldn't exist in a commercially-driven tool.

    How to leverage more: Perspectives are currently only used for proactive-improvement runs. The prompt builder already has a _section_perspective() function — it could be trivially exposed for ANY task source. Imagine a gh-label bug fix shaped by the "fresh-eyes" perspective, or a Dependabot review shaped by the "completer-finisher" lens. The infrastructure is already there; it's just not wired in. Additionally, perspectives could be configured per-project with a default applied to all sources.

    4. Minimal Dependency Footprint

    Runtime deps: cryptography, pydantic, typer. That's it. The R2 upload uses hand-rolled SigV4 auth with zero extra dependencies. GitHub operations go through the gh CLI, not an SDK. This is a deliberate design choice that pays dividends in maintenance burden, security surface area, and container image size.

    How to leverage more: This strength should be an explicit selling point in the docs. The "minimal dependencies" badge isn't currently in the README badge row — it should be, right next to the quality-gate badges. It directly addresses a concern operators have about self-hosted tools ("will a dependency break my deployment?").

    5. Strict, Automated Quality Gates

    mypy strict, bandit (B602 never skipped — an architectural rule enforced at the tool level), 80% coverage floor that rose 5pp per milestone, ruff formatting enforced by pre-commit. The test file tests/test_store.py alone has forward-migration tests for the SQLite schema. This is an unusually disciplined setup for a solo project.

    How to leverage more: The CLAUDE.md quality-gate instructions could be mirrored in CONTRIBUTING.md (currently missing — there's a README section but no dedicated file). Documenting the quality culture explicitly would encourage contributions that match the bar.

    6. WIP Branch Preservation on Turn-Limit Handover

    When the agent exhausts its turn budget mid-task, Labro commits in-progress edits to a labro-wip/<run-id> branch, posts a handover comment, and parks the item under ai-handover. No code is lost, no credits are silently wasted on a retry. This is a clever solution to a hard problem that most agent harnesses don't address.

    How to leverage more: This is a feature that could be documented more prominently — it's buried in the README feature list. A dedicated docs page with a worked example (agent runs out of turns → operator reviews WIP branch → re-queues → Labro resumes from prior state) would make the value concrete for operators evaluating the tool.

    7. Dashboard Architecture (Static SPA + SQLite WASM)

    The dashboard is a React + Vite + TypeScript SPA that loads a VACUUM INTO snapshot of labro.db entirely client-side via sql.js. No backend, no API, no live connection to the harness. Updates are push-model from the harness cron. This is elegant: zero operational overhead, zero attack surface, no CORS issues, no state synchronization.

    How to leverage more: The R2 bucket has no access control (documented as accepted risk). Adding Cloudflare Access or Cloudflare Zero Trust as an optional authentication layer would unlock sharing the dashboard with a team without exposing private-repo data. The harness data is already private by default — the next step is making it sharable safely.

    8. The Dogfooding Evidence

    Labro is already running against real repos with a live dashboard at labro.rossarnold.uk. Changelog entries show real runs happening, real features being shipped daily from v0.3.0 to v0.9.0 over a week. Three separate code quality and linting tools (ruff, mypy, bandit) together caught issues across the span of these releases.

    How to leverage more: The dashboard URL should be linked directly from the README badge row (currently it's mentioned in prose). A "live stats" badge that shows recent run outcomes would be a powerful trust signal for potential users browsing the repo.


    Summary

    Labro's greatest strength is not any single feature — it's the architectural discipline running through the entire project. The design is documented, the code is tested, the dependencies are minimal, the security rules are hard-enforced, and the results are observable. Everything is built to survive and be understood without the original author present. That's the yellow-hat headline: the project is designed for unattended operation in more ways than one.

  2. changed the title [-]Labro proactive suggestion — yellow-hat[/-] [+]Yellow-hat: Labro's architectural discipline as its core differentiator — leverage docs, perspectives system, and multi-provider architecture more aggressively[/+] on Jun 9, 2026
  3. rssrn commented on Jun 18, 2026

    @rssrn
    Owner

    Reviewed this against the current state of the docs and codebase.

    What's been addressed since this was raised:

    • CONTRIBUTING.md now exists with full quality-gate documentation
    • WIP handover is documented in detail in OPERATIONS.md
    • Dashboard URL is linked from the README prose

    Remaining suggestions — reviewed and closed:

    • Perspectives for other task sources — not genuinely useful. Perspectives answer "which angle to take on an open-ended problem"; for gh-label, gh-dependabot-alert, and gh-author the task is fully specified by the issue/alert/PR. Injecting a lens onto a defined task adds noise and could actively mislead the agent on something like a CVE upgrade. The current scope (proactive-improvement only) is correct.

    • Cross-provider cost comparison dashboard — low priority while the primary usage is free-tier/free models. Could be revisited if usage patterns change.

    • Architecture/ADR badge and minimal-deps badge in README — README already has a full badge row; adding more would be diminishing returns.

    Closing as addressed/won't-do.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions