138 Commits
Author SHA1 Message Date
udoandClaude Fable 5.1 ca8edb6bd1 Delete the queued task API, the task pool, and the job API
Tasks are fire-and-forget only: function TASK:NAME(props : dval) and
task_execute(target, timeout_seconds, props). The durable queue, the
TASK_WORKERS pool with its leases, cancellation, admission health and recovery,
task, task_status, task_await, task_cancel, the background form of shell_exec,
job_status, job_result, job_await, job_cancel, http_request_async, the job
directory and its --job-worker helper, their pages, fixtures, guide sections,
settings documentation and parity rows are gone. A bare TASK handler is a
compile error.

shell_exec(command, {on_done: "/unit.capy:NAME"}) keeps the one job use that
mattered: the command runs in the detached task runner, and TASK:NAME of the
unit receives command, exit_code, stdout, stderr, timed_out and
output_truncated when it finishes. Unit path resolution is shared by tasks and
services. The tasks guide is "Tasks and commands" with a stable slug change.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-14 01:14:19 +00:00
root 8423307a9e Test the service cat slice and use hex digests for state filenames 2026-10-14 00:20:49 +00:00
root 078d54ec2e Expose service and port APIs through the live-dval host ABI 2026-10-13 23:56:18 +00:00
udoandClaude Fable 5.1 decfa661a3 Add named CLI entry points and align service docs with the runtime
function CLI:NAME() compiles like the other named handlers and exports
__bearer_cli_NAME; bearer-cli /unit.capy:NAME runs it, with --get pairs in
request.query. The static gate, the doc checker, the handler form list, the
CLI handler page, the language reference, and the skill file know the form, and
a fixture with a default and a named entry point is in phase 1.

