Loading...
Loading...
Compare original and translation side by side
NO WRITE THE DEVELOPER HAS NOT SEEN AND APPROVED--yespythia policy set <group>--confirmNO WRITE THE DEVELOPER HAS NOT SEEN AND APPROVED--yespythia policy set <group>--confirm.pythia/journal/<entry>/restore.sqlpythia history <OBJECT>.pythia/journal/<entry>/restore.sqlpythia history <OBJECT>pythia-impactimpact:pythia apply <file>impact:!To apply:apply … | tail${PIPESTATUS[0]}| Exit | Meaning | What you must do |
|---|---|---|
| 0 | applied, compiled clean, nothing newly INVALID | report done, mention the restore id |
| 1 | refused (policy, classification, stale token) | relay the printed reason and its fix; do not work around it |
| 3 | written but broken — compile errors or other objects now INVALID | see below |
To undo:pythia-impactimpact:pythia apply <file>impact:!To apply:apply … | tail${PIPESTATUS[0]}| 退出码 | 含义 | 必须执行的操作 |
|---|---|---|
| 0 | 已应用,编译无错误,无新增失效对象 | 报告完成,并提及恢复ID |
| 1 | 被拒绝(策略、分类、令牌过期) | 传达打印的原因及修复方法;不要绕过规则 |
| 3 | 已写入但存在问题 —— 编译错误或其他对象现在失效 | 见下文 |
To undo:pythia journal restore <id>structural: denypythia journal restore <id>structural: deny--yes--yes--yes--yes--yes--yespythia applyrun-sqlsqlpluspythia applyrun-sqlsqlplus| Group | Is rollback real? |
|---|---|
| Yes — completely. The source is recoverable from |
| No. After commit only Flashback Query remains, and only within undo retention. |
| Almost never. |
| Yes, but by hand. |
| Not needed. |
| 分组 | 回滚是否可行? |
|---|---|
| 完全可行。可从 |
| 不可行。提交后仅能通过闪回查询恢复,且仅在 undo 保留期内有效。 |
| 几乎不可行。 |
| 可行,但需手动操作。 |
| 无需回滚。 |
| Thought | Reality |
|---|---|
| "It's a tiny change, skip the preview" | Tiny changes invalidate dependents too. Preview. |
| "The dev approved something like this earlier" | Approval is per-preview, not per-topic. Ask again. |
| "Exit 3, but my part compiled — report done" | Something is broken that was not. That is not done. |
| "Token is stale, I'll just take the new one" | The content changed. The developer must see the new preview. |
| "apply refused it; run-sql will take it" | The refusal is the product working. Relay it. |
| "I'll restore quietly to clean up my mistake" | Restores are writes. Same gate, same visibility. |
" | That was tail's 0. Read pythia's own words, or its unpiped code. |
| "The dev said 'stop asking' once" | That covered that task, not forever. Re-confirm scope on the next one. |
| 想法 | 实际情况 |
|---|---|
| "这是个微小的变更,跳过预览吧" | 微小变更也会导致依赖项失效。必须预览。 |
| "开发者之前已经批准过类似的变更了" | 确认是针对每次预览的,而非针对主题。必须再次询问。 |
| "退出码是3,但我负责的部分编译成功了——报告完成" | 某些原本正常的内容现在失效了,这不算完成。 |
| "令牌过期了,我直接用新的就行" | 内容已发生变更。开发者必须查看新的预览。 |
| "apply拒绝了它;用run-sql应该能行" | 拒绝是工具正常工作的表现。应传达该信息。 |
| "我悄悄恢复来清理自己的错误" | 恢复属于写入操作。需遵循相同的把关机制和可见性要求。 |
"我用管道输出到tail后, | 那是tail的退出码0。应查看pythia的输出内容,或直接运行获取其退出码。 |
| "开发者说过一次‘别再问了’" | 那仅适用于当时的任务,而非永久生效。下次任务需重新确认范围。 |
pythia-explorepythia-impactInvocation note: examples say; run it however this project provides it (for examplepythia ...). Every pythia output prints follow-up commands in the correct form — prefer pasting those.python scripts/pythia.py ...
pythia-explorepythia-impact调用说明:示例中使用;请根据项目的实际提供方式运行(例如pythia ...)。每个pythia输出都会以正确格式打印后续命令——优先粘贴这些命令。python scripts/pythia.py ...