Add Forgejo Actions log streaming to ward-kdl specgen #396

Closed
opened 2026-07-09 23:25:12 +00:00 by coilyco-ops · 3 comments
Member

Design and implement ward-kdl support for Forgejo Actions job log streaming.\n\nContext:\n- Forgejo 15.0.2 exposes Actions task metadata in the REST swagger, but not job log streaming.\n- The live web route streams plaintext logs from server-side action log storage: GET /{owner}/{repo}/actions/runs/{run}/jobs/{job}/attempt/{attempt}/logs.\n- Source: routers/web/web.go registers the route, routers/web/repo/actions/view.go Logs opens actions.OpenLogs and ctx.ServeContent streams text/plain as an attachment.\n- The canonical coilyco ward-spec bundle is aos .ward/, so the Forgejo guardfile/spec overlay belongs here.\n\nDesired design:\n- Add a specgen/overlay mechanism for authenticated Forgejo web routes that are not present in swagger.v1.json.\n- Model the action log endpoint as a read-only streaming/download operation, not a mutating REST task operation.\n- Expose it through ward as a clear verb, e.g. ward ops forgejo actions logs , or an equivalent action-log resource name that fits ward-kdl conventions.\n- Keep the existing owner restriction and Forgejo header-token auth.\n- Ensure output behavior preserves the streamed plaintext body. Do not YAML-render or JSON-render log text.\n- Add tests/docs/reference regeneration for the new verb.\n\nOpen design points:\n- Whether cli-guard already has a binary/plaintext response mode, or needs one.\n- Whether this should be an OpenAPI overlay JSON generated from KDL, or a first-class KDL route declaration compiled beside the swagger-derived operations.\n- Whether a helper action should resolve latest run/job indices from tasks list, or the first leaf should require explicit run/job/attempt parameters.

Design and implement ward-kdl support for Forgejo Actions job log streaming.\n\nContext:\n- Forgejo 15.0.2 exposes Actions task metadata in the REST swagger, but not job log streaming.\n- The live web route streams plaintext logs from server-side action log storage: GET /{owner}/{repo}/actions/runs/{run}/jobs/{job}/attempt/{attempt}/logs.\n- Source: routers/web/web.go registers the route, routers/web/repo/actions/view.go Logs opens actions.OpenLogs and ctx.ServeContent streams text/plain as an attachment.\n- The canonical coilyco ward-spec bundle is aos .ward/, so the Forgejo guardfile/spec overlay belongs here.\n\nDesired design:\n- Add a specgen/overlay mechanism for authenticated Forgejo web routes that are not present in swagger.v1.json.\n- Model the action log endpoint as a read-only streaming/download operation, not a mutating REST task operation.\n- Expose it through ward as a clear verb, e.g. ward ops forgejo actions logs <owner> <repo> <run-index> <job-index> <attempt>, or an equivalent action-log resource name that fits ward-kdl conventions.\n- Keep the existing owner restriction and Forgejo header-token auth.\n- Ensure output behavior preserves the streamed plaintext body. Do not YAML-render or JSON-render log text.\n- Add tests/docs/reference regeneration for the new verb.\n\nOpen design points:\n- Whether cli-guard already has a binary/plaintext response mode, or needs one.\n- Whether this should be an OpenAPI overlay JSON generated from KDL, or a first-class KDL route declaration compiled beside the swagger-derived operations.\n- Whether a helper action should resolve latest run/job indices from tasks list, or the first leaf should require explicit run/job/attempt parameters.
Author
Member

WARD-RESERVATION: held 🔒

reservation details

Holder: container engineer-codex-agentic-os-396 on host kais-macbook-pro-2.local.

Reserved by ward agent --harness codex (reserved 2026-07-09T23:25:22Z). Concurrent ward agent runs are blocked until it finishes or the reservation goes stale (1h TTL). --force overrides.

