# The publishing calendar

> Plan which piece goes to which account and when, approve each post, and see where it landed or exactly why it did not.

Source: https://stuarty.com/docs/guide/publishing-calendar/

**Warning:**
This page covers the calendar, the approval of a scheduled post and the scheduler, tested against a fake network and not against a real account. A post can go to YouTube, to an Instagram professional account or to a Facebook Page; other networks come in later versions. The scheduler runs while Stuarty runs: keeping it alive with the window closed is a later version.

## You will learn

- how to plan a week of posts on the calendar;
- how to open one day, plan it hour by hour, and write a note and a theme for it;
- how to mark a day with no posts, and why an agent cannot schedule on it;
- how to keep weekly slots, copy a post to another day and take the plan to another calendar app;
- why every post waits for your yes, and what you see when you give it;
- what happens when the time of a post passes while Stuarty was not running;
- how to read the result of a post and retry one that failed.

## The idea

A **publication** is a piece of a project that goes to one or more accounts. It has a title and a caption that every account shares, and one **target** for each account, with its own fields and its own time. You plan it on the **Publishing** page (in the **Publish** group of the sidebar).

Nothing leaves your computer because you planned it. When you schedule a target, Stuarty asks for your approval: the request shows the final text, the file, the account and the time, in your time zone and in UTC. You approve it on the **Approvals** page, or a rule you wrote approves it for you. An agent can plan and schedule; it cannot approve. If you change an approved post, it goes back to waiting for your yes, because what you approved is exactly what is sent.

## The views

The **View** switch has four views: **Day**, **Week**, **Month** and **List**. **Week** starts on Monday and draws the hours of each day as a grid; **Month** draws the days; **List** has one row for each post, with **When**, **Title**, **Account**, **State**, **Result** and **Actions**. **Previous**, **Next** and **Today** move through time, and the filters **State** and **Network** narrow what you see. A post is coloured by its state, and its state is always written in words too, so colour is never the only sign. The page counts what **waits for you** and what **failed**, and a short strip, **How a post goes out**, shows the three steps: you plan it, you approve it in Approvals, and it goes out at its time on your own account.

## One day

Open a day from the number of a day in the month or the week, from the small month at the top of the page, or by typing a date in **Go to date**. The day view shows the 24 hours of the day as a column:

- **A click on an empty hour** opens the editor with that date and time already filled in. Choose the project, the video and the account, and save.
- **A post sits at its hour.** Drag it to another hour, or focus it and press Space, then the arrow keys (up and down move an hour) and Enter. **Adjust** changes its time, its text and its account without leaving the day. Whatever you change, the service answers and the day shows its answer; a post that was approved goes back to waiting for your yes, as in the editor.
- **A note and a theme** belong to the day, not to a post: write "long video day" and choose a colour. The note is saved when you leave the field and is kept encrypted with the rest of your words. The theme is one of six, always named in words: blue, green, amber, red, teal and gray. An agent can read the note and the theme and write them too.
- **A day with no posts** is a rule, not a hint. Only you mark it, with the switch **No posts this day**. An agent, the CLI and an API key are refused when they schedule on it, with a message that tells them a person decides. When you schedule on it yourself, Stuarty asks you first: "Schedule anyway?" Choose **Choose another day** and nothing changes. A post you approved before you marked the day stays approved.

The small month marks today and the days that hold a note, a theme or a mark, and **Today** takes you back.

### Weekly slots

A **weekly slot** is a reminder: "every Tuesday at 18:00 on Instagram". Open **Weekly slots**, choose the network, the weekday, the time and the zone (and one account, if you want), and **Add the slot**. On each Tuesday the day view and the week show an empty slot at 18:00; click it and the editor opens with that date, time and network. A slot never sends anything and holds no post: it only reminds you what to fill. It keeps its wall time when the clock changes, so 18:00 stays 18:00 in summer and in winter.

### Copy a post, and take the plan with you

In the editor of a post, **Copy to another day or hour** makes a new draft with the same title, text, video and accounts at the time you type. The original does not change, and the copy waits for your yes when you schedule it.

**Export .ics** downloads the posts of what you are looking at (the month, the week or the day) as a calendar file that another app can open. The file is read only: times in UTC, the title and the text of each post, and a state that says whether it is approved. It holds no credential, no address of your connections and no internal id, and it cannot be imported back.

