CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

tessleng/schedule-management

Create and migrate repo-defined Tessl schedules in a project's tessl.json. Turns a plain-language task and cadence into a validated schedules entry, optionally authors its repo-local skill, and moves an existing schedule made in Tessl into version control, keeping its Loop id and history. Needs a Tessl CLI whose tessl loop commands read the Loop API.

1.03x
Quality

98%

Does it follow best practices?

Impact

99%

1.03x

2 of 3 eval scenarios. Add 1 more for a full score.

SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

move-preview.mdskills/schedule-migrate/references/

Reading the move preview

tessl api /experimental/loops/<loop id>/manifest-entries returns, under data.attributes, what a move of this Loop alone would write into tessl.json, read against the file on the default branch as it is now. It is a proposal at that revision, not a promise: the move reads the file again, and a changed file can change the names it writes. The pull request's diff is what merges. The preview is exported from the stored Loop, so it carries authored settings tessl loop view does not print.

The entries

  • actions: the Loop's action under its key. It holds the skill and any stored description, agent, model, environment, git, workdir, effort, inputs, instructions and timeout. A Loop stored before git can also carry baseBranch, which is deprecated and read as git.branch.
  • schedules and triggers: each trigger, named as stored and naming the action by its key. A cron trigger of a Loop made in Tessl is often named by the Loop's id.
  • repoKey: the Loop's identity in the file once it merges, such as actions:clean-ts.

Show the entries as JSON. Everything in them is committed to the repository and its history.

Warnings

Tell the user each one in a plain sentence:

  • label: the file names the Loop by its action key, not by its label.
  • paused: the Loop is paused and stays paused when the pull request merges.
  • environment-not-found: the Loop's environment no longer exists, so the file does not name one.
  • bundled-skill: the skill is built into Tessl, and tessl.json may not accept it.
  • sync-holds-block: sync would hold the named block (triggers or schedules) of the merged file, so the Loop keeps the triggers it stores in that block until the block is fixed.
  • sync-reach-unknown: Tessl cannot confirm that a sync of the merged file reaches this project, for example because the Tessl App installation on the repository's account is missing or does not select it.
  • local-skills-unchecked: the merged file, this Loop's entry or any other, names a skill from the repository, which sync checks at the merge commit and the preview did not.
  • renamed: an action, trigger or schedule name clashes with one already in the file or in another pending move, or is not a valid name, so the move writes to instead of from. A renamed action is started by its new name after merge. Sync creates a new schedule for a renamed schedule, so one scheduled run can be missed.
  • reference-rewritten: an input that named another moved action by its old key now names its new key.
  • project-move-differs: moved together with the Loops in loops, this Loop would be written with the names in names (block, from, to) and the inputs in inputs (input, from, to) instead. It describes one hypothetical group at the file's current revision. Renames in a group move depend on the set and on its order, so it does not certify any other set or order, and matching it does not stand in for checking the group's pull request. A single move moves the Loop alone.

A single move's receipt repeats the entry warnings but leaves out sync-holds-block, sync-reach-unknown and local-skills-unchecked, which are about adoption. Report the preview's with the receipt.

Checking the pull request

Before the user merges, compare the pull request's diff of tessl.json with what the user accepted: for a single move, the previewed entries and the accepted renames; for a group move, each Loop's receipt entry (repoKey and warnings) in the agreed set and order. Tell the user of every difference.

After merge

Check the original id as the adoption reference says.

README.md

tile.json