Repository navigation
I want to build a smart job scheduler for our managers and staffs... Type of jobs: - Single Run: Jobs such as check logs for the day and report anomaly. They do not have memory or reference. - Continuous Run: Jobs such as "create an episode on some theme every day at x time". Because each new episode must remember what happened before they must have memory and references. How can we design it?? Just prepare a plan doc - #27
Merged
Merged
Conversation
…canopy/i-want-to-build-a-smart-job-scheduler-for--fedd8ecd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handover: smart job scheduler plan (G-29)
What you asked for
You asked for a plan doc for a job scheduler for managers and staff, covering two kinds of jobs:
You asked for a plan only, with no code.
Later, while reviewing this handover, you asked for a clickable prototype of the scheduler flow. That's new build work, so a staff member should do it, not the manager (N-65). It will be a follow-up goal: Tommy builds it and Trevor reviews it. It isn't part of this goal, and no prototype is attached here. See "What you need to decide" below.
What we made
Three new documents. No code changed.
docs/design/job-scheduler.mddocs/design/job-scheduler-findings.mddocs/design/job-scheduler-research.mdTrevor reviewed all three against the real code (T-174) and fixed a few wrong claims. Everything is on the branch
canopy/i-want-to-build-a-smart-job-scheduler-for: 7 commits, each with a plain message and no Claude co-author line.The plan in short
A job is a saved instruction with a schedule and an owner. When a job is due, Canopy starts a run. A run is an ordinary goal. That means the board, outputs, notifications and usage tracking all work for it without changes.
The two job types differ in only two ways: what the agent is given at the start of a run, and whether the run may save memory.
Memory is saved only when a run succeeds. If a run fails partway through, memory stays exactly as it was. The summary is capped at about 5,000 characters. When it gets too long, the agent has to shorten it before it can save, so memory doesn't keep growing.
Two ways to do the work:
Timing rules:
Notifications stay quiet unless there's something to say. A daily check that finds nothing sends nothing.
Screens:
Phases:
How to check it
docs/design/job-scheduler.mdon the branch. For a quick read, sections 1, 3, 8, 13 and 14 cover the essentials.git diff main...canopy/i-want-to-build-a-smart-job-scheduler-for. It should show 3 new files underdocs/design/and nothing else.What isn't done, and the risks
What you need to decide
The prototype follow-up goal: please start a new goal for Big Mac, for example “Clickable prototype of the job scheduler flow”, built by Tommy and reviewed by Trevor. What it could cover, all taken from the plan:
Add or remove anything when you start the goal.
Merge: can these three docs go to main?
The recommended answers in section 14. Do you agree with them? The ones with the most effect:
Building phase 1: after the prototype, should we open another goal to build phase 1, with both job types in Direct mode?
Where jobs run: should jobs run on a shared computer by default, so they still run when laptops are off? Or on the owner's computer, as goals do today?