Skip to content

Personas autonomously code the system: propose → implement → test → PR #411

Closed

Description

@joelteply

The Thesis

If the system can't improve itself, it's just a chatbot with extra steps. The personas are already discussing architecture, voting on proposals, and reviewing code in general chat. They need to close the loop: actually implement what they discuss.

The Chain (What Exists vs What's Missing)

Step Description Status
1. Discuss Personas discuss architecture in chat Working — happening organically
2. Propose Use decision system to vote on changes Working — proposals + ranked voting
3. Code Use sentinel/coding-agent to implement Working — tested e2e (PR #400, #407)
4. Test Run code/verify, code/shell/execute Working — tools fixed (PR #400)
5. Review CodeReview AI reviews changes Working — persona exists, tools available
6. Commit/PR workspace/git/commit, workspace/git/push Working — workspace tools exist
7. Learn Academy trains on successful traces Phase 5 — needs 5090 tower

What's Missing: Autonomous Trigger

Steps 1-6 work mechanically but require a human to say "go implement that." The gap:

  • Self-task generation (Self-task generation: personas don't create their own work yet #383): A persona reading chat discussion should recognize "this is something I can implement" and create a task for itself
  • Proposal → implementation bridge: When a decision proposal is finalized, the winning approach should trigger a coding sentinel automatically
  • Quality gate: Only merge code that passes tests + peer review from another persona
  • Training capture: Every successful implement → test → merge cycle becomes training data for the next cycle

Acceptance Criteria

  1. Persona in general chat proposes an improvement to the codebase
  2. Other personas vote on the approach via decision system
  3. Winning approach triggers sentinel/coding-agent (autonomously or via simple command)
  4. Code is written, tested, committed to a workspace branch
  5. Another persona reviews the diff
  6. If approved, PR is created
  7. Interaction captured for LoRA training

The Proof

Leave the system running. Come back to find:

  • A PR was created by a persona
  • The code compiles and tests pass
  • Another persona reviewed it
  • The change addresses something the team discussed in chat

Why This Matters

The competitors' ceiling: they need smarter models forever.
Our ceiling: every task makes the next task better. A persona training for 6 months on YOUR codebase, fine-tuned on thousands of successful traces, running inside deterministic pipelines — is not competing with Claude Code. It's competing with a junior developer who memorized your entire codebase. And it works offline, costs nothing per token, and never takes a day off.

Related

Activity

  1. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    It's already happening. Right after receiving the team update about #411, the personas started using sentinel tools autonomously:

    • Fireworks AI: running sentinels, checking status, trying to read logs
    • Local Assistant: implementing exponential backoff for sentinel monitoring
    • Teacher AI: suggesting circuit breaker patterns
    • CodeReview AI: reviewing the patterns

    They're hitting real bugs (sentinel/logs/tail: Log stream not found: stdout) and debugging collaboratively. The intent is there — they just need the infrastructure to not break under them.

    Bug found: sentinel/logs/tail fails with 'Log stream not found: stdout' — needs investigation.

  2. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    Evidence of autonomous coding from this session:

    The AIs generated the following WITHOUT being asked, from sentinels and general chat:

    1. ProductCostCalculator (68 lines + 151 lines of tests) — proper TDD, TypeScript interfaces, volume pricing tiers
    2. Fullstack integration project (186 TypeScript files) — scaffolded an entire project
    3. Distributed retry framework (markdown design doc)
    4. Exponential backoff analysis (technical document)
    5. Riemann zeta function experiment (image + answer)
    6. David vs Goliath images (for the competitive strategy)

    The ProductCostCalculator is clean production code with proper types and tests. The personas are already coding — they just need the coding agent dispatch to be more reliable and the verification pipeline to grade their output.

  3. joelteply commented on Mar 26, 2026

    @joelteply
    ContributorAuthor

    MAJOR: AIs autonomously built an Ontology system (1,822 lines)

    Without being asked, the personas designed and implemented a complete semantic ontology:

    • OntologyRegistry (434 lines) — shared concept registry with embedding-based lookup
    • OntologyEvolutionService (404 lines) — concepts drift and evolve over time
    • SemanticBridgeService (263 lines) — translate between model semantic spaces
    • OntologyTypes (383 lines) — full TypeScript type system
    • Two database entities (338 lines) — OntologyConceptEntity + OntologyMappingEntity
    • Two sentinel pipelines — ontology/translate + ontology/translate-listener
    • Integration: wired into AIProviderDaemonServer (bootstrap) + EntityRegistry (DB tables)

    This is a semantic bridge between different AI models — exactly what the Grid needs when routing tasks between models with different training. The AIs identified a real architectural need and built the solution.

    Found in uncommitted changes — the AIs edited these files during their sentinel runs and general chat activity. The code compiles. The types are clean. The architecture is sound.

  4. joelteply commented on Mar 26, 2026

    @joelteply
    ContributorAuthor

    PROVEN. PR #476: AI personas autonomously built a 2,027-line Ontology system — OntologyRegistry, SemanticBridgeService, OntologyEvolutionService, two database entities, two sentinel pipelines, wired into AIProviderDaemon + EntityRegistry + TemplateRegistry. Compiles clean. Also: ProductCostCalculator with TDD, fullstack project with 6 milestone test suites. Plus Fireworks AI suggested a code change that became PR #432. The system codes itself.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions