数据库已连通已成功连接预发布数据库(DATABASE_URL_STAGING)。请确认该实例为非生产 Supabase 项目。应用层环境预发布 staging数据库连接变量DATABASE_URL_STAGING
数据源说明:上方横条只说明整站在开发环境里,日常页面(首页、项目、任务等)当前用的是真实数据库还是内置演示数据不表示本 DocOps 页的数据来源。本页内容来自磁盘上的治理扫描结果文件,仅供只读预览, 属于本机低风险查看,不是正式发布,也不会自动替你执行任何操作。请勿把本页当作系统的正式持久化库数据库里的唯一结论

DocOps Writeback Runs

当前页面为 Change Request 队列只读视图。展示 status=queued 的变更请求。本页不生成 patch、不审批、不写回 Drive、不开 repo PR、不调用外部 API。

dataSourceMode
staging_db
state layer
staging_db
writebackEnabled
false
driveWriteback
blocked
production
false
writebackRuns
10
writebackEnabled
false
Drive writeback blockedTask Bridge handoff only

Writeback M3:sandbox POST guard wired · feature flag off · readiness BLOCKED_BEFORE_REAL_POST · real writeback disabled · per-CR dry-run eligibility · dry-run succeeded ≠ real writeback ready · approved_for_writeback 仅表示写回候选;Run dry-run 只写 doc_writeback_runs。

数据来源:staging_db(Supabase doc_* 表只读 SELECT;已排除 secret_blocked 文档源)。

Sandbox implementation wiring

sandbox wiring readyfeature flag: off · readiness: BLOCKED_BEFORE_REAL_POST · real writeback: disabled

Sandbox POST guard wiring(M3):`drive-writeback-real` POST executor 已接入 M3 闸门链,但 feature flag 默认关闭,不执行真实 Drive 写回。legacy C3 中文短语不适用于 M3 sandbox real writeback。

implementationWiringReady=true · sandboxReadyForFutureImplementation=ready · nextAction: POST guard wired · feature flag off · sandbox real writeback remains disabled

feature flagDOCOPS_SANDBOX_REAL_WRITEBACK_ENABLED = false (off)
target99_test only · 1C4PBDNgESdQZ4EBLB_2AteLTx-Qs863BWLTIBhMOJqw
sandboxTargetStatussandbox_allowed
phraserequired · status=not_enabled · matched=false
one-run lockrequired · status=not_enabled · key=docops-sandbox-writeback:91296ba0-3c81-4940-8234-6cb2ceb13dfb:1C4PBDNgESdQZ4EBLB_2AteLTx-Qs863BWLTIBhMOJqw
readbackrequired · preRevision · postRevision · contentVerification
audit payloadpreview only · no doc_writeback_runs write
readinessstatus=BLOCKED_BEFORE_REAL_POST · readyForHumanPhrase=false · reason=sandbox_real_writeback_disabled
env projectionsandboxRealWriteback=false · postExecution=false · token=false · driveAdapter=false
realWritebackAllowedfalse
driveWritebackblocked

Audit payload preview

{
  "sandbox": true,
  "targetLabel": "99_test",
  "targetDocId": "1C4PBDNgESdQZ4EBLB_2AteLTx-Qs863BWLTIBhMOJqw",
  "phraseVerified": false,
  "lockKey": "docops-sandbox-writeback:91296ba0-3c81-4940-8234-6cb2ceb13dfb:1C4PBDNgESdQZ4EBLB_2AteLTx-Qs863BWLTIBhMOJqw",
  "patchId": null,
  "rollbackNoteSnapshot": "## Rollback target\n\nsuggestion: 刷新 stale 文档元数据\n\n## Proposed change summary\n\n刷新 stale 文档元数据 (refresh_stale_content). no patch yet; request type refresh_stale_content may generate patch before dry-run.\n\n## Rollback method\n\n1. Do not apply this change request to Drive.\n2. If a future dry-run or real writeback was attempted, revert using the latest dry-run revision hint and reopen this change request.\n3. Keep doc_change_requests status at approved until human review decides otherwise.\n\n## Verification after rollback\n\nConfirm doc_change_requests.rollback_note is present, dry-run eligibility no longer lists rollback_note_missing, and no Drive writeback run succeeded for this CR.\n\n## Safety boundary\n\n- No Drive writeback executed in this step\n- Real writeback remains blocked\n- Production remains false",
  "dryRunRunId": "b5961d4c-7f7a-44fe-8ab2-bd508119b216",
  "production": false,
  "driveWriteback": false,
  "realWriteback": false,
  "readbackRequired": true
}

