Repository navigation
prototype(tier2): the stack the reference CRM needs, files, handles, shared stores and company Postgres - #381
Closed
allisonmahmood wants to merge 7 commits into
Closed
allisonmahmood wants to merge 7 commits into
allisonmahmood wants to merge 7 commits into
Conversation
…ll URL Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ds, shared stores, viewer filter and hidden documents ctx.files on tier 2 (list/stat in queries, get/put/delete in actions), authorised file handles redeemed through the shell with live re-authorisation and a revalidated byte cache, staged uploads adopted by an action, shared file stores with add shared-store and discovery, the tier 2 page made server-only, handler refusals contained, and hidden-document suspension. The step 11 proofs run with pnpm test:prototype-crm. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…wo allowlist variants, journey fixtures and skills ctx.connections exercised for real against a read-only role on the Neon spike project, registered through the admin connection page; variant A (patchy only) and B (Zag.js Preact adapter with four machines, TanStack preact-table) chosen at init and honoured by refresh, the import check and generation; one fixture script for the contracts source, finance connection, contacts.csv and truth files; project skills for files, handles, uploads, shared stores, useQuery and useFileUrl. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…on and rollback, fixture fixes and the README Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e verifier's scores Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This was referenced Sep 27, 2026
Closed
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prototype, not for merge. Part of #315.
The reference CRM is the tier 2 map's acceptance journey, and the stack could not host it: tier 2 had no files, no authorised file handles, no staged uploads, no shared file stores, and
ctx.connectionshad never run against a real company database. This branch builds those on top of #380 (it is based onprototype/tier2-init, so the diff shows only this round) so fresh agents can build the CRM from the project skills alone.What is here
ctx.files): list/stat with handles in queries, get/put/delete in actions, store-grain wakes.patchy.files.url/download,useFileUrl.patchy.files.stage→ single-useUpload,t.upload()in action args, adoption as a pointer write underfiles/<patchId>/<objectId>.files(…, { shared: true }),patchy add shared-store, discovery inpatchy list, live checks, unshare waking subscribers, reshare restoring them, dependants refusing unshare withoutforce, dev fixtures.tables.*directly around the handler's viewer filter).crm_finance, read-only role proven by refused writes) reached from an action.patchy,preact,@preact/signals), B adds@zag-js/preactwith four machines and@tanstack/preact-table; both smoke-tested under compat.pnpm test:prototype-crm, 9/9), updated skills pluspatchy-shared-storesand the variant-B-onlypatchy-packages.prototypes/tier2-crm/README.md: file map, API shapes, numbers, gaps, decisions.The four runs
Each variant was built from the skills alone twice, once by Opus 5.5 and once by astra. All four published inside the 90-minute box, and none bypassed authority. An independent Opus verifier scored them against truth files: A-Opus 92 (9 m 43 s), A-astra 95 (56 m), B-Opus 92 (10 m 44 s), B-astra 94 (43 m 52 s). Variant B's packages went almost unused: one Zag dialog in one run, which cost 24 KB gzip. The verifier found a stack bug: a dropped client leaves its company transaction idle and its slot taken. The sources, reports and scores are in
prototypes/tier2-crm/runs/, and the report and wall list are on #315.Verdict
Resolved on #315 on 2026-09-27. No example CRM ships to agents; the four runs stay here as internal reference. The allowlist is the floor only. The company member directory becomes a native resource.
Try it
Not breaking: nothing here is deployed; it is a throwaway branch.
Built by Claude Opus 5.5 (builder subagent), orchestrated by Claude Fable 5.1 via Claude Code.
🤖 Generated with Claude Code