Buckets:
Compatibility
This page defines supported interfaces, not every environment in which the code might happen to run.
Runtime matrix
| Surface | Compatibility |
|---|---|
| Python package and CLI | Python 3.11 or newer; POSIX process semantics are the primary tested path |
| Database | SQLite with WAL, foreign keys, and read-only URI support; local filesystem only |
| MCP | stdio transport through the optional mcp>=1.20,<2.0 dependency |
| Web board | Loopback HTTP; current browser versions; no JavaScript framework dependency |
| macOS client | Preview; exact deployment target follows the source project and CI workflow |
| iOS client | Preview; exact deployment target follows the source project and CI workflow |
Compatibility promises
- The SQLite schema changes through numbered, forward migrations. Downgrade compatibility is not promised.
coordcommand names and required positional arguments are treated as public once shipped.- MCP tool names are public; preview tools and complex parameter contracts may evolve before a stable release.
- The snapshot API is versioned under
/api/v1/. Additive fields are expected; consumers must ignore unknown fields. - Native clients differ, and the difference is deliberate. The macOS menu-bar panel (
CoordMenuBar) and the Cockpit window (CoordCockpitWindow) readCOORD_DBdirectly over aSQLITE_OPEN_READONLYconnection withPRAGMA query_only=ON, falling back to the HTTP snapshot when the file is absent or unreadable; they are therefore coupled to the SQLite schema and must be rebuilt across a migration. The iOS client (CoordCockpitIOS) and the snapshot-only macOS app (CoordCockpitMac) consume/api/v1/snapshotand/healthzoverURLSessionand never open the database, which keeps them independent of schema migration. No client writes by default; the macOS menu bar can POST an operator reassignment to/api/native/actionwhenCOORD_NATIVE_OPERATOR_WRITES=1and a private operator token is present — seethreat-model.md§2.8.
Portability limits
This package is written mostly against pathlib, which is itself cross-platform, but its
runtime -- process supervision, file locking, permission bits -- is POSIX-shaped. The
three tiers below are stated as what was actually checked, not as a plan.
macOS -- developer-verified, not CI-verified
The primary development and manual-test environment. The Python test suite is run here
routinely, but no GitHub Actions workflow runs it on macOS: native.yml builds and tests
only the Swift/Xcode app on macos-15. A macOS-only regression in the Python package can
therefore land without CI catching it.
Linux -- CI-verified for the Python package
python.yml runs the full non-slow suite, the complete browser suite, and a clean
wheel/sdist install, all on runs-on: ubuntu-latest, across Python 3.11-3.13. This is the
strongest portability claim in the matrix above and the one CI actually enforces.
Windows -- not supported; specific blockers, not a timeline
No CI job runs any part of this package on Windows. Two of the original import-time blockers are now resolved (below); these are the concrete blockers that remain, not an exhaustive list:
- Unconditional POSIX-only imports -- RESOLVED. All six modules that use
fcntlfor advisory file locking (src/coordharness/coord/native_cockpit.py,src/coordharness/runtime/console_release_retention.py,src/coordharness/knowledge/accepted_memory_r4.py,src/coordharness/jobs/pglaunch.py,src/coordharness/jobs/diagnostic_marker.py, andsrc/coordharness/jobs/resource_lock.py, which established the pattern) now importfcntlinside atry/except ImportErrorand set it toNoneon failure, so every one of them imports cleanly on a platform withoutfcntl. What happens when a caller then actually needs the lock differs by module, because "no lock" means different things to different call sites:console_release_retention.apply_retention_plan()andaccepted_memory_r4.publish_current()delete release directories / perform a compare-and-swap pointer publish respectively -- running either unlocked is a correctness trap, not a convenience gap, so both raise a descriptive error (RetentionError/AcceptedMemoryError) immediately and mutate nothing.diagnostic_marker.wrapper_control_lock()guards concurrent job-control writes the same way; entering it raisesWrapperControlLockErrorbefore touching any file.native_cockpit.flush_requested_refresh()only uses its lock to avoid redundant concurrent refreshes (not corruption), so it degrades to running unlocked, exposes that fact via the module-levelFCNTL_AVAILABLEflag, and logs the degradation once per process.pglaunch._terminalize_wrapper_loss()is a best-effort recovery path; without the lock it reports "did not terminalize" (a return value its other failure branches already produce) rather than mutating the shared progress sidecar unprotected, and also logs once.- Test coverage:
tests/test_portability_guards.pysimulates fcntl's absence via an import hook for all six modules and asserts each import succeeds and degrades as described above.
psas an external dependency -- RESOLVED (explicit, not simulated).src/coordharness/coord/process_liveness.pyshells out to the POSIXpsbinary (viasubprocess) to read a process's start time (ps -o lstart=); there is no Windows equivalent to invoke, and none is faked. The module now probes for thepsbinary once at import time (PS_LSTART_AVAILABLE, viashutil.which) instead of discovering its absence on first use, andpid_start_time()reports unavailable (None) immediately -- logging that once per process rather than on every call -- when it is absent.pid_matches()already treated an unresolvable start time as "cannot verify" (conservativeFalsewhen a caller supplied one to check against); that behavior is unchanged, so PID-reuse protection degrades visibly to a barepid_exists()liveness check rather than silently passing.tests/test_portability_guards.pycovers both the absence path and the pre-existing "cannot verify" semantics.- Process-group and signal semantics -- RESOLVED (fails named, does not fake it). There is no
portable equivalent for POSIX process-group job supervision or a POSIX null-signal existence
probe, so neither is faked; every unconditional use of
os.fork/os.setsid/os.killpg/os.getpgid/os.kill(pid, 0)now checks a module-level capability flag (computed once at import time, the samehasattr-probe patternPS_LSTART_AVAILABLEestablished above) and raises a named error at the point of use instead of leaking a bareAttributeErroror silently misreporting a result:- Process-group supervision (
os.fork/os.setsid/os.killpg/os.getpgid). A job supervisor that silently could not kill a process tree would be worse than one that says it cannot run here, so these raiseProcessGroupUnsupportedError(one such class per module, all gated onPOSIX_PROCESS_GROUPS_AVAILABLE) rather than fall back to killing only the tracked root process and leaving its descendants orphaned:src/coordharness/jobs/pglaunch.py--_group_alive,_reap_group, and_fork_gated_child(os.killpgat the call sites,os.fork/os.setsidinside_fork_gated_child);main()catches the error around the launch call and exits2with a stderr message instead of a traceback.src/coordharness/jobs/gpu_pglaunch.py--_group_alive/_reap_group(os.killpg) andmain()itself, which checks beforesubprocess.Popen(..., start_new_session=True)even runs: that flag is silently a no-op on a platform withoutsetsid, so theos.getpgid( proc.pid)right after it would describe a group that was never actually created, not just raiseAttributeError.src/coordharness/jobs/launch.py--_group_alive,_terminate_process_group, and the_signal_groupclosure insidemain()(os.killpg);main()also checks up front, before spawning the child, so a launch on an unsupported platform never gets partway through.
- Signal-0 liveness probes (
os.kill(pid, 0)). Windows does not treat signal 0 as a POSIX null-probe:sig=0aliasesCTRL_C_EVENT, soos.kill(pid, 0)there asks the OS to send a real console control event to a process group rather than performing a side-effect-free existence check -- catching the resultingOSErrorand returning "not alive" would not just be wrong, it would be reporting the outcome of an action the caller never intended to take. These sites raiseProcessLivenessUnsupportedError(gated onPOSIX_LIVENESS_PROBE_AVAILABLE, mirrored per module) instead:src/coordharness/coord/process_liveness.py--pid_exists()(and transitivelypid_matches()), the primitive every other liveness check in the package ultimately calls.src/coordharness/coord/reaper.py--_pid_alive(), which inlines the same probe rather than callingprocess_liveness.pid_exists().src/coordharness/jobs/sidecar_writer.py--_pid_alive(), and_prove_process_identity_absent(), which additionally relies on the POSIX convention that a negative pid passed toos.killsignals the whole process group, so a pgid check there stacks two POSIX-only assumptions; both raise (ProcessLivenessUnsupportedErrorand the existingDeadReconciliationErrorrespectively, since that function's contract is already "prove absence or raise" and platform incapability is one more way absence cannot be proven).src/coordharness/testing/pytest_gate.py--runner_is_live(), found by enumerating every unconditionalos.killcall insrc/rather than trusting the module list above to be exhaustive. Its signature is alreadybool | None, andNoneis already its own vocabulary for "cannot verify" -- thePermissionError/OSErrorbranches immediately below the probe return it, and its one caller (reconcile_running_sidecar()) already branches onrunner_liveness is Noneinto arunner_liveness: "UNAVAILABLE_PROCESS_INSPECTION"marker. Platform incapability reuses that existing sentinel (importsprocess_liveness.POSIX_LIVENESS_PROBE_AVAILABLEdirectly) instead of adding a second, inconsistent failure mode to a function that already has an honest one.
- Test coverage:
tests/test_portability_guards.py(in the block markedwindows-primitives lane, added aftertest_platform_branching_modules_import_cleanly_under_every_declared_ platform) simulates each primitive's absence per module -- flipping the module's capability flag and, for the process-group tests, alsomonkeypatch.delattr-ing the underlyingosfunction -- and asserts the named error (or, forpytest_gate.runner_is_live(), the existingNonesentinel), not a source-text grep.
- Process-group supervision (
- Permission bits that mean something different on Windows.
os.chmod/os.openmode bits such as0o600and0o700(src/coordharness/coord/coord_db.py:150,158,src/coordharness/usage/replica.pyandsrc/coordharness/usage/local_profiles.py,src/coordharness/jobs/diagnostic_marker.py:233,313,337) express POSIX owner-only permissions; NTFS ACLs do not map onto them, so these calls would not raise but also would not deliver the access control the code assumes. - Bash-only tooling.
scripts/setup.sh(this branch's clone-setup entry point) is a#!/usr/bin/env bashscript gated withset -euo pipefailand array/${BASH_SOURCE[0]}syntax; it runs unmodified on Linux and macOS but needs WSL or Git Bash on Windows, sincecmd.exeand PowerShell cannot execute it directly. The venv/db/config lane it drives has no macOS-specific dependency left in it -- only the native macOS/iOS app lane (Xcode,apps/install.sh) is Darwin-gated -- but the script itself is still a POSIX shell script, which is an unrelated portability question from what it installs.
What already generalizes: path construction is pathlib-based throughout the package (70 of 118
modules under src/coordharness import pathlib.Path; only one uses os.path.join), and the
two modules that do hardware/platform branching --
src/coordharness/coord/modeld_lite.py and src/coordharness/coord/runners/mlx_runner.py -- do
it with an explicit sys.platform / platform.machine() check rather than an import-time
failure, which is now also the pattern every fcntl import in the package follows (above), and
the pattern process_liveness.PS_LSTART_AVAILABLE follows for the ps dependency.
Network filesystems and multiple hosts are excluded on every platform because SQLite file locking is not a distributed coordination protocol.
The current feature truth is feature-status.json.
Xet Storage Details
- Size:
- 13.2 kB
- Xet hash:
- 2e725fb49697078dc8578869a01d7178a999d5801876a118c8d0128b2b5db8de
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.