Sandbox implementation wiring checklist

  • POST guard: wired into drive-writeback-real
  • feature flag: off
  • target: 99_test only
  • phrase: required
  • one-run lock: required
  • readback: required
  • audit payload: preview only
  • real writeback: disabled

Writeback gate status

writeback gate: blockedrealWritebackAllowed=false · reason=real_writeback_not_enabled_in_m2

Writeback gate M1:仅定义 dry-run / real-writeback 边界;本阶段不启用真实 Drive writeback。 approved_for_writeback 只是写回候选,不等于已写回。

approved_for_writeback is a writeback candidate only — not Drive writeback, not auto writeback, not production.

writebackEnabledfalse
driveWritebackblocked
dryRunAllowedtrue
realWritebackAllowedfalse
human gate requiredyes
approval phrase requiredyes (future real writeback)
rollback note requiredyes
allowlist requiredyes
dryRunCandidateCount4
dryRunReadyCount0
dryRunSucceededCount3
dryRunBlockedCount1
finalGateBlockedCount3
approvedForWritebackCandidateCount4

Required gates (all blocked for real writeback in M1)

  • human_phrase
  • allowlist
  • rollback_note
  • dry_run_success
  • audit_log
  • one_run_lock

State machine — M1 allowed

  • not_eligible
  • candidate
  • dry_run_ready
  • human_gate_required
  • real_writeback_blocked

State machine — M1 forbidden

  • real_writeback_ready_future
  • real_writeback_started
  • real_writeback_succeeded

Dry-run allowed only if

  • change_request exists
  • patch exists or can be generated
  • target document is allowlisted
  • rollback note exists or can be generated
  • production=false
  • Drive writeback remains false

Real writeback requires (all blocked in M1)

  • explicit human approval phrase
  • allowlisted document id
  • patch preview accepted
  • rollback note generated
  • writeback dry-run succeeded
  • environment != production or production explicitly blocked
  • one-run lock
  • audit log
  • manual final confirmation
High-risk writeback APIs — blocked in M1

上述按钮在 M1 永久 disabled,不触发 POST。真实写回须后续独立任务包与人类闸门。 blocked reason: real_writeback_not_enabled_in_m2

Final gate audit

final gate: real_writeback_blockeddry-run succeeded ≠ real writeback ready · realWritebackAllowed=false

Final gate audit(M2):dry-run 成功只是前置条件,不等于真实 Drive 写回许可。本面板列出 patch / rollback / dry-run / allowlist / human phrase / one-run lock / audit log / production 边界与最终阻断原因。

3 dry-run succeeded CR(s) · 3 final gate blocked · Drive writeback remains blocked

targetCrId91296ba0-3c81-4940-8234-6cb2ceb13dfb
dryRunRunIdb5961d4c-7f7a-44fe-8ab2-bd508119b216
gateStatusreal_writeback_blocked
realWritebackAllowedfalse
dryRunSucceededCount3
finalGateBlockedCount3
featureFlagEnabledtop=false · nested=false
readinessstatus=BLOCKED_BEFORE_REAL_POST · readyForHumanPhrase=false · reason=sandbox_real_writeback_disabled
phraseStatusnot_enabled
phraseMatchedfalse
sandboxTargetStatussandbox_allowed
oneRunLockStatusnot_enabled
readbackRequiredtrue
auditPayloadPreviewavailable

Target CR final gate checklist

patchStatusexists
patch preview## Target 99_test; Drive doc 1C4PBDNgESdQZ4EBLB_2AteLTx-Qs863BWLTIBhMOJqw; suggestion: 刷新 stale 文档元数据 ## Current issue Document content or metadata may be stale for "刷新 stale 文档元数…
rollbackNoteStatusexists
rollback note preview## Rollback target suggestion: 刷新 stale 文档元数据 ## Proposed change summary 刷新 stale 文档元数据 (refresh_stale_content). no patch yet; request type refresh_stale_content may generate patc…
dryRunStatusdry_run_succeeded
allowlistStatusallowed · allowed_for_dry_run_only
human phrasenot_enabled
one-run lockrequired
audit logpartial
production boundaryblocked
final confirmationrequired · not enabled in M2
nextActionfinal gate audit / human phrase not enabled

Final blocked reasons

  • real_writeback_not_enabled
  • drive_writeback_disabled
  • human_phrase_required
  • one_run_lock_required
  • final_audit_required

All dry-run succeeded CR audits

CR iddry-run rungateStatusblocked reasons
91296ba0b5961d4creal_writeback_blockedreal_writeback_not_enabled, drive_writeback_disabled, human_phrase_required, one_run_lock_required, final_audit_required
090000012bbd9c54real_writeback_blockedreal_writeback_not_enabled, drive_writeback_disabled, human_phrase_required, one_run_lock_required, final_audit_required
07000001c7d7a163real_writeback_blockedreal_writeback_not_enabled, drive_writeback_disabled, human_phrase_required, one_run_lock_required, final_audit_required

Per-CR dry-run candidates

real writeback blockeddryRunCandidate=4 · ready=0 · succeeded=3 · blocked=1 · patchMissing=0 · patchReady=4 · allowlistBlocked=2 · rollbackNoteMissing=0 · rollbackNoteReady=4

Per-CR dry-run eligibility(M2):展示 patch preview / rollback note / allowlist reason / dry-run 状态;Generate patch preview 仅写 staging doc_change_request_patches;Generate & save rollback note 仅写 staging rollback_note;Run dry-run 仅写 doc_writeback_runs,不写 Drive。

Change requestTitlePatch statusPatch previewRollback note statusRollback note previewAllowlistDry-run statusLatest runReal writebackBlocked reasonsActions
91296ba0刷新 stale 文档元数据exists
## Target 99_test; Drive doc 1C4PBDNgESdQZ4EBLB_2AteLTx-Qs863BWLTIBhMOJqw; suggestion: 刷新 stale 文档元数据 ## Current issue Document content or metadata may be stale for "刷新 stale 文档元数…
saved · real writeback blocked
exists
## Rollback target suggestion: 刷新 stale 文档元数据 ## Proposed change summary 刷新 stale 文档元数据 (refresh_stale_content). no patch yet; request type refresh_stale_content may generate patc…
saved · real writeback blocked
allowed
reason: allowed_for_dry_run_only
dry_run_succeeded
dryRunAllowed=true
b5961d4c… (succeeded)blockedreal_writeback_not_enabled, drive_writeback_disabled
09000002N2 second sandbox append-only real writeback pilot preparationexists
[HB OS DocOps second sandbox real writeback pilot] change_request_id: 09000002-0001-4000-8000-000000000099 mode: second_sandbox_only summary: append-only marker for controlled N3 …
saved · real writeback blocked
exists
N2 rollback note: remove the single HB OS DocOps second sandbox real writeback pilot marker appended to 99_test_second_sandbox if verification fails.
saved · real writeback blocked
blocked
reason: target_not_allowlisted
dry_run_blocked
dryRunAllowed=false
blockedreal_writeback_not_enabled, drive_writeback_disabled, target_not_allowlisted
09000001C3 99_test append-only real writeback pilotexists
[HB OS DocOps real writeback pilot] change_request_id: 09000001-0001-4000-8000-000000000099 mode: 99_test_only summary: append-only marker for controlled C3 real Drive writeback p…
saved · real writeback blocked
exists
C3 rollback note: remove the single HB OS DocOps real writeback pilot marker appended to 99_test if verification fails.
saved · real writeback blocked
allowed
reason: allowed_for_dry_run_only
dry_run_succeeded
dryRunAllowed=true
2bbd9c54… (succeeded)blockedreal_writeback_not_enabled, drive_writeback_disabled
07000001同步 baseline manifest 执行摘要段(stub)exists
# Repo mirror sync plan (draft) Change request: 同步 baseline manifest 执行摘要段(stub) ## Scope - Align repo mirror copy with current Drive truth summary. - No Drive body writeback in t…
saved · real writeback blocked
exists
staging acceptance rollback note: restore previous document state manually if real execution fails.
saved · real writeback blocked
blocked
reason: target_not_allowlisted
dry_run_succeeded
dryRunAllowed=false
c7d7a163… (succeeded)blockedreal_writeback_not_enabled, drive_writeback_disabled, target_not_allowlisted

Writeback runs(doc_writeback_runs)

