Skip to content

[Re-scoped; legacy expansion on hold]: Ecosystem integration, discovery and AI authoring #837

Closed

Description

@jimhoyd

Problem or use case

Ecosystem integration, discovery and AI authoring — revised scope

Reconciled 2026-09-30 against main caa5fa05c2ae3e0fdecead19a95a08cf4def6bf5. The former project-wide facade expansion remains on hold. This rewrite supersedes the old stages A–H, package matrix, proposed APIs and “begin Stage A” instructions. Do not implement those from issue history. #841's ecosystem-reuse program is closed; #1052 owns the remaining project-owner choice work across extensions, and #1041 owns the wider reuse audit. This issue retains the cross-cutting discovery/agent-usage plan and the session's relevant lessons without duplicating their implementation backlogs. Updating the plan does not authorize resuming the obsolete roadmap.

Goal: the agent builds the user's application using existing declarative contracts and the user's chosen libraries. URLCode owns reviewable HTTP behavior, enforceable admission/authority boundaries and authoring feedback. Upstream libraries own their implementations. An adapter is warranted only where those responsibilities meet; ordinary npm use must not require one.

Current main is the evidence baseline, not a claim that every change is published or deployed. This reconciliation inspected source, contracts, tests and tracked decisions; it did not rerun the runtime suite or production benchmarks.

Proposed behavior and alternatives

Implementation checkpoint — 2026-09-30

Most foundations are on main. Finish the remaining provider-choice slice, then prove the complete agent workflow; do not restart the universal adapter roadmap.

