Repository navigation
docs: log agent time through Shadow as finished intervals (RANCH-6) - #256
Merged
Merged
Conversation
Agents wrote project-less entries straight to solidtime and ran a timer there, which the Shadow widget on a Plane task could not place. Shadow's MCP tools have no timer start or switch, so the rule becomes: note the start, log the interval with time_log when work stops, never touch a running timer. Until the owner creates a Time project for ranch the entry goes without a project and must carry 'RANCH-<n> · <title>' as its description.
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.
Task: RANCH-6
Why
The rules told agents to start and stop a timer straight in solidtime with
TIME_API_KEY. Those entries go around Shadow, whose widget on a Plane task is where the owner tracks time, so the two disagreed.What changes
CLAUDE.mdand.cursor/rules/project.mdcnow say:time_log,time_update,time_entries). The direct solidtime calls are removed, with no fallback: if the Shadow tools are missing, the agent reports its intervals instead of writing them.time_logleaves it alone and overlapping intervals are accepted, so agents working in parallel on one account cannot take each other's time.noProject: truewithdescription: "RANCH-<n> · <title>". The description is mandatory in practice:jiraKey+noProjectwithout one saves an entry with an empty description.billableis never passed.RANCHto it is the owner's: Shadow refuses an employee.MZDAI) usejiraKeyand are never logged without a project or under a guessed one.The constitution only points at the project card for time tracking, so it is unchanged. The Plane part is unchanged.
Verified with real calls on RANCH-6
time_log {jiraKey: "RANCH-6"}→logged: false, nothing saved (no Time project for ranch).time_log {noProject: true, start, end, date, description}→ saved, no project, no task, not billable.time_update {id, end}/{id, description}change only what is passed.time_log; overlapping intervals are accepted.time_project_create→ refused: "only a manager or an admin".Not verified: the
jiraKeysuccess path (no project maps yet; Mazda USA is billable, so it was not test-logged) and the widget's own per-task figure, which lives in the browser extension.Timesheet skill
.claude/skills/timesheetneeds no change: it matchesRANCH-<n>in the description or the Time task name, or a Time project called ranch, so entries logged this way are counted now and after the project appears. An entry with an empty description would be missed, which is why the rule requires one.MZDAI-<n>entries are not counted as ranch; whether they should be is a separate decision.Checks
Docs only: no rendered output, so the visual check does not apply. No twin-console slice touched.
bun run test:scriptspasses (245).