Skip to content

Commit 596df43

Browse files
committed
feat(cmo): add in-house X automation baseline, queue review gate, and docs
1 parent 2a57321 commit 596df43

File tree

8 files changed

+691
-0
lines changed

8 files changed

+691
-0
lines changed

ops/cmo-automation/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Generated runtime artifacts
2+
data/*.json
3+
reports/cmo-analysis.json
4+
reports/cmo-analysis.md
5+
reports/cmo-queue-review.json
6+
reports/cmo-queue-review.md
7+
8+
# Python cache
9+
__pycache__/
10+
*.pyc

ops/cmo-automation/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
CMO Automation (X/Twitter)
2+
3+
Purpose
4+
- Internal, data-driven replacement for outsourced engagement operations.
5+
- Covers three coordinated accounts:
6+
- @TheCesarCross
7+
- @sovren_software
8+
- @mrhaven_agent
9+
10+
What this does today
11+
1) Collect snapshot data from X API (profile + timeline)
12+
2) Analyze behavior and output baseline metrics
13+
3) Generate a conservative dry-run engagement queue
14+
4) Score the queue for risk/quality before any execution
15+
16+
Current mode
17+
- Dry-run / assisted only.
18+
- No autonomous posting in this module yet.
19+
20+
Structure
21+
- config/cmo_accounts.yaml
22+
- scripts/collect_x_data.py
23+
- scripts/analyze_x_cmo.py
24+
- scripts/generate_engagement_queue.py
25+
- scripts/review_engagement_queue.py
26+
- reports/CMO-AUTOMATION-IMPLEMENTATION-PLAN.md
27+
28+
Quick start
29+
1) Export credentials (or source ~/.claude/secrets.env)
30+
- Required: X_API_KEY, X_API_SECRET, X_BEARER_TOKEN, X_ACCESS_TOKEN, X_ACCESS_TOKEN_SECRET
31+
- Script also maps from TWITTER_* variables.
32+
2) Run:
33+
- python3 scripts/collect_x_data.py
34+
- python3 scripts/analyze_x_cmo.py
35+
- python3 scripts/generate_engagement_queue.py
36+
- python3 scripts/review_engagement_queue.py
37+
38+
Outputs
39+
- data/latest.json
40+
- reports/cmo-analysis.json
41+
- reports/cmo-analysis.md
42+
- data/engagement-queue.json
43+
- reports/cmo-queue-review.json
44+
- reports/cmo-queue-review.md
45+
46+
Guardrails
47+
- Generic short-reply behavior is penalized.
48+
- Repetitive opener patterns are penalized.
49+
- Per-account recommended caps are enforced by policy review before execution.
50+
51+
Notes
52+
- Generated JSON/analysis artifacts are ignored in git by default.
53+
- Commit strategy/docs/scripts, not volatile runtime snapshots.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
accounts:
2+
- handle: TheCesarCross
3+
role: founder
4+
voice: founder-authentic
5+
target_mix:
6+
root_posts_per_day: 1
7+
replies_per_day: 12
8+
quote_posts_per_week: 4
9+
- handle: sovren_software
10+
role: brand
11+
voice: thesis-terse
12+
target_mix:
13+
root_posts_per_day: 1
14+
replies_per_day: 10
15+
quote_posts_per_week: 3
16+
- handle: mrhaven_agent
17+
role: product-agent
18+
voice: guardian-utility
19+
target_mix:
20+
root_posts_per_day: 2
21+
replies_per_day: 6
22+
quote_posts_per_week: 2
23+
24+
analysis:
25+
lookback_days: 21
26+
baseline_label: fiverr-period
27+
detect_patterns:
28+
short_reply_threshold_chars: 90
29+
short_reply_ratio_alert: 0.75
30+
repeated_openers:
31+
- "Totally agree"
32+
- "Agree"
33+
- "Appreciate"
34+
- "Nice take"
35+
- "We value"
36+
- "Right then"
37+
38+
risk_controls:
39+
max_replies_per_hour_per_account: 8
40+
random_delay_seconds: [45, 180]
41+
avoid_repeated_same-user-replies_within_hours: 24
42+
dry_run_default: true
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
# Automated CMO Function — Implementation Plan (Three X Accounts)
2+
3+
Goal
4+
- Replace outsourced Fiverr engagement with an in-house, measurable, low-risk automation system that coordinates:
5+
- @TheCesarCross (founder)
6+
- @sovren_software (brand)
7+
- @mrhaven_agent (product agent)
8+
9+
Current baseline (from latest captured sample)
10+
- @TheCesarCross: 7/7 posts are replies, short-reply ratio 0.714, avg impressions 3.43
11+
- @sovren_software: 8/8 posts are replies, short-reply ratio 0.875, avg impressions 6.25
12+
- @mrhaven_agent: 8/8 posts are root posts, avg impressions 5.62
13+
- Pattern observed in outsourced-style behavior: high-volume short replies, broad low-overlap targeting, weak engagement yield.
14+
15+
Interpretation
16+
- The current engagement mode is over-indexed on low-context reactive replies.
17+
- Root narrative production is underrepresented on founder + brand accounts in sampled window.
18+
- This aligns with low return on outsourced spend.
19+
20+
---
21+
22+
## Phase 1 — Instrumentation + Baseline Lock (now)
23+
24+
Implemented
25+
- Collector: scripts/collect_x_data.py
26+
- Analyzer: scripts/analyze_x_cmo.py
27+
- Action queue generator: scripts/generate_engagement_queue.py
28+
- Config: config/cmo_accounts.yaml
29+
30+
Output artifacts
31+
- data/latest.json
32+
- reports/cmo-analysis.json
33+
- reports/cmo-analysis.md
34+
- data/engagement-queue.json
35+
36+
Operating command
37+
- cd ~/cDesign/sovren-website/ops/cmo-automation
38+
- source ~/.claude/secrets.env
39+
- export CMO_TIMELINE_MAX=20
40+
- python3 scripts/collect_x_data.py
41+
- python3 scripts/analyze_x_cmo.py
42+
- python3 scripts/generate_engagement_queue.py
43+
44+
---
45+
46+
## Phase 2 — Reconstruct Fiverr Playbook (1–2 days)
47+
48+
Method
49+
1) Pull daily snapshots for 14 days.
50+
2) Tag candidate outsourced actions with heuristics:
51+
- starts with @
52+
- <= 90 chars
53+
- generic opener patterns
54+
- low dwell (burst cadence)
55+
3) Split output into:
56+
- worked: replies with above-median impressions/likes
57+
- failed: replies with 0 interaction and low impressions
58+
59+
Deliverables
60+
- reports/fiverr-playbook-reconstruction.md
61+
- reports/fiverr-pattern-confusion-matrix.json
62+
63+
Decision gate
64+
- If short reply ratio > 0.65 and avg likes < 0.5 on targeted accounts, cap automated replies and shift volume to root + quote strategy.
65+
66+
---
67+
68+
## Phase 3 — Improved Strategy Model (systematized)
69+
70+
Account strategy
71+
1) Founder (@TheCesarCross)
72+
- Primary: authority and framing
73+
- Mix target: 35% root, 50% high-signal replies, 15% quotes
74+
- Rule: no generic acknowledgements without differentiated opinion
75+
76+
2) Brand (@sovren_software)
77+
- Primary: thesis + product context
78+
- Mix target: 45% root, 40% contextual replies, 15% quotes
79+
- Rule: every reply should ladder to sovereignty thesis or product proof
80+
81+
3) Product (@mrhaven_agent)
82+
- Primary: utility + proofs
83+
- Mix target: 60% root utility posts, 25% proof/context replies, 15% quote amplification
84+
- Rule: keep proof-linked clarity; avoid broad-topic drift
85+
86+
Cross-account orchestration rules
87+
- Founder seeds perspective → brand codifies thesis → mrhaven_agent supplies proof/utility.
88+
- No duplicate same-angle reply across two accounts within 12 hours.
89+
- Daily coordination cap: 1 shared topic cluster/day.
90+
91+
---
92+
93+
## Phase 4 — Automation Execution Layer (safe automation)
94+
95+
Execution architecture
96+
- Scheduler: cron (or GitHub Actions)
97+
- Data: snapshot JSON + analysis report + queue JSON
98+
- Executor modes:
99+
- dry-run (default): generate recommended actions only
100+
- assisted: human approves queued actions
101+
- auto-lite: post only pre-approved templates with strict limits
102+
103+
Risk controls
104+
- per-account reply caps/hour
105+
- 24h cooldown on same-user repeated replies
106+
- random delay jitter
107+
- require contextual relevance score before posting
108+
- hard block list + topic deny list
109+
110+
Immediate policy change
111+
- pause blind high-volume replying
112+
- enforce minimum root-post floor each account/day
113+
- route all auto actions through queue + review for first 2 weeks
114+
115+
---
116+
117+
## Phase 5 — KPI and Feedback Loop
118+
119+
North-star KPIs
120+
- engagement per post by type (root/reply/quote)
121+
- follower delta/week
122+
- reply conversion rate (reply -> profile visit/follow)
123+
- cross-account amplification uplift
124+
125+
Guardrail KPIs
126+
- % low-signal replies (short generic) < 30%
127+
- duplicate semantic replies/day < 10%
128+
- actions rejected by reviewer (quality failure)
129+
130+
Weekly review output
131+
- reports/weekly-cmo-review-YYYY-MM-DD.md
132+
- includes: what changed, what worked, what to stop, next week experiments
133+
134+
---
135+
136+
## What to do next (execution order)
137+
138+
1) Start daily collection
139+
- Run collector+analyzer twice daily for 14 days.
140+
141+
2) Add first automation gate
142+
- Keep generate_engagement_queue.py in dry-run.
143+
- Review queue manually and execute only approved actions.
144+
145+
3) Build reply-quality scorer
146+
- Add lightweight semantic rubric:
147+
- specificity
148+
- thesis alignment
149+
- non-generic value add
150+
151+
4) Promote to auto-lite only after 2-week KPI check
152+
- If KPIs improve and guardrails hold, allow bounded auto execution.
153+
154+
---
155+
156+
Status
157+
- Baseline system scaffold is implemented under:
158+
~/cDesign/sovren-website/ops/cmo-automation
159+
- Ready for day-1 operation and playbook reconstruction.

0 commit comments

Comments
 (0)