This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic. · November 2026
It ranks the site's open tasks by how far each starts from where the operator stands.
Hints are only tie-breaks, so fulfillment keeps control and fails open when one is missing.
It measures its own adoption: hints issued, consumed and expired, per site.
Switch on metrics scraping and trace export, then prove the hint loop live with fulfillment-execution.
task-interleaving is the WES-tier Supporting bounded context that cuts deadhead travel. When a station completes a task, it ranks the site's open tasks by how far each starts from where the operator now stands and issues an interleaving hint: a short, ranked, expiring list of candidates. The hint is strictly advisory…
When a station finishes a task, the next one can start far away, so operators often walk without carrying anything.
Hints are advisory and can be ignored, metrics are not scraped, no traces export, and nobody has proven it runs in the cluster.
Each site sets its max detour, how many candidates, and how long a hint lives.
Keeps its own copies of tasks and layout, so it never has to call siblings.
Ranks open tasks by walking distance from the operator's current spot.
Unused hints expire on their own, so stale suggestions do not linger.
Counts hints issued, consumed and expired to show real adoption.
REST, read-only MCP and A2A, plus a web screen for station and policy state.
Structured logs plus five OpenTelemetry metrics served on GET /metrics via the OTel Prometheus exporter (taskinterleaving.hints.issued/consumed/expired counters by site…
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
Value depends on adoption: hints are advisory tie-breaks only; fulfillment-execution can ignore them and deadhead travel stays
Per-site adoption counters show whether hints get used; proving the loop live is next.
Rectilinear travel model v1 is a coarse distance proxy; wrong geometry weakens ranking quality (location copies must stay fresh)
The travel model sits behind a port, and a consumer-lag histogram watches copy freshness.
Every REST, MCP and A2A endpoint is unauthenticated by decision (fleet-wide revert); relies on cluster-internal reachability
No mitigation on the roadmap yet: this one needs an owner.
Wiring is registered but unverified in the cluster — the docs state whether anything actually runs is not verified there
Next step: prove the hint loop with fulfillment-execution in a live cluster.
Task interleaving ranks nearby open work so operators chain tasks instead of walking back empty
| Style | Hexagonal (ports and adapters) per fleet layout: dependencies point inward, the domain imports nothing internal, only cmd/ wires layers; event-driven with transactional outbox |
| Layout | Five binaries: cmd/api (chi REST + two Kafka consumers + outbox relay + hint-expiry worker), cmd/mcp, cmd/a2a (Agent Card, skills), cmd/ti-projector, cmd/ti-reports… |
| Storage | PostgreSQL only for the write side (pgx, unit of work, embedded migration 0001, transactional outbox, task-pool/location-book copies… |
| Testing | table-driven domain unit tests (policy, recommend, stationtrip, travel packages, incl. PICK parity and candidate-bound tests of ADR 0012) and application/adapter/httptest tests… |
| REST | 10 operations over 9 paths: api :8080 — /sites/{siteId}/policy, /hints, /hints/{hintId}, /stations/{stationId}, /recommendations, /healthz, /readyz… |