feat: add experimental campaign protocol — 8-phase research workflow #25
No reviewers
Labels
No labels
community-feedback
enhancement
skill-upgrade
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
magnus/agent-skills!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/campaign-protocol"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 2 of #22
Adds
references/experimental-campaign-protocol.md— a structured 8-phase workflow for data science research campaigns:Test results: 28/28 passing
Key design decisions:
Review: feat/campaign-protocol → main
Reviewer: Jasper (automated review)
Files: 4 changed, +686 / -0
Tests: 28/28 passing ✓
Overview
Well-structured addition. The 8-phase protocol follows a logical progression (boring → smart), with consistent entry/exit criteria and failure modes per phase. The test suite gives good structural coverage.
Issues Found
Bug — TensorBoard step counter (Phase 4, line ~344):
writer.add_scalar("train/loss", loss.item(), epoch)inside the batch loop usesepochas the global step. All batches in the same epoch get the same step number, so TensorBoard overwrites rather than accumulates. Fix with a per-batchglobal_stepcounter. (Inline comment posted.)Suggestion — Dead scheduler code (Phase 4, line ~340):
ReduceLROnPlateauis instantiated but never stepped. For plateau schedulers,scheduler.step(val_loss)is required after each validation epoch. Either add the call or switch to a self-stepping scheduler likeCosineAnnealingLR. (Inline comment posted.)Forward-reference risk (Phase 3 and See Also section):
The protocol references 6 companion documents (
pytorch-integration.md,sklearn-integration.md,data-science-coding-workflow.md,subagent-experiment-supervision.md,docker-experiment-isolation.md,detect-compute.py). If these don't exist yet, they'll be dead links for any agent that loads this skill. Consider adding stub files or a note about what's planned.Observations
torch.backends.cudnn.deterministic = Truecarries a significant performance penalty (2-10x slower on some GPU operations). Consider adding a tradeoff note.Verdict
Looks good overall. The two code issues in the PyTorch template should be fixed before merge. The forward-reference concern is a judgment call — if the companion docs are being tracked in the same issue (#22) and this PR is just the first delivery, note that in the PR body or README to set expectations.