Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions infra/systemd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,22 @@ systemctl --user list-timers monag-urtlog-triage@production.timer
```

The journal contains a JSON triage report on each run. Inspect its recommendations for the episode, deadline and retry status. A missing journal or an unobserved producer also yields a recommendation. A successful systemd exit means the scan ran. Read the recommendations to determine the health of the route. The timer reruns a minute after the service finishes.

## Continuation snapshot

For an existing `monag-worktree-continuation.service`, install the
`atomic-snapshot.conf` drop-in from the adjacent directory. Bind the following
environment variables in the user unit to absolute paths from the installation.

| Variable | Value |
| --- | --- |
| `MONAG_EXECUTABLE` | Installed Monag supporting `resume --snapshot-file` |
| `MONAG_ROOT` | Workspace scanned by this timer |
| `MONAG_RESUME_SNAPSHOT` | Scheduled JSON file read by the continuation consumer |

Use the same pinned runtime for the scan and its history command. After
`systemctl --user daemon-reload`, let the timer run and wait for its oneshot
service to finish. Parse the snapshot, verify its `monag.resume/v1` schema,
workspace root and fresh observation timestamp, then inspect the expected
project. Monag replaces the complete document atomically. The unit sends
standard output to null so subsequent service commands cannot truncate it.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Service]
StandardOutput=null
ExecStart=
ExecStart=/usr/bin/env -- ${MONAG_EXECUTABLE} --root ${MONAG_ROOT} --json resume --sort changes --snapshot-file ${MONAG_RESUME_SNAPSHOT}
1 change: 1 addition & 0 deletions project/TICKETS.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,5 @@
| **ticket-163** | [`README.md`](./ticket-163/README.md) | - | - | - | - | - |
| **ticket-164** | [`README.md`](./ticket-164/README.md) | - | - | - | - | - |
| **ticket-165** | [`README.md`](./ticket-165/README.md) | - | - | - | - | - |
| **ticket-166** | [`README.md`](./ticket-166/README.md) | - | - | - | - | - |
<!-- AUTO:TICKET_INDEX:END -->
36 changes: 36 additions & 0 deletions project/ticket-166/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Ticket 166: PLF-29792 Deliver atomic output from the scheduled Monag continuation service

- **ID**: ticket-166
- **Owner**: unresolved:human
- **Status**: IN_PROGRESS
- **Workflow state**: EDIT
- **Created**: 2026-11-24

## Goal and scope

Use the reviewed snapshot writer under a systemd oneshot that also has ExecStartPost. Supply a reusable drop-in and verify an actual scheduled cycle on the user-approved existing service.

## Acceptance criteria

- [ ] A scheduled continuation scan leaves fresh JSON after its history command.

## Tracking boundary

This directory contains the minimal reviewed intent. Optional participant prose
and raw command logs are not required delivery output.

<!-- ticket-radar:start -->
## Ticket Radar

Initial planned-scope estimate; advisory only, not execution or merge approval.

| Measure | Initial assessment |
| --- | --- |
| Impact score | 48/100 |
| Complexity | M |
| Estimated effort | 47 min |
| Planning budget | 30 min |
| Split recommended | yes |

Diagnostics: RADAR-ACCEPTANCE-MISSING, RADAR-BUDGET-EXCEEDED.
<!-- ticket-radar:end -->
25 changes: 25 additions & 0 deletions project/ticket-166/intent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"schema": "new-project.intent/v3",
"ticket": "ticket-166",
"summary": "PLF-29792 Deliver atomic output from the scheduled Monag continuation service",
"workstream": "infrastructure",
"classification": {
"kind": "BUG",
"priority": "P1",
"origin": "requested"
},
"allowedPaths": [
"project/ticket-166/**",
"TODO.md",
"project/TICKETS.md",
"infra/systemd/README.md",
"infra/systemd/monag-worktree-continuation.service.d/atomic-snapshot.conf"
],
"forbiddenPaths": [
"project/ticket-*/user-*.md"
],
"stacks": [],
"dependsOn": [],
"conflictsWith": [],
"integrationTicket": null
}