Skip to content

[Request]: Compose local agent bootstrap with explicit roots and revision-matched contracts #807

Closed

Description

@jimhoyd

Problem or use case

Local fresh-agent experiments on URLCode 0.6.4 suggest that making a skill available is insufficient to establish the intended authoring workflow. A shipped-skill trial still guessed unsupported fields and did not retrieve context; a shorter contract-first trial retrieved schemas but created a nested site and omitted a workspace-root start script.

Six subsequent trials on the same small task compared a prepared empty site against that site plus selected runtime capability schemas. All six passed the three HTTP requirements from the site root. Unsupported route-field guesses occurred in 2/3 starter-only runs and 0/3 packet runs; 2/3 packet runs instead confused site-relative and project-relative asset paths. Median time was effectively tied (54 vs 55 seconds). This is small-task exploratory evidence, not a general performance result.

Proposed behavior and alternatives

Provide a supported local agent-bootstrap workflow that composes existing init/context/capability surfaces rather than adding another independent instruction manual:

  • Distinguish new-site creation from inspection of an existing site; preserve existing files and require an explicit destination for creation.
  • Return a machine-readable site root, route-project root, entry file, host file, installed runtime revision, and exact start/validate/test commands.
  • Allow explicitly selected capabilities to be delivered as a bounded packet with revision-matched schema fragments and relevant examples. Automatic task-to-capability selection is a separate unverified concern.
  • Explain file references with a concrete site/project mapping. Expose only paths within the authorized project scope.
  • Make the packet available before the first authoring turn; CLI should work without hosted services or MCP. A thin skill/client integration can invoke the workflow.
  • Report unsupported/mismatched runtime or target capabilities rather than guessing or silently upgrading.

Acceptance should cover an empty directory, an existing initialized site, a site containing a supplied frontend, and repeated invocation without nested app/app creation or unrelated-file changes. Measure fresh-agent use and behavior, not just packet presence.

Related: #542 (first-session MCP setup), #806 (explicit hosted-assisted skill). This request is the local-only machine-readable preparation/contract workflow. It does not require a hosted provider, change route YAML infrastructure settings, or claim missing core handler semantics.

Activity

  1. jimhoyd commented on Sep 27, 2026

    @jimhoyd
    CollaboratorAuthor

    Follow-up local feasibility results on runtime 0.6.4 (same model and four-minute per-trial cap):

    • Prepared site + focused handler schemas + concrete site/project path example + supplied immutable HTTP verification command: two three-requirement attempts completed in 37/27 seconds and two six-requirement static-site attempts in 46/42 seconds. All passed independent HTTP checks from the site root. No route-field or asset-path corrections were observed. Checker source/script and fixture integrity were verified. The checker also correctly rejected an empty but schema-valid app.
    • Transfer to a general SPA with supplied frontend: the same setup plus operator plugin type information, without a worked recipe, timed out at 240 seconds after 34 calls.
    • A reviewer-authored generic SPA composition was independently tested, then supplied as a reference with different example namespaces to two fresh agents. Both adapted it successfully (111/116 seconds). Each passed the original 11 HTTP cases, four browser behavior cases, served-byte/frontend-integrity checks, framework-use validation, and extra unseen client-path/API/asset exclusion probes. The first fixed one composeHost wiring error; the second did not need that correction.

    This strengthens the direction toward prepared workspace + small tested composition recipe + executable completion checks, with a thin skill/launcher entry point. Schemas alone did not teach the SPA composition. The supplied checker remained intact; applications were not repaired by the reviewer after agent completion.

    These are assisted feasibility probes, not a neutral speed comparison: tiny samples, manual capability/recipe selection, pre-session setup excluded from model timing, explicit prompt delivery rather than native skill discovery, and shared host/cache. SPA plugin behavior was evaluated on Node only and is not a security or production-readiness claim. Auth remains untested in this workflow and is tracked in #810. The SPA recipe direction is tracked in #809. No repository implementation or publishing occurred; raw evidence remains local.

  2. added
    enhancement
    ai-first
    needs-decision
    on Sep 27, 2026
  3. jimhoyd commented on Sep 27, 2026

    @jimhoyd
    CollaboratorAuthor

    Decision (owner, 2026-09-27): build this local-only bootstrap now. It composes init, context, schema and capability data into a machine-readable packet, and needs no hosted service or MCP. #806 waits until this lands.


    Generated by Claude Code

  4. added
    in-progress
    and removed
    needs-decision
    on Sep 27, 2026
  5. jimhoyd commented on Sep 27, 2026

    @jimhoyd
    CollaboratorAuthor

    Fresh-agent verification against the exact published 0.6.5 package: four static-site trials using bootstrap --create --capabilities ... --json all passed independent HTTP checks (two 3/3, two 6/6). Supplied checker files/scripts were unchanged. No observed tool errors or schema/path corrections. Three-route durations: 42.1s and 29.6s; six-requirement durations: 29.8s and 28.9s. Same Sonnet 5 / medium and 240s cap as prior assisted experiments. This supports bootstrap usability once its output is explicitly supplied; it does not test native skill discovery or urlcode.ai activation. Two repetitions per task are insufficient for a speed claim, and model cost did not improve versus the prior four trials.

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

    ai-firstenhancementin-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions