feat: M5 端到端+3 缺陷修复+文档
This commit is contained in:
@@ -66,7 +66,7 @@ class MediaCases {
|
||||
assertFalse(outcome.prepared.needsAttribution)
|
||||
// 桥接(假发布器):草稿车道递交成功
|
||||
var submittedAuto: Boolean? = null
|
||||
val bridge = VideoTaskBridge({ _, _, auto -> submittedAuto = auto; true })
|
||||
val bridge = VideoTaskBridge({ _, _, auto, _ -> submittedAuto = auto; true })
|
||||
val bridged = bridge.bridge(outcome.prepared)
|
||||
assertTrue(bridged is VideoTaskBridge.Result.Submitted)
|
||||
assertEquals(false, submittedAuto)
|
||||
|
||||
@@ -435,6 +435,8 @@ class HaoRuiAccessibilityService : AccessibilityService() {
|
||||
// 回归测试:发布模式切换(草稿/正式)
|
||||
addAction("com.haorui.app.ACTION_SET_DRAFT")
|
||||
addAction("com.haorui.app.ACTION_SET_PUBLISH")
|
||||
// M5 跨平台视频草稿车道端到端(debug APK:管线→桥→旧发布器→草稿箱)
|
||||
addAction("com.haorui.app.ACTION_TEST_CROSS_VIDEO")
|
||||
}
|
||||
@Suppress("UnspecifiedRegisterReceiverFlag")
|
||||
registerReceiver(cmdReceiver, filter)
|
||||
@@ -678,6 +680,11 @@ class HaoRuiAccessibilityService : AccessibilityService() {
|
||||
val accepted = startArticleMachineVerify(title, body)
|
||||
RunLogger.i(TAG, "文章验证受理=$accepted(广播 ACTION_TEST_ARTICLE title=$title bodyLen=${body.length})")
|
||||
}
|
||||
// M5 跨平台视频草稿车道端到端:夹具经管线(导入→校验→许可→桥)→旧发布器
|
||||
"com.haorui.app.ACTION_TEST_CROSS_VIDEO" -> {
|
||||
val accepted = startCrossVideoDraftSandbox()
|
||||
RunLogger.i(TAG, "跨平台视频草稿沙盒受理=$accepted(广播 ACTION_TEST_CROSS_VIDEO)")
|
||||
}
|
||||
// 回归测试发布模式切换(草稿/正式;autoPublish 无 UI 开关,走广播)
|
||||
"com.haorui.app.ACTION_SET_DRAFT" -> setAutoPublish(false)
|
||||
"com.haorui.app.ACTION_SET_PUBLISH" -> setAutoPublish(true)
|
||||
@@ -764,6 +771,74 @@ class HaoRuiAccessibilityService : AccessibilityService() {
|
||||
accepted
|
||||
}
|
||||
|
||||
/**
|
||||
* M5 跨平台视频草稿车道端到端(仅调试 APK):自有测试视频经**完整管线**
|
||||
* (SourceMediaProvider 导入→VideoFileValidator 校验→许可→CrossVideoPipeline 加工)
|
||||
* → VideoTaskBridge 桥接 → 旧 PublishMachine 草稿车道 → 草稿箱核对。
|
||||
*
|
||||
* 与 [startDraftSandbox] 的区别:素材走新链路加工(校验/许可/署名编排全跑),
|
||||
* 标题与递交来自管线成品而非直接 submit——M5 最终验收门槛。
|
||||
*
|
||||
* 素材来源:App 外部私有目录 `m5-fixture.mp4`(adb push,分区存储下无需权限;
|
||||
* MediaStore 生产导入待授权后单独验收)。门控同草稿沙盒:debug-only、
|
||||
* 调度器空闲、草稿模式、新模块总开关不校验(沙盒独立于正式入口)。
|
||||
*/
|
||||
fun startCrossVideoDraftSandbox(): Boolean = synchronized(stepLifecycleLock) {
|
||||
if (applicationInfo.flags and android.content.pm.ApplicationInfo.FLAG_DEBUGGABLE == 0 ||
|
||||
!::scheduler.isInitialized || scheduler.isRunning || publisher.isWorking || interactor.isWorking ||
|
||||
frontGuard.creditNavigating || !foregroundCoordinator.isIdle() || latestConfig.toutiao.autoPublish ||
|
||||
runCatching { videoDownloader.hasPendingDrafts() }.getOrDefault(true)) return@synchronized false
|
||||
val fixture = java.io.File(getExternalFilesDir(null), "m5-fixture.mp4")
|
||||
if (!fixture.exists() || fixture.length() <= 0) {
|
||||
RunLogger.w(TAG, "M5 草稿沙盒:夹具缺失(adb push 到 ${fixture.absolutePath})")
|
||||
return@synchronized false
|
||||
}
|
||||
val logs = mutableListOf<String>()
|
||||
try {
|
||||
// ── 完整管线 ──────────────────────────────────────
|
||||
val provider = com.haorui.app.crossplatform.media.SourceMediaProvider(this) { msg ->
|
||||
RunLogger.i(TAG, "M5-Provider: $msg"); logs.add(msg)
|
||||
}
|
||||
val imported = provider.importFrom(android.net.Uri.fromFile(fixture), "haorui-m5-e2e")
|
||||
if (imported !is com.haorui.app.crossplatform.media.SourceMediaProvider.Result.Imported) {
|
||||
RunLogger.w(TAG, "M5 草稿沙盒:导入失败 ${(imported as com.haorui.app.crossplatform.media.SourceMediaProvider.Result.Rejected).reason}")
|
||||
return@synchronized false
|
||||
}
|
||||
// 许可:测试夹具登记为自有素材(沙盒专用,不进生产许可库)
|
||||
val licenseStore = com.haorui.app.crossplatform.media.MediaLicenseStore()
|
||||
licenseStore.registerOwn("sandbox-account", "M5 草稿沙盒自有素材")
|
||||
val pipeline = com.haorui.app.crossplatform.media.CrossVideoPipeline(licenseStore) { msg ->
|
||||
RunLogger.i(TAG, "M5-Pipeline: $msg"); logs.add(msg)
|
||||
}
|
||||
val title = "浩瑞跨平台视频草稿 ${java.util.UUID.randomUUID().toString().take(8)}"
|
||||
val outcome = pipeline.prepare(
|
||||
imported.localPath, "sandbox-account", null,
|
||||
title, null, System.currentTimeMillis(),
|
||||
)
|
||||
val prepared = outcome.prepared
|
||||
if (prepared == null) {
|
||||
RunLogger.w(TAG, "M5 草稿沙盒:管线拒绝 ${outcome.reason}")
|
||||
return@synchronized false
|
||||
}
|
||||
// ── 桥接 → 旧发布器(草稿车道)─────────────────────
|
||||
// 声明经 declarationOverride 透传(绕开旧配置"内容为原创"——M0 已知问题)
|
||||
val bridge = com.haorui.app.crossplatform.media.VideoTaskBridge({ t, uri, auto, decl ->
|
||||
publisher.submit(t, uri, autoPublish = auto, declaration = decl)
|
||||
}) { msg -> RunLogger.i(TAG, "M5-Bridge: $msg") }
|
||||
val bridged = bridge.bridge(prepared, declarationOverride = "内容无需标注")
|
||||
if (bridged !is com.haorui.app.crossplatform.media.VideoTaskBridge.Result.Submitted) {
|
||||
RunLogger.w(TAG, "M5 草稿沙盒:桥接拒绝 ${(bridged as com.haorui.app.crossplatform.media.VideoTaskBridge.Result.Rejected).reason}")
|
||||
return@synchronized false
|
||||
}
|
||||
scheduler.startLaneOnly(LaneScheduler.Lane.PUBLISH)
|
||||
RunLogger.i(TAG, "M5 草稿沙盒受理:标题「$title」素材=${prepared.localPath} sha=${prepared.sha256.take(12)}…")
|
||||
true
|
||||
} catch (t: Throwable) {
|
||||
RunLogger.e(TAG, "M5 草稿沙盒异常: ${t.javaClass.simpleName}:${t.message}", t)
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 仅调试 APK 的知乎单候选采集沙盒(端到端真机验收)。
|
||||
* 只读采集、不发布、不启动调度器——WATCHDOG(恢复链)不运行,
|
||||
|
||||
@@ -617,8 +617,14 @@ class PublishMachine(
|
||||
if (!declarationVerified || !draftEditorMatches(fresh)) { pauseForReview("草稿标题或声明已变化,未发送"); return }
|
||||
val button = NodeLocator.byId(fresh, ToutiaoSelectors.ID_PUB_DRAFT) ?: return
|
||||
try {
|
||||
val id = try { videoDownloader?.beginDraft(mediaUri, title, declaration) }
|
||||
catch (failure: Exception) { log("草稿意图保存失败:${failure.javaClass.simpleName}"); null }
|
||||
// M5:跨平台素材(crossplatform/video 目录)用放宽版登记——待核对保护语义一致
|
||||
val id = try {
|
||||
if (videoDownloader?.isCrossPlatformMedia(mediaUri) == true) {
|
||||
videoDownloader.beginDraftCrossPlatform(mediaUri, title, declaration)
|
||||
} else {
|
||||
videoDownloader?.beginDraft(mediaUri, title, declaration)
|
||||
}
|
||||
} catch (failure: Exception) { log("草稿意图保存失败:${failure.javaClass.simpleName}"); null }
|
||||
if (id == null) { pauseForReview("草稿意图无法保存,未点击存草稿"); return }
|
||||
draftAttemptId = id
|
||||
receiptWaitStartMs = SystemClock.elapsedRealtime()
|
||||
|
||||
@@ -21,10 +21,13 @@ class VideoTaskBridge(
|
||||
private val logger: (String) -> Unit = {},
|
||||
) {
|
||||
|
||||
/** 旧发布器最小接口(真机绑定 PublishMachine;测试注入假实现)。 */
|
||||
/** 旧发布器最小接口(真机绑定 PublishMachine.submit;测试注入假实现)。 */
|
||||
fun interface Publisher {
|
||||
/** 与 PublishMachine.submit 同语义:false=拒绝(非空闲/门控拦截)。 */
|
||||
fun submit(title: String, mediaUri: String, autoPublish: Boolean): Boolean
|
||||
/**
|
||||
* 与 PublishMachine.submit 同语义:false=拒绝(非空闲/门控拦截)。
|
||||
* @param declaration 作品声明(草稿沙盒显式传"内容无需标注"绕开旧配置;null=用发布器默认)。
|
||||
*/
|
||||
fun submit(title: String, mediaUri: String, autoPublish: Boolean, declaration: String?): Boolean
|
||||
}
|
||||
|
||||
/** 桥接结果。 */
|
||||
@@ -39,10 +42,12 @@ class VideoTaskBridge(
|
||||
* 把加工成品递交给旧发布器(仅草稿)。
|
||||
* @param prepared 管线成品(CrossVideoPipeline.prepare 产出)。
|
||||
* @param publishPageSupportsAttribution 发布页是否已取证可署名——首版恒 false。
|
||||
* @param declarationOverride 递交时的作品声明覆盖(null=发布器默认配置)。
|
||||
*/
|
||||
fun bridge(
|
||||
prepared: CrossVideoPipeline.PreparedVideo,
|
||||
publishPageSupportsAttribution: Boolean = false,
|
||||
declarationOverride: String? = null,
|
||||
): Result {
|
||||
// ① 署名前置检查:需署名且发布页无法填写 → 跳过(不静默放行不合规转载)
|
||||
if (prepared.needsAttribution && !publishPageSupportsAttribution) {
|
||||
@@ -62,7 +67,8 @@ class VideoTaskBridge(
|
||||
}
|
||||
// ③ 递交(草稿车道;autoPublish=false 由本桥硬编码——新链路首版 DRY_RUN)。
|
||||
// 旧发布器只有标题输入;简介/署名段暂以标题行承载(首行),完整简介控件待取证。
|
||||
val ok = publisher.submit(titleOf(prepared), prepared.localPath, autoPublish = false)
|
||||
// 声明经 [declarationOverride] 透传(沙盒显式传值绕开旧配置;默认 null=发布器默认)。
|
||||
val ok = publisher.submit(titleOf(prepared), prepared.localPath, autoPublish = false, declaration = declarationOverride)
|
||||
if (!ok) {
|
||||
return Result.Rejected("发布器拒绝(非空闲或门控拦截)")
|
||||
}
|
||||
|
||||
@@ -46,11 +46,27 @@ class VideoDownloader(private val context: Context) {
|
||||
|
||||
private val pendingDrafts = PendingDraftStore(File(context.filesDir, "pending-drafts"))
|
||||
|
||||
/** 跨平台素材导入目录(M5 SourceMediaProvider 落盘处;与 videoDir 同受待核对保护)。 */
|
||||
private val crossVideoDir: File = File(context.filesDir, "crossplatform/video")
|
||||
|
||||
fun beginDraft(path: String, title: String, declaration: String): String {
|
||||
check(File(path).canonicalFile.parentFile == videoDir.canonicalFile) { "草稿素材不在下载目录" }
|
||||
return pendingDrafts.begin(path, title, declaration).id
|
||||
}
|
||||
|
||||
/**
|
||||
* 跨平台素材的草稿意图登记(M5,2026-11-15):素材在 crossplatform 导入目录也接受。
|
||||
* 与 [beginDraft] 同用 PendingDraftStore(待核对保护语义一致);目录校验放宽为
|
||||
* 旧下载目录**或** crossplatform/video——仍防任意路径注入,非放开。
|
||||
*/
|
||||
fun beginDraftCrossPlatform(path: String, title: String, declaration: String): String {
|
||||
val parent = runCatching { File(path).canonicalFile.parentFile }.getOrNull()
|
||||
check(parent == videoDir.canonicalFile || parent == crossVideoDir.canonicalFile) {
|
||||
"草稿素材不在受管目录(videoDir/crossplatform)"
|
||||
}
|
||||
return pendingDrafts.begin(path, title, declaration).id
|
||||
}
|
||||
|
||||
fun confirmDraft(id: String): Boolean = pendingDrafts.confirm(id)
|
||||
|
||||
fun hasPendingDrafts(): Boolean = pendingDrafts.attempts().isNotEmpty()
|
||||
@@ -59,6 +75,11 @@ class VideoDownloader(private val context: Context) {
|
||||
File(path).isFile && File(path).canonicalFile.parentFile == videoDir.canonicalFile
|
||||
}.getOrDefault(false)
|
||||
|
||||
/** 素材是否为跨平台导入目录(M5;beginDraftCrossPlatform 的路径判定用)。 */
|
||||
fun isCrossPlatformMedia(path: String): Boolean = runCatching {
|
||||
File(path).isFile && File(path).canonicalFile.parentFile == crossVideoDir.canonicalFile
|
||||
}.getOrDefault(false)
|
||||
|
||||
/**
|
||||
* 已下载内容的 SHA-256 集合(内容级去重)。
|
||||
* ⚠️ 并发安全:管线多协程可能并行下载/查重(第一性审计)→ 线程安全 Set。
|
||||
|
||||
@@ -13,6 +13,11 @@
|
||||
name="internal_videos"
|
||||
path="videos/" />
|
||||
|
||||
<!-- M5 跨平台视频素材(SourceMediaProvider 导入目录 filesDir/crossplatform/video/) -->
|
||||
<files-path
|
||||
name="crossplatform_video"
|
||||
path="crossplatform/" />
|
||||
|
||||
<!-- 日志导出(LogExporter.generateExportFile → cacheDir/export/) -->
|
||||
<cache-path
|
||||
name="export"
|
||||
|
||||
@@ -192,7 +192,7 @@ class MediaLicenseTest {
|
||||
|
||||
@Test fun bridgeRejectsAttributionWhenPageCannotSet() {
|
||||
var submitted = 0
|
||||
val bridge = VideoTaskBridge({ _, _, _ -> submitted++; true })
|
||||
val bridge = VideoTaskBridge({ _, _, _, _ -> submitted++; true })
|
||||
val file = File.createTempFile("attr", ".mp4").apply { deleteOnExit() }
|
||||
file.writeBytes(ByteArray(32))
|
||||
val result = bridge.bridge(
|
||||
@@ -206,7 +206,7 @@ class MediaLicenseTest {
|
||||
|
||||
@Test fun bridgeRejectsMissingOrSwappedFileByShaCheck() {
|
||||
var submitted = 0
|
||||
val bridge = VideoTaskBridge({ _, _, _ -> submitted++; true })
|
||||
val bridge = VideoTaskBridge({ _, _, _, _ -> submitted++; true })
|
||||
// 文件丢失
|
||||
val missing = bridge.bridge(prepared("/nonexistent/x.mp4", "ab".repeat(32)))
|
||||
assertTrue(missing is VideoTaskBridge.Result.Rejected)
|
||||
@@ -223,20 +223,32 @@ class MediaLicenseTest {
|
||||
@Test fun bridgeSubmitsDraftLaneWithFirstLineAsTitle() {
|
||||
var capturedTitle = ""
|
||||
var capturedAutoPublish: Boolean? = null
|
||||
var capturedDeclaration: String? = "sentinel"
|
||||
val file = File.createTempFile("bridge-ok", ".mp4").apply { deleteOnExit() }
|
||||
file.writeBytes(ByteArray(32))
|
||||
val bridge = VideoTaskBridge({ t, _, auto -> capturedTitle = t; capturedAutoPublish = auto; true })
|
||||
val bridge = VideoTaskBridge({ t, _, auto, decl -> capturedTitle = t; capturedAutoPublish = auto; capturedDeclaration = decl; true })
|
||||
val result = bridge.bridge(prepared(file.absolutePath, VideoFileValidator.sha256(file)))
|
||||
assertTrue(result is VideoTaskBridge.Result.Submitted)
|
||||
assertEquals("测试简介第一行", capturedTitle)
|
||||
// 草稿车道硬编码:autoPublish 恒 false(新链路首版 DRY_RUN)
|
||||
// 草稿车道硬编码:autoPublish 恒 false(新链路首版 DRY_RUN);声明默认透传 null
|
||||
assertEquals(false, capturedAutoPublish)
|
||||
assertNull(capturedDeclaration)
|
||||
}
|
||||
|
||||
@Test fun bridgePassesDeclarationOverrideThrough() {
|
||||
// 沙盒场景:显式声明覆盖透传到发布器(绕开旧配置"内容为原创")
|
||||
var capturedDeclaration: String? = null
|
||||
val file = File.createTempFile("bridge-decl", ".mp4").apply { deleteOnExit() }
|
||||
file.writeBytes(ByteArray(32))
|
||||
val bridge = VideoTaskBridge({ _, _, _, decl -> capturedDeclaration = decl; true })
|
||||
bridge.bridge(prepared(file.absolutePath, VideoFileValidator.sha256(file)), declarationOverride = "内容无需标注")
|
||||
assertEquals("内容无需标注", capturedDeclaration)
|
||||
}
|
||||
|
||||
@Test fun bridgeReportsPublisherRejection() {
|
||||
val file = File.createTempFile("rej", ".mp4").apply { deleteOnExit() }
|
||||
file.writeBytes(ByteArray(32))
|
||||
val bridge = VideoTaskBridge({ _, _, _ -> false })
|
||||
val bridge = VideoTaskBridge({ _, _, _, _ -> false })
|
||||
val result = bridge.bridge(prepared(file.absolutePath, VideoFileValidator.sha256(file)))
|
||||
assertTrue(result is VideoTaskBridge.Result.Rejected)
|
||||
assertTrue((result as VideoTaskBridge.Result.Rejected).reason.contains("发布器拒绝"))
|
||||
|
||||
+2
-1
@@ -30,7 +30,7 @@
|
||||
| 旧视频草稿 | **新版真机复测通过(2026-11-14 17:31)**:有效声明→回读→单次保存→明确“保存草稿成功”回执→草稿箱持久化(`浩瑞草稿回归 1004aef5`);testDraftInvalid 在 PREPARE 即暂停“不受当前版本支持”;未知结果保护有 14:38/16:11/16:41 三次证据(暂停、素材保留、`files/pending-drafts/` 记录保留,核对后清除)。OCR 回执判定为“非汉字承接”规则(⊙ 图标实测被误读为 0/O/。 并与位置卡片文本同行合并)。待核对处置界面仍未实现(现为人工核对后清理记录);旧配置“内容为原创”仍待用户改选 |
|
||||
| 稳定账号读取 | 18.3.0 自身主页、名片及二维码读取代码已实现,唯一数字 user_id 哈希为账户键;两次独立取证并复核自身资料,昵称和分享追踪字段不作为身份。只读核验不绑定预算,不授予后续运行发布许可 |
|
||||
| 知乎、小红书、微博、抖音采集 | **知乎(M2 完成)**:四解析器+采集状态机+Port 真机实现,177 项 JVM,e2e 验收通过;能力门控按用户决定暂不放行。**小红书(搁置)**:用户判定内容调性不适合头条,e1 取证存档。**微博(M2 完成,e2e 验收通过 2026-11-15)**:热搜清单解析器+树/OCR 双源详情解析+采集状态机+`WeiboDevicePort`(37 轮 e2e 收敛出 12 项真机缺陷修复:弹窗拒绝项/残留页收拢/大页面有界探测/desc 渲染/双详情布局/离屏节点/原生滚动/搜索框兜底等);**单条内容全链实测**:`已观察 phase=DONE`,时间=「添加了问题」同款实测、互动数树提取、分享链 `weibo.com/<UID>/<博文ID>` 解析配对成功。**产品口径(用户定)**:类目下拉多选(9 类)→按类目拉榜单→人工勾选→图文/视频独立开关发头条。抖音未动 |
|
||||
| 头条图文与跨平台视频 | 事实补全、标题生成、正文生成、**编辑器写入/回读/草稿核对全链真机跑通**(ArticlePublishMachine+调试输入法+字数对账+锚点回读,outcome=草稿已核对);**M5 媒体层四件+导入器真机验收通过**(许可库/文件校验/署名策略/管线编排/桥接,真机 instrumentation 22 项 0 失败);「下一步」二阶段、声明控件、MediaStore 生产导入(待授权)、旧发布器实际递交未验;AUTO 未开放,没有执行真实跨平台发布 |
|
||||
| 头条图文与跨平台视频 | 事实补全、标题生成、正文生成、**编辑器写入/回读/草稿核对全链真机跑通**(ArticlePublishMachine,outcome=草稿已核对);**M5 视频闭环全部完成**:媒体层四件+导入器(真机 22 项 0 失败)+草稿车道端到端(ACTION_SEND→标题/声明→存草稿→明确回执→素材核销,4 轮修 3 缺陷);M4/M5 交付物齐备;「下一步」二阶段、声明控件、MediaStore 生产导入(待授权)、正式发布(等 M6)未开放;AUTO 未开放,没有执行真实跨平台发布 |
|
||||
|
||||
## 本轮验证与交付物
|
||||
|
||||
@@ -106,6 +106,7 @@ gradle --offline :app:testDebugUnitTest :app:assembleDebug :app:assembleDebugAnd
|
||||
|
||||
| 日期 | 事项 | 验证范围 |
|
||||
|---|---|---|
|
||||
| 2026-11-15 | **M5 草稿车道端到端真机验收通过(M5 最终门槛)**:`ACTION_TEST_CROSS_VIDEO` 沙盒广播 → `startCrossVideoDraftSandbox`(完整管线:导入→校验→许可→加工→桥接)→ 旧 PublishMachine 草稿车道 → **全链 DONE**:发布页拉起→标题写入回读✓→声明回读「内容无需标注」✓→草稿意图落库→单击存草稿→回执「0保存草稿成功」(非汉字承接规则认出)→待核对记录核销→本地素材按设计删除→处理进度 1/28 | 277 项 JVM 全过;4 轮迭代修掉 3 个真机缺陷:①旧配置「内容为原创」PREPARE 暂停(沙盒显式声明+桥 declarationOverride 透传)②**FileProvider roots 不含内部 crossplatform 目录**(file_paths.xml 增 root)③**beginDraft 目录门禁拒跨平台素材**(新增 beginDraftCrossPlatform/isCrossPlatformMedia,放宽为双受管目录非放开);证据 `.tmp/m5-e2e-draft-run4.log`;草稿箱待用户核对 |
|
||||
| 2026-11-15 | **M5 媒体层真机验收通过**:`SourceMediaProvider`(content/file 导入到 `filesDir/crossplatform/video` 私有目录、边复制边计量超限即断、SHA-256 内容去重、半成品清理、路径防越界)+ `MediaCases` 挂 StoreInstrumentation 分发;真机全链实测:导入→硬校验(22 秒自有视频 MP4/双轨/时长)→管线(自有许可→成品无署名)→桥接(草稿车道)全通过 | 真机 SQLite+媒体 22 项 0 失败;JVM 276 项全过;⚠️ 分区存储实测:无 READ_EXTERNAL_STORAGE 时公共下载目录 EACCES、MediaStore 他人条目不可读——生产 MediaStore 导入待运行时授权后单独验收;测试夹具经 adb push 到自有外部私有目录;仪器测试模式沿用自建 Instrumentation+JUnitCore(无 androidx.test 依赖) |
|
||||
| 2026-11-15 | **M5 视频闭环代码层落地(媒体层四件)**:`MediaLicenseStore`(自有/授权双许可、有效期窗、署名条件、JSON 持久化往返、坏条目跳过);`VideoFileValidator`(MP4 魔数/双源轨道探测/时长 20~4000s/500MiB/流式 SHA-256,异常不放行;修 MediaExtractor 非 AutoCloseable 手动 release);`VideoCaptionPolicy`(自有不加署名、授权末段署名、署名缺失拒不放行);`CrossVideoPipeline`(校验→许可→简介编排,拒绝原因排序可证);`VideoTaskBridge`(旧发布器桥,SHA 复核防素材被换、**草稿车道硬编码 DRY_RUN**、需署名+页面无法署名=跳过) | 276 项 JVM 全过(新增 media 层 17 项);APK 构建成功;真机待验:媒体轨道探测(instrumentation)、MediaStore 导入、旧发布器实际递交 |
|
||||
| 2026-11-15 | **M4 ArticlePublishMachine 真机接线闭环通过(第 9 轮)**:`ToutiaoArticlePort`(OCR 核屏+bounds 求坐标、openArticleEditor 五级导航、scrollToTop 回滚顶部、截屏节流 1.2s)+ `startArticleMachineVerify` 广播调试入口;端到端 50 秒:导航→标题 12 字写入→正文写入→字数多拍对账 97=97→锚点模糊定位→「草稿已保存」回执→HOME 收尾,outcome=**草稿已核对** | 260 项 JVM 全过;APK `2149FAD3…`;9 轮迭代修掉 6 个真机缺陷:①编辑器底部同款 Tab 行误点②灰字占位 OCR 不稳(改头部深色标记)③**takeScreenshot 限流 errorCode=3**(连拍全灭,节流 1.2s)④成就弹层挡路(BACK 关闭)⑤OCR 粘连「70097」(字数多拍采样)⑥「已→己」「请输→清輪」「正文→正女」误读(回执归一+锚点分片 0.6);全程未触碰「下一步」;证据 `.tmp/m4-body-verify/article-machine-run9.log` |
|
||||
|
||||
Reference in New Issue
Block a user