Follow Goals can help an OpenAI runtime stay focused, but UAIX memory files remain the durable source of truth. Use this guide when a receiver wants Codex Goal mode or an OpenAI structured prompt to carry a measurable objective that was derived from a reviewed UAIX Project Handoff bundle.
This page is intentionally narrow. It describes a default-off, configuration-specific runtime overlay for OpenAI-centered work. It does not turn UAIX into an OpenAI runtime, official adapter, SDK, CLI, hosted importer, repository writer, certification program, or native API goal-field provider.
What This Page Is For
- Use it when a handoff should include one explicit runtime goal, success criteria, constraints, verification surfaces, and reference files.
- Use it after the receiver has the normal Project Handoff files and before runtime-specific work begins.
- Use it to keep the OpenAI runtime objective separate from reviewed durable memory until results are accepted and written back.
- Use the broader OpenAI and Codex guide when you need the complete Project Handoff pattern for OpenAI agents.
Layer Split
| Layer | Job | Durability |
|---|---|---|
| UAIX memory files | Preserve current truth, constraints, decisions, verification plans, receiver briefs, and reviewed writeback. | Durable project memory under review. |
| Codex Goal mode | Keep a Codex app, IDE, or CLI session pointed at one persistent objective, with planning first when selected. | Runtime session state, not accepted memory by itself. |
| OpenAI structured prompt | Give an OpenAI API or chat workflow a clear Goal / Success criteria / Constraints / References / Verification block. | Runtime prompt state, not accepted memory by itself. |
.uai/exports/follow-goal.json |
Carry the runtime overlay as structured export material when the wizard setting is selected. | Configuration-specific required for receiver environments that use /goal; generated from the handoff, not a new durable memory source. |
Wizard Setup
- Open the AI Memory Package Wizard.
- Configure the normal Project Handoff package first, including startup packet, receiver brief, constraints, test plan, progress, and next recursive prompt where the package family requires it.
- In Step 7, open Alternative: Follow Goals. It is off by default.
- Choose Codex Goal mode, OpenAI structured prompt block, or both.
- Enter a primary goal that fits into Codex goal text and move long detail into the referenced UAIX files.
- List success criteria, constraints, verification surfaces, and references explicitly enough that the human can revise the next action before the receiver starts.
- When the receiver uses
/goal, keep.uai/exports/follow-goal.jsonin the package as the configuration-specific required unifying record.
Default References
A Follow Goals overlay should point the runtime back to the same durable Project Handoff files the receiver already needs:
.uai/startup-packet.uaifor startup read order and setup boundary..uai/receiver-brief.uaifor first task, success evidence, and handoff framing..uai/constraints.uaifor hard boundaries and support-claim limits..uai/test-plan.uaifor checks and acceptance evidence..uai/progress.uaiand.uai/short-term-memory.uaifor reviewed status and writeback.
Codex Goal Path
For Codex app, IDE, or CLI work, the runtime overlay can produce a short /goal command and a plan-first reminder. Use /plan first when the objective needs refinement, and keep detailed instructions in files when the goal text would become too long.
/plan Refine the UAIX handoff into a concrete, testable goal before execution.
/goal Complete the receiver task using the generated UAIX memory files, preserve constraints, run targeted checks, and record evidence before stopping.The Codex runtime goal does not replace AGENTS.md, .uai/readme.human, .uai/startup-packet.uai, or the typed .uai records. It should be derived from them and reported back to them only after review.
OpenAI API Path
For OpenAI API use, treat Follow Goals as a structured prompt block, not a native top-level API goal parameter. Keep the prompt explicit and attach or reference the same files that carry durable memory.
Role: You are an agent using UAIX files as reviewed durable context.
# Goal
Complete the receiver task with verifiable evidence.
# Success criteria
- Current truth and constraints are summarized before broad work.
- Changed files, checks, skipped checks, blockers, and owners are recorded.
# Constraints
- UAIX memory files remain the durable source of truth.
- Runtime output is not accepted memory until reviewed.
# Verification
- Use .uai/test-plan.uai and .uai/progress.uai as the evidence route.When the runtime supports file inputs or persistent conversation state, use those OpenAI mechanisms to provide the UAIX references. Do not claim that UAIX publishes a native OpenAI goal field, official importer, or automatic repository writeback.
Review And Writeback
- Before work starts, the receiver should summarize current truth, constraints, touchpoints, and targeted checks.
- During work, runtime status can be active or paused, but pause reasons and resume conditions should be explicit.
- After work, promote only reviewed accepted facts into
.uai/progress.uai,.uai/decisions.uai,.uai/short-term-memory.uai,.uai/test-plan.uai, release notes, code, tests, or other authoritative records. - Keep raw runtime traces, prompts, and generated summaries out of durable memory unless they are reviewed, redacted, and summarized for a named purpose.
Conditional Goal-Shaped Completion Handoff
Use goal wording and functionality only when work started from /goal, the human explicitly asked for /goal or a goal prompt, or the last accepted handoff was goal-shaped. Selecting Alternative: Follow Goals as an available runtime export does not by itself convert ordinary continuation into /goal. For true goal-origin work, end with Suggested Next /goal Prompt, not only a generic Suggested Next Prompt, make the copy-paste block start with /goal, and include Goal, Success criteria, Constraints or hard boundaries, Verification, Feature/improvement focus, Code/source changes, and Automated tests/checks so the human can steer the next objective before another agent continues.
Validation Expectations
- Warn or block when Follow Goals is selected with no primary goal, no success criteria, or no verification surface.
- Warn when a paused goal lacks a pause reason or resume condition.
- Warn when the overlay claims official OpenAI adapter support, hosted import, SDK, CLI, certification, runtime orchestration, automatic repository writing, or native Responses API goal support.
- Keep
.uai/exports/follow-goal.jsonconfiguration-specific required for/goalreceiver environments; universal launch-baseline packages that do not select Follow Goals leave that file out of scope.
OpenAI Docs To Pair With This Guide
- OpenAI Codex Follow GoalsPrimary OpenAI page for Codex Goal mode behavior.
- Codex PromptingPrompt structure, context, and task framing for Codex.
- Codex CLI Slash CommandsReference for
/goal,/plan, and related CLI command behavior. - OpenAI API Prompt GuidanceUse structured prompts when the API workflow needs an explicit goal block.
- Conversation StateUse runtime conversation state without making it durable UAIX memory automatically.
- File InputsAttach or reference UAIX files when a runtime needs the actual handoff material.
Support Boundary
- Current support: wizard guidance, receiver text, Codex
/goalhandoff text, structured OpenAI prompt text, and.uai/exports/follow-goal.jsonas a configuration-specific required export for/goalreceiver environments. - Not current support: official OpenAI adapter, hosted importer, SDK, CLI, certification, endorsement, runtime orchestrator, repository writer, automatic trace importer, automatic memory promotion, or native Responses API goal field.
- Durable source of truth: reviewed UAIX memory files, public UAIX pages, release notes, code, tests, and accepted project records.
Related UAIX Records
- Using UAIX Project Handoff with OpenAI Agents and CodexFull OpenAI/Codex handoff guide.
- Project HandoffCore portable project-memory pattern.
- AI Memory Package WizardGenerate the default-off Follow Goals overlay from Step 7.
- Coding Agents GuideUse the same durable bundle across other coding-agent surfaces.
- Context Budget GuideKeep startup context compact while preserving evidence in cold memory.
- RoadmapCheck current versus future adapter, SDK, CLI, and certification boundaries.
- ChangelogDated public change record.
Long-running work
For extended or interruptible goals, use Long-Running Goal Execution. Follow Goals carries the runtime objective; authoritative .uai files carry durable checkpoints; UAI-1 task-status, blocker, handoff, memory-proposal, and final-report packets carry portable evidence. Runtime output is not accepted memory until reviewed and written back.