## Times and zones

A time is stored as an instant in UTC together with the zone you chose, for example `America/Sao_Paulo`, so a change of the clock never moves a post by accident. When you type a local time that does not exist (the clock jumps forward over it) Stuarty moves it to the first minute after the jump and tells you; when it happens twice (the clock goes back) it takes the first one and tells you too.

## A time that passed

The scheduler sends a post at its time. If Stuarty was not running then, the post becomes **missed** and is never sent on its own: you choose to send it now or to give it a new time, and both ask for approval again. If you would rather accept a late post, turn on **Send late up to** for that target and set the minutes; the scheduler never sends beyond them.

## States

| State | What it means |
| --- | --- |
| Draft | You are still planning it. Nothing was asked. |
| Waiting for approval | A request waits for you on the Approvals page. |
| Scheduled | Approved; it will go at its time. |
| Approved | Approved and due: the scheduler takes it now. |
| Publishing | A scheduler is sending it. |
| Published | The network accepted it; the page shows its address. |
| Sent as a draft | TikTok took the file as a draft; finish and publish it in the TikTok app. |
| Failed | The network refused it, or Stuarty could not send it; the page says what to do. You can retry. |
| Missed | Its time passed while nothing was running. |
| Cancelled | You cancelled it. |

A short outage of the network is retried by itself, a few times, with longer waits. Every other failure (a daily limit, a refused sign-in, a refused video) waits for you.

## Quick start

**Browser or desktop**

1. Open **Publishing** and choose **New post**.
2. Pick the project and its exported video, write the title, then **Add an account**, choose the account and a date and time.
3. **Save**, then **Schedule and ask for approval**.
4. Approve it on the **Approvals** page. The calendar shows it as scheduled and, at its time, as published.

To move a post, drag it to another day, or focus it and press Space, then the arrow keys (left and right move a day, up and down an hour) and Enter.

**CLI**

```bash
stuarty publication:create --project prj_7k2m9x4q1b --title "Week one" --export job_0123456789 --connection con_0123456789 --at 2026-11-20T09:00 --zone America/Sao_Paulo --made-for-kids no
stuarty publication:schedule pub_0123456789 --target tgt_0123456789
stuarty publication:list --state waiting_approval
stuarty publication:list --from 2026-11-16 --until 2026-11-23 --zone America/Sao_Paulo
stuarty publication:show pub_0123456789
```

A date in `--from` and `--until` is the start of that day in `--zone` (UTC when you leave it out), so the second list is the week from Monday 16 to Sunday 22 in São Paulo.

```bash
stuarty calendar:plan --from 2026-12-01 --until 2026-12-02 --zone America/Sao_Paulo --publications
stuarty calendar:day 2026-12-01 --note "long video day" --theme amber --zone America/Sao_Paulo
stuarty calendar:slot --network instagram --weekday tue --time 18:00 --zone America/Sao_Paulo
stuarty calendar:slot-remove slt_0123456789
stuarty publication:duplicate pub_0123456789 --at 2026-12-08T09:00 --zone America/Sao_Paulo
stuarty calendar:export --from 2026-12-01 --until 2027-01-01 > plan.ics
```

`calendar:quiet` marks a day with no posts, and it always answers `E_PRIVILEGED_SESSION`: only a person in the app does. `publication:schedule` on a quiet day answers the same way. The `.ics` file has one event per post that has a time and was not cancelled, with its time in UTC and the text escaped.

`publication:schedule` only asks for approval. An agent that runs it gets a post that waits for you. Over MCP the same plan is the `publication` tool, with `action` `create`, `schedule`, `show`, `list`, `duplicate`, `plan`, `day` or `slot`; it has no action that sends, cancels, approves or marks a quiet day. Once you approved a post, only you can move it: an agent, the local token or an API key that schedules it again gets `E_PRIVILEGED_SESSION`, and the post keeps its time and your approval.

## What never leaves your computer

- No post is sent before a person, or a rule the person wrote, approved it.
- A file that changed after the approval is not sent: Stuarty checks it against the digest it recorded.
- A post goes only to the account you approved: if the connection signs in as another account, or you choose another Page, before the time comes, the post fails and you schedule it again.
- Every request goes through the connection of the account, with its own credential, and the credential is never shown.
