PLAN: record Phase 1 progress and how to pick it up
Commits for parts 1 and 2, what still needs a real test, and the plan for part 3 (Reddit) and part 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -298,7 +298,7 @@ What item 8 turned up:
|
|||||||
the Core's developer: it isn't known yet whether the hub blocks them for
|
the Core's developer: it isn't known yet whether the hub blocks them for
|
||||||
non-admins.
|
non-admins.
|
||||||
|
|
||||||
Next: start Phase 1.
|
Next: Phase 1, under way (see below).
|
||||||
|
|
||||||
Supermarket's half can be checked before the token arrives: ask Hermes the
|
Supermarket's half can be checked before the token arrives: ask Hermes the
|
||||||
check-in question now. It should reach `bridge_checkin` and note that
|
check-in question now. It should reach `bridge_checkin` and note that
|
||||||
@@ -334,7 +334,9 @@ mcphub failed.
|
|||||||
built in four parts, each committed on its own: (1) the pipeline, items 1–2
|
built in four parts, each committed on its own: (1) the pipeline, items 1–2
|
||||||
below, for X and LinkedIn; (2) the approval inbox, schedule and UTM tags,
|
below, for X and LinkedIn; (2) the approval inbox, schedule and UTM tags,
|
||||||
item 5; (3) Reddit, item 4; (4) promoting our own products, the rest of
|
item 5; (3) Reddit, item 4; (4) promoting our own products, the rest of
|
||||||
item 3. Part 1:
|
item 3. The user chose per-channel drafts and this order on 2026-11-20.
|
||||||
|
|
||||||
|
Part 1 (commit `13bf18f`):
|
||||||
- One generation writes **one draft per channel** (a short X post, a longer
|
- One generation writes **one draft per channel** (a short X post, a longer
|
||||||
LinkedIn post), each edited, published and retried on its own. The old
|
LinkedIn post), each edited, published and retried on its own. The old
|
||||||
`posts` table became the `drafts` table (migration 2), one row per
|
`posts` table became the `drafts` table (migration 2), one row per
|
||||||
@@ -348,7 +350,7 @@ item 3. Part 1:
|
|||||||
- Publishing claims the draft first (`publishing`), so it can't post twice;
|
- Publishing claims the draft first (`publishing`), so it can't post twice;
|
||||||
a draft left `publishing` by a restart is marked failed for review.
|
a draft left `publishing` by a restart is marked failed for review.
|
||||||
|
|
||||||
Part 2:
|
Part 2 (commit `f275f03`):
|
||||||
- **Inbox** (top-level menu, with a count): everything waiting for
|
- **Inbox** (top-level menu, with a count): everything waiting for
|
||||||
approval, one section per module; Content's drafts for now. Phase 2's
|
approval, one section per module; Content's drafts for now. Phase 2's
|
||||||
prospects and Phase 3's SEO changes add sections.
|
prospects and Phase 3's SEO changes add sections.
|
||||||
@@ -363,6 +365,42 @@ Part 2:
|
|||||||
post, `utm_content` = entry slug and draft ID.
|
post, `utm_content` = entry slug and draft ID.
|
||||||
- The container now runs in the computer's time zone (`SUPERMARKET_TZ` in
|
- The container now runs in the computer's time zone (`SUPERMARKET_TZ` in
|
||||||
compose.env, from /etc/localtime), so times show and parse correctly.
|
compose.env, from /etc/localtime), so times show and parse correctly.
|
||||||
|
|
||||||
|
**Not yet tried for real.** Parts 1 and 2 are covered by tests with fake AI
|
||||||
|
and channel clients, and the rebuilt app runs (schema 3). But the
|
||||||
|
installed app has no profile, AI key, inventory or social sign-ins yet, so no
|
||||||
|
real fetch, generation or post has been made. Before relying on it:
|
||||||
|
1. Fill in the Profile, add an Anthropic key, and add an inventory entry
|
||||||
|
with an RSS feed (needs no credentials).
|
||||||
|
2. Fetch, write drafts, and check the Inbox's prompts and lengths.
|
||||||
|
3. Connect X and LinkedIn, publish one draft now, schedule one a few
|
||||||
|
minutes ahead, and check that both go out, with UTM tags on a link to
|
||||||
|
the company's site.
|
||||||
|
|
||||||
|
The database before migration 2 is backed up at
|
||||||
|
`~/.local/share/supermarket/app.db.pre-phase1`. Commits on
|
||||||
|
`phase0-foundation` are pushed from a host terminal (no credential helper,
|
||||||
|
so `git push` can't prompt from Claude Code). The branch stays off `main`
|
||||||
|
until the user decides to merge; posting works again now, which was the
|
||||||
|
condition for merging.
|
||||||
|
|
||||||
|
**To pick this up: part 3, Reddit** (item 4):
|
||||||
|
- OAuth for a Reddit "web app" (callback
|
||||||
|
`http://localhost:8470/auth/reddit/callback`), stored like X's and
|
||||||
|
LinkedIn's tokens, with refresh. A third channel, `reddit`: a draft is a
|
||||||
|
title plus body, written for one subreddit.
|
||||||
|
- Subreddits come from the profile's accounts and the inventory entries.
|
||||||
|
Show each subreddit's rules (`/r/<sub>/about/rules`) next to the draft,
|
||||||
|
and its self-promotion limits.
|
||||||
|
- Every Reddit post needs explicit approval, so never "publish all".
|
||||||
|
Warn about posting too often: per subreddit, and the share of the
|
||||||
|
account's posts that link to the company.
|
||||||
|
- Caveat: Reddit's Data API terms require approval for commercial use.
|
||||||
|
Low-volume, human-approved posting from a personal app is the intended
|
||||||
|
scope; say so in the README.
|
||||||
|
|
||||||
|
Then part 4, own-product promotion: drafts from the product list, the
|
||||||
|
company's blog RSS, site pages and releases, with `kind` = `product`.
|
||||||
1. Port fetch → browse → select → generate → approve → publish into the web
|
1. Port fetch → browse → select → generate → approve → publish into the web
|
||||||
UI, keeping the dismiss feature, tracking of what was posted where, partial
|
UI, keeping the dismiss feature, tracking of what was posted where, partial
|
||||||
posting, and X length handling.
|
posting, and X length handling.
|
||||||
|
|||||||
Reference in New Issue
Block a user