Codex Work Packet Strengthened #372

{
  "generatedAt": "2026-05-04T06:10:25Z",
  "issueNumber": 372,
  "issueUrl": "https://github.com/HotsumaX/community-sandbox/issues/372",
  "goal": "Prepare issue #372 for the next safe Codex cycle by bounding it to a deterministic proofReadiness normalization across the sandbox proof flow and journey replay artifacts plus their portal mirrors.",
  "targetFiles": [
    "artifacts/implementation/pillars/sandbox-proof-flow.json",
    "deployment/portal/artifacts/implementation/pillars/sandbox-proof-flow.json",
    "artifacts/implementation/pillars/sandbox-proof-journey-replay.json",
    "deployment/portal/artifacts/implementation/pillars/sandbox-proof-journey-replay.json"
  ],
  "allowedDirectories": [
    "artifacts/implementation/pillars",
    "deployment/portal/artifacts/implementation/pillars"
  ],
  "hardConstraints": [
    "GitHub is source of truth",
    "Local commit -> push -> webhook deploy only",
    "No direct Pi edits",
    "No Codex execution in this planning packet",
    "No issue creation",
    "No issue closure",
    "No active cron",
    "Only modify the four listed proof artifacts and keep portal mirrors byte-for-byte aligned with their source artifacts.",
    "Only add or normalize the proofReadiness section; do not change unrelated semantics in the proof artifacts.",
    "Keep cronEnabled=false and allowRealExecution=false"
  ],
  "exactChangeDescription": [
    "Add or normalize a proofReadiness section in sandbox-proof-flow.json and sandbox-proof-journey-replay.json.",
    "Mirror the same proofReadiness section into the portal copies so each source artifact matches its portal mirror exactly.",
    "Set proofReadiness.issueNumber to 372.",
    "Set proofReadiness.readinessStatus to ready-for-codex-execution.",
    "Set proofReadiness.deterministicVerification to true.",
    "Set proofReadiness.mirrorArtifactsMustMatch to true.",
    "Set proofReadiness.expectedEvidence to: sandbox proof flow exists; journey replay exists; moderation state transition exists; workflow replay has at least 4 steps."
  ],
  "successCriteria": [
    "All four target files exist after the future execution pass.",
    "Each source artifact exactly matches its portal mirror counterpart.",
    "Both source artifacts contain a proofReadiness section with issueNumber 372.",
    "proofReadiness.readinessStatus equals ready-for-codex-execution.",
    "proofReadiness.deterministicVerification equals true.",
    "proofReadiness.mirrorArtifactsMustMatch equals true.",
    "proofReadiness.expectedEvidence names sandbox proof flow exists, journey replay exists, moderation state transition exists, and workflow replay has at least 4 steps.",
    "sandbox-proof-journey-replay.json still has moderationStateAfter == approved and workflowReplay length >= 4."
  ],
  "verificationCommands": [
    "python3 - <<'PY'\nimport json\nfrom pathlib import Path\n\npairs = [\n (\n Path(\"artifacts/implementation/pillars/sandbox-proof-flow.json\"),\n Path(\"deployment/portal/artifacts/implementation/pillars/sandbox-proof-flow.json\"),\n ),\n (\n Path(\"artifacts/implementation/pillars/sandbox-proof-journey-replay.json\"),\n Path(\"deployment/portal/artifacts/implementation/pillars/sandbox-proof-journey-replay.json\"),\n ),\n]\n\nfor source, mirror in pairs:\n source_data = json.loads(source.read_text())\n mirror_data = json.loads(mirror.read_text())\n assert source_data == mirror_data, f\"mirror mismatch: {source} != {mirror}\"\n\nreplay = json.loads(Path(\"artifacts/implementation/pillars/sandbox-proof-journey-replay.json\").read_text())\nassert replay.get(\"moderationStateAfter\") == \"approved\"\nassert len(replay.get(\"workflowReplay\", [])) >= 4\n\nprint(\"issue-372-proof-ready\")\nPY"
  ],
  "maxFilesChanged": 4,
  "maxLinesChanged": 300,
  "codexExecutionAllowed": false,
  "githubWritePerformed": false,
  "futureProofReadinessSection": {
    "issueNumber": 372,
    "readinessStatus": "ready-for-codex-execution",
    "deterministicVerification": true,
    "mirrorArtifactsMustMatch": true,
    "expectedEvidence": [
      "sandbox proof flow exists",
      "journey replay exists",
      "moderation state transition exists",
      "workflow replay has at least 4 steps"
    ]
  }
}