Skip to content

The Work Was Done. The Last Step Was Missing.

S5·E16 ·rootweaver · git · reliability

I had just been separating the reasons a nightly ingestion job kept ending in failure. The work around the pipeline had its own version of the problem. A task could say In Progress after its fix was running. A change could be on my local main branch and still be missing from the remote. A handover could say an implementation was ready and leave the next session to discover what “ready” meant.

The question I needed answered was whether the work itself had stopped or whether the step that made it usable by the next person had been lost. That distinction changes the job. One case needs implementation. Another needs a push, a review, a tracker update or a decision from me. Guessing from the status field can send an agent back through work I already paid for, or lead it to close a task with a real gap still open.

The engineer checks an open latch at a coastal weather station

The installation looks complete from a distance. One latch still needs attention. Conceptual illustration.

Look for the step that went missing

On 16 July I used an agent-assisted audit to look back across roughly two weeks, tracked as VW-1319 — Two Week Dropped Work Audit + Platform Health Verdict. It had three routes through the evidence. One compared tracker records with Git. One checked the platform itself. The third went through session and handover records, where work could be mentioned without a matching issue or branch. I wanted those views to check one another. The tracker represented intent and administrative state. A commit represented a version of the files. A running service could answer a specific runtime question. The handover was often the only place that explained which question the next session was meant to answer.

The walk through session history hit the very limit we were investigating. The audit records two attempts on that route being cut off, followed by a narrower pass over eight recent handovers. That produced concrete follow-ups from the text it covered. The proposed scan of first messages in session logs never ran, and roughly forty older handovers remained outside the narrow pass. The first lesson came before the findings. A wide investigation that cannot finish or leave a usable intermediate result can add its own lost work.

The retained report counted seven investigated drops. In all seven it identified a missing final action, such as a push, a merge, a tracker transition or an architecture decision write-up. That count describes the cases the audit called drops. It cannot tell me how many other jobs vanished without leaving enough evidence to make the sample. The audit also found work that looked old but was still active, and cases where a proposed cleanup or approval needed to remain with me.

The engineer compares two dispatch sheets next to a parcel

A prepared item and a dispatch receipt answer different questions. Conceptual illustration.

A local main branch is still local

One of the cleanest cases came from the Codex fallback setup. Earlier changes were present on local main. The configuration repository also had a core profile in use locally that was still untracked, meaning Git had no snapshot of that file. Those are two different gaps. Pushing a branch can transfer its commits. It cannot transfer a file that never made it into a commit.

The July handover reports that the recovery pushed three commits to Forgejo. The retained Git history corroborates the identities and contents. Two commits dated 13 July covered the fallback runtime and model provenance. The 16 July commit added the core profile and amended the restore notes. The restored repository history and the report about what was already in use on the Mac are different observations. The commit by itself does not date the first use of the profile.

I find it useful to ask Git the comparison as a question about reachability. A commit is reachable from a branch when following parent links from the branch tip can get to it. The Git project documents the symmetric difference and left/right counts in git rev-list. With a freshly verified remote-tracking tip, this check asks how far each side has moved on its own. The remote-tracking reference is the local record of a remote branch, so its freshness matters.

Read-only command recorded in the July audit handover

git rev-list --left-right --count origin/main...HEAD
Explain this code line by line
  1. git rev-list walks commit history. origin/main...HEAD selects commits reachable from exactly one of those two tips. --left-right associates each selected commit with its side. --count reports two numbers in left-to-right order. Here, left is the locally recorded remote tip and right is the checked-out commit.

Illustrative output. For 2 3, the left tip has two unique commits and the checkout has three. The appropriate next action is to inspect both sides before integrating. For 5 0, the checkout contributes zero unique commits relative to that particular comparison tip. Neither output describes changes in the working directory. Git’s worktree documentation explains how one repository can have several checked-out directories. I still need to check the right directory for staged, unstaged and untracked work, as well as the ownership and currency of the candidate. The audit’s proposed worktree cleanup stayed with me, and some nominally ahead-zero directories were reported to contain untracked scratch documents.

A ticket can lag a running system

The graph retrieval case ran the comparison in the other direction. The July report says the tracker description still portrayed the graph as empty and the scheduled job as suspended. The audit recorded 8,921 nodes, comprising 6,904 entity nodes and 2,017 episodic nodes, and reported that the Kubernetes CronJob was running. A CronJob in Kubernetes creates Jobs on a schedule. Its active configuration answers a scheduling question. The graph count answers a storage question.

