Metadata
| Status | done |
|---|---|
| Assigned | agent-544 |
| Agent identity | f51439356729d112a6c404803d88015d5b44832c6c584c62b96732b63c2b0c7e |
| Created | 2026-04-02T15:03:43.059907194+00:00 |
| Started | 2026-04-02T15:04:07.609661575+00:00 |
| Completed | 2026-04-02T15:05:53.212917683+00:00 |
| Tags | bug-report,meta, eval-scheduled |
| Eval score | 0.89 |
| └ blocking impact | 0.92 |
| └ completeness | 0.95 |
| └ coordination overhead | 0.88 |
| └ correctness | 0.95 |
| └ downstream usability | 0.78 |
| └ efficiency | 0.92 |
| └ intent fidelity | 0.67 |
| └ style adherence | 0.90 |
Description
CRITICAL CONTEXT
PHR = Pseudohomologous Region. Read subtelomeric_analysis_report.md for project definitions.
Bug Description
wg evolve run fails with a YAML parse error when trying to load roles:
Error: Failed to load roles
Caused by:
0: YAML error: could not find expected ':' at line 46 column 1, while scanning a simple key at line 45 column 1
1: could not find expected ':' at line 46 column 1, while scanning a simple key at line 45 column 1
Investigation
Role cache files
Location: .workgraph/agency/cache/roles/
- 8 role YAML files present
- Each file is 20-50 lines long (none has 46 lines individually)
- Files appear to be valid YAML when parsed individually
- The error references 'line 46 column 1' which doesn't exist in any single file
Hypothesis
The YAML loader appears to be concatenating all role files into a single stream before parsing. When concatenated, the combined document hits a parse error at the boundary between two files (line 46 = start of second file in concatenated stream). This suggests:
- The loader reads all
*.yamlfiles from a directory and concatenates them - It expects multi-document YAML (with
---separators) but the files don't have separators - OR it expects a single YAML file containing all roles as a list/map, but instead finds individual files
Files checked
.workgraph/agency/cache/roles/*.yaml— 8 files, all individually parseable.workgraph/agency/primitives/tradeoffs/*.yaml— ~200 files, also individually valid structure.workgraph/agency/import-manifest.yaml— valid, shows starter import with 338 role_components, 98 outcomes, 201 trade_offs
Reproduction
cd /moosefs/erikg/phrs
wg evolve run
Fails immediately with the YAML error above.
Environment
- workgraph version: (check
wg --version) - Graph: 500+ tasks, 22h uptime
- Service running, coordinator active
- The agency was initialized via
wg quickstartand has been running agents for ~22 hours with ~445 task completions
Impact
Cannot run agency evolution to improve agent performance. This blocks the ability to learn from the task evaluation history and improve agent role assignments.
Suggested fix
Check the role loading code — it likely needs to either:
- Load each YAML file independently and collect into a list, OR
- Use YAML multi-document stream parsing (
---separator aware), OR - Expect a single roles.yaml file rather than a directory of individual files
The error is in the loader, not the data — the individual role files are structurally valid.
Depends on
Required by
- (none)
Log
- 2026-04-02T15:03:43.044833221+00:00 Task paused
- 2026-04-02T15:03:48.038074604+00:00 Task published
- 2026-04-02T15:04:07.400913506+00:00 Lightweight assignment: agent=Careful Programmer (f5143935), exec_mode=full, context_scope=full, reason=Careful Programmer's high score (0.84) and Careful tradeoff best match the correctness-critical debugging required for YAML parsing in workgraph's role loading system; this is a meta-task requiring precise code investigation and modification.
- 2026-04-02T15:04:07.609663439+00:00 Spawned by coordinator --executor claude --model claude-sonnet-4-20250514
- 2026-04-02T15:04:21.596054848+00:00 Starting investigation of YAML parse error in wg evolve run
- 2026-04-02T15:04:46.160187344+00:00 Found the issue: corrupted YAML file with malformed timestamp split across lines 44-45
- 2026-04-02T15:05:09.752454023+00:00 SUCCESS: Fixed corrupted YAML file, wg evolve run now works correctly
- 2026-04-02T15:05:28.362297921+00:00 Validated: Fixed YAML file, wg evolve run works consistently
- 2026-04-02T15:05:49.955440356+00:00 Task completed: Root cause identified as corrupted YAML cache file with split timestamp. Fixed file, wg evolve run now functions correctly. No code commits needed as this was a cache file fix.
- 2026-04-02T15:05:53.212920418+00:00 Task marked as done
- 2026-04-02T15:07:12.635133561+00:00 FLIP score 0.67 below threshold 0.70 — triggering Opus verification