writeback blockeddry-run history only · no real writeback actions

只读展示 writeback 运行记录,含 dry run 预演结果。本页不会写回 Drive、不会调用 Google Drive API、不会调用 GitHub API、不会开 repo PR。

Change requestStatusExecutorDrive revision hintStartedFinishedResult summary
91296ba0faileddocops_real_drive_pilot2026-06-05 13:38:002026-06-05 13:38:00real execution failed: Drive writeback adapter preflight blocked (invalid_final_human_approval): explicitApprovalText does not include target driveDocId; explicitApprovalText does not include changeRequestId; explicitApprovalText missing required phrase: 只执行一次; explicitApprovalText missing required phrase: 失败不得自动重试; explicitApprovalText missing required phrase: 不得触碰 production
91296ba0succeededdry_run_m2dry_run_only2026-06-05 06:45:202026-06-05 06:45:20Dry run only. Would prepare stale document review workflow. No Drive body write performed.
09000001succeededdry_run_m2dry_run_only2026-06-05 05:58:122026-06-05 05:58:12Dry run only. Would prepare writeback plan for patch type drive_body_append_only. No Drive body write performed.
91296ba0blockedno_writeback_m12026-06-04 15:03:562026-06-04 15:03:56approved_for_writeback candidate recorded — writebackEnabled=false, driveWriteback=blocked (M1).
09000002succeededdocops_second_sandbox_real_drive_pilotAFwiY18UKSNbGcZqMk9FGXrERwKZ2_rvZ99hzkv31IUti90-Gs6lmRuxm9WW3xSqMUV9dfzQOJv5CmT0An2xWuEtaeET_lEe-y9Q4OOnVes2026-05-24 10:18:372026-05-24 10:36:41N3 second sandbox real Drive writeback succeeded. Append-only marker inserted into 99_test_second_sandbox. before_revision=AFwiY19cEz8r7-8MHC7Blig6Dm-X0l9syp6CjaxV1cHUAnTkkhKM_R-92wEAX4q5EoM7wUXTeOvpTZ2QHIZ8uzS0jacqm9AMUsphN22Ailw; after_revision=AFwiY18UKSNbGcZqMk9FGXrERwKZ2_rvZ99hzkv31IUti90-Gs6lmRuxm9WW3xSqMUV9dfzQOJv5CmT0An2xWuEtaeET_lEe-y9Q4OOnVes; marker verified by readback.
09000001succeededdocops_real_drive_pilotAFwiY18pHEVwLtAXqxAD2E_lpvtHeeOszxXoUz62ruNGq5CF5_ApcYcTMBkF_GyqIFTGX9SCZYuAJ8OcIYU3oig-z5ICcLuhV8FF-rUkZts2026-05-24 02:52:252026-05-24 02:53:25C3 real Drive writeback succeeded. Append-only marker inserted into 99_test. before_revision=AFwiY18IruMJrwYN0W3FJQ6IEmJLcxTqskt_CSqb4aD3mJu5DmUVWxbKicyNc0Hi_zsuyrm2mZIpymAAjOjMS1gI-gcrsfHB1YNfmaPFWVk; after_revision=AFwiY18pHEVwLtAXqxAD2E_lpvtHeeOszxXoUz62ruNGq5CF5_ApcYcTMBkF_GyqIFTGX9SCZYuAJ8OcIYU3oig-z5ICcLuhV8FF-rUkZts; marker verified by readback.
07000001succeededdocops_dry_rundry_run_only2026-05-23 08:27:442026-05-23 08:27:44Dry run only. Would prepare writeback plan for patch type summary_refresh. No Drive body write performed. Dry run only. Would prepare repo mirror update plan from approved patch. No Drive body write performed.
07000001succeededdocops_dry_rundry_run_only2026-05-23 08:27:192026-05-23 08:27:19Dry run only. Would prepare writeback plan for patch type summary_refresh. No Drive body write performed. Dry run only. Would prepare repo mirror update plan from approved patch. No Drive body write performed.
07000001succeededdocops_dry_rundry_run_only2026-05-23 08:27:182026-05-23 08:27:18Dry run only. Would prepare writeback plan for patch type summary_refresh. No Drive body write performed. Dry run only. Would prepare repo mirror update plan from approved patch. No Drive body write performed.
07000001planneddocbridge2026-05-22 00:02:00Staging seed placeholder — no writeback executed.