NS8 slice: Run lint, build, test, and check jobs from the editor #53

Closed
opened 2026-06-21 09:12:14 +00:00 by tmk241 · 1 comment
Owner

OBJECTIVE: mim can run existing lint/build/test/check commands as first-class editor jobs with output panels, statuses, diagnostics, and clear missing-tool behavior.

AUTHORITY: Parent #43; KEYMAP.md Coding tools and language operations; req: coding/006-007, governance/001-002, repo/002, testing/001-004.

AGENT AUTHORITY:

  • Delivery authority: local-commit
  • Tracker authority: this issue may be commented and closed when acceptance passes; parent #43 may be commented/checklisted.
  • Handoff state: committed clean, tracker commented/closed.

PARENT: #43 via explicit issue link and parent checklist.

SCOPE: Space t l/L/b/t/c, job process lifecycle, output capture, exit status, cancellation, parsed diagnostics where available, panel integration, source-profile command table. Likely files: src/job.zig, protocol/session/panel.

BOUNDARIES: Do not auto-install tools. Do not mutate git or project files except the external command's documented behavior. Do not invent per-user runtime config; defaults are source-patched profiles.

ACCEPTANCE:

  • Lint current file and lint project are distinct commands with visible scope.
  • Build, test, and check jobs run existing configured commands and show command/provider/status/exit code.
  • Output panel supports navigation, copying/yanking relevant lines if available, and jump-to-diagnostic when parsed.
  • Cancellation/timeout/failed spawn are visible and recoverable.
  • Missing tool reports a clear diagnostic and never attempts installation.
  • Concurrent or repeated jobs do not corrupt session state or mix outputs.

VERIFICATION:

  • zig build test
  • Fixture jobs for pass, fail, stderr, missing executable, timeout/cancel, diagnostic parsing, repeated jobs, and panel jump.
  • zig build v1-smoke

BLOCKERS: none.

OBJECTIVE: `mim` can run existing lint/build/test/check commands as first-class editor jobs with output panels, statuses, diagnostics, and clear missing-tool behavior. AUTHORITY: Parent #43; KEYMAP.md `Coding tools and language operations`; req: coding/006-007, governance/001-002, repo/002, testing/001-004. AGENT AUTHORITY: - Delivery authority: local-commit - Tracker authority: this issue may be commented and closed when acceptance passes; parent #43 may be commented/checklisted. - Handoff state: committed clean, tracker commented/closed. PARENT: #43 via explicit issue link and parent checklist. SCOPE: `Space t l/L/b/t/c`, job process lifecycle, output capture, exit status, cancellation, parsed diagnostics where available, panel integration, source-profile command table. Likely files: `src/job.zig`, protocol/session/panel. BOUNDARIES: Do not auto-install tools. Do not mutate git or project files except the external command's documented behavior. Do not invent per-user runtime config; defaults are source-patched profiles. ACCEPTANCE: - Lint current file and lint project are distinct commands with visible scope. - Build, test, and check jobs run existing configured commands and show command/provider/status/exit code. - Output panel supports navigation, copying/yanking relevant lines if available, and jump-to-diagnostic when parsed. - Cancellation/timeout/failed spawn are visible and recoverable. - Missing tool reports a clear diagnostic and never attempts installation. - Concurrent or repeated jobs do not corrupt session state or mix outputs. VERIFICATION: - `zig build test` - Fixture jobs for pass, fail, stderr, missing executable, timeout/cancel, diagnostic parsing, repeated jobs, and panel jump. - `zig build v1-smoke` BLOCKERS: none.
tmk241 added the sliceready-for-agentgoal labels 2026-06-21 09:12:14 +00:00
Author
Owner

Implemented and committed #53 as e4d6837 Add first-class job rail profiles.

What changed:

  • Added source-patched job profiles for lint-file, lint-project, build, test, and check.
  • Wired Space t rail: l, L, b, t, c, x, j, y.
  • Job panels now preserve job cwd, replace previous job/terminal output panels, support selected-line yank, and jump selected diagnostics to the right file/line.
  • Added visible missing-current-file, missing-tool, timeout, and cancel rows without hidden install attempts.
  • Updated KEYMAP implementation status for the job rail.

Verification:

  • zig build test
  • zig build
  • zig build v1-smoke
  • zig build run -- --help
  • zig build run -- src/main.zig
  • redgate list /opt/repositories/mim/REQUIREMENTS.md
  • redgate lint /opt/repositories/mim/REQUIREMENTS.md && redgate health /opt/repositories/mim/REQUIREMENTS.md

Tests added:

  • source-patched profile argv/rows for lint/build/test/check
  • Space t lint-file vs lint-project scope behavior and panel replacement
  • visible cancel, timeout, missing-tool rows and selected-row yank
  • Space t j jump from selected job output using the job cwd
Implemented and committed #53 as `e4d6837 Add first-class job rail profiles`. What changed: - Added source-patched job profiles for lint-file, lint-project, build, test, and check. - Wired `Space t` rail: `l`, `L`, `b`, `t`, `c`, `x`, `j`, `y`. - Job panels now preserve job cwd, replace previous job/terminal output panels, support selected-line yank, and jump selected diagnostics to the right file/line. - Added visible missing-current-file, missing-tool, timeout, and cancel rows without hidden install attempts. - Updated KEYMAP implementation status for the job rail. Verification: - `zig build test` - `zig build` - `zig build v1-smoke` - `zig build run -- --help` - `zig build run -- src/main.zig` - `redgate list /opt/repositories/mim/REQUIREMENTS.md` - `redgate lint /opt/repositories/mim/REQUIREMENTS.md && redgate health /opt/repositories/mim/REQUIREMENTS.md` Tests added: - source-patched profile argv/rows for lint/build/test/check - `Space t` lint-file vs lint-project scope behavior and panel replacement - visible cancel, timeout, missing-tool rows and selected-row yank - `Space t j` jump from selected job output using the job cwd
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tmk241/mim#53