Skip to content

docs: log agent time through Shadow as finished intervals (RANCH-6) - #256

Merged
maksymhryzodub-prog merged 1 commit into
mainfrom
docs/RANCH-6-shadow-time-rules
Nov 30, 2026
Merged

maksymhryzodub-prog merged 1 commit into
mainfrom
docs/RANCH-6-shadow-time-rules

Conversation

@maksymhryzodub-prog

Copy link
Copy Markdown
Contributor

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.md and .cursor/rules/project.mdc now say:

  • Time is written through Shadow's MCP tools only (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.
  • Hours are logged as finished intervals when work stops. Shadow has no tool to start or switch a timer, and the owner confirmed a live timer is not needed.
  • A running timer is never touched. time_log leaves it alone and overlapping intervals are accepted, so agents working in parallel on one account cannot take each other's time.
  • Until Time has a ranch project, the call is noProject: true with description: "RANCH-<n> · <title>". The description is mandatory in practice: jiraKey + noProject without one saves an entry with an empty description.
  • billable is never passed.
  • Creating the Time project for ranch and mapping the key RANCH to it is the owner's: Shadow refuses an employee.
  • Tasks in another Plane project (MZDAI) use jiraKey and 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.
  • A running entry is left alone by time_log; overlapping intervals are accepted.
  • time_project_create → refused: "only a manager or an admin".

Not verified: the jiraKey success 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/timesheet needs no change: it matches RANCH-<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:scripts passes (245).

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.
@maksymhryzodub-prog
maksymhryzodub-prog merged commit 86025ee into main Nov 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant