Skip to content

docs(openspec): plan #3032 keep and show a trace of each run - #3194

Merged
dan-petty merged 6 commits into
mainfrom
feat/3032-a-trace-of-every-run-kept
Nov 2, 2026
Merged

dan-petty merged 6 commits into
mainfrom
feat/3032-a-trace-of-every-run-kept

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Plans #3032

The plan adds a trace of each implement run: its model calls, tool calls, check runs and retries. The job keeps it under implement.trace in the job record, within 8,192 characters. devops roadmap explain <issue> --trace prints it. The stop comment and the pull request comment show a table of step, attempts, tokens and last failing command. Every text of the trace is masked, private host names too.

Why: a stopped Job leaves a log and one reason, and a person cannot see what the agent tried. The Job artifact is left out: no artifact store exists, and #3105 plans one.

Change: openspec/changes/3032-a-trace-of-every-run-kept/

🤖 Generated with Claude Code

https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW

Copy link
Copy Markdown
Owner

Review of the plan for #3032.

CI: all 18 check runs completed with no failure (Semantic PR title success; 2 skipped). Premise: partly true. The stop comment shows no tokens or attempt count in its text (implement_comment_stopped, src/devops_cli/lang/en/messages.py:2496), and no trace exists for an implement run. But the plan holds placeholder text only, and the issue text needs three corrections (findings 2 and 3).

  1. The plan is a placeholder and cannot be approved. The PR title ends in x and the body is x. proposal.md has x in Why, in the What Changes bullet, in Feasibility and in Existing Tool Considered. design.md says None. for Decisions and for Rejected alternatives, although the issue lists three decisions (format, size bound, masking), each with rejected options. tasks.md has one group titled x and one task 1.1 x. The spec scenario is x / x / x, which no test can assert. The stage comment on the issue already reported this as criterion_dropped, verify_form, spec_delta_wrong and other; the PR is not changed since. Fix: re-plan from the issue with real text in every section. Rules: openspec/config.yaml (proposal: cite #3032 in Why, a real Feasibility, a Existing Tool Considered with the cost in tokens and time) and AGENTS.md rules 2 and 3. The PR body must be a real summary of at most 1,000 characters (CONTRIBUTING.md section 4), and the title summary must state the effect.

  2. The plan covers 1 of 4 acceptance criteria. Changes: src/devops_cli/roadmap/explain.py is the only file. explain.py is the selection explainer (why a job takes an item: explain_item, render_explanation, no run data). It has no --trace option and does not read a run. Missing on origin/main: the writer of events in the implement run (implement_run.py, implement_tool_log.py, implement_step.py), the new key in ImplementRecordKey (src/devops_cli/roadmap/store.py:~200, now GROUP, SHA, BRANCH, PR, STOPPED, FAILURE, SPEND, JOB, JOB_STATE), the stop comment (implement_run.py:782, template implement_comment_stopped), the PR comment table, the new messages in messages.py and constants in constants.py, the command option in the explain command, and the docs (docs/roadmap/implement.md; run devops docs generate --sync-readme). Fix: one behavior group for each of the four criteria, test first, each with a fail-on-base command in the mirror folder (tests/roadmap/test_roadmap_...py, as tests/roadmap/test_roadmap_explain*.py and test_roadmap_implement_tool_log.py do), then a docs group last.

  3. The plan must reuse code that exists. The issue text (Existing Tool Considered) says no tool covers the need; the code shows otherwise:

  4. Spec deltas are in the wrong place. All requirements go to roadmap-implement-step, and the one requirement is ADDED as The trace of a run. On origin/main: --trace belongs to roadmap-explain (ADDED; the existing "The command makes no model call and no write" must stay true, so say how the trace is read). The trace record and its bound belong to roadmap-implement-job as MODIFIED of The job record (spec.md:181, which lists the keys). The stop comment summary is MODIFIED of The stop comment names the failure class (spec.md:675), because that requirement exists. The masking requirement may go to secret-masking or roadmap-implement-job. A MODIFIED block must repeat the full requirement text, and every requirement must be 500 characters or fewer for openspec validate --strict. The "Modified Capabilities" list in the proposal must name the same capabilities as the deltas. The scenarios must be offline and assertable (for example, the 8192-character bound drops the oldest events; the masking scenario with a bearer token and a host ending .internal).

  5. The task verification fails the rules. 1.1 x, and verify that openspec validate --strict passes has no kind, no failing test first, and a command that does not start with uv run devops (openspec/config.yaml tasks rules; AGENTS.md rule 4). openspec validate --strict tests no behavior. Fix as in finding 2. The bullet "Pending a person: review the diff in tuicr" is fine.

  6. Size and state. The issue is rated Effort High with four criteria, a new record format, a CLI option and comment rendering. The proposal line "The change fits one pull request" is unsupported; the real plan should state it with the group sizes (the stage comment budgets 40000 tokens per group), or the item should be split into sub-issues (writer plus record, then explain --trace, then the stop-comment table). The PR is not a draft (draft: false) although the stage comment calls it a draft; who changed this is not verified. AGENTS.md rule 6 asks for draft until the checks pass and the plan is real.

  7. Not verified: whether uv run devops openspec check and check_proposal (fix(roadmap): the stage job refuses an unneeded spec delta #3177) reject this change on the branch (I did not run the branch; the clone is read-only for this review); the network policy of the runner pod claimed in the issue's masking decision; the 8192-character bound against the real size of a job record.

Related issues:

Verdict: hold until the plan is rewritten with real content: one issue-sized plan or a split, the spec deltas in the right capabilities with MODIFIED where the requirement exists, test-first behavior groups with uv run devops verification commands, reuse of RunTrace, mask_secrets and PRIVATE_HOST_PATTERNS, the artifact criterion resolved against #3105, and a real title summary and PR body.


Generated by Claude Code

Replace the placeholder plan with the real one: the trace module, the events of a step, the record key, the table in the two comments, explain --trace and the masking of private host names.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
@dan-petty dan-petty changed the title docs(openspec): plan #3032 x docs(openspec): plan #3032 keep and show a trace of each run Nov 2, 2026
The invariant test of committed addresses refused the example 10.1.2.3. The examples use the loopback address, and the tasks say why.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PeiMDoPafqUWqpk1WxhaYW
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.

2 participants