Neither observation tells me how much the graph improves a retrieval answer. That requires checking whether the graph results contribute to the combined retrieval path, what the report called fusion. The immediate recovery was to correct the tracker description and retain that verification as follow-up. The numbers are reported July observations. I am not presenting the report as a live snapshot today.

Another case had a more specific finish line. A document could parse successfully and yield zero indexable chunks. A chunk is a piece of text the index can store and retrieve. Treating a valid empty result as a failure could hold up the consumer’s progress on its partition, an ordered slice of the event stream. The campaign’s evidence ledger distinguishes the historical report about a draining consumer from the retained source that explains this decision. Apache Kafka calls the saved position an offset.

Exact source excerpt. neural-vault/vault_indexer.py at 593c14e3, lines 848–852

            logger.warning(
                f"No chunks generated for {file_path} — "
                f"skipping (committed as no-op)"
            )
            return {"success": True, "chunks": 0, "empty": True}
Explain this code line by line
  1. logger.warning( opens a diagnostic message in the successful-empty branch.
  2. The first formatted string inserts the file path into the message.
  3. The second string gives the reason the caller can skip indexing this file.
  4. The closing parenthesis completes the warning call. Logging does not change the saved consumer position.
  5. The return value describes a successful empty outcome to the external caller. The indexer returns data. It does not commit the offset here.

Immediately above that excerpt, the branch tries to delete older index entries for the path and logs a cleanup failure if it occurs. It returns the empty-success result even if that cleanup throws. That detail matters when reading “success.” This is a decision to let a valid empty event complete, with best-effort cleanup. It is not a guarantee that every older entry was deleted. The July audit attributes the fix to a June commit and reports seeing it in a deployed image with the consumer draining. The tracker remained In Progress for roughly a month in the audit’s account, so the work at pickup was to reconcile the ticket with evidence of the fix.

What the next session needs to know

TrackerIntent and statusGitContents and reachabilityServiceObserved effectCheckpointEvidence and next action
TrackerIntent and statusGitContents and reachabilityServiceObserved effectCheckpointEvidence and next action
Conceptual evidence flow. Each source answers a different question. The dotted paths show the direction of evidence into the checkpoint.

A careful merge can still send too much

The documentation automation case had more than one unfinished boundary. An earlier July comparison of headless Claude and Codex runs had found that a disposable architecture document changed before a runner reported a budget error. “Headless” means the runner is started by a wrapper without a person operating its interface. Once the tool can touch a file, its exit status and the bytes on disk can disagree. The comparison report asked for a regression test that deliberately edits a file and then returns non-zero, plus a temporary copy with validated promotion or an exact rollback.

By the audit, the original branch was partly superseded. The recovery brought over the useful credential probe and authentication-failure handling, while retaining the main branch’s dry-run and capture behaviour. This is why “merge the old work” was too blunt a description. The failure classification is visible in the retained merge. It distinguishes a rejected credential from a usage limit or timeout. For that HTTP status terminology I used the IETF HTTP Semantics standard.

Exact source excerpt. scripts/architecture/update_docs_orchestrator.py at 5cb9536a, lines 744–751

            rc, out = claude_runner(selection_prompt(p["manifest"]), per_call_timeout)
            if rc != 0:
                kind = classify_claude_failure(rc, out)
                detail = safe_claude_failure_detail(kind, rc)
                log(f"[orchestrator] Call-1 rc={rc} failure={kind} " f"detail={detail}")
                if is_fatal_claude_failure(kind):
                    return finish_failure(kind, {})
            modules = _parse_module_list(out, fallback)
Explain this code line by line
  1. The wrapper builds a prompt from its manifest, calls the runner with a per-call timeout and receives a return code and output.
  2. A non-zero return code takes the failure path.
  3. The classifier reduces the return code and output to a known failure category.
  4. The next helper chooses an operator-safe detail.
  5. The wrapper logs the return code and the classified detail, without printing the raw output in that log message.
  6. The fatal-category check asks whether the current invocation should stop.
  7. If it should, the wrapper returns a failure with an empty module-result mapping before attempting module calls.
  8. Otherwise, it passes the output and the deterministic fallback to the module-list parser.

Synthetic input and decision. If the selection call returns code 1 with API error: 401, the classifier produces authentication_failed. That category is fatal in the retained version. The shown call returns through finish_failure, so it never asks the same invalid credentials to write the next module. This is a read of the selection path. A separate test that fails after a module edit is needed to establish what happens to the edited bytes.

The audit reports 33 passing tests for the port and carries the transactional edit test as unfinished. I can see the source at the merge and follow control flow through the archived code. That does not independently rerun the 33 tests, or prove how later unattended executions behaved.

Extra parcels are already on the trolley beside the package the engineer meant to send

The outgoing trolley carries more than the one parcel under review. Conceptual illustration.

The port was reviewed at the level of the files it was meant to change. The outbound branch had a wider scope. Its local main already contained seven commits for a parallel research effort. They were ancestors of the merge’s first parent, so they travelled with the push according to the handover. The exact first-parent range in retained Git history contains seven commits. It proves the ancestry. The historical handover supplies the observation that they were previously unpushed and went out together.

A useful read-only separation is to compare the merge against each parent, then compare the intended remote tip with the actual outgoing tip. The first comparison lets me inspect what the merge added to the receiving line. The outbound range lets me see other committed work the remote would receive. A parent is simply a commit’s immediate predecessor. In a normal two-parent merge, the first parent is the tip I merged into. The concepts are documented by the Git project in git merge and git rev-list.

Illustrative commit-range check. Imagine the remote still points to commit R. My local main is two commits ahead of it, A and B, and the fix lives on a second branch at F. I merge the fix and get M. A comparison from M^1, its first parent, to M can show a small patch. The remote comparison from R to M can include all of A, B, F and M. A three-file diff for the intended fix says nothing about how many other commits are reachable from the ref being sent. With patch review and ref review as two separate checks, the operator can see where scope expanded before publishing anything.

This is where a handover needs two receipts. It can say “the intended port is present in the merge” and point to the exact revision. It should also say “the push carried parallel work” and leave an owner and a review action for that range. The historical handover did the latter after the push. It also left CI verification open. The retained material gives me no reason to turn that follow-up into a green build.

What the evidence let me close

CaseWhat I could establishWhat still needed a different check
Fallback configurationThe retained commits contain the runtime changes and new tracked profile. The report records the push.Git history alone does not date first use on the Mac.
Graph retrievalThe audit recorded a populated graph and active CronJob configuration.Actual contribution to a combined retrieval result.
Empty document indexingHistorical source returns success with zero chunks, and the audit reports its deployed image and a draining consumer.The source alone cannot prove the deployment, offset movement, or successful cleanup for every document.
Documentation automationThe merge contains auth handling. Its first-parent ancestry includes the seven parallel commits.Separate confirmation of later CI and the edit-after-failure regression remained outside this reconstruction.
Continuation processThe reduced handover sweep produced follow-up issues. The full session scan was aborted.Coverage of older handovers and whether any later automatic recovery worked.

I wanted a checkpoint that left the owner of the next action with something they could use. A useful checkpoint says what changed, where it is, which boundary was actually observed and what still needs an owner decision. Git can tell me whether a commit is in a history. The service can show whether a particular effect is visible. The ticket can record the decision. The checkpoint needs enough of each to stop the next session guessing.

The audit proposed an end-of-turn checklist for exactly that purpose. It asked whether there were unpushed commits, finished branches still waiting to merge, or In Progress tickets whose fixes had landed. That was a proposal at this point in the story. The narrower manual sweep is the recovery the records show.

What I would carry forward

  • Check the outgoing commit range independently of the intended diff. When several sessions share a checkout, the difference is part of the release decision.
  • Read the worktree status before concluding there is nothing unique to preserve. Ahead counts cover committed history.
  • Put the next observable action near the top of the handover. “Verify CI for this exact revision” leaves a smaller investigation than “check the work.”
  • Keep tracker closure, source integration and runtime verification separate. A single word like “done” can conceal all three boundaries.

In the later July records I started looking at how to make those checkpoints deliberate. The next question was what a new session would need to pick up a task safely when it could no longer rely on the original conversation.

Glossary and primary references

Worktree

A checked-out working directory linked to a Git repository.

Primary reference

Remote-tracking branch

A local reference representing a branch as last observed on a remote.

Primary reference

Reachability

Whether Git can walk from a tip to a commit by following its parent links.

Primary reference

First parent

At a merge commit, the first parent points to the tip that received the merge.

Primary reference

Offset

The position of a record within an ordered Kafka partition.

Primary reference

CronJob

A Kubernetes object that creates Jobs on a schedule.

Primary reference

401 Unauthorized

An HTTP response indicating the request lacks valid authentication credentials.

Primary reference