Cross-Platform RPA Publishing Discipline
Use Cases
- Publishing finished videos to Douyin/TikTok/Xiaohongshu/Video Account/Bilibili/YouTube (G9 approval)
- Scheduling publishing plans and pre-checking publishing packages
Method
- Package Validation: Check video/cover/caption length/tags/collection/schedule rules against each platform's blueprint. Do not create tasks for non-compliant packages.
- Adapter Execution: Unified interface:
login check → upload(video, cover, caption, tags, schedule) → receipt. Initial adapters: douyin/xiaohongshu/bilibili/youtube; tiktok/shipinhao reserved for future. - Human-Pacing Risk Control: Simulated typing delays and page loading waits; daily limit of 5 posts per account (fence circuit-breaker on exceedance); first-time releases on new platforms must pass G9a review.
- Credentials Discipline: User completes login on the desktop client; credentials stored locally only (credentials table reference, never plaintext).
- Exception Handling: Retry failed tasks up to 2 times; if still failing, suspend and hand off to human operator (no infinite loops). Both success and failure receipts are recorded.
Pre-Checks (Five Package Checks + Platform Specification Table)
- Asset Check: Video playable, cover aspect ratio matches platform requirements, duration within platform limits.
- Caption Check: Validate each item per platform specs (strong pre-upload validation
assertCaptionSpec) — sourced frompackages/base/publish-rpa/adapters/*.tscaptionSpec:
| Platform | Caption Max Length | Max Tags | Minimum Schedule Lead Time |
|---|---|---|---|
| Douyin | 55 chars | 5 | 120 minutes |
| Xiaohongshu | 20 chars | 10 | 0 |
| Bilibili | 80 chars | 10 | 120 minutes |
| Video Account (shipinhao) | 1000 chars | 5 | 0 |
| TikTok | 150 chars | 8 | 15 minutes |
| YouTube | 100 chars | 15 | 15 minutes |
- Gate Check: G9 public release mandatory review; first-time release on new platform requires additional G9a review; daily posting count must be <5 (G9b circuit-breaker).
- Account Check: Login completed by user; credentials stored locally only; anomalous matrix account login/session binding violations blocked by G16.
- Receipt Check: Success requires platform-side success receipt (URL or success selector match); failure must retain reason and on-site evidence.
Failure Diagnostics (Symptom → Detector → Action)
| Symptom | Detector | Action |
|---|---|---|
| Caption exceeds platform limit | assertCaptionSpec (pre-upload strong check) | Rewrite caption per platform, do not truncate body |
| Tags exceed limit / Schedule ahead too short | Same (maxTags / scheduleMinAheadMinutes) | Trim tags or adjust schedule; do not create non-compliant tasks |
| Login session expired | login check | Suspend and hand off to human; re-login before retry |
| Upload interrupted/failed | Adapter exception + receipt probe | Retry up to 2 times; if still failing, suspend and hand off to human (no infinite loops) |
| Daily posts per account ≥5 | G9b circuit-breaker | Reject the current post and report as-is, do not bypass |
| First-time release on new platform not approved | G9a check | Block release; submit for approval before retry |
| Successful upload but no receipt | Receipt selector not matched | Mark as incomplete (no receipt = not complete); hand off to human for verification |
Evidence Collection
- Every task leaves traces: package validation result + approval card reference + platform receipt (success URL or failure reason) + on-site evidence (screenshots/logs).
- Daily count updated in real-time with receipts; actions rejected by fence due to exceedance must be reported as-is, without rewriting or retrying to bypass.
- Demo/mock mode must be explicitly flagged; simulated receipts must never be treated as platform success (system invariant 9: demos and real capabilities must remain distinct).
Output Contract
- Each task outputs: platform/account/package validation result + approval card reference + receipt (success URL or failure reason).
- Daily count updated with receipts in real-time; actions rejected by fence for exceedance must be reported as-is.
- Key numbers without tool receipts must be marked as "unverified" and cannot be claimed as completed (L3.6/E3.7).
Boundaries
- Does not perform content creation or cover design (belongs to creative/cover station); only validates and executes publishing packages.
- Does not replace G9/G9a human review; does not design methods to evade platform risk controls via multiple accounts.
- Platform specifications may change: must verify official platform rules before updating (KH-12); do not use outdated character limits.