Skip to content

Plan: the job index — a job you can name, find and read back - #125

Merged
Evanfeenstra merged 1 commit into
mainfrom
docs/job-index-plan
Oct 9, 2026
Merged

Evanfeenstra merged 1 commit into
mainfrom
docs/job-index-plan

Conversation

@Evanfeenstra

Copy link
Copy Markdown
Contributor

A plan only: `plans/job-index.md`, plus one pointer line in the status header of `plans/jobs.md`. No code.

What it answers. How jobs and artifacts are stored today, and the shape for a job that can search past jobs, learn what they produced, look at their artifacts, and find the thread to continue.

Findings. There is no `StrutJob` or `StrutArtifact` node type, and `job` is an attribute on no graph node. A job is a directory plus a record with no title and no list of its runs; its runs are findable only by scanning every workflow. `artifacts[]` is resolved off any run's output at read time and stored nowhere. The title hive sends rides on `input`, which the `job` workflow's input block strips before the run records it. The seed grants no jobs or sessions tool.

The proposed shape. Title on the launch body beside `job`; one run line per launch on the record, written by the runner through the existing jobs capability; `GET /jobs` and `GET /jobs/:id` with the job's current deliverables folded newest-first by artifact id; `job` on a session's turn line; `job/list`, `job/get`, `job/read` for the agent; in the graph a `job` attribute on `StrutRun` and `StrutAgentSession` plus one `StrutJob` node with an `IN_JOB` edge, upserted in the run-end projection hook. No `StrutArtifact` node.

To rule on. The plan lists seven choices under "Proposed rulings", none made yet. Continuing another job's thread from inside a turn is named and deliberately not designed.

…Job node for search, no artifact node

Findings from an exploration of how jobs and artifacts are stored today
(no StrutJob or StrutArtifact in the graph, `job` on run.start and the
summary only, the record with no title or run list, artifacts a read-time
resolution of any run's output, the title hive sends stripped by the job
workflow's input block, no jobs tool on the seed), and the proposed shape:
title on the launch body, run lines on the record written by the runner
through the jobs capability, GET /jobs + GET /jobs/:id with a read-time
artifact fold, job on a session's turn line, job/list|get|read steps for
the agent, and in the graph a `job` attribute plus one StrutJob node with
an IN_JOB edge. Seven choices are listed as proposed rulings, none made.
@Evanfeenstra
Evanfeenstra merged commit 02600d2 into main Oct 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant