{
  "_comment": "Source of truth for changelog.html, rendered by site.js. Newest first. Each entry describes a change set that actually merged to main (refs are GitLab work items / MRs). Versions and dates are [PLACEHOLDERS] until a release is cut - the copy rule forbids invented numbers and dates. Types: feature | fix | security. Keep the static fallback list in changelog.html in step (scripts/check-site.py checks every title appears there).",
  "entries": [
    {
      "id": "security-hardening-0382",
      "version": "0.3.82",
      "date": "2026-10-27",
      "type": "security",
      "area": "daemon + enclaves + cloud",
      "title": "Security hardening: the policy file, the gate, enclaves and the cloud",
      "summary": "The policy file loads only as Neku wrote it or as you accepted it, stopping Neku always asks, and enclaves and the cloud are tighter.",
      "items": [
        "policies.toml loads only when the daemon wrote it through a signed path or you ran neku policy accept. An edit made behind its back leaves the last accepted copy in force, trips the breaker and tells your devices why. The gate's hook entries are fingerprinted and tampering is reported.",
        "With no daemon running, the approval gate gives no answer, so the agent's own permission settings decide, as if Neku were not installed.",
        "Stopping or reconfiguring Neku always asks, even in Full-Auto, and so do writes to shell startup and autostart files (rc files, LaunchAgents, systemd user units, crontab). A session started in your home directory no longer treats all of it as the project.",
        "Enclaves: no host file writes through symlinks, a hook socket per enclave instead of the host's, the push bundle handled as untrusted input, and a build context that must stay inside the clone. Enclaves built before this release need a rebuild.",
        "Cloud: throttles per host and per account, at most 25 hosts per account, a priority lane for held-call pushes, store receipts bound to one account, and removing a device signs it out. The unused file-upload route is gone."
      ],
      "refs": ["#393", "#396", "#397", "#391", "#392", "#399", "#400", "#401", "#394", "#404", "#405", "#406", "#413"]
    },
    {
      "id": "bound-forms-0381",
      "version": "0.3.81",
      "date": "2026-10-27",
      "type": "security",
      "area": "protocol 36",
      "title": "Protocol 36: what you approve is what runs",
      "summary": "Approvals are bound to the exact call you saw, held calls are signed by the host, and device actions name their host.",
      "items": [
        "The host signs every held call it sends through the cloud; your device shows nothing it cannot verify against the key it pinned at pairing.",
        "Approvals, grants and always-allow rules carry a digest of the exact tool, command and target you were shown, and the host checks it against the call it holds.",
        "Device actions name the host they are for, so one cannot be replayed to another.",
        "WebRTC answers and refusals are bound to the offer they answer.",
        "neku set legacy-forms off refuses older apps' unbound forms. It is on by default while apps update, and every use is logged. iOS, Mac, web and Android send the bound forms."
      ],
      "refs": ["#390", "#409", "#381"]
    },
    {
      "id": "bound-results-0380",
      "version": "0.3.80",
      "date": "2026-10-27",
      "type": "fix",
      "area": "daemon + clients",
      "title": "Sessions that end, results that land where they were sent",
      "summary": "A zombie agent no longer keeps a session open, and relayed results are bound to the host and action that asked for them.",
      "items": [
        "A zombie agent process no longer reads as alive, so its session ends.",
        "Relayed action results are bound to the host and the action they answer, on the web and iOS.",
        "Canonical JSON escapes identically on Go, Swift, the web and Android.",
        "A session on an unpaired host says to pair it first; an unknown host id is never treated as the active host.",
        "Cloud: an unused device-registration route was removed."
      ],
      "refs": ["#376", "#380", "#371", "#388", "#389"]
    },
    {
      "id": "host-links",
      "version": "0.3.77",
      "date": "2026-10-23",
      "type": "feature",
      "area": "daemon + apps",
      "title": "Host links and neku delegate",
      "summary": "Link your own hosts and run a command on the one that can, from another.",
      "items": [
        "neku capabilities lists what a host can do (OS, Xcode, Docker, GPU, agents) plus what you declare.",
        "Host links are made by you from a paired device, signed, and scoped; neku links and neku link revoke manage them on the host. Off by default.",
        "neku delegate --needs <cap> -- <cmd> runs a command on a linked host and brings back its output, exit status and artifacts. Linux hosts run jobs in a container, a Mac as a separate job user. Jobs can detach, re-attach and survive a restart."
      ],
      "refs": ["#350"]
    },
    {
      "id": "several-hosts",
      "version": "0.3.60",
      "date": "2026-10-10",
      "type": "feature",
      "area": "apps",
      "title": "Several hosts at once, the Mac terminal and the usage probe",
      "summary": "The apps hold a link to each host at once, the Mac gets a native terminal, and Neku can read each agent's own usage.",
      "items": [
        "iPhone, iPad, Mac and the web keep a content link to every paired host at once; each action goes to its own item's host.",
        "The Mac app has a native terminal and a workspace with tabs and splits.",
        "neku set usage-probe on runs each agent's own usage command for its real allowance (off by default). Usage per login, session and host.",
        "The iPad layout: sidebar and columns by window width, Split View and rotation.",
        "Removing a device from the account frees its push slot; it rejoins only after a fresh sign-in on it."
      ],
      "refs": ["#289", "#106", "#209", "#335", "#338", "#177", "#329"]
    },
    {
      "id": "approvals-rebuilt",
      "version": "0.3.53",
      "date": "2026-10-07",
      "type": "feature",
      "area": "approvals + apps",
      "title": "Quick grants, Full-Auto, Away mode and preview",
      "summary": "Approvals you can scope, a per-session Full-Auto with the backstop still on, Away mode for bad links, and the agent's dev server in the app.",
      "items": [
        "Quick grants from the held call: allow once, for this session, for 60 minutes or always, by exact command or by program.",
        "Every agent's read and search tools never ask, except where the backstop applies; a new grant or rule releases the calls waiting behind it.",
        "Command chains joined by &&, || and ; are judged part by part, and the card shows which part needs you.",
        "Full-Auto per session: off by default, a biometric check to turn on, one tap off. The backstop, pipes into a shell and your deny rules still apply; neku set full-auto off-permanently turns it off for the host.",
        "Away mode: held calls wait longer for you on a bad link and still deny at the end; on, off and renew from any device.",
        "Preview: the agent's dev server in an in-app browser on iPhone and Mac, and on an isolated origin on the web, including ports a session's own containers publish.",
        "Decide from the notification, behind Face ID or Touch ID."
      ],
      "refs": ["#296", "#306", "#317", "#321", "#322", "#305", "#303", "#324", "#307", "#308"]
    },
    {
      "id": "relay-443",
      "version": "0.3.36",
      "date": "2026-10-05",
      "type": "feature",
      "area": "transport",
      "title": "An encrypted relay for networks with no direct path",
      "summary": "Where only port 443 gets out, the link can go through a TURN relay over TLS, still encrypted end to end between device and host.",
      "items": [
        "Direct is always tried first. When no direct path exists, the WebRTC link can use a managed TURN relay (Cloudflare) over TLS on port 443.",
        "The relay carries only the link's DTLS records: it sees addresses, timing and sizes, never content. The cloud only mints short-lived credentials.",
        "Early access: available to allow-listed accounts. The opt-in setting and its consent text are still to come."
      ],
      "refs": ["#213", "#270"]
    },
    {
      "id": "one-pairing-code",
      "version": "0.3.18",
      "date": "2026-10-03",
      "type": "security",
      "area": "pairing",
      "title": "One pairing code on every device",
      "summary": "neku pair shows one code, as a QR, a link and text, and every client takes it in one field. The cloud never sees the code.",
      "items": [
        "Over your SSH tunnel the code goes straight to the host. Anywhere else it goes through your account as a proof keyed by the code, and the host's signing key is pinned only from its answer.",
        "A host that is in no account yet joins yours only after someone at its terminal agrees to your account by name.",
        "The older pairing paths are gone: neku pair-web, neku pair approve, device attestation and the separate short code."
      ],
      "refs": ["#187", "#194"]
    },
    {
      "id": "approval-richness",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "approvals",
      "title": "Approvals with the reason, the risk and a fair clock",
      "summary": "A held call now carries why the agent wants it and what it would touch, and the timeout can be extended in five-minute steps - three times, never disabled.",
      "items": [
        "The approval frame carries the tool's own rationale (capped at 400 characters), the working directory and project, and a risk analysis: files and bytes touched, network egress, reversibility from git, privilege and scope. The command is never run to work this out.",
        "Extend adds 5 minutes to the deadline, at most 3 times per request; a fourth is refused and the request stays pending. It never resets the clock and never disables the timeout - after the third extend the window runs out and denies as it always would.",
        "Under 40% of the window remaining the daemon flags the call as denying soon and re-announces it once, so a device without a trustworthy clock still shows the warning.",
        "Every applied decision is acknowledged by the daemon - over the tunnel, in bulk and via the cloud relay - so a device shows 'sending' until it is really in.",
        "Bulk approve: N individually signed decisions in one request with per-row results; there is no batch signature.",
        "Always allow from a held call: the daemon builds the narrowest exact-match rule from the complete command and refuses any shell control character, any backstop category and any truncated command.",
        "Shutting the daemon down - a service restart, neku update, --replace or a reboot - now denies every held call and releases the agent at once, instead of stalling until the agent's own hook timeout fires. A shutdown is a timeout-class event, so it fails closed and is audited as one.",
        "The gateway flushes what it has already queued before it closes, so a device that was connected when the host went down sees the call dismissed and a clean close, rather than a dropped socket and a countdown for a decision that was already made.",
        "The call contexts that 'always allow' builds a rule from are evicted in the order they were written, so calls fanned out in the same instant age out predictably."
      ],
      "refs": ["#44", "#72", "#78", "#79"]
    },
    {
      "id": "logging-diagnose",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "daemon + cli",
      "title": "Structured logs, neku logs and neku diagnose",
      "summary": "The daemon keeps a redacted, rotating log you can tail, and one command writes a support bundle that carries no content.",
      "items": [
        "Structured daemon log: NEKU_LOG_LEVEL levels, text on stderr when interactive, JSON lines in a 0600 file under the state directory, rotated daily and at 20 MB, kept 7 days. A redaction handler keeps commands, tokens, keys and content out of every line.",
        "neku logs [-f] [--since 1h] [--level warn] [-n N] [--json] tails the log across rotations.",
        "neku diagnose writes a redacted 0600 tar.gz (or --stdout): status, versions, hook drift, reachability, disk, policy and audit counts and the last 200 log lines - never transcript content, commands, tokens or keys. Home paths, usernames, hostnames and git remotes are replaced. Nothing is uploaded.",
        "neku status gains logs and disk lines; a full disk sheds outbox and audit writes with one warning instead of swallowing them, and approvals keep working, fail-closed.",
        "The policy audit log is pruned after 30 days."
      ],
      "refs": ["#37"]
    },
    {
      "id": "signed-releases",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "security",
      "area": "installer + daemon",
      "title": "Signed releases and self-update",
      "summary": "Every release is Ed25519-signed and verified before anything runs, at first install and on every update after.",
      "items": [
        "latest.json and checksums.json ship with a detached Ed25519 signature; the release key is pinned in install.sh, built into the neku binary and published at get.neku.sh/release-key.pub for out-of-band comparison.",
        "install.sh verifies the manifest signature with openssl, reads the platform digest from the verified manifest, checks the tarball against it, and only then extracts. Every failure is fatal; there is no skip flag.",
        "neku update repeats the same verification with the embedded key, never installs an older or equal version, swaps the binary atomically and restarts the service. --check reports only.",
        "neku status shows \"update available\" from a cached check refreshed at most every six hours; NEKU_NO_UPDATE_CHECK=1 turns it off.",
        "NEKU_BASE still points at a mirror, with a warning: a mirror can serve an older signed release, never a modified one."
      ],
      "refs": ["#32"]
    },
    {
      "id": "one-command-first-run",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "installer + cli",
      "title": "One command on the host, then neku pair",
      "summary": "First run is one install command and one pair command; leaving is one command too.",
      "items": [
        "install.sh puts neku in ~/.local/bin, adds a tagged PATH line to bash, zsh or fish if needed, installs the user service, and wires Claude Code's hooks when Claude Code is present. It prints one next step.",
        "neku pair starts the daemon if it is not running - the installed service, or a background neku serve on a host without one - then prints the code and the host id.",
        "neku pair --code prints only the code for scripts; --json adds the lifetime and host id.",
        "neku uninstall --all --yes removes the service, hooks, device tunnel keys, state, config, the PATH line and the binary. Without --yes it prints the plan and stops."
      ],
      "refs": ["#33", "#12"]
    },
    {
      "id": "guard-rails",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "fix",
      "area": "schema + tests + cloud",
      "title": "Generated wire types, invariant tests, cloud alarms",
      "summary": "The things that must never drift are now generated or tested, and the cloud pages someone when it breaks.",
      "items": [
        "TypeScript and Swift wire types are generated from the protocol schema; the hand-written mirrors are gone.",
        "Regression tests pin the non-negotiable rules: the hook shim always exits 0, shell control characters never auto-approve, timeouts deny, the policy file is never auto-approvable for write.",
        "Alarms on every Lambda, API, table and certificate, one dashboard, and a cap on state_sync payloads."
      ],
      "refs": ["#39", "#36", "#38"]
    },
    {
      "id": "backstop-hardening",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "security",
      "area": "policy engine + pairing",
      "title": "Backstops that cannot be spelled around",
      "summary": "Three fixes found by reading the code as an attacker would.",
      "items": [
        "The policy-file backstop classifies a write by where it actually lands - ~, $HOME, $XDG_CONFIG_HOME, relative paths and symlinks resolved - not by how the path is spelled.",
        "The approval gate evaluates the whole command, not a 256-rune excerpt, so a control character past the excerpt boundary can no longer slip past the metacharacter rule.",
        "A cloud-relayed pairing approval must be a signed device attestation the daemon verifies against a key it already pins. The unsigned pairing_approved frame, which a relay could have used to pin any key, is withdrawn. The attestation path was later removed with the one-code pairing in 0.3.18.",
        "The uplink rejects tokens of daemons that were forgotten from the account, and surfaces unprovisioned frames instead of dropping them silently.",
        "Every action a device signs - a policy edit, a rule built from a held call, a breaker trip, revoking a device, rotating the token - now travels in one envelope through one verifier, so there is a single place for a verification bug to live instead of four. The nonce store is shared with approvals, so a nonce spent on a decision cannot be spent on an action."
      ],
      "refs": ["#35", "#31", "#76"]
    },
    {
      "id": "hook-shim-load",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "fix",
      "area": "hook shim + transcripts",
      "title": "Hook shim under load, real subagent capture",
      "summary": "The observing shim keeps its budget on a busy host, and the subagent fixture is a real recording.",
      "items": [
        "The hook shim's time budget survives host load; it still never fails the agent's turn.",
        "neku install says plainly which agents get live hooks and which get transcripts only.",
        "The subagent test fixture is a real Claude Code capture, with a fallback for the child transcript path."
      ],
      "refs": ["#14", "#4"]
    },
    {
      "id": "cloud-pairing-push",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "pairing + push",
      "title": "Pair from the browser, push when a session finishes",
      "summary": "A device can ask to pair through app.neku.sh; the host still decides, and shows you the fingerprint before it pins anything. Replaced in 0.3.18 by one pairing code (see 'One pairing code on every device').",
      "items": [
        "An ad-hoc pairing request from app.neku.sh reaches the host; neku pair approve lists it, shows the device's hex fingerprint, and pins the key only after you confirm (--code C for one request, --yes to skip the prompt).",
        "The daemon re-derives the fingerprint from the keys it actually holds and refuses if it differs from the one the approver saw, so a relay cannot swap keys under a matching fingerprint.",
        "A debounced task_complete push when a session finishes, so you hear about the end of a run, not only its held calls.",
        "Device fingerprints - four hex groups, a1b2-c3d4-e5f6-7890 style - are shown by neku devices, neku pair and the pairing screen, and compared on both ends like an SSH host key.",
        "neku unpair --all-except with a name that matches nothing now revokes nothing and says so, instead of unpairing every device."
      ],
      "refs": ["#29", "#5", "#19", "#41"]
    },
    {
      "id": "ios-app",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "ios",
      "title": "Native iOS app",
      "summary": "Pairing, on-device signing, the held-call feed, and the session over an in-app SSH tunnel.",
      "items": [
        "Pairing generates the device keys on the phone; approvals are signed there and verified by the daemon against the pinned key.",
        "Needs-you feed over the realtime stream with backfill; each held call is a sealed envelope decrypted on the device.",
        "Session detail with the transcript, terminal and diffs tabs, reached over an in-app SSH tunnel that connects on open.",
        "APNs push with a notification service extension that decrypts on the device and rewrites the banner to name the tool call and project; tapping it opens the held call.",
        "Device-key gateway sessions, so reconnecting needs no token paste.",
        "The inbox, session, approval and policies screens built to the phone design: live states and sort, usage meters, a banner stack and a stale marker; spans, timeline, diff and a composer; hold-to-approve with extend, the risk summary and the decision acknowledgement; and a rule editor whose every edit is signed on the device.",
        "Account and Settings on the phone: devices, hosts and notification preferences.",
        "An offline board and QR pairing with fingerprint verification, so a device can be added without typing a code.",
        "Parity with the web client: diff, files and ports, usage meters, a terminal key bar, OSC 52 copy, dictation into the composer, and biometric unlock.",
        "Eternal Terminal transport in the app, with the same hang detection as the CLI.",
        "An accessibility pass over every screen, and release hardening for the Apple review gate - bundle id, entitlements, a privacy manifest, and push permission asked for at the first held call rather than on launch."
      ],
      "refs": ["#6", "#60", "#61", "#62", "#63", "#64", "#65", "#66", "#67", "#68", "#73"]
    },
    {
      "id": "cloud-control-surface",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "web + cloud",
      "title": "app.neku.sh: decide from anywhere",
      "summary": "Held calls reach a signed-in browser through the cloud relay as sealed envelopes; the decision goes back signed.",
      "items": [
        "The web control surface lists sessions and held calls across hosts and approves or denies over the cloud; the browser decrypts the sealed envelope and signs the decision with its own key.",
        "A realtime WebSocket subscription plus held-call backfill, so the Needs-you feed is right on load.",
        "Idle hosts are openable: the daemon reports its host name on reconnect, and a host shell can start an agent from the session view.",
        "/v1/policies exposes each policy's match predicates and an audit breakdown for the policies screen.",
        "Hosts and devices: rename a host, rotate its gateway token, and revoke a paired device - each on a signed action from a device you already trust. The device list shows how each one was enrolled, its fingerprint and when it was last seen, and clients are told when a host has an update waiting.",
        "Notification preferences: per-event switches, quiet hours that a needs-you call still bypasses, muting a host, per-device category filters, and an hourly email digest that carries metadata only. They shape cloud push fan-out only; nothing over the tunnel changes, and a suppressed push still lands in the inbox.",
        "When a decision is taken somewhere else, a silent background push clears the notification on your other devices instead of leaving a stale banner.",
        "The daemon now says which link is down instead of going quiet: uplink state with the attempt count and next retry, tunnel round-trip time with a degraded flag, and the host's own clock on every frame - so a held-call countdown freezes at the last time the host reported rather than drifting while you are offline."
      ],
      "refs": ["#17", "#28", "#13", "#22", "#18", "#47", "#48", "#49"]
    },
    {
      "id": "device-key-sessions",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "security",
      "area": "gateway",
      "title": "Device-key gateway sessions",
      "summary": "A paired device proves itself to the gateway with the key the daemon already pins - no token to paste, nothing new to phish.",
      "items": [
        "Challenge-response with the device's pinned Ed25519 key, single-use nonces, promoted to the protocol (5.2.1) with a threat-model pass.",
        "The web client and the iOS app reconnect over it after a tunnel drop.",
        "The gateway still binds loopback only and still requires a bearer token for everything else."
      ],
      "refs": ["#9"]
    },
    {
      "id": "daemon-lifecycle-cli",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "cli",
      "title": "Daemon lifecycle from the CLI",
      "summary": "Start, replace, stop, remove, sign in, and open a session from a link.",
      "items": [
        "neku serve --replace takes over from an already-running daemon; neku stop stops whichever is running; neku uninstall tears it down and restores Claude Code's settings.",
        "neku login / neku logout save or remove the cloud uplink credential, so serve needs no environment variables.",
        "First-run guidance: every error says what to do next, and neku status reports login state.",
        "neku open handles neku:// deep links over a reused tunnel (Linux and macOS scheme registration); neku connect keeps tunnels to hosts warm so open is instant.",
        "Eternal Terminal tunnels: neku connect, open and web-tunnel take --transport auto|ssh|et and remember the choice per host. Auto uses ET when both ends have it and falls back to SSH once if it does not come up; a forced mode fails loudly with the fix.",
        "One supervisor behind all three commands heartbeats the tunnel, so a connection that is open but frozen is torn down and redialled with backoff instead of hanging - neku status reports which transport each host is on and whether it is reconnecting.",
        "Flags written after a positional argument are honoured: neku web-tunnel aix --local-port 8080 no longer drops the port on the floor. neku say is the deliberate exception, since its trailing words are a message; one of its own flags written there is refused rather than silently sent.",
        "A tunnel process can no longer outlive the neku that started it - even after a kill -9, the next command that reads tunnel state reaps it.",
        "Changes, files and ports from the host itself: neku diff <session> prints the agent's unified diff, computed by git at the moment you ask and never stored; neku files browses the project read-only and refuses to follow a symlink out of it; neku ports lists the dev servers the agent has started, with a preview URL that only resolves through your own tunnel.",
        "Message a running agent: neku say <session> <text> types into its pane - never into a bare shell - and neku sessions pause|resume|interrupt controls the run. From a session view, 'Open in terminal' is one tap."
      ],
      "refs": ["#23", "#24", "#26", "#27", "#50", "#80", "#42", "#45"]
    },
    {
      "id": "web-ui",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "web",
      "title": "The web UI, served by the daemon",
      "summary": "A full desktop and mobile web client embedded in the daemon and reached over your own SSH.",
      "items": [
        "Inbox with live states, filter tabs, keyboard navigation and a command palette; session view with the transcript, a live terminal pane, changes and a timeline.",
        "Approval sheet with the verbatim command, span chain and countdown; hold-to-approve; decisions disabled with a reason while the daemon is unreachable.",
        "Offline diagnostics - last heard, retry backoff, attempt count; decision toasts and a sticky banner stack; bulk-approve and expired-call modals.",
        "Policies screen with real fields and live tallies; account and settings screens; a pairing first-run wizard.",
        "Session and host controls: pause, resume and interrupt a running agent; disconnect, forget, switch.",
        "neku web-tunnel <host> opens the SSH tunnel and prints (or opens) the browser URL, token included.",
        "A phone-first terminal: it reconnects with its scrollback, a key bar supplies the keys a phone keyboard has not got, copy goes through OSC 52, and the font, theme and key bar are per-device preferences.",
        "Changes, Files, Ports and Usage on the session screen: the unified diff with per-file counts, a read-only browser of the project, the dev servers the agent is listening on with a preview link through your own tunnel, and token meters with context remaining.",
        "Connection diagnostics and pairing: a scannable QR code, fingerprint verification against the host, and decisions disabled with a reason - never queued - while the link is down.",
        "Account, Settings, Devices, Hosts and Notifications screens, so a host can be renamed, a device revoked and push tuned from the browser."
      ],
      "refs": ["#15", "#8", "#21", "#52", "#53", "#54", "#55", "#56", "#57", "#58", "#59"]
    },
    {
      "id": "identity-teams",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "cloud",
      "title": "Accounts, passkeys and teams",
      "summary": "An account exists only for the cloud plane; the free tier stays local and accountless. Team plans are built but not on sale at launch.",
      "items": [
        "Passkey sign-in through a Cognito user pool on auth.neku.sh, with a password fallback (TOTP optional).",
        "Teams: create, invite by email, leave or delete; share a host to a team and see its sessions in a shared inbox - metadata only, never transcripts or terminal content.",
        "Provisioning a daemon under a signed-in account; forget a host from the account.",
        "A paid-tier gate on teams with Stripe checkout and webhooks, enabled when credentials are present.",
        "Billing end to end: Stripe checkout for pro and team by month or year, the customer portal for payment details, invoices with their PDFs, and a seven-day grace on a failed payment before the tier steps down.",
        "In-app purchase on iOS, with the App Store transaction verified offline against Apple's pinned root.",
        "The entitlement is Ed25519-signed and verified on the device against a pinned key, and it keeps working offline for seven days. With no billing secrets configured every billing route answers 'not configured', the account shows the free tier, and nothing local is gated either way."
      ],
      "refs": ["#10", "#11", "#69"]
    },
    {
      "id": "cloud-backend",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "cloud",
      "title": "The cloud backend: a dumb relay on Lambda",
      "summary": "Push, entitlements, distribution, and the sealed approval path - never content.",
      "items": [
        "Realtime uplink ingest and push fan-out to every paired device, collapsed per session.",
        "The background approval relay: the sealed approval_required nudge out, the Ed25519-signed decision back. The cloud cannot read or forge either.",
        "Entitlements and provisioning, enforced in the cloud for push fan-out only; the daemon never enforces a tier.",
        "A release CDN at get.neku.sh, custom domains under neku.sh, alarms and a cost budget."
      ],
      "refs": ["protocol 7", "protocol 9"]
    },
    {
      "id": "policy-engine",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "policy engine",
      "title": "Policies, budgets, breaker, deferral",
      "summary": "Local rules decide what runs, what asks, and what never auto-approves.",
      "items": [
        "allow, deny, ask, ask_once and defer, first match wins; no match asks. Explicit ask beats any allow.",
        "Per-policy budgets (per session, per hour): on exhaustion the policy stops matching and approvals come back to you, with one notice.",
        "A global circuit breaker suspends all auto-approval on a host after a runaway burst and needs a signed resume.",
        "Deferral holds low-urgency calls and presents them as one batch, inheriting the shortest remaining timeout - it never extends one.",
        "An audit log of every decision; neku policy log, simulate (replay a policy against real history), lint and forget.",
        "Policy authoring is a signed device action; the daemon never accepts a policy decision over the wire.",
        "Policy authoring from a paired device: create, edit, delete and reorder rules, set a per-rule approval timeout, simulate a rule before saving it, replay a proposed set against the calls you really decided, and trip or reset the breaker. Every mutation carries a device signature - the loopback token alone can never rewrite policy.",
        "Each rule shows its hits over the last 7 days and when it last matched, next to a since-midnight tally.",
        "Usage and limits: token counts per session and per host, read from the agent's own transcript rather than any API, over rolling 5-hour and 7-day windows, plus an estimate of the context left in the current turn. A per-session spend cap sends every further call back to you and trips the breaker the first time it is crossed, and collection stops entirely with neku set usage-collection off."
      ],
      "refs": ["approval-policies 3-11", "#46", "#43"]
    },
    {
      "id": "transcripts",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "transcripts",
      "title": "Transcripts: Claude Code, Codex, OpenCode",
      "summary": "Measured parsers, live tailing, and subagent spans merged into one session tree.",
      "items": [
        "Claude Code transcripts parsed from real recordings, including thinking and interrupted turns; live tailing feeds the parser as the file grows.",
        "Codex sessions discovered and parsed from the flat item stream into turns; OpenCode read from its SQLite store as measured.",
        "Subagent transcripts merged with the root stream into spans, so a subagent is a span inside the session, never its own row.",
        "The gateway streams transcripts with coalescing; Neku reads transcripts in place and never copies one into its own store.",
        "OpenCode is read at full fidelity from its own store, captured from real runs; because it has no hook stream, its subagents are derived from the session tree - one span per child, bound to the dispatch that started it, and marked abandoned when an interrupted run leaves nothing behind.",
        "The remaining Claude Code cases are captured from a real agent: parallel subagents that open and close independently, a blocked subagent, an abandoned one, a denied call and a resumed session."
      ],
      "refs": ["parser-contract", "#51", "#74"]
    },
    {
      "id": "uplink-service",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "daemon",
      "title": "Cloud uplink and the user service",
      "summary": "The daemon speaks to the cloud in sealed envelopes and runs as a user service that survives reboots.",
      "items": [
        "Sealed multi-recipient envelopes built from session events; a persisted sequence counter and bounded outbox; state_sync on reconnect.",
        "neku service install | start | stop | status | uninstall as a launchd user agent on macOS or a systemd user service on Linux and WSL2.",
        "Pending approvals are re-announced on connect, so a device that was away sees what is still held."
      ],
      "refs": ["protocol 7", "protocol 11"]
    },
    {
      "id": "foundation",
      "version": "[VERSION]",
      "date": "[DATE]",
      "type": "feature",
      "area": "daemon + gateway",
      "title": "Foundation: hooks, gateway, approvals, spans",
      "summary": "The measured core that everything above builds on.",
      "items": [
        "A hook shim for Claude Code that always exits 0 in 250 ms, so a monitoring tool can never break the thing it monitors.",
        "A loopback-only gateway behind a bearer token, streaming sessions, spans and held calls to paired devices.",
        "Approvals held at PreToolUse by a separate blocking gate hook, decided by Ed25519-signed decisions verified against pinned device keys, span id inside the signed form, nonce single-use; the hook's timeout is the fail-closed window.",
        "Spans, not sessions: subagent dispatches bound by tool_use_id and closed on SubagentStop, reconciled against the roster.",
        "Pairing over SSH with a short code and a 120-second window; device-attested enrolment for further devices, with attestations that expire and do not chain. Replaced in 0.3.18 by one pairing code.",
        "An end-to-end harness against a real Claude Code that measures, and regression-guards, what the hooks actually do."
      ],
      "refs": ["TASKS.md phase 0"]
    }
  ]
}