The source/issue playback inspected main 60bf85fe4840cf1390f8f4bb8b1c6d45be8688c9. At recording time main had advanced to 10660906cdbe62252a5571421ac4e1e8245842c1; the intervening merged changes are clearer missing-binding diagnostics (#1064) and development source resolution with packed-manifest separation (#1065). Those additions were checked through their commit descriptions, not a new runtime test run. This checkpoint supersedes older pending-status statements in the body where noted below; neither main nor merged PR status implies publication/deployment.

Delivered foundations

Remaining work, in order

  1. Finish [Request]: Make every extension respect project-owner choice of libraries and providers #1052's remaining provider-choice work. Its major outstanding S4 slice is the owner-decided audit design: write audit events in the store's database transaction, retain a small peek/ack forwarding contract in core, remove separate outbox/drain machinery, and permit an independent package to fill a bundled extension role when that role is unoccupied. Move relevant shared contracts out of bundled implementations. Preserve the exact owner decisions in [Request]: Make every extension respect project-owner choice of libraries and providers #1052; do not infer universal provider parity.
  2. Finish documentation truthfulness. Reconcile stale dependency-review prose and distinguish native-library use from enforceable declarative guarantees. Owner-selected storage does not automatically inherit the bundled store's ownership rules, transitions, retry replay, audit, lock or backup behavior. The concrete documentation discrepancy remains recorded in this epic.
  3. Run a complete agent playback against a frozen new baseline. Build an unfamiliar app and then change it while preserving data. Exercise connected authoring MCP and CLI-only paths, including an existing project whose dependencies must be retained. Record correctness, time to first valid artifact, repairs, repeated plumbing, review surface, supplied scaffolding and total preparation effort. Keep failures/exclusions visible and diagnostics separate; individual integration proofs do not establish overall productivity gains.
  4. Fix observed integration friction only. Use focused discovery, example or integration changes where agents repeatedly stumble. Do not generate a wrapper for every library, rebuild retired extensions or require another hosted AI.

Proof limitation: the native-storage fixture uses node:sqlite directly. It demonstrates independence from URLCode's store, not PostgreSQL support or general database compatibility. Auth.js/Hono evidence likewise does not prove every auth lifecycle or host guarantee. No new production, security or performance claim is made here.

Recommended sequence: complete the remaining #1052 slice → reconcile guidance → freeze current packages and run the agent playback → file/fix concrete observed gaps. Broader optional source-reduction work stays in #1041 and need not become a new prerequisite for this proof. This records the next step; it does not start implementation, merge, publish or deploy anything.

1. What changed on main

Earlier plan Current implementation / disposition
Expand facades over ten extensions Five workspace packages remain: core, auth, store, audit and MCP. Admin, UI, forms, form-records, mail and abuse extensions were retired. Do not rebuild them to complete the old matrix.
Preserve custom auth/admin exports and session helper as the expansion baseline Auth is now a thin Better Auth integration. The documented function identity is context.capabilities.auth.identity.userId. Upstream owns accounts/sessions; roles and application permissions remain application concerns. Provider-independent principal plumbing uses providesPrincipal.
Generic handoff still needs design The request-bound capability foundation landed through #840/#839. Reuse the implemented contract when needed; do not introduce a second global service registry.
Add wrappers so applications can use services Trusted Node handlers already import installed npm packages through native APIs, without URLCode descriptors or wrappers. proofs/ecosystem exercises zod and Hono; proofs/private-requests-authjs exercises a separately owned identity provider.
File-store transactions and replay are future work Store now uses SQLite, with declared transitions, result-aware retries, membership and additional state operations; #835 is closed. Audit uses a transactional producer outbox and its own durable log. Inspect current STORE.md before proposing another state engine.
Authoring validation handoff is missing #834 is closed; inspection and authoring MCP accept reviewed operator context. Bootstrap/planning and recipe merge workflows have advanced. Improve observed remaining friction rather than refile the original work.
Independent packages, standard artifacts and protocol libraries are future foundations #844/#845/#846 are closed: independent extension installation and descriptors, artifact inspection/staging, bounded JSON Schema validation through Ajv, OpenAPI export, and official MCP SDK integrations exist.
Trusted-code review covers only the entry file #1043 added a bounded static dependency inventory to inspection/review and the project revision. It records local files and lock metadata, with explicit opaque cases; it is not installed-package byte attestation or a complete execution graph.
Bundled persistence can imply generic deployment support Current SQLite-backed serving uses one serving process per database, enforced through an OS lock (#1050), with filesystem/target restrictions. These are properties of the selected implementation, not requirements every external provider must inherit.

The old #829/#830 legacy-export expansions are closed and must not be revived for historical parity. No historical API compatibility layer or old-data migration program is required by the maintainer's recorded direction. New implementations still need explicit lifecycle, failure behavior and truthful operational documentation.

2. The integration decision an agent must make

Use the highest-level installed declarative feature that meets the requirement. Where it does not, distinguish these paths:

Path When appropriate What URLCode should require
Native library use Application code needs a library's functions, clients or queries Ordinary installed dependency and native API in trusted Node code; no per-library descriptor, catalog entry or adapter
Focused extension integration A provider participates in verified identity, route admission, lifecycle, declared operations or hosted mounts Public extension contract, honest metadata, explicit operator activation and supported guarantees
Native framework hosting A framework's plugins or lifecycle should remain in their native host A supported request/response embedding boundary; do not translate every plugin into a URLCode extension
Inert standards exchange Agent needs JSON Schema, OpenAPI, Markdown or source-registry facts Bounded non-executing inspection and provenance; explicitly separate source staging/materialization from execution
Application frontend UI, forms, styling or components Normal frontend tooling and HTTP clients; optional schema/operation metadata, no resurrection of the retired UI/forms stack

Better Auth and SQLite are tested defaults, not mandatory choices for every application. Preserve the project owner's existing libraries, providers and infrastructure. Do not wrap all upstream features in a universal lowest-common-denominator facade. Keep native APIs available. Provider replacement can require configuration, client and application changes; supported behavioral compatibility is not a zero-change swap or an automatic data migration promise.

#1052 owns consistent application of these rules across auth, storage, audit, protocols, hosting and other optional integrations. Internal implementation dependencies do not each require a public replacement slot when the application contract is already standard and unconstrained.

3. Discovery and AI-agent usage are required, not optional documentation

The coding agent writes YAML and focused application code, optionally assisted by deterministic scaffolding. Runtime adapters do not generate the app or require an AI to remain running. At request time, URLCode enforces the selected route contract and calls the app/provider code using the implemented identity and capability boundaries.

Agent step Required behavior and evidence
Discover URLCode Public entry pages and generated agent guidance explain the declarative boundary and link the installed-version workflow. Keep urlcode.ai an optional hosted entry point. Private benchmark access must not be required.
Inspect the existing stack Read manifests/lockfiles, project declarations and operator-supplied configuration before choosing defaults. Identify native dependencies, independent extensions, upstream clients, frontend and hosting mode separately. Never silently replace the user's stack.
Connect tooling Document and test supported client setup, including Claude. Detect whether authoring MCP is actually connected. A skill teaches the process but does not establish a connection or grant authority. CLI remains a complete fallback.
Bootstrap and plan Use current urlcode bootstrap / MCP get_context with bootstrap, then bounded plan-feature / plan_feature, capability/schema and extension queries. Planning is based on installed/available catalogs, not a universal search or guarantee that every npm library is supported.
Choose an integration path Apply section 2. For native dependencies, use upstream documentation matching the installed version; do not require URLCode to mirror every upstream API in its catalog. For integrations, retrieve declared schemas, targets, principal/capability contracts and limitations.
Assemble Keep routes, methods, body schemas and policies explicit in YAML. Use recipe merge where useful (recipes add --project / merge_recipe), inspect the proposed changes and preserve existing files. Write only the application's unique rules and necessary native-library glue.
Review third-party code Surface selected packages, static dependency evidence, opaque code, execution mode, resource lifecycle and authority changes. Reading metadata must not run it. Host-module activation is trusted execution, distinct from inert inspection.
Validate and repair Use complete project/host/origin/reviewed-revision context and current validate/test/audit tools. Use hermetic resources and real provider setup where supported; refuse unsafe test activation instead of touching live data. Revision inspection does not authorize or silently repin a change.
Change the app Reinspect current contracts and data, make a focused diff, and verify retention, denials and old behavior alongside the new requirement. Do not regenerate auth or replace providers merely to add a domain rule.
Report actual evidence Identify whether advice came from local packages, connected MCP, upstream documentation or urlcode.ai. Report validations, repairs, limitations and untested production assumptions. Never infer remote tool use from successful local work.

Dynamic MCP decision: use a stable authoring tool surface returning project-aware capability information and bounded details. Do not expose every upstream method as a dynamically generated tool. The application's own MCP server is a separate product interface: explicitly expose selected domain actions with their own admission and caller mapping. Streaming is available only under its supported transport/target contract and is not a prerequisite for discovery or composition.

Generate URLCode-owned descriptor/guidance facts from authoritative schemas and contracts, and link upstream facts instead of maintaining copies. Distinguish documented, installed, compatible, activated, declared and authorized. A pinned artifact is still data, not trusted instructions to execute commands, install code or change grants.

4. Authority, lifecycle and state requirements retained from the old plan

  • Core must not import concrete providers. Independent identities, versions and the current extension contract must work without first-party naming or release-lockstep assumptions. Contract-2 hermetic data handover obligations matter for extensions; use current metadata, not the historical contract-1 examples.
  • Verified identity is not domain permission. Preserve resource ownership, role checks, existence hiding and operation-specific validation order. Cross-service calls must not bypass applicable policy or inherit provider-internal privileges.
  • Credentials, connections and provider instances belong in operator configuration, not route behavior YAML. Define who creates, closes and migrates resources, and what happens on activation failure, cancellation, disablement and restart. Never retain a request-scoped handle for detached jobs.
  • Trusted native imports have ambient Node authority. Operator grants govern injected bindings; neither an adapter nor dependency inventory confines trusted code. sandbox: true retains isolation and refuses unsupported package imports; never silently fall back to trusted execution. Target compatibility must be demonstrated or refused.
  • Current dependency review hashes the bounded files/metadata it records, not every installed package byte. Computed imports and other opaque cases remain explicit. Preserve separate trust in operator host code and avoid supply-chain attestation claims.
  • Native APIs remain available, but a provider may advertise only enforced declarative guarantees. Ownership, atomicity, conditional writes, result replay, cancellation outcomes and durable audit each need their own contract. No cross-provider atomic transaction or exactly-once delivery may be inferred from two individually successful calls.
  • Keep structural parsing distinct from resource-sensitive semantic validation. Bound input/output, concurrency and queues where the selected operation requires them. Preserve native protocol formats rather than coercing all upstream requests into a URLCode JSON shape; Preserve native Better Auth request body formats #1042 is an implemented example.
  • Diagnostic correlation must avoid secret/body leakage. Unknown outcomes must not be described as rollback. Telemetry does not substitute for durable audit. Disabling an integration must follow its declared lifecycle without authority-broadening fallback.

These are acceptance criteria for specific integrations under #1052, not authorization to build a universal budget manager, ORM, auth facade, provider marketplace, job system or all-framework adapter catalog.

5. Remaining work and tracker boundaries

Work Owner / next action
Owner-selected libraries/providers across extensions #1052: audit actual assumptions and implement focused substitutions at meaningful boundaries. Keep native APIs, report unsupported features and prove lifecycle/authority behavior. Reuse Auth.js/Hono evidence without treating it as storage portability proof.
Further source reduction and scope cuts #1041: evaluate its remaining options against current main. Some listed cuts already landed; do not replay the original audit mechanically or sacrifice guarantees for line counts.
Generic auth/OpenAPI metadata gap #1047 owns the concrete follow-up referenced by #1052; consult its current status before work. Do not infer generic credential metadata solely from a provider name.
Discovery/scaffold consistency This epic records the acceptance boundary; scope concrete defects as linked issues in the owning repository. Inspect installed stack first; separate native use, extension integration, artifact staging and execution. Do not revive #834's already completed original scope.
Documentation reconciliation found during this review At the inspected SHA, FRAMEWORK.md's “Using npm libraries directly” paragraph still says review does not list imports and the digest covers only the entry file. This is stale relative to #1043, FUNCTION-SECURITY.md's “Trusted dependency review” and trusted-dependencies.ts / policy.ts. Correct that paragraph and inspect the ecosystem proof's corresponding historical review claims; retain the explicit inventory limitations. Tracked here as a concrete documentation follow-up.

Do not execute the former Stage C–H matrix, recreate retired packages, reopen legacy export requests, or treat the old session-helper API as the current authoring recommendation. When implementation begins, read current AGENTS.md, implemented contracts and linked issue status first. This is a plan reconciliation, not a request to merge, publish or deploy anything.

6. Proof required for remaining integration and authoring work

  1. Native package path: an ordinary npm dependency works without adapter metadata, while the same unsupported sandbox use is refused. Existing ecosystem fixtures are the starting evidence, not a reason to write another hello-world wrapper.
  2. Relevant provider choice: independent implementations at the actual boundary work without changing core. Record native client/configuration differences, limits and unresolved guarantees. A second frontend using the same auth is not an auth-substitution proof.
  3. Agent paths: a fresh connected-MCP agent and a CLI-only agent can discover the selected stack, author a useful unfamiliar workflow, validate it and make a state-preserving change without urlcode.ai. Include an existing project so “success” cannot depend on replacing its dependencies with defaults.
  4. Honest review: metadata-only inspection executes nothing; trusted activation is explicit. Review shows enforced declarations versus opaque native code and bounded dependency evidence. Malicious descriptive prose remains data, not execution authority.
  5. State and failures: for each advertised guarantee, test denied requests, race/conflict, retry/replay, persistence failure and lifecycle cleanup using isolated resources. Do not claim unsupported multi-process/database, crash recovery or deployment behavior.
  6. Packed integration: public imports, independent package descriptors, types, docs, starter and tools agree in an actual consumer install. Apply repository-required regression, verify, packaging and schema-generation checks to corresponding code changes.

Measure first valid artifact, repair loops, safe later changes, review surface and total preparation effort. Record upstream dependency/operational costs as well as owned code. Avoid an endless broad bake-off as a gate for small justified fixes, but do not claim a productivity win from one successful sample.

7. Session lessons retained, with corrected conclusions

The original experiments taught us to reduce repeated plumbing, improve executable discovery and keep unique rules visible. They did not prove that every service should become a URLCode facade. The ecosystem shift applies that lesson more strongly: often the best adapter is no adapter, because a maintained native API already solves the problem.

  • Keep YAML where it makes behavior reviewable; no controlled evidence justified abandoning it. Do not hide the route table in a generated catch-all router.
  • Use reusable primitives and existing libraries rather than a recipe for every possible app. PeerCamera's domain can combine identity and state with unique consent rules; its media/WebRTC implementation was not proven by the HTTP experiment.
  • Good identity integration does not guarantee correct authorization/body-error ordering. The supplemental ledger defect and benchmark Run the authoring evals on a schedule and gate on the pass rate #108 remain evidence for combination tests and source review.
  • Retry keys, original payload fingerprints, state retention and concurrency deserve explicit contracts. The earlier missing-state conclusions are historical: inspect the now-implemented SQLite store before declaring those gaps still open.
  • The final earlier six-trial batch used local packages and empty MCP, not production urlcode.ai. Mixed outcomes, timeouts, exclusions and later diagnostics do not establish general superiority. Preserve original outcomes and separate post-hoc repairs.
  • Tests, metadata pins and successful startup are bounded evidence, not independent security review or production readiness. Shared-host action auditing was not hostile-agent confinement. Unknown costs are not zero; scaffold design/review is real preparation effort.
  • Authoring MCP, application MCP, skills and hosted guidance have different jobs. No extra hosted AI is required; the agent authors the app and runtime services execute it.

Detailed historical research remains in the private benchmark record and issue revision history. The former plan is superseded evidence, not a parallel backlog. This body is the current scope; linked issues remain the sole implementation trackers.

Current source references

All source links below are pinned to the inspected main revision, not a claim about a release:

Activity

  1. jimhoyd commented on Sep 28, 2026

    @jimhoyd
    CollaboratorAuthor

    Stage A progress

    PR #838 fixes #836 (corrects the store limitations prose to acknowledge the implemented single-record If-Match conditional write, distinct from the still-missing cross-record transaction in #835).

    PR #833 (the identity slice) has all 32 CI checks green, is mergeable, and has no outstanding review decision — landing it is a maintainer-review action outside this branch of work.

    Inventory: typed extension exports, reachability, and identity carried

    1. Extension composition surface today

    packages/core/src/extensions.ts: ExtensionDefinition.host() (extensions.ts:556) returns HostedExtension{registration, exports?, close?} (extensions.ts:513-519). HostContext.get<T>(name) (extensions.ts:509) returns another installed extension's exports, but only for names listed in requires/uses (extensions.ts:528-534), and only inside another extension's own host() — extension-to-extension only, resolved once at composition time. There is no equivalent accessor exposed to a project's function/middleware route module. The only documented bridge from extension-hook-land into ordinary trusted route code is the reserved x-urlcode-context-* header namespace (extensions.ts:152-156) — a one-way, extension→route projection channel, not a call surface. auth's sessionUserId is the only current use of it.

    2. Reachable from an ordinary function/middleware handler today

    Package export surfaces are plain npm ESM, so trusted route code can import static helpers/types directly — but not the live, request-scoped AuthExports/StoreExports/... instance, which exists only inside the extension registry and is never handed to route code. Concretely reachable: sessionUserId(request) (packages/auth/src/session-identity.ts:8-13, via PR #833) plus pure types/error classes from every package. Not reachable at all: AuthExports.administration/account()/csrf; StoreExports.records(...); FormsExports.define(); MailExports.send(); AuditExports.record()/query(); AbuseExports.namespace().

    3. Package table

    Package Exported surface today (file:line) Reachable from ordinary handler? Identity/authority carried One concrete gap
    auth AuthExports: account(), csrf, urls, administration (exports.ts:58-71); sessionUserId() (session-identity.ts:8) Only sessionUserId(), via static import + header bridge Bare, format-checked opaque id, no roles/permissions/freshness Handler can't .has('permission') or check freshness — only the raw id
    store StoreExports.records(collection) → create/get/update/list (records.ts:14-47), ownership scoping, ifMatch/ETag 412 No — extension-to-extension only via ctx.get('store') Takes a caller-supplied StorePrincipal; trusts whatever it's handed No caller-scoped collection view without reimplementing ownership/ETag logic, and no principal store would trust
    forms FormsExports.define() → FormsFlow{render,submit,confirmationPage,only} (forms.ts:394-439) No — ctx.get('forms') only CSRF-bound per flow; no own principal concept Can't use a declared form flow's CSRF/validation outside an extension mount
    mail MailExports.send()/has()/recipient()/available No — ctx.get('mail') only No caller identity; transport credentials stay operator-side Can't send an approved templated email without its own raw SMTP/SES creds
    audit AuditExports.record()/query()/attach()/flush() No — ctx.get('audit') only actor/source are caller-asserted, unverified Can't append correctly-attributed audit entries outside an extension
    abuse AbuseExports.namespace().budget()/backoff()/admit(), challenge, honeypot No — ctx.get('abuse') only Purely value/bucket-keyed, no identity Can't apply its own rate-limit bucket (e.g. per-API-key) without reimplementing storage
    admin No own exports; composes ctx.get('auth').administration and AuthPermissions itself No — admin is a leaf mount Full AuthAccount via .has(permission) Proves the pattern: full-fidelity identity is extension-composition-only

    4. What sandbox: true blocks vs. a trusted function

    • No Node built-ins/process/require/filesystem/shell/sockets/fetch/worker threads/native extensions — QuickJS-in-WASM, JSON/string boundary only.
    • Module resolution restricted to the route's own declared relative-JS dependency graph — no remote/bare imports; trusted code can import any npm package, including these extension packages.
    • Sandboxed routes cannot stream (stream: true refused beside sandbox: true); trusted routes on node/vercel targets can.
    • A binding grant governs what URLCode injects into context in either mode; it doesn't restrict trusted code's ambient Node reach, whereas for sandboxed code the grant is effectively its whole environment.
    • sandbox: true narrows blast radius from buggy/unreviewed code, not from untrusted request data — neither mode adds authorization by itself.

    Key structural finding for Stage B/C

    Every typed exports contract (AuthExports, StoreExports, FormsExports, MailExports, AuditExports, AbuseExports) is wired exclusively through HostContext.get inside composeHost — extension-to-extension, resolved once at host() time. The one carve-out so far is auth's sessionUserId(): a narrow, one-field, one-way header-projection channel purpose-built so trusted route code could read an opaque id — nothing else. That's the concrete precedent and the concrete gap Stage B needs to close: either generalize the header-projection pattern per capability, or give ordinary routes a typed, request-scoped accessor equivalent to HostContext.get, scoped to the route's own declared capability grants.

    Filing the Stage B decision issue next per section 12/13 of this epic ("create focused child issues as each stage is scheduled").

  2. jimhoyd commented on Sep 28, 2026

    @jimhoyd
    CollaboratorAuthor

    Stage B (the generic handoff, #839) is implemented and up for review/CI in PR #840: a request-bound capability accessor generalizing #833's sessionUserId precedent, with no new YAML, sandbox refusal at compile time, and a synthetic-provider test fixture proving core stays extension-blind. Stage A (#838, #833) is merged. Next up once this lands: Stage C (auth/store facades + #829 delete/replace scope + #834 bootstrap integration).

  3. jimhoyd commented on Sep 28, 2026

    @jimhoyd
    CollaboratorAuthor

    The maintainer requested a deeper ecosystem/reuse audit and explicitly permits replacing existing implementations. #841 now records the findings and compatibility decisions across packages, artifacts, schemas/OpenAPI, both MCP servers, auth/admin, storage, UI/forms, observability and runtime embedding.

    Implication for this epic: use the generic handoff to prove an actual upstream-backed provider before multiplying first-party service facades. Installed operation contracts and discovery should not require a first-party package name, lockstep release, or private schema/template format. Preserve explicit authority and reviewable routes, but allow versioned migrations where keeping every historical behavior would rebuild the old subsystem inside an adapter.

    Store's database-engine alternative is added to #835. A reproduced authoring-review contradiction is tracked separately in #842. The audit is evidence and a proposed implementation sequence, not approval to silently change existing contracts or claim replacement parity. No runtime code changed.

  4. changed the title [-][Request]: Expand application adapters across the URLCode framework and authoring ecosystem[/-] [+][On hold]: Expand application adapters across the URLCode framework and authoring ecosystem[/+] on Sep 28, 2026
  5. jimhoyd commented on Sep 28, 2026

    @jimhoyd
    CollaboratorAuthor

    Coordination update: #837 remains on hold while we prove the ecosystem-reuse direction in #841, starting with #843. This supersedes the earlier instruction to proceed to Stage C and the earlier audit comment's suggestion of versioned migrations.

    The maintainer's decisions are:

    • There is only one user; no backward compatibility, historical API/format support, compatibility facades, or old-data migration is required.
    • Keep one locally runnable app. Evaluate embedded auth first, rather than requiring a separately operated identity service.
    • Be willing to remove existing implementations in favor of mature upstream libraries. URLCode should concentrate on declarative behavior, enforceable authority, agent authoring and human review.

    The first implementation is #843: evaluate Better Auth as an embedded candidate with SQLite and an ordinary frontend. Build a small private-requests application with two users and a reviewer, upstream sign-in/out and session invalidation, owner-private records, and a reviewer-only approval transition. Prove local packed-consumer startup, meaningful denial/failure cases, and CLI/authoring-MCP validation with explicit human revision approval. Candidate adoption depends on evidence; do not recreate our existing auth system inside an adapter.

    How this affects #837:

    Related scoped work:

    These are separate slices, not prerequisites to build an entire replacement framework before #843. The first PR should report what worked, blockers, upstream dependencies, new adapter versus application code, and which existing subsystems can be deleted. Do not merge or publish packages as part of the proof without authorization.

    The audit's roughly 58–73% owned-runtime-source reduction is a planning estimate, not a demonstrated deletion or dependency-footprint reduction. This update records scope and coordination; it does not claim a replacement has shipped or that another running task was interrupted.

  6. jimhoyd commented on Sep 28, 2026

    @jimhoyd
    CollaboratorAuthor

    Maintainer clarification for #841/#843: Express and Fastify were examples, not the compatibility boundary or a framework shortlist. The direction is interoperability with established JavaScript/TypeScript frameworks and the broader npm ecosystem.

    Keep package identities, discovery, artifacts and core integration contracts independent of framework brands. Prefer established interfaces/formats and upstream APIs; use focused host adapters when lifecycle or request-context semantics differ. Be explicit whether an integration embeds URLCode, mounts a provider, consumes a library, or exchanges artifacts. Generic does not mean claiming every framework's plugins are interchangeable.

    The initial embedded-auth proof remains the first deliverable. Before settling its reusable contract, check for accidental coupling against a second materially different established framework/library integration and record concrete fit/gaps, using a bounded fixture where practical. Do not make implementing all frameworks a prerequisite, or grow a universal middleware layer speculatively.

    #837 remains on hold; this broadens the ecosystem objective rather than restarting its old stages. The authoritative scope in #841 now records this clarification.

  7. changed the title [-][On hold]: Expand application adapters across the URLCode framework and authoring ecosystem[/-] [+][Re-scoped; legacy expansion on hold]: Ecosystem integration, discovery and AI authoring[/+] on Sep 30, 2026
  8. jimhoyd commented on Sep 30, 2026

    @jimhoyd
    CollaboratorAuthor

    Status update (2026-09-30)

    Caught up with the #841 ecosystem rework and re-read this issue's current (reconciled) body before doing anything further.

    Shelved: the in-progress Stage C work from before the rework (StoreExports replace/remove, the records capability on store, and the fixed-contract-adapter recipe update) was never pushed/opened as a PR. It's preserved on a local branch but not landing — it targets the pre-rework file-backed store shape and directly contradicts this issue's "do not... expand legacy AuthExports/StoreExports for parity" instruction. Confirmed store now uses SQLite with StoreTransaction/membership/backup — a completely different surface.

    Verified already closed: #1052, #1041, #843, #844, #845, #846, #1047, #834, #835, #829, #830, #842. Nothing actionable remained open under those.

    Fixed the one concrete open item in this issue's own "Remaining work" table (section 5, "Documentation reconciliation found during this review"): PR #1080 corrects docs/FRAMEWORK.md's "Using npm libraries directly" section, which still said review "does not list what the route imports" and the digest "covers only the entry file" — stale relative to the implemented trusted-dependencies.ts/policy.ts bounded inventory and FUNCTION-SECURITY.md's own "Trusted dependency review" section. Also fixed a dead anchor (#granting-selected-bindings → #trusted-dependency-review). Checked proofs/ecosystem/README.md's corresponding claim too — it was already correct, no change needed there.

    Remaining items 3–4 in this issue's own list ("run a complete agent playback," "fix observed integration friction only") are an evaluation exercise and a reactive backlog respectively, not a bounded coding task — I'm not inventing speculative work against them. Flagging that so this issue's status is visible; happy to pick up a concrete follow-up if/when one is filed.

  9. jimhoyd commented on Sep 30, 2026

    @jimhoyd
    CollaboratorAuthor

    Agent playback + gap scan (2026-09-30)

    Ran both remaining items from this issue's list.

    Agent playback (CLI-only, packed consumer)

    • npm pack this repo, installed the tarball into a fresh scratch project (not in this checkout).
    • urlcode init . --with auth,store --example: clean, correct notes, no friction.
    • urlcode-auth migrate + create-user for two users: worked first try.
    • urlcode validate/test/audit --local-review: had to write app/tests/requests.json myself (expected — the init notes said so); one fixture's expected status was wrong on my first guess (403 cross_origin_refused before auth's 401 on a cross-origin DELETE) — informative failure, not a bug, and second attempt passed. audit's coverage advisories (gated-route-uncovered) were accurate and actionable.
    • plan-feature for a real feature request ("bulk-mark-done for the signed-in user's own todos") correctly named auth: true/ownership: owner and pointed at the authenticated-json-api recipe, but never surfaced that the bundled store extension has no request-bound capability for multi-record application code — only reachable by reading docs/EXTENSIONS.md's "Request-bound capabilities" prose directly. Filed as #1086.
    • Existing-project change (added a priority enum field to the todos collection, re-validated): passed cleanly, no data-shape friction.

    No blockers, no repair loops beyond the one fixture-status guess above. This is one run, not a statistical productivity claim.

    Gap scan (docs/code, beyond the FRAMEWORK.md fix in #1080)

    Checked for: leftover references to retired packages (admin/forms/form-records/ui/mail/abuse) presented as currently installable, stale sessionUserId guidance, AGENTS.md package lists against disk, the RIM-EXT-CAPABILITY-001/RIM-EXT-PRINCIPAL-001 contract-card test, dangling TODO #<issue> comments, and a full re-read of docs/FRAMEWORK.md. All clean — nothing else stale found. Root AGENTS.md and docs/FRAMEWORK.md already correctly list the current four packages (core, auth, store, mcp); the contract-card test passes; no dangling TODOs reference a closed issue.

    Net result

    The one concrete gap from this playback is filed as #1086 (small, scoped, plan-feature discovery only — not a new store capability). No other latent documentation or contract defects found beyond the one already fixed in #1080.

  10. jimhoyd commented on Sep 30, 2026

    @jimhoyd
    CollaboratorAuthor

    Closing: this epic's tracked remaining work is exhausted. #1052/#1041/#843-846/#1047/#834/#835/#829/#830/#842 are all closed; the one open documentation item was fixed in #1080 (merged); the agent-playback and friction-scan evidence this issue asked for is recorded above, with the one concrete gap found split out to #1086. Re-open or file a fresh issue if new scope emerges.

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