docs(readme): write public submission README with honest scope disclosure
This commit is contained in:
1 parent
ead05cc904
commit
c654a1cef0
5 files changed
+299
-19
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"MD013": {
|
||||||
|
"line_length": 80,
|
||||||
|
"tables": false,
|
||||||
|
"code_blocks": false
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"todo": 59,
|
||||||
|
"qa_scenario": "failure - any mini-app that didn't get built in time is checked against the README to confirm it's under 'roadmap', not claimed as shipped",
|
||||||
|
"executed_at": "2026-11-18T04:10:00Z",
|
||||||
|
"method": "For every one of the 13 mini-apps named in the README's problem-mapping table, independently confirmed on disk (not from the plan file's checkbox state alone) that: (a) a source directory exists under src/miniapps/<name>/, (b) a backing engine/logic module exists under src/lib/ where the mini-app has non-trivial logic, (c) a co-located *.test.ts(x) exists, and (d) that test file is part of the 394-passing vitest run captured in task-59-the-commons-hollow.json.",
|
||||||
|
"per_miniapp_check": [
|
||||||
|
{ "miniapp": "ma-fairshare", "dir_exists": true, "engine": "src/lib/ceei.ts (+ allocation-history trend)", "tests_pass": true, "claimed_in_readme_as": "shipped" },
|
||||||
|
{ "miniapp": "ma-waterwatch", "dir_exists": true, "engine": "src/lib/waterwatch.ts (CUSUM/EWMA)", "tests_pass": true, "claimed_in_readme_as": "shipped" },
|
||||||
|
{ "miniapp": "ma-tunnelsafety", "dir_exists": true, "engine": "src/lib/tunnelsafety.ts + src/lib/tunnelrouting.ts + src/miniapps/tunnelsafety/tunnelGraph.ts", "tests_pass": true, "claimed_in_readme_as": "shipped", "plan_checkbox_note": "todos 35/36 unchecked in plan ledger despite code+tests existing; see honesty note below" },
|
||||||
|
{ "miniapp": "ma-housing", "dir_exists": true, "engine": "src/lib/housing.ts", "tests_pass": true, "claimed_in_readme_as": "shipped", "plan_checkbox_note": "todos 28/29 unchecked in plan ledger despite code+tests existing; see honesty note below" },
|
||||||
|
{ "miniapp": "ma-assembly", "dir_exists": true, "engine": "Yjs CRDT, multiple src/lib/assembly* modules", "tests_pass": true, "claimed_in_readme_as": "shipped" },
|
||||||
|
{ "miniapp": "ma-findfamily", "dir_exists": true, "engine": "src/lib/findfamily.ts (PSI)", "tests_pass": true, "claimed_in_readme_as": "shipped", "plan_checkbox_note": "todos 30/31 unchecked in plan ledger despite code+tests existing; see honesty note below" },
|
||||||
|
{ "miniapp": "ma-healthpost", "dir_exists": true, "engine": "src/lib/healthpost.ts + src/lib/healthpostTally.ts", "tests_pass": true, "claimed_in_readme_as": "shipped", "plan_checkbox_note": "todos 32/33 unchecked in plan ledger despite code+tests existing; see honesty note below" },
|
||||||
|
{ "miniapp": "ma-lightclock", "dir_exists": true, "engine": "src/lib/lightclock.ts + src/lib/lightclockSensors.ts", "tests_pass": true, "claimed_in_readme_as": "shipped", "plan_checkbox_note": "todos 44/45 unchecked in plan ledger despite code+tests existing; see honesty note below" },
|
||||||
|
{ "miniapp": "ma-farms", "dir_exists": true, "engine": "src/lib/farms.ts", "tests_pass": true, "claimed_in_readme_as": "shipped", "plan_checkbox_note": "todo 38 unchecked in plan ledger despite code+tests existing; see honesty note below" },
|
||||||
|
{ "miniapp": "ma-fairdraw", "dir_exists": true, "engine": "src/lib/fairdraw.ts (commit-reveal)", "tests_pass": true, "claimed_in_readme_as": "shipped" },
|
||||||
|
{ "miniapp": "ma-theclimb", "dir_exists": true, "engine": "src/lib/theclimb.ts (min-cost-flow + congestion)", "tests_pass": true, "claimed_in_readme_as": "shipped" },
|
||||||
|
{ "miniapp": "ma-mentor", "dir_exists": true, "engine": "src/lib/mentor.ts + src/lib/mentorSchedule.ts (FSRS)", "tests_pass": true, "claimed_in_readme_as": "shipped", "plan_checkbox_note": "todo 47 unchecked in plan ledger despite code+tests existing; see honesty note below" },
|
||||||
|
{ "miniapp": "ma-sky", "dir_exists": true, "engine": "src/lib/sky.ts", "tests_pass": true, "claimed_in_readme_as": "shipped" }
|
||||||
|
],
|
||||||
|
"miniapps_found_unbuilt": [],
|
||||||
|
"honesty_note": "Zero mini-apps were found genuinely unbuilt, so none needed to be moved to a 'roadmap' section - the plan's own guardrail ('no claiming an unbuilt mini-app as live') is satisfied trivially, not vacuously skipped. The one real discrepancy this check surfaced is a plan-file BOOKKEEPING lag, not a shipped/unshipped mismatch: 13 sub-todos (8, 28, 29, 30, 31, 32, 33, 35, 36, 38, 44, 45, 47) remain unchecked in .omo/plans/the-commons-hollow.md even though every one of them has working, tested code on disk. This task did not tick those boxes (checking off checkboxes is explicitly the orchestrator's job per the task brief, not this executor's), but it is disclosed here and in task-59-the-commons-hollow.json rather than silently relied on or silently 'fixed' by editing the plan file out of scope.",
|
||||||
|
"genuinely_outstanding_items": [
|
||||||
|
"todo 60 (demo video, scripted + mechanically recorded) - not done as of this check; README does not claim a video exists",
|
||||||
|
"a permanent (non-`--temporary`) production deployment - the live URL in the README is explicitly labeled as a possibly-expired temporary preview, with the exact redeploy commands given rather than a bare link presented as permanent"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"todo": 59,
|
||||||
|
"title": "README + public repo packaging",
|
||||||
|
"executed_at": "2026-11-18T04:10:00Z",
|
||||||
|
"worktree": "/home/athapa/patriothacks-wt/wave-7-deploy",
|
||||||
|
"acceptance_criteria": {
|
||||||
|
"markdown_lint_passes_on_readme": {
|
||||||
|
"status": "pass",
|
||||||
|
"tool": "markdownlint-cli (via npx --yes markdownlint-cli)",
|
||||||
|
"config": ".markdownlint.json (MD013 line-length exempts tables and code blocks, standard practice; all prose lines wrap under 80 chars)",
|
||||||
|
"command": "npx --yes markdownlint-cli README.md",
|
||||||
|
"exit_code": 0
|
||||||
|
},
|
||||||
|
"link_check_confirms_live_deployment_resolves_200": {
|
||||||
|
"status": "pass_with_caveat",
|
||||||
|
"url": "https://agile-citrine-45o1qv9.tmp.now",
|
||||||
|
"checked_with": "curl -s -o /dev/null -w '%{http_code}' --max-time 10",
|
||||||
|
"http_status_at_check_time": 200,
|
||||||
|
"caveat": "This is a `vercel deploy --temporary --yes` preview URL (todo 57), which expires roughly 1 hour after its last deploy. It returned HTTP 200 and served the built index.html at verification time (age header ~2127s / ~35min since last deploy), but is EXPECTED to go dead on its own schedule shortly after this orchestration run ends. This was the user's own explicit accepted tradeoff ('temporary URL is fine for now'), not a shortcut taken by this task. The README documents the exact `npx vercel --prod` commands needed to produce a fresh permanent URL, and labels the preview link as possibly-expired rather than presenting it as a guaranteed-live link."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"deliverables": {
|
||||||
|
"readme": {
|
||||||
|
"path": "README.md",
|
||||||
|
"sections": [
|
||||||
|
"Live demo (with honest ephemeral-URL disclosure + redeploy commands)",
|
||||||
|
"Problem-to-mini-app mapping table (15 official problems -> 13 mini-apps, sourced from .omo/drafts/the-commons-hollow.md components table + .omo/ulw-research/20261117-proposals/report.html problem-title matrix)",
|
||||||
|
"Build and run instructions (npm install/dev/build/test/lint, matches package.json scripts verbatim)",
|
||||||
|
"Authoring your own mini-app (manifest schema from src/lib/miniappManifest.ts todo 53, SDK surface from src/shell/miniappSdk.ts todo 54)",
|
||||||
|
"What this does NOT do (mirrors the plan's Must NOT have / Scope OUT section verbatim in substance)",
|
||||||
|
"A note on timing (one-line hackathon pre-coding disclosure per finding D1/D13(e))",
|
||||||
|
"License (MIT, new LICENSE file added at repo root)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"license": {
|
||||||
|
"path": "LICENSE",
|
||||||
|
"type": "MIT",
|
||||||
|
"status": "created (did not previously exist in this repo)"
|
||||||
|
},
|
||||||
|
"markdownlint_config": {
|
||||||
|
"path": ".markdownlint.json",
|
||||||
|
"reason": "default MD013 (80-char line length) flags every markdown table row and long SDK code-comment line; disabling line-length enforcement for tables and code_blocks is the standard markdownlint-cli convention for READMEs containing tables, not a lint-bypass for prose"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ledger_verification": {
|
||||||
|
"method": "grep '^- \\[.\\] [0-9]' .omo/plans/the-commons-hollow.md against the live checkbox state, cross-checked against actual source tree (src/lib, src/miniapps, src/admin) and a full vitest run, rather than trusting the orchestration's own prior claim of '60/60 shipped'",
|
||||||
|
"finding": "13 non-59/60 checkboxes (8, 28, 29, 30, 31, 32, 33, 35, 36, 38, 44, 45, 47) are UNCHECKED in the plan file's ledger as of this task, despite full implementation + passing tests existing on disk for every one of them (verified: src/admin/AdminSeedPanel.tsx has a manual seed entry form for todo 8; src/lib/housing.ts + housing.test.ts for todo 28; src/miniapps/housing/FloorPlanScreen.tsx for todo 29; src/lib/findfamily.ts + findfamily.test.ts for todo 30; src/miniapps/findfamily/SearchScreen.tsx for todo 31; src/lib/healthpost.ts + healthpost.test.ts for todo 32; src/lib/healthpostTally.ts + healthpostTally.test.ts for todo 33; src/miniapps/tunnelsafety/TunnelMap.tsx + tunnelGraph.ts for todo 35; src/lib/tunnelrouting.ts + tunnelrouting.test.ts for todo 36; src/lib/farms.ts + farms.test.ts for todo 38; src/lib/lightclock.ts + lightclock.test.ts for todo 44; src/lib/lightclockSensors.ts + lightclockSensors.test.ts for todo 45; src/lib/mentor.ts + mentor.test.ts for todo 47). This reads as a plan-ledger bookkeeping lag from the prior orchestration run (checkboxes not ticked when the corresponding commits landed), not missing functionality. Reported honestly here rather than silently assumed-correct from the task brief's premise ('all of them, per this orchestration run's own ledger') or silently corrected without disclosure.",
|
||||||
|
"conclusion": "README describes all 13 mini-apps + the admin panel as shipped, backed by this run's own full `npm run build` (exit 0) and `npx vitest run` (394/395 passing, see build_and_test below) rather than by the plan file's checkbox count alone. Todo 60 (demo video) and a permanent (non-temporary) production deployment are the two items genuinely not yet done, and the README says so under 'What this does NOT do'."
|
||||||
|
},
|
||||||
|
"build_and_test": {
|
||||||
|
"npm_run_build": { "exit_code": 0, "command": "npm run build", "notes": "tsc -b type-check gate + vite build + PWA precache manifest, all succeeded; one pre-existing >500kB chunk-size warning, non-blocking per the plan's own non-blocking-Lighthouse stance" },
|
||||||
|
"npx_vitest_run": {
|
||||||
|
"test_files": "69 passed, 1 failed (70 total)",
|
||||||
|
"tests": "394 passed, 1 failed (395 total)",
|
||||||
|
"test_count_matches_head": true,
|
||||||
|
"pre_existing_failure": {
|
||||||
|
"file": "src/AppRoutes.test.tsx",
|
||||||
|
"error": "ConstraintError: fake-indexeddb object-store already exists (test-isolation flake in the fake-indexeddb/happy-dom harness, unrelated to any file touched by this task)",
|
||||||
|
"caused_by_this_task": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"changed_files": [
|
||||||
|
"README.md",
|
||||||
|
"LICENSE",
|
||||||
|
".markdownlint.json"
|
||||||
|
],
|
||||||
|
"not_changed": [
|
||||||
|
"no application source file under src/ was modified by this task",
|
||||||
|
"the plan file's checkbox for todo 59 itself was intentionally left unticked per the executor's instructions - that is the orchestrator's job, not this task's"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2026 THE COMMONS (the-commons-hollow) contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -1,32 +1,185 @@
|
|||||||
# React + TypeScript + Vite
|
# THE COMMONS
|
||||||
|
|
||||||
This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
|
An installable, mobile-first mini-app super-app for Patriot HackFest's "Life
|
||||||
|
Underground" track. One Ed25519 identity, one signed event log, and one
|
||||||
|
replay-derived mutual-credit wallet sit under an Alipay/WeChat/Tuya-style
|
||||||
|
mini-app launcher. Thirteen mini-apps cover all 15 official problems between
|
||||||
|
them, plus a built-in "upload your own mini-app and share it by QR code"
|
||||||
|
capability.
|
||||||
|
|
||||||
Currently, two official plugins are available:
|
No backend holds any application state. Everything a resident does is a
|
||||||
|
signed event; every balance and every allocation is a deterministic replay
|
||||||
|
of that event log, computed fresh in the browser every time.
|
||||||
|
|
||||||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
|
## Live demo
|
||||||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
|
|
||||||
|
|
||||||
## React Compiler
|
**Try it:** the deployed build lives at a Vercel preview URL that was created
|
||||||
|
with `vercel deploy --temporary --yes` during this build window. Temporary
|
||||||
|
preview URLs expire roughly one hour after the last deploy to them, so by the
|
||||||
|
time you read this the link below may already be dead - this was an explicit,
|
||||||
|
accepted tradeoff for the submission window, not an oversight. A permanent
|
||||||
|
`vercel --prod` deployment is planned separately, outside this document's
|
||||||
|
scope.
|
||||||
|
|
||||||
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
- Preview URL (may be expired): `https://agile-citrine-45o1qv9.tmp.now`
|
||||||
|
- If it's dead, redeploy it yourself in under a minute:
|
||||||
|
|
||||||
## Expanding the Oxlint configuration
|
```bash
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
npx vercel --prod # or: npx vercel deploy --yes for a fresh preview
|
||||||
|
```
|
||||||
|
|
||||||
If you are developing a production application, we recommend enabling type-aware lint rules by installing `oxlint-tsgolint` and editing `.oxlintrc.json`:
|
(Requires a free Vercel account; `vercel login` once if you've never used
|
||||||
|
the CLI before.)
|
||||||
|
|
||||||
|
## What THE COMMONS is
|
||||||
|
|
||||||
|
The Hollow's resident today has no tool at all for any of this. THE COMMONS
|
||||||
|
gives them one app, one login, one wallet, covering every civic function in
|
||||||
|
their life: rationing, water safety, tunnel hazards, housing, group decisions
|
||||||
|
in a cut network, finding separated family, a clinic visit, a body clock with
|
||||||
|
no sun, growing food, a fair lottery for scarce slots, the climb back to the
|
||||||
|
surface, learning a trade, and a shared sense of culture.
|
||||||
|
|
||||||
|
## Problem-to-mini-app mapping
|
||||||
|
|
||||||
|
The official packet poses 15 numbered problems. THE COMMONS answers all 15
|
||||||
|
with 13 mini-apps, merging three pairs of connected problems into a single
|
||||||
|
honest mechanism instead of shipping three thin, disconnected tools:
|
||||||
|
|
||||||
|
| Problem(s) | Official ask | Mini-app | Mechanism |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| P1, P2, P3 | Warn before power/air cuts; share power/water/food fairly; keep lower levels livable | **Fair Share** (`ma-fairshare`) | Competitive-Equilibrium-from-Equal-Incomes (CEEI) allocator across power, water, food, and cooling; envy-free, Pareto-efficient, with a real allocation-history trend as the honest early-warning signal (no fabricated sensor) |
|
||||||
|
| P4 | Catch bad water | **Water Watch** (`ma-waterwatch`) | CUSUM/EWMA change-point detection over corroborated resident water readings, feeding Fair Share's water number |
|
||||||
|
| P5 | Keep tunnels safe | **Tunnel Safety** (`ma-tunnelsafety`) | Crowd-sourced hazard reports plus A* routing around closed tunnel segments |
|
||||||
|
| P6 | Find/share space | **Housing** (`ma-housing`) | Constraint-based assignment engine (accessibility, family cohesion, medical proximity) with a fairness-debt ledger carried across cycles |
|
||||||
|
| P7, P13 | Organize without the network; prove the surface is safe | **Assembly** (`ma-assembly`) | Yjs CRDT for offline-first proposals/rosters/votes with liquid-democracy tally, a 3-layer resilience model (local-first, WebRTC partition-and-heal, QR-sneakernet air-gapped fallback), and a signed public testimony board reusing the same event-log infrastructure as group voting |
|
||||||
|
| P8 | Reconnect families | **Find Family** (`ma-findfamily`) | Private-set-intersection search so neither the relay nor the other party learns who searched unless there's a real match |
|
||||||
|
| P9, P10 | Track outbreak, route supplies; care without a clinic | **Health Post** (`ma-healthpost`) | WHO-IMCI protocol-guided triage chat backed by real crowd symptom self-reports aggregated into a dispatch-facing tally |
|
||||||
|
| P11 | Life without sunlight | **Light Clock** (`ma-lightclock`) | Circadian phase-response model from manual/sensor light exposure logs; a personal wellness tracker only, never wired to ration anything |
|
||||||
|
| P12 | Grow/share food | **Farms** (`ma-farms`) | Growing-degree-day model plus an LP planting optimizer under a fixed grow-light power budget, feeding Fair Share's food number |
|
||||||
|
| P14 | Which option works, who's first | **Fair Draw** (`ma-fairdraw`) | Commit-reveal lottery engine; its tie-break utility is reused by other mini-apps that need a provably unriggable draw |
|
||||||
|
| P15 | Plan the mass return | **The Climb** (`ma-theclimb`) | Min-cost-flow scheduling plus a congestion simulation for surface-return logistics, calling Fair Draw for contested wave slots |
|
||||||
|
| (wildcard) | - | **Mentor** (`ma-mentor`) | Skill-criticality-ranked knowledge feed with FSRS spaced-repetition scheduling, so trade knowledge survives a generation |
|
||||||
|
| (wildcard) | - | **Sky** (`ma-sky`) | Ambient clock-schedule and shared memory wall; a culture/morale mini-app, not a utility |
|
||||||
|
|
||||||
|
Shared across every mini-app above: one identity, one wallet (mutual-credit
|
||||||
|
balance card + transaction history), and one signed event log that every
|
||||||
|
mini-app reads and writes through - never a mini-app-local store pretending
|
||||||
|
to be independent.
|
||||||
|
|
||||||
|
## Build and run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install
|
||||||
|
npm run dev # Vite dev server at http://localhost:5173
|
||||||
|
npm run build # tsc -b (type-check gate) && vite build -> dist/
|
||||||
|
npm run test # vitest run
|
||||||
|
npm run lint # oxlint
|
||||||
|
```
|
||||||
|
|
||||||
|
The app is local-first: everything except the mini-app-sharing blob store
|
||||||
|
(`api/`, used only by the upload/QR flow) runs entirely in the browser
|
||||||
|
against IndexedDB (Dexie). To run the blob API locally alongside the dev
|
||||||
|
server: `npm run dev:api`.
|
||||||
|
|
||||||
|
## Authoring your own mini-app
|
||||||
|
|
||||||
|
Anyone can upload a mini-app (an HTML file plus a manifest) through the
|
||||||
|
Upload mini-app in the shell, and share it to another device with a scannable
|
||||||
|
install QR code. There is no sandboxing in this MVP (an explicit, accepted
|
||||||
|
scope cut, not an oversight): an installed mini-app gets direct DOM mounting
|
||||||
|
and the same shared SDK access any shell code has.
|
||||||
|
|
||||||
|
### Manifest schema
|
||||||
|
|
||||||
|
A manifest is a JSON object with four fields, validated before the package
|
||||||
|
is ever stored (`src/lib/miniappManifest.ts`):
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
"name": "My Mini-App",
|
||||||
"plugins": ["react", "typescript", "oxc"],
|
"icon": "📦",
|
||||||
"options": {
|
"entryPoint": "index.html",
|
||||||
"typeAware": true
|
"permissions": ["ledger.read", "eventlog.read", "eventlog.write"]
|
||||||
},
|
|
||||||
"rules": {
|
|
||||||
"react/rules-of-hooks": "error",
|
|
||||||
"react/only-export-components": ["warn", { "allowConstantExport": true }]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [Oxlint rules documentation](https://oxc.rs/docs/guide/usage/linter/rules) for the full list of rules and categories.
|
| Field | Type | Meaning |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `name` | non-empty string | display name shown on the home-grid tile |
|
||||||
|
| `icon` | non-empty string | emoji, data URI, or relative path within the package |
|
||||||
|
| `entryPoint` | non-empty string | the file inside the package to load on launch |
|
||||||
|
| `permissions` | array of strings | declared capabilities, each one of `ledger.read`, `ledger.write`, `eventlog.read`, `eventlog.write`, `identity.read` |
|
||||||
|
|
||||||
|
A manifest missing a required field, or declaring an unknown permission
|
||||||
|
string, is rejected with a specific, actionable error naming the offending
|
||||||
|
field - but validation checks shape and completeness only. There is no
|
||||||
|
runtime permission-enforcement layer: a mini-app that passed validation gets
|
||||||
|
the full shared SDK below regardless of which permissions it declared. That
|
||||||
|
is a deliberate MVP cut, not a bug.
|
||||||
|
|
||||||
|
### SDK surface
|
||||||
|
|
||||||
|
Once mounted, a mini-app's own script can call the shared SDK object
|
||||||
|
(`src/shell/miniappSdk.ts`) directly:
|
||||||
|
|
||||||
|
```ts
|
||||||
|
sdk.ledger.getBalance(accountId?) // -> Promise<number>, your current wallet balance
|
||||||
|
sdk.eventlog.append(...) // the real signed-append path, same one the shell uses
|
||||||
|
sdk.eventlog.readAll() // the real ordered read path, same one the shell uses
|
||||||
|
sdk.identity.getPublicKey() // your Ed25519 public key
|
||||||
|
```
|
||||||
|
|
||||||
|
`eventlog.append`/`readAll` and `identity.getPublicKey` are the actual shell
|
||||||
|
module functions, exposed unwrapped - not a mocked or narrowed copy.
|
||||||
|
`ledger.getBalance` is a convenience composition over the shell's pure
|
||||||
|
ledger-replay functions, since the ledger itself holds no state of its own.
|
||||||
|
|
||||||
|
## What this does NOT do
|
||||||
|
|
||||||
|
- **No hardware of any kind.** Every reading in every mini-app comes from a
|
||||||
|
real resident report through the UI, never a simulated sensor.
|
||||||
|
- **No fabricated or simulated data standing in for reality anywhere.**
|
||||||
|
Light Clock stays a personal circadian tracker; it is never wired to
|
||||||
|
ration a real resource.
|
||||||
|
- **No generic backend "allocator kernel" plugin interface.** Each
|
||||||
|
mini-app's solver is hard-coded to that mini-app, on purpose - unifying
|
||||||
|
them behind a shared abstraction was considered and explicitly cut as
|
||||||
|
premature.
|
||||||
|
- **No runtime dependency on an LLM or agent framework in the shipped app.**
|
||||||
|
OmO/senpi was a build tool for this session only; the deployed app calls
|
||||||
|
none of it.
|
||||||
|
- **No sandboxing or isolation for uploaded mini-apps.** Direct DOM mount
|
||||||
|
with full shared-SDK access is the MVP design, not a shortcut taken under
|
||||||
|
time pressure - see "Authoring your own mini-app" above.
|
||||||
|
- **No blockchain, mining, or global consensus for the wallet.** Balances
|
||||||
|
are Ed25519-signed events replayed deterministically; that makes forgery
|
||||||
|
mathematically impossible and makes a double-spend provable the moment
|
||||||
|
two replicas re-merge, but it does not make a double-spend committed
|
||||||
|
during a simultaneous, total network partition real-time preventable
|
||||||
|
without consensus or hardware neither of which this build has. The
|
||||||
|
wallet is honestly single-device-per-identity in the shipped app; only
|
||||||
|
Assembly's separate CRDT document gets real cross-device sync.
|
||||||
|
- **No dark-mode theme, and no hard Lighthouse-score gate.** Lighthouse is
|
||||||
|
recorded for information only and never blocks a deploy.
|
||||||
|
- **Nothing here claims an unbuilt mini-app as "live."** All 13 mini-apps
|
||||||
|
listed above are built, tested, and wired into the shell; there is no
|
||||||
|
mini-app left unbuilt to disclose as roadmap. The one outstanding item
|
||||||
|
from the submission checklist is the scripted/recorded demo video, and a
|
||||||
|
permanent (non-temporary) production deployment - both tracked
|
||||||
|
separately from this README.
|
||||||
|
|
||||||
|
## A note on timing
|
||||||
|
|
||||||
|
Research, problem selection, and the written plan for this build all
|
||||||
|
happened before the official build window opened, which is standard
|
||||||
|
hackathon practice: the official rule bans writing the submitted
|
||||||
|
application's *source code* outside the build window, not prior planning or
|
||||||
|
library selection. Every line of application code in this repository was
|
||||||
|
written inside the official build window.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
MIT - see [LICENSE](./LICENSE).
|
||||||
Reference in new issue
Block a user