aiongg
a577c2fc1d
pg suite reporter: take a suite's hook error and a crashed file's stderr error as the first error; void the redirect's cleanup promise
2026-11-21 18:31:34 +00:00
aiongg
cdad9b309a
Portable SQL helpers (src/db/portable.ts) with tests on both dialects; pnpm test:pg:suite runs the SQLite suite on a throwaway Postgres: a test preload redirects connectDb on SQLite paths to per-path databases copied from a migrated template, dropped at exit, a reporter prints totals and failures per file; sqliteOnly skips for tests that need SQLite itself
2026-11-21 18:28:03 +00:00
aiongg
6d32ef9d17
Merge D2: schema translator, schema.pg.sql, migration under lock
...
# Conflicts:
# package.json
# tsconfig.json
2026-11-21 17:58:12 +00:00
aiongg
7e268b01ba
Postgres schema: src/db/pg-schema.ts translates schema.sql and the added columns and indexes into src/schema.pg.sql with a strict allowlist (bigint identity keys, identity rowid on rowid tables, text COLLATE "C", citext for NOCASE, tsvector columns with GIN for FTS5, hand-written plpgsql triggers pinned to their SQLite text, compat functions instr/julianday/json_valid/group_concat); pnpm check fails when the file is stale; applyPgSchema runs it under pg_advisory_xact_lock; scripts/pg-schema-compare.ts lists the differences from the SQLite schema
2026-11-21 17:57:16 +00:00
aiongg
4940e4d6ab
Postgres engine for the Db handle: PostgresDialect on pg.Pool (pool size per process role, TLS verify-full to remote hosts, statement_timeout startup parameter, node:sqlite value shapes), reads as REPEATABLE READ READ ONLY snapshots, writes as READ COMMITTED under one advisory writer lock with lock_timeout, ? and :name rewritten to $n, query events on both backends; AUTOCRAFT_DB_URL selects Postgres (refused when AUTOCRAFT_DB differs); isLockTimeout/isConflict; scripts/pg-test.sh throwaway Postgres in Docker and pnpm test:pg; scripts/latency-proxy.ts; testDb helper and Postgres behaviour tests
2026-11-21 17:54:05 +00:00
aiongg
0d85cd64bd
Async interleaving on one connection: temp-table fill and use in one read snapshot (item_settled, flow_pick); copy-on-write remote queue cache; overlap guards on interval passes (exclusive); GitHub read identity held in memory and refreshed on the settings counter, shared read handle opened once; owner reloads keep the latest load; held claims are not answered empty while a try may be leasing; codemod keeps the item-tools snapshot and the read handle local
2026-11-21 17:28:37 +00:00
aiongg
20061c88d9
Apply async codemod: node scripts/codemod-async.ts over the program
2026-11-21 17:00:38 +00:00
aiongg
99cd1cd07d
Async codemod for the Db interface: awaits database calls and calls of functions that become async to a fixpoint over the program (TypeScript 5 as the ts5 tool dependency), rewrites BEGIN IMMEDIATE/BEGIN blocks into db.write/db.read, array callbacks into sequential helpers (src/async-seq.ts), and the API to Db/Statement, script, inTransaction, for await, connectDb/openDb; reports residue and read-then-write candidates per subsystem (scripts/codemod-async-report.md, from main). test/no-floating-promises.test.ts fails on unawaited promise statements outside test/floating-promises.allow
2026-11-21 16:41:31 +00:00
aiongg
250fb13584
Load rig runs its Task Runners at nice 15 so the dashboard gets the CPU first, as with runners on users' machines
2026-11-20 04:51:40 +00:00
aiongg
970cfa8e8e
Merge rs-t3: long-polling claims
2026-11-20 02:15:44 +00:00
aiongg
bbbbe23ef3
Long-polling claims: a protocol 4 claim with nothing to take waits up to its hold for a call, woken by the remote-queue topic; shutdown answers held claims before closing; X-Held-Ms; rig scenario 7
2026-11-20 02:15:04 +00:00
aiongg
2013dc030a
Merge rs-t2: Task Runner autocraft 1.3.0
2026-11-20 02:11:20 +00:00
aiongg
8fcf84bb23
Task Runner autocraft 1.3.0: rename from autocraft-task with a shim at the old path, device login, long-poll claims with protocol 3 fallback, migration of 1.2.0 installs
2026-11-20 02:10:06 +00:00
aiongg
a9bb9fb6f3
MCP Connector and Task Runner credentials: kind-aware tokens, device login for runners, /api/runners session routes, connector tokens refused on runner routes and runner credentials on /mcp, MCP server named autocraft
2026-11-20 02:04:55 +00:00
aiongg
860eec1bfc
Load rig: per-scenario time scale, scenario 6 at 0.5 in its own process with calls queued over 25 s, scenario 5 gives the failing helper 5 slots, scenario 3 checks that no requeued lease's reply is accepted; claims take a leased call out of the cached queue order instead of rebuilding it
2026-11-20 00:08:10 +00:00
aiongg
cbb212fde7
Merge branch 'rb-timescale' into rb-int
...
# Conflicts:
# src/remote/calls.ts
# worker/autocraft-task.mjs
2026-11-19 23:52:03 +00:00
aiongg
2b28a23aa4
Test-only time scale for the user-local mode (AUTOCRAFT_REMOTE_TIME_SCALE) and a --time-scale option in the load rig
2026-11-19 23:50:40 +00:00
aiongg
d0a85d75cd
Review fixes for the user-local robustness batch
...
- A tarball archive is cached only when the copy was written in full.
- Claim permission reads use the helper routes' short busy timeout.
- A 404 from the app's permission check falls back to the session
instead of counting as no permission.
- The load rig reads cool-offs per login and the helper's last error.
- A lease that never had a heartbeat is no drop toward the cool-off;
the helper resends a claim's request id after a failure in transit.
- A reply whose lease ended during the submit is answered 410.
- The fast lane is not counted as planner room.
- A follow-up waits on the helper that ran its parent call.
2026-11-19 23:46:06 +00:00
aiongg
d77fb3d7ea
Merge branch 'rb-t6-load' into rb-int
...
Lease tombstones, old lease drops and spent cool-off rows go with the
minute maintenance (pruneRemote); requeue and unlease drop the cached
queue order; the liveness stamp uses the helper routes' connection.
2026-11-19 23:23:40 +00:00
aiongg
664f12ae8b
Keep the dashboard light under many helpers: seen_at every 30 s, remote maintenance on a minute timer, a short busy timeout with 503 on the helper routes, a cached queue order with authors stored at enqueue, per-token limits and the trusted proxy depth
2026-11-19 23:18:30 +00:00
aiongg
41965027be
Load rig for user-local helpers: fault-injection proxy, fake harness, scratch instance driver, scenarios and acceptance report
2026-11-19 23:15:13 +00:00
aiongg
18c3e886cc
remote-bundle script: set up a scratch database for a local dashboard and queue a call for a helper
2026-11-19 19:01:55 +00:00
aiongg
ebde14d6c2
The user-local helper runs on macOS: sandbox-exec with a deny-by-default profile, one slot per parallel run whose path root the claim names, a canary before the first claim, Claude Code's Keychain login as an option, and a try command with a bundle script for testing
2026-11-19 18:59:00 +00:00
aiongg
26ae4e15e2
Idle triaged issues wait as an open request for a person to pick up and count as parked; the gate's fake GitHub keeps PR heads; the gate script is type-checked
2026-11-08 06:51:29 +00:00
aiongg
ef43075890
Liveness check: stuck and long open items in the health checks, a Stuck items page and the autocraft liveness command; go-live gate script that replays a team-sized day on a database copy
2026-11-08 06:47:10 +00:00
aiongg
8ddca3cfbb
Add the Now page: health strip, running work and recent events as the home page
2026-11-04 15:02:35 +00:00
aiongg
21c4194f5d
Merge branch 'arch-issues' into arch-rewrite
...
# Conflicts:
# scripts/plans-export.ts
2026-11-04 06:26:04 +00:00
aiongg
02ae3da5d1
Item facts and decideItem: act, fix issue and fix-issue collect; approvals stay facts
2026-11-04 06:20:20 +00:00
aiongg
336c2a73d0
Exporter: open issues and PRs with item tokens and next-step text
2026-11-04 06:14:22 +00:00
aiongg
2462b69abb
Core: fixup, conflict, cifix and postmerge actions; Hold and Close decline on the rule path; separate conflict note
2026-11-04 06:12:15 +00:00
aiongg
ab774751d5
Core: facts, decide and plans for the review-to-merge path of open PRs
2026-11-04 06:06:08 +00:00
aiongg
83f4a09a60
reference-split: skip running headers in the page index
2026-11-03 21:58:56 +00:00
aiongg
1cc343fa5b
Reference documentation: per-repo import, /reference mount and prompt text for the reference-behaviour calls
2026-11-03 21:57:59 +00:00
aiongg
3c0b9b8391
Registry: seeded limits, remarks and doc names; literal snapshots
2026-11-03 19:35:05 +00:00
aiongg
e0d23bb2ec
Add flowchart screenshot script and regenerate the README image
2026-11-03 19:27:26 +00:00
aiongg
6fbfa83941
Generate stage tables in the docs from the registry
2026-11-03 19:25:32 +00:00
aiongg
d6bcf1b8f1
Validate every GraphQL document against GitHub's schema in tests
2026-11-03 05:52:03 +00:00