The services handler page and guide now describe the mailbox bound as the
kernel datagram queue, say that an unknown signal is dropped and logged, and
that a send to a listening service is one datagram.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 22:56:16 +00:00
udoandClaude Fable 5.1 9c62e77de5 Add task_execute: run a task handler in a detached, bounded process
task_execute(target, timeout_seconds, props) starts a process for TASK:NAME at
once and returns {pid}, or {error} when it cannot. The request worker spawns
the runner through the --task-execute entry of its own binary; that process
forks the detached runner, reports its pid, and exits, so the worker never
owns a zombie. The runner loads settings like the custom server, runs the
handler under the timeout as its invocation deadline with an alarm as the
backstop, and exits. The pool loop shares run_task_once with it. The task
design note records the decided API, the callback into TASK, and what the
second step deletes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 22:40:56 +00:00
udoandClaude Fable 5.1 781b094713 Document services: handler page and guide chapter
SERVICE handler page with the event table, state in unit variables, the
synthetic request, and lifetime rules. Guide chapter 12 covers the loop model,
state, start/stop/send, intervals, ports, failure, and what a service is not;
errors and React move to 13 and 14 with stable slugs. The doc scripts accept
the service example entry and recognize SERVICE handlers. The design note fixes
service_every to take the interval before its optional props.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 21:37:29 +00:00
udoandClaude Fable 5.1 a390309d50 Services: mailbox bound is the kernel datagram queue
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 21:17:18 +00:00
udoandClaude Fable 5.1 2f881f2eae Add unit-scope variables
A top-level var is one mutable Wasm global, initialized in declaration order by
an exported __wasm_call_ctors that the worker already runs once per workspace
after relocation and before INIT. Functions and closures read and assign unit
variables directly; managed values retain and release like locals; a local or
parameter shadows them; an initializer sees only the variables above it and has
no request. Names cannot be request, props, none, or collide with a function,
struct, or alias. The capability scan is seeded with unit variable types, the
LSP reports them as variable symbols, and the services design note now keeps
service state in unit variables with the synthetic request bound for builtins.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 21:12:27 +00:00
udoandClaude Fable 5.1 42fc7bac1d Services: state lives in request keys, not module variables
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 19:34:01 +00:00
udoandClaude Fable 5.1 4c6a5932f2 Services: interval timer service_every
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 18:47:20 +00:00
udoandClaude Fable 5.1 0e71019530 Add the SERVICE handler family and a service workspace that lives across events
SERVICE:NAME handlers compile like TASK:NAME props handlers and export
__bearer_service_NAME. The Wasm core gains bearer_wasm_invoke_service_event,
which runs one handler with decoded event props against the shared request
value without writing a response back. The worker keeps one workspace per
service process (wasm_worker_service_open/event) and the backend exposes
wasm_backend_service_open, wasm_backend_service_event, and
wasm_backend_service_close for the service loop. Core ABI 39; artifact golden
refreshed for the embedded ABI version.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 18:32:02 +00:00
udoandClaude Fable 5.1 a30052f067 Services: send implies start, ports are service-only
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 18:04:03 +00:00
udoandClaude Fable 5.1 7427fe4d40 Add the services design note
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 18:01:35 +00:00
rootandClaude Fable 5.1 88be6723b2 Bind request implicitly in handlers and add capture parameters
Handlers take (props : dval, request : dval) for COMPONENT and TASK and
(request : dval) otherwise; every parameter is optional and keeps its name,
and request is bound in every handler body. name : capture type fills an
omitted argument from the caller variable of that name. Exported (dval) dval
functions carry an implicit request capture. Request builtins capture
request; redirect writes request.out. The runtime builds one request value
per request, passes request and props handles to handlers, applies
request.out once after the top-level handler, and drops the pending-props
slot, handler frames, per-handler refresh, and current_request(). Core ABI
38, unit ABI 39. Legacy request type checks and the removed-API migration
table are gone from the compiler. Documentation, generated routes, tests,
and the project home follow; the home page loses the demo and starter.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 14:05:04 +00:00
udo 3e62b8b679 Copy and remove files when rename crosses devices. 2026-10-06 01:33:03 +00:00
udo eee87ab6d8 Fix multipart parsing and expose upload form field names. 2026-10-06 01:13:50 +00:00
udo 75c30b2ab7 Treat none as empty and interpolate dvals as strings. 2026-10-05 17:42:38 +00:00
root 5c5f223d66 Cache native test builds and remove duplicate fixture compilations. 2026-10-02 20:38:43 +00:00
root ef0f9e87e1 Document shared dval objects in the language and module guides. 2026-10-02 20:27:37 +00:00
root a131faf8d5 Add a shared key-value cache and Capy cache functions. 2026-10-02 14:42:04 +00:00
root a4b0cf8db7 Watch the site tree to detect unit changes. 2026-10-02 12:20:48 +00:00
root f883236081 Share dval nodes and make clone explicit. 2026-10-02 10:59:31 +00:00
root 7c7ee7fdeb Memoize unit freshness checks and parse list keys directly. 2026-10-02 02:46:43 +00:00
root 10ac632aea Add optional perf maps for guest WebAssembly symbols. 2026-10-02 01:52:31 +00:00
root 9da80724aa Add current_request() for functions without request parameters. 2026-10-02 01:20:26 +00:00
root d775d701f3 Cache unit paths, sources, metadata, and artifact checks. 2026-10-02 00:18:04 +00:00
root 97d7178771 Replace serialized dval payloads with live core DValue pointers. 2026-10-01 21:57:36 +00:00
root 1e78352b14 Remove unit_context_set and unit_context. 2026-10-01 04:35:35 +00:00
root 0c90a39e16 Share one request dval across handlers. 2026-09-30 23:36:52 +00:00
root d428604cad Lay out map literals by entry count. 2026-09-30 22:14:09 +00:00
udo 1d4e8a3da7 Classify formatter blocks and literals with canonical fixtures. 2026-09-30 08:51:50 +00:00
udo 68c8b0141d Preserve annotation spacing and tight unary and range operators. 2026-09-30 08:21:17 +00:00
udo 2de408ce4c Add a canonical token-preserving Capy formatter. 2026-09-30 08:03:04 +00:00
root 3840da3ca6 Set HOME for the package release service. 2026-09-30 05:52:01 +00:00
root 2c7f495a55 Publish packages from the host that can reach Arty. 2026-09-30 05:42:54 +00:00
root 22eb22b870 Automate artifact distribution and package publication. 2026-09-30 05:24:48 +00:00
root e15bbe9acf Show compile diagnostics on runtime error pages. 2026-09-30 05:24:48 +00:00
root a576e68b24 Add checks for public documentation links. 2026-09-30 05:03:09 +00:00
root 0b6eae402d Treat newlines as whitespace during parsing. 2026-09-30 04:46:58 +00:00
root b878f737ef Record package release documentation. 2026-09-29 21:33:05 +00:00
root 3aa2b2baab Parse map entries as call arguments. 2026-09-29 21:08:32 +00:00
root 7b116048b7 Skip deployment of revisions already contained in the live checkout. 2026-09-29 20:51:18 +00:00
root a67c6c00fc Record package release verification. 2026-09-29 20:15:54 +00:00
root 9495290468 Add compound unit calls, request context, and import support. 2026-09-29 16:57:41 +00:00
root 6a9cc523b3 Record verified Arty package publication. 2026-09-12 21:09:14 +00:00
root 45675e17a4 Define Debian and RPM release contents. 2026-09-12 20:49:14 +00:00
udo cfd55fb915 Record runtime package cleanup completion. 2026-09-12 14:12:03 +00:00
udo 83cc964640 Separate runtime packages from applications. 2026-09-12 14:11:27 +00:00
root 39262d05df Record updater acceptance and rollback retention. 2026-09-12 13:57:30 +00:00
root 33cbc025e9 Block deployment for unchecked approval markers. 2026-09-12 13:52:39 +00:00