logicsrc teams clean <team> <project> <env> [--key K] [--dead] [--approve]
moves keys out of a live vault into its archive vault. Nothing is deleted:
a key leaves the live vault only after its archived copy reads back with
the same fingerprint. --dead finds URL values whose host no longer resolves
and Supabase JWTs whose project ref is such a host. A different value
already archived under a name is kept; the new copy gets a __<UTC stamp>
suffix. Each archived key has an __ARCHIVE__<NAME> entry (from, why, when,
who). Dry run unless --approve.
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
An attacker with root on dev2 read identity.json (identity secret key + a user
lsk_ token) and used the token against app.logicsrc.com. This closes the gaps
that made that worse than it had to be, and adds the tools to recover.
Identity keys
- A registered identity public key is never replaced by a login any more
("last login wins" let a stolen token swap in an attacker key). Changing it
needs `logicsrc teams rotate-identity`: the server seals a random answer to
the CURRENT key (single use, 5 min); the CLI proves possession and re-seals
every vault grant to the new key in one transaction (POST /keys/rotate).
- Lost key: reset from a signed-in browser (Settings), which drops every grant
sealed to the old key. `logicsrc teams key --import` moves a key to a new box.
Vault re-key
- `logicsrc teams rekey <team> <project> <env>` and `--all`: new vault key,
values re-encrypted client side, re-sealed to every current member and
machine key. Server bumps credshare_vaults.key_version; writes that name a
retired version get 409, and the rekey UPDATE only touches rows whose value
did not change mid-flight. A verify pass (per vault and a final sweep)
re-seals any value a racing older client wrote under the retired key.
Key pinning (TOFU)
- CLI pins teammates' and machine keys' fingerprints in known-keys.json (0600)
and refuses to seal (grant, rekey) to a changed key without
--accept-key-change. `teams members` shows fingerprints and pin status;
the dashboard shows fingerprints and public/pins.js flags changes.
Audit
- Every person read of a vault key (/grant) and of ciphertext (/secrets) is
audited with IP and user agent (also denied reads and identity events).
GET /teams/:slug/audit, `logicsrc teams audit`, and tables on the dashboard
and vault pages.
At rest / transport
- Session tokens stored as sha256 (rows hashed in migration 007); CLI auth
codes hashed. New API keys no longer travel in the /settings URL.
- CSP (script-src 'self', no inline script or handlers, frame-ancestors none),
HSTS, X-Frame-Options, Referrer-Policy no-referrer, COOP/CORP, no-store on
authenticated pages. Inline scripts moved to /app.js and
/vendor/profile-enhance.js.
- The shared footer renders from the bundled template of a pinned
@profullstack/footer 0.5.0 (allowlist sanitizer); no runtime CDN fetch.
- Migrations can run as a separate owner role (MIGRATE_DATABASE_URL) so the
app can connect as a DML-only role with an append-only audit table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One inventory file per operator: every machine, its profile, cost and
public metadata. Server devices point at the OpenServer offer they were
bought as.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
`credentials rotate` only re-keys a vault: values stay the same, so it does
nothing after a value leaks. This adds value rotation that agents can run.
- `teams rotation <team> [project] [env]`: per value, the method (random,
ssh-keygen, command, manual), where the instructions come from, how many
vaults hold it, and since when. --format json carries the steps for agents.
- `teams rotation-set <team> <project> <env> <KEY>`: store instructions as an
encrypted `__ROTATE__<KEY>` entry. The team provider hides that prefix
from sync, so it never lands in a .env and a push never deletes it.
- `teams rotate-keys <team> [project] [env] [--key] [--approve]`: dry run by
default. random/ssh-keygen/command values are minted and written to EVERY
vault holding the same value (by fingerprint); manual ones come back as
steps. `--set-from-stdin` stores a hand-rotated value everywhere the old
one lives. Values never print.
- Built-in catalog by key name: wallet keys and data-encryption keys are
never automatic; provider keys point at the provider's dashboard; only
secrets we mint ourselves are random (META_APP_SECRET etc. are not).
- Empty values (one shared fingerprint) are never planned or overwritten.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The create-account form (/?mode=up) asks for first/last name (required) and
company domain, job title, LinkedIn (optional) beside the email box, rendered
by renderProfileFields. /auth/register validates them with validateProfile
before the user exists and stores them with saveSignupProfile in a new
user_profiles table keyed by users.id. GET/PUT/PATCH /api/v1/me/profile
(session cookie) and a "Your details" card on /settings. Sign-in, passkey and
CoinPay are unchanged.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Profullstack footer on the app.logicsrc.com sign-in page (webring + built.indie + pwamart badges)
Server-rendered @profullstack/footer (clearnet template) under the LogicSRC
footer on the public sign-in page (/), bundled at boot and refreshed from the
@latest template every 15 min. Serves /.well-known/openwebring.json for the
Profullstack ring. Lockfile footer 0.2.1 -> 0.2.6 (checked with bun 1.4.2
--frozen-lockfile).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* PWA manifest + meta description: say what the app is (it carried a moshcode tagline)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(web): ring nav has previous/next only since footer 0.2.2 (no random hop)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
POST /api/hire-us/coinpay-checkout now opens a CoinPay checkout session
instead of a single-chain USDC_POL /api/payments/create. The buyer picks
any coin the business has a wallet for, or PayPal. Each session sends
customer_email (required), account_id (CoinPay OAuth sub when signed in,
else the buyer email for guests), property logicsrc.com and the Hire Us
metadata. The cs_ id is recorded in the new hire_us_checkouts table.
The webhook records session payments from the session fields
(checkout_session_id, account_id, customer_email, property), stores the
session id on hire_us_payments, marks the checkout paid, and stays
idempotent on payment_id across confirmed, forwarded and replays.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
PAYMENT-REQUIRED / PAYMENT-SIGNATURE / PAYMENT-RESPONSE (x402 v2 transport
headers), sale metadata (property, page, payer, UA, ip hash) sent to CoinPay
and onSale, and a Buy a day pass button (CoinPay hosted checkout, any coin or
PayPal) on the 402 page once CoinPay serves checkout sessions.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The CoinPay webhook only logged. It now verifies X-CoinPay-Signature
(t=,v1= over t.rawBody), reads the nested payload (data.payment_id, not
the top-level event id), and records a confirmed/forwarded Hire Us
payment once in hire_us_payments (payment_id primary key), mapped to the
buyer via metadata.account_id/email. Unknown or pending payments are a
200 no-op. Hire Us checkout now sends property, account_id (CoinPay
session) and email in metadata.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Homepage: removed the 300x250 ad.network unit, its CSS, its rescan effect and the home-only ad.js tag (the ad.network meta verification tag stays).
- Blog index and posts: the single unit is now text_link (AdUnit default), full width with an 8px margin, no centred 300x250 box.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* OpenTask 0.1 + OpenWorkflow 0.1: specs, schemas, fixtures, validators
docs/opentask.md mints OpenTask: one task a person does on a computer,
written down as meaning (goal, apps, parameters with a sensitivity class
and never a value, semantic steps with no coordinates, capture gaps, stop
conditions, approvals, a success check, provenance, runners with digests)
so an agent can do it again. docs/openworkflow.md mints OpenWorkflow: a
collection of OpenTasks inline or by URL + sha256, in sequence or any
order respecting after, with a publisher index at
/.well-known/openworkflow.json.
- @logicsrc/schemas 0.6.0: opentask, openworkflow, openworkflow-index
- @logicsrc/validators 0.6.0: step numbering, placeholders, apps,
no example on personal/secret parameters, after references
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* logicsrc-web: register OpenTask and OpenWorkflow
Registry entries (process family, status 0.1) after OpenErrand, with the
family blurb updated; /opentask and /openworkflow landing pages naming
w3bs.org/tasks and w3bs.org/workflows as the reference publisher and
moshscript (moshcode run) as one runner; the worked examples served under
/examples and a logicsrc.com workflow index at
/.well-known/openworkflow.json; contract tests holding the pages' lists and
the served files against the docs and fixtures, and both specs added to
spec discovery.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Anthony 2026-10-19 (bot hits decisions): sweep every site to the latest gateway;
"allow apple/google/cloudflare/bing etc. and ai chat bots".
- Verified Googlebot/bingbot/Applebot/DuckDuckBot/Cloudflare (full published
lists, IPv4+IPv6) unmetered; the same strings from elsewhere are charged.
- ChatGPT-User/OAI-SearchBot/Perplexity (from their published addresses),
Claude-User, Claude-SearchBot, meta-externalfetcher, meta-webindexer, YouBot,
ExaSearchBot, AionBot: welcome, unmetered, never challenged.
- From 0.8: headless browsers, SEO resellers, stale desktop UA pools and
Amazonbot are charged; training crawlers still pay.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The fleet is rolling out @profullstack/footer on purpose; put it back as
the site footer (links, webring, copyright) on SiteShell pages and the
homepage, before the pit.world global footer (still last in <body>).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Fetch https://pit.world/snippets/footer.html?site=logicsrc.com server-side
(1h revalidate, 3s timeout, renders nothing on failure) as the last thing
in <body>. Replace the @profullstack/footer block (links row + webring row
+ copyright) with one row: copyright and the needed links. The network and
ring links now come from the global footer.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The blog index and post pages each ended with an AdUnit right above the
site footer. It was each page's only ad, so it moves under the heading
(under the byline on posts) instead of being removed.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
app.bsky/chat.bsky lexicons moved from bluesky-social/atproto to
bluesky-social/bsky; oasis-open.github.io/csaf now 404s.
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
They linked /openi18n and /openl10n, which have no landing page (#242 made
those paths redirect to the docs; this removes the hop).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(web): broken doc links and missing OpenI18n/OpenL10n landings
ThreatCrush Link Watch found 14 dead links on logicsrc.com:
- /docs/opencreds linked its sub-documents and sibling specs as relative
Markdown files (./opencreds/spec.md, ./credential-sharing.md), which
resolved to /docs/*.md URLs the site never serves. Rendered docs now map
a link to a served doc to /docs/<slug> and anything else to the file in
the public repository; redirects keep the already-crawled .md URLs working.
- OpenI18n and OpenL10n were registered with a /<slug> landing that has no
page, so the sidebar and family grids linked /openi18n and /openl10n.
They now have no landing (link to their docs), and the old paths redirect.
A contract test checks that no rendered doc keeps a relative .md link, that
every repository target exists, and that every spec landing has a page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(pwa): serve the WebAuthn bundle from the hoisted install
/vendor/simplewebauthn-browser.umd.js joined apps/pwa/node_modules onto the
path, but the workspace install hoists @simplewebauthn/browser to the repo
root, so every sign-in and settings page loaded a 500 (ENOENT) and passkeys
could not work. Resolve the package like the libsodium vendor routes do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
writeSettings created its temp file with the original mode, but the create
mode is filtered through the umask, so a rewrite could leave the settings
file with fewer permission bits than it had. It now chmods the temp file to
the mode outright before the rename.
Found and fixed by a moshcode work agent (fleet sweep); verify:
npx vitest run ./src/hooks-install.test.ts (packages/openfleet).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* OpenABTest 0.2-draft: goal conversions
0.1 conversions are purchases with a price, so button, onboarding and
landing-page experiments had nothing conformant to report. 0.2 adds a goal
conversion: metrics.conversion "unique-participants-with-goal" with
metrics.goal, metrics.profit "none", and conversion events carrying exactly
one of price or goal (optional observed value). Backward compatible: every
0.1 document stays valid; goal forms require "0.2-draft". The reference
implementation is w3bs.org/ab-testing.
@logicsrc/schemas and @logicsrc/validators 0.5.0, @logicsrc/sdk 0.4.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* contract: accept any 0.x draft status (OpenABTest is 0.2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Generated from the W3BS npm CLI installer template so OpenContext can be
listed in the W3BS catalog. Installs @logicsrc/opencontext under ~/.local,
fetching a checksum-verified private Node 24 when the machine has no Node 20+.
The script lives in packages/opencontext/install.sh (the repo root install
slot is the logicsrc CLI's) and is served from apps/logicsrc-web/public.
The README and CLI docs lead with the curl line.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Adds docs/openpkg.md, a registry entry in the process family next to
OpenInstall, a /openpkg landing page and a contract test that keeps the
page's tables in step with the spec.
The spec is written from the w3bs reference implementation: package
identity grammar, TUF repository profile 1 with first-use trust by root
fingerprint, the package index, channel index, release manifest and curl
catalog documents, the catalog listing rule, client lifecycle rules,
receipts, the JSON result object and exit codes 0/1/2/3/4/5/130.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the hand-written footer / ring nav with the shared @profullstack/footer, rendered on the server so the ring verifier sees it and a package release updates the footer without a redeploy.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Copies svg + webp (hq and the three agentic styles) and openicon.json from
profullstack/openicon, re-subsets the Nerd symbols woff2 (Symbols Nerd Font
Mono 3.4.0) to the set's 351 codepoints so md-dice_5 and md-vote_outline
render, and bumps the page count to 372.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A filesystem route, so it wins over the CommandBoard /api/:path* rewrite
(unset in prod today, which left /api/health to the catch-all 404). One
head-only PostgREST query on blog_posts with a 3s cap: 200
{"status":"ok","db":"ok"} or 503 {"status":"error","db":"down"},
Cache-Control: no-store. The proxy skips the crawl gateway for the path.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Emoji: one grapheme or an OpenEmoji shortcode, your mark next to your name.
- Pronouns: its own key; shown as written, used in the third person, never
inferred; absent means unstated.
- Website, Homepage and Site are aliases of Web.
- All three in the person and agent examples, on the docs page and the site.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(install): build with Bun, installing it when missing
`logicsrc update` (and a fresh `curl … | sh`) failed on npm 11.19:
`npm install` refuses to prepare the one git dependency in the workspace
(@profullstack/autoblog) with EALLOWSCRIPTS, even under --ignore-scripts. The
npm-pinning fallback (scripts/install-npm.cjs) went inert when packageManager
moved to bun@…, and build:cli already runs `bun run`, so an npm-only machine
could not have built the CLI anyway.
The installer now uses the repo's own package manager: `bun install
--ignore-scripts` and `bun run build:cli`, installing Bun into ~/.bun via
bun.sh/install when it is not on PATH. Tested both paths: with Bun present, and
with a clean HOME and no Bun on PATH (installs Bun, builds 0.8.0).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(opencreds): give the spawn-per-test CLI suite a 30s timeout
Each case starts a fresh npx tsx process (3-5s on a loaded runner), so the 5s
vitest default failed a different case at random: it turned master red on
ade33ef and this PR twice. Nothing about the CLI changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A person's lsk_ key acts as the person, with one identity key per user. Logging
a fresh box in with `login --token` uploaded the box's new keypair as the
person's identity and replaced the real one. Machine keys fix that: a key made
for a box, scoped to one team (and optionally named vaults), read-only unless
--read-write, optionally expiring, with its OWN identity key registered on the
key row. A vault key reaches it as a grant sealed to that public key
(credshare_key_grants), never through the person.
Schema (005_machine_keys, SQLite + Postgres): api_keys gains kind, team_id,
vault_scope, read_only (default 0, so existing person keys keep writing),
expires_at, public_key; new credshare_key_grants; credshare_audit.actor_key_id.
Server: each credshare route declares what a machine key may do (read / write /
register); the rest are people-only. Machine keys see only their team and
scoped vaults, read their grant from credshare_key_grants (audited as
vault:read with the key id), are refused every write when read-only, and cannot
mint/list/revoke keys, read /api/me or touch the personal vault. Expired and
revoked keys are 401. New GET|POST /api/keys, DELETE /api/keys/:id, and
GET|POST|DELETE /api/credshare/vaults/:id/key-grants. A re-key re-seals the
machine grants it is given and drops the rest.
CLI 0.8.0: `logicsrc keys create|list|revoke` (--team, --vault, --read-only /
--read-write, --expires, --out 0600); LOGICSRC_API_KEY and
`login --api-key` with a per-key identity in keys/<prefix>.json (0600),
generated and registered on first use; `login --token` with a machine key takes
that path instead of replacing the person's key; `teams grant … --key <name>`;
`credentials rotate` re-seals machine keys.
PWA: settings creates machine keys (team, vaults, read-only, expiry); a vault
page grants or revokes a machine key in the browser after unlock.
MCP: list_api_keys / create_api_key / revoke_api_key over /api/keys with a
Bearer LOGICSRC_API_KEY.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The feedback.profullstack.com portal is decommissioned. Remove the
FeedbackWidget usage and its import from the root layout.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* OpenErrand 0.1: an errand on a website with no API, with the human steps kept human
docs/openerrand.md mints OpenErrand: one JSON file per errand (register an
account, download a transcript) naming the site, the inputs with a
sensitivity class and ordered sources (document, vault, prompt, generate,
derive, candidate, literal), field rules matched by id then label, page and
wait steps, five human gates a runner never performs (declare,
identity-proofing, code, mail, captcha), outcomes, the never-retried shared
secret, vault and download outputs, hand-off cards that may name only public
inputs, the publisher index at /.well-known/openerrand.json, and thirteen
runner rules. The worked example is the MyFTB business registration that
cli-tools `ftb` performs (profullstack/cli-tools#125), with no personal data.
- @logicsrc/schemas: openerrand + openerrand-index schemas and fixtures
- @logicsrc/validators: semantic checks (references, templates, no personal
or secret input on a card) and tests that validate the spec's own examples
- logicsrc-web: registry entry (process family), /openerrand landing page,
the example and the index served as static files, contract tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* OpenErrand: hand-off cards stay on the surface that owns the data
Anthony's ruling: tax and finance data never touches a social or promotion
tool, and nothing is sent to a CPA or preparer.
- Hand-off cards are delivered only on the surface that owns the errand's
data (for a tax or finance errand, the principal's finance app through its
CLI, PWA, MCP server or API, such as CoinPay, or the runner's terminal),
never a social, promotion or third-party posting service, and never to
anyone but the principal. A card for an errand with personal or secret
inputs does not leave that surface. Runner rule 9 says the same.
- The run record and the sample run name the card by an opaque id
(pin-letter/7f3k2q) instead of a mynaposter.com URL; the myna mention is gone.
- `principal: represented` no longer cites a preparer with a power of attorney.
- The FTB card's last step no longer suggests sending the PIN to someone else.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* OpenErrand: user-agent rule, captcha solver policy, reference runner note
Anthony's answers on #227 ("go with your recommendations"):
- Rule 11: a runner may run headless with a normal desktop browser user agent
(dropping HeadlessChrome) and nothing more: no fingerprint spoofing beyond
the UA string, no stealth plugins, no solving or evading a bot challenge.
A challenge the browser completes itself is a wait step; any other is a
captcha gate.
- Captcha solvers: new site.sector and captcha step `solver`
(forbidden by default | allowed). Never allowed on government, tax,
financial, healthcare or identity-provider sites, nor on any errand with a
declare or identity-proofing step or a secret input; elsewhere only when the
file says so, with every use logged. The validator rejects `allowed` in the
forbidden set or without a stated sector; six new tests. The FTB example
states sector "tax".
- Reference runner: @logicsrc/openerrand / `logicsrc errand run`, marked in
progress; ftb stays the runner the example was taken from.
- Name stays OpenErrand; family stays Agents and process.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* OpenErrand reference runner: @logicsrc/openerrand and logicsrc errand
Ship the runner docs/openerrand.md promised. `logicsrc errand run <file>`
reads an OpenErrand 0.1 file, validates it with @logicsrc/validators, and
drives headless Chrome through it under the spec's thirteen rules;
`errand validate` shows what a file will ask of you and `errand status`
shows the last run of each errand, its card and any lockout.
The engine is generalised from cli-tools `ftb` (PR #125) with no dependency
on cli-tools: the CDP client and Chrome finder from wcag.ts, the page reader,
native-setter fill and forward-button picker from ftb-run.ts, and the rule
matcher, throttle and outcome logic from ftb.ts, all now driven by the file.
- Inputs: document (an extractor hook; the one shipped runs a local command
that reads JSON requests and prints records), vault (teams or OpenCreds),
prompt (no echo for secrets), generate, derive, candidate, literal.
`--input name=value` wins. Shared-secret candidates are ranked as the spec
says, one is submitted, and a rejection lists the others for --candidate.
- Rules: id before label, step rules first, choices before text, an id match
final, an unmatched required field stops the run naming it.
- Gates: declare only with --declare after the values are shown; identity
proofing never touched (URL only) and handed over or stopped on; code from
the terminal or a code file, used once, a wrong code waits for the next;
mail ends the run waiting with the card; captcha is the person's, and a
CaptchaSolver interface is called only where the spec permits (no solver is
bundled); wait steps are polled, never solved.
- Throttle: 2 runs per errand and account in 30 minutes, 4 a day, 2 minutes
between runs on a site, lockouts from metadata.lockout or a default, held
per site and account, never lifted by --force.
- Outputs: credentials written before success to a teams vault by pull,
merge, push (metadata.vault or --vault), else a 0600 file said aloud;
downloads type-checked and never overwritten with different bytes; cards
only in the local run record.
- The user agent is Chrome's own with HeadlessChrome replaced, given at
launch: a CDP override did not reach a navigation the page's own script
started, which is exactly the proof-of-work interstitial case.
Tests: 85 in the package (rule engine, inputs, gates, throttle, outcomes,
captcha gating, vaults, outputs, commands) including an integration test
that runs the published FTB example unchanged in real headless Chrome
against a local HTTPS fake site (Chrome maps webapp.ftb.ca.gov to it and
every other host to NOTFOUND; all data fictional), and 2 in the CLI.
CLI 0.6.0 -> 0.7.0; @logicsrc/schemas and @logicsrc/validators 0.3.0 ->
0.4.0 (the OpenErrand schemas, and the vocabularies now exported for
runners); PRD 0009; the spec's Reference runner section and the landing
page say it ships.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* OpenErrand 0.1: an errand on a website with no API, with the human steps kept human
docs/openerrand.md mints OpenErrand: one JSON file per errand (register an
account, download a transcript) naming the site, the inputs with a
sensitivity class and ordered sources (document, vault, prompt, generate,
derive, candidate, literal), field rules matched by id then label, page and
wait steps, five human gates a runner never performs (declare,
identity-proofing, code, mail, captcha), outcomes, the never-retried shared
secret, vault and download outputs, hand-off cards that may name only public
inputs, the publisher index at /.well-known/openerrand.json, and thirteen
runner rules. The worked example is the MyFTB business registration that
cli-tools `ftb` performs (profullstack/cli-tools#125), with no personal data.
- @logicsrc/schemas: openerrand + openerrand-index schemas and fixtures
- @logicsrc/validators: semantic checks (references, templates, no personal
or secret input on a card) and tests that validate the spec's own examples
- logicsrc-web: registry entry (process family), /openerrand landing page,
the example and the index served as static files, contract tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* OpenErrand: hand-off cards stay on the surface that owns the data
Anthony's ruling: tax and finance data never touches a social or promotion
tool, and nothing is sent to a CPA or preparer.
- Hand-off cards are delivered only on the surface that owns the errand's
data (for a tax or finance errand, the principal's finance app through its
CLI, PWA, MCP server or API, such as CoinPay, or the runner's terminal),
never a social, promotion or third-party posting service, and never to
anyone but the principal. A card for an errand with personal or secret
inputs does not leave that surface. Runner rule 9 says the same.
- The run record and the sample run name the card by an opaque id
(pin-letter/7f3k2q) instead of a mynaposter.com URL; the myna mention is gone.
- `principal: represented` no longer cites a preparer with a power of attorney.
- The FTB card's last step no longer suggests sending the PIN to someone else.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* OpenErrand: user-agent rule, captcha solver policy, reference runner note
Anthony's answers on #227 ("go with your recommendations"):
- Rule 11: a runner may run headless with a normal desktop browser user agent
(dropping HeadlessChrome) and nothing more: no fingerprint spoofing beyond
the UA string, no stealth plugins, no solving or evading a bot challenge.
A challenge the browser completes itself is a wait step; any other is a
captcha gate.
- Captcha solvers: new site.sector and captcha step `solver`
(forbidden by default | allowed). Never allowed on government, tax,
financial, healthcare or identity-provider sites, nor on any errand with a
declare or identity-proofing step or a secret input; elsewhere only when the
file says so, with every use logged. The validator rejects `allowed` in the
forbidden set or without a stated sector; six new tests. The FTB example
states sector "tax".
- Reference runner: @logicsrc/openerrand / `logicsrc errand run`, marked in
progress; ftb stays the runner the example was taken from.
- Name stays OpenErrand; family stays Agents and process.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
`logicsrc vault` (OpenCreds) lived only in ~/.config/logicsrc/opencreds.
Lose the machine and the vault went with it, and a second machine had
no way to get it. It now syncs to the logged-in account.
Server (apps/pwa, /api/opencreds, session or lsk_ bearer):
- opencreds_vaults: one per user. meta (key material already wrapped
under the master password) + an encrypted folder list, each with a
revision.
- opencreds_items: one row per item, as the spec asks; envelope NULL is
a tombstone so purges propagate; seq for incremental pulls.
- Every write names its base revision; a stale one gets 409 with the
current row. Writes are conditional and read back (each envelope's
random IV identifies our write), so this needs nothing dialect-specific
from SQLite or Postgres.
- Stores ciphertext only. The server learns item count and type codes,
as OpenCreds security.md already accepts.
Client (@logicsrc/opencreds sync.ts, key-free except where noted):
- Pull before every vault command, push after. Offline, the command
still works and the change goes up next time.
- Conflicts never lose data: the account's edit keeps the id and this
machine's becomes "<name> (conflict copy)" (needs the unlocked key, so
it waits otherwise). An edit beats a purge. Byte-identical envelopes
are adopted, not split, so a lost sync.json is harmless.
- Two different vaults (meta.createdAt differs) are never merged:
refused, with `vault sync --use-remote` (backs this machine's up to
.bak-NNN) or `--use-local`.
- Remote item ids must be plain ids; anything else is ignored and never
becomes a path.
- Folder names are AES-GCM encrypted under the user key before upload.
CLI (0.6.0): `logicsrc vault sync [--status|--use-remote|--use-local]`.
Only the default vault syncs, and only when logged in; a --home or
OPENCREDS_HOME vault stays local unless LOGICSRC_VAULT_SYNC=on;
LOGICSRC_VAULT_SYNC=off disables it. The standalone `opencreds` binary
gets no remote and never syncs. `init` on a machine that just downloaded
the account's vault says to unlock it instead of suggesting --force.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* pwa: read vault values in the browser with a pasted identity key
The web app listed vaults but could never show a value: decryption needs the
member's X25519 secret key, which only lives in identity.json on the machine
that ran `logicsrc login`.
Each vault now has a page (/teams/:slug/vaults/:id, linked from the
dashboard) listing its secret names. Paste the identity key (or the whole
identity.json) and public/vault.js decrypts in the browser with the same
libsodium calls as the CLI: crypto_box_seal_open for the grant, then
crypto_secretbox_open_easy per value. Nothing is sent to the server.
- The pasted key is checked against the public key the server has on file
before use, so a key from another machine is named, not a generic failure.
- Show / Copy per value, Download .env, Forget key. The key is kept in
sessionStorage unless "remember on this device" is ticked.
- A member with no identity yet can create one in the browser. That
registers only the public half, and is offered only when no key is
registered, since replacing one would orphan every grant sealed to it.
- libsodium is served from node_modules at /vendor (no CDN), like simplewebauthn.
- Vault pages are no-store and the service worker no longer caches no-store pages.
- CLI: `logicsrc teams key` prints the secret key to stdout alone (pipe to
pbcopy) and warns when the server holds a different public key. The page
also gives a jq one-liner for CLIs released before this command.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* pwa: rename data-secret to data-key-name
ThreatCrush read data-secret="…" as a hardcoded credential (2 high, both
the attribute name, never a value).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* CLI 0.5.0 for teams key; install via install.sh, not npm
@logicsrc/cli is not on npm; the CLI ships through
curl -fsSL https://logicsrc.com/install.sh | sh, which builds master and
reports the version from packages/cli/package.json. 0.5.0 marks the first
build with teams key, and the vault page now says so and points older
installs at the jq fallback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Patches GHSA-vcvr-r3jv-pc5j, GHSA-2xp9-vwfh-vxw4 and GHSA-p293-qw3h-jr36.
Next 16.3's build type check now fails on src/lib/pagination.test.ts,
which imports a .ts path; allow .ts import extensions (noEmit is already
on) so the build passes.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Run on Bun: bun install, bun --bun next, both dev2 sites on Bun
Moves logicsrc.com and app.logicsrc.com (one image) off Node + npm onto Bun,
following the fleet recipe (phonenumbers.bot pilot).
- Package manager: bun.lock migrated from package-lock.json, so every resolved
version is unchanged; packageManager bun@1.4.2. Root scripts run each
workspace with `bun run --cwd <dir>` instead of `npm --workspace`.
- Bun 1.4.2, not the fleet's 1.4.0: 1.4.0 re-resolves this workspace's `file:`
cross-references differently on every install, so its own lockfile never
passes --frozen-lockfile. 1.4.2 is stable on it.
- Runtime: logicsrc-web runs `bun --bun next build/start`; apps/pwa (Express,
app.logicsrc.com) runs `bun src/server.mjs`.
- Image: .nixpacks/Dockerfile (the path both dev2 compose stacks build) is now
a hand-written oven/bun image carrying the whole workspace, run as the
non-root bun user. ENTRYPOINT stays `bash -l -c` so a compose `command:` is
one string, as before; app.logicsrc.com's compose starts it with
"npm --workspace @logicsrc/pwa run start", which .nixpacks/npm (the image's
only `npm`) turns into `bun run start` in apps/pwa. Port 3000, the PUBLIC_URL
build arg and the / health path are unchanged. The nixpacks .nix and
build.sh are gone.
- CI: both workflows install with bun and run every script through bun (Node
stays only as the interpreter for vitest/tsc/node --test/Playwright, as
before), and CI now boots the site under Bun.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* ci: boot check on port 3100 and stop it before Playwright needs 3000
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(web): keep next dev on port 5174, which Playwright waits on
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* OpenInstall 0.1: one idempotent bin/install.sh that puts an app into service
A repository carries bin/install.sh and, when the defaults are not right,
bin/install.conf. Run on a box from a checkout it installs the runtime and a
local Postgres or Redis, builds, writes a systemd unit and an nginx site with
TLS, restarts and health-checks the app. Phases setup, build, activate and
status; exit 0, 1 or 3; never overwrites a file without its marker line;
secrets only in STATE_DIR/app.env. sh1pt's deploy-ssh install.sh is the
reference script and `sh1pt ship --target deploy-ssh` the reference deployer.
Registered in the process family, with a landing page at /openinstall and a
contract test holding the page's tables to the spec.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* docs(openinstall): describe DATABASE_URL without a credentials-shaped URL
ThreatCrush flagged the placeholder postgres URL in the worked example.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A registrar price list at /.well-known/opentld.json (register, renew,
transfer, restore per TLD, promo beside the price it falls back to), the
top-level domain record a directory builds from IANA's list, root zone
database and RDAP bootstrap with a daily diff, and the RDAP availability
rule (404 is not registered, never available). nichedb.dev/tlds is the
first reader.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The dev2 image build declares PUBLIC_URL as a Dockerfile ARG, so the
app.logicsrc.com service (which builds this workspace too, from the same
root Dockerfile) sees PUBLIC_URL="" rather than unset. `??` keeps the
empty string and `new URL("")` in layout.tsx failed the build at
"Collecting page data" (run 36161007683). `||` treats empty as absent.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Production reads DATABASE_URL (postgres://) through @profullstack/libsql-pg,
which keeps the @libsql/client surface; no query changed. A missing,
non-Postgres or leftover libsql:// URL fails at boot in production. Dev and
tests keep libSQL (file:/:memory:) as a devDependency. Postgres migrations in
src/migrations-pg/ (converted with libsql-pg convert-schema, same file names
so the copied _migrations ledger matches); migrate.mjs picks the dialect.
Tests run against Postgres with PWA_TEST_DATABASE_URL.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
PR #216 deleted .nixpacks/ and git-ignored it; both dev2 deploy workflows
build from .nixpacks/Dockerfile, so every deploy of master since has failed
before the build (lstat app/.nixpacks: no such file or directory). Restored
from f478025.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* ops: deploy app.logicsrc.com to dev2 on merge
Railway deployed this on push; dev2 does not by itself. The workflow ssh's
to the box and runs /home/anthony/www/app.logicsrc.com/deploy-app.sh, which builds
the image from this checkout and restarts the compose stack. Generated by
cli-tools dev2/dev2-site scaffold.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* ops: stop committing the nixpacks build plan
`railway up` writes .nixpacks/ into the working tree: a Dockerfile, a
nixpkgs pin, and a build.sh that hard-codes the absolute path of the
worktree it ran in plus a one-off image tag. None of it is reusable and
no workflow reads it, so every branch that deploys regenerates it and
conflicts with the last one -- which is exactly how this branch ended up
CONFLICTING against master.
Drop it and ignore it.
* ops: drop the nixpacks build plan master picked up in #215
Same detritus, same stale absolute path (a worktree that no longer
exists). Now ignored, so it will not come back.
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Railway deployed this on push; dev2 does not by itself. The workflow ssh's
to the box and runs /home/anthony/www/logicsrc.com/deploy-app.sh, which builds
the image from this checkout and restarts the compose stack. Generated by
cli-tools dev2/dev2-site scaffold.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Anthony asked for OpenCar twice after I argued for OpenVehicle on the
grounds that it covered boats. His name is the better one: OpenCar is
what a person reaches for, and a site that lists cars lists the
motorcycle and the pickup beside them.
So rather than keep a name that disagrees with its contents, the scope
moves to match the name. `kind` is now car, motorcycle, truck, van,
suv, bus, rv, atv, other -- road vehicles. Boats and heavy equipment are
dropped from it and belong in sibling profiles, which cost nothing to
add because the parent does not change. Keeping them here would have
meant every field being optional and meaningless for half the subjects.
`subject.type` is `car` and the key is `subject.car`, so the axis value
and the profile agree.
Renamed the day it shipped and before anything reads it: no descriptor
exists yet, and nichedb's directory has not been built. Doing it later
would have meant a migration.
50 contract tests pass, spec-discovery included.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>