Do not comment on or edit this issue to steer the run while it is reserved. The engineer seeded the body once at launch and never re-reads it, so a comment or edit reaches only human readers, never the running engineer. A correction goes to a new issue, dispatched fresh. That is the only channel that reaches a run in flight. Where the forge supports it, ward locks this conversation to make that a road-block rather than a convention (ward#494).

run seed context — what this run is carrying (ward#609)
  • Resolved: coilyco-flight-deck/agentic-os#396 · branch issue-396 · harness codex · workflow direct-main
  • Run: engineer-codex-agentic-os-396 · ward v0.540.0 · dispatched 2026-07-09T23:25:22Z
  • Comment thread: 0 included in the pre-flight read, 0 stripped (ward's own automated comments).

Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.540.0).

— Codex, via ward agent

<!-- ward-agent-reservation --> WARD-RESERVATION: held 🔒 <details><summary>reservation details</summary> Holder: container `engineer-codex-agentic-os-396` on host `kais-macbook-pro-2.local`. Reserved by `ward agent --harness codex` (reserved 2026-07-09T23:25:22Z). Concurrent `ward agent` runs are blocked until it finishes or the reservation goes stale (1h TTL). `--force` overrides. **Do not comment on or edit this issue to steer the run while it is reserved.** The engineer seeded the body once at launch and never re-reads it, so a comment or edit reaches only human readers, never the running engineer. A correction goes to a **new issue, dispatched fresh**. That is the only channel that reaches a run in flight. Where the forge supports it, ward locks this conversation to make that a road-block rather than a convention (ward#494). <details><summary>run seed context — what this run is carrying (ward#609)</summary> - **Resolved:** `coilyco-flight-deck/agentic-os#396` · branch `issue-396` · harness `codex` · workflow `direct-main` - **Run:** `engineer-codex-agentic-os-396` · ward `v0.540.0` · dispatched `2026-07-09T23:25:22Z` - **Comment thread:** 0 included in the pre-flight read, 0 stripped (ward's own automated comments). Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.540.0). </details> </details> <!-- ward-agent-signature --> — Codex, via `ward agent`
Author
Member

WARD-RESERVATION: held 🔒

reservation details

Holder: container engineer-codex-agentic-os-396 on host kais-macbook-pro-2.local.

Reserved by ward agent --harness codex (reserved 2026-07-10T04:49:26Z). Concurrent ward agent runs are blocked until it finishes or the reservation goes stale (1h TTL). --force overrides.

Do not comment on or edit this issue to steer the run while it is reserved. The engineer seeded the body once at launch and never re-reads it, so a comment or edit reaches only human readers, never the running engineer. A correction goes to a new issue, dispatched fresh. That is the only channel that reaches a run in flight. Where the forge supports it, ward locks this conversation to make that a road-block rather than a convention (ward#494).

run seed context — what this run is carrying (ward#609)
  • Resolved: coilyco-flight-deck/agentic-os#396 · branch issue-396 · harness codex · workflow direct-main
  • Run: engineer-codex-agentic-os-396 · ward v0.555.0 · dispatched 2026-07-10T04:49:26Z
  • Comment thread: 0 included in the pre-flight read, 1 stripped (ward's own automated comments).

Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.555.0).

— Codex, via ward agent

<!-- ward-agent-reservation --> WARD-RESERVATION: held 🔒 <details><summary>reservation details</summary> Holder: container `engineer-codex-agentic-os-396` on host `kais-macbook-pro-2.local`. Reserved by `ward agent --harness codex` (reserved 2026-07-10T04:49:26Z). Concurrent `ward agent` runs are blocked until it finishes or the reservation goes stale (1h TTL). `--force` overrides. **Do not comment on or edit this issue to steer the run while it is reserved.** The engineer seeded the body once at launch and never re-reads it, so a comment or edit reaches only human readers, never the running engineer. A correction goes to a **new issue, dispatched fresh**. That is the only channel that reaches a run in flight. Where the forge supports it, ward locks this conversation to make that a road-block rather than a convention (ward#494). <details><summary>run seed context — what this run is carrying (ward#609)</summary> - **Resolved:** `coilyco-flight-deck/agentic-os#396` · branch `issue-396` · harness `codex` · workflow `direct-main` - **Run:** `engineer-codex-agentic-os-396` · ward `v0.555.0` · dispatched `2026-07-10T04:49:26Z` - **Comment thread:** 0 included in the pre-flight read, 1 stripped (ward's own automated comments). - stripped: @coilyco-ops (2026-07-09T23:25:25Z) Static container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.555.0). </details> </details> <!-- ward-agent-signature --> — Codex, via `ward agent`
Author
Member

WARD-OUTCOME: done

details workflow: direct-to-main; review summary: skipped because review gate skipped by ~/.ward/config.yaml default felt: straightforward after fixing the stale bundle constant and merging the remote main updates confidence: high surprises: the live Actions log bridge had to stay as a repo-local exec overlay to preserve raw plaintext output follow-ups: none
WARD-OUTCOME: done <details><summary>details</summary> workflow: direct-to-main; review summary: skipped because review gate skipped by ~/.ward/config.yaml default felt: straightforward after fixing the stale bundle constant and merging the remote main updates confidence: high surprises: the live Actions log bridge had to stay as a repo-local exec overlay to preserve raw plaintext output follow-ups: none </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilyco-flight-deck/agentic-os#396
No description provided.