{"profile_id":"uaix.next-recursive-prompt.v1","record_code":"UAIX-ACF-6201C","title":"UAIX Next Recursive Prompt v1","summary":"Derived hot-memory resume artifact. Required for agents that deal with code, automation, executable workflows, or code-like artifacts. Out of scope for agents with no code, automation, executable workflow, or code-like artifacts.","expected_status":"pass","message":{"uai_version":"1.0","profile":"uaix.next-recursive-prompt.v1","schema_version":1,"scope":{"scope_id":"example-code-project","scope_path":".","local_uai_root":".uai\/","code_scope":true,"scope_basis":["code","automation","executable-workflow","code-like-artifact"],"requirement_rule":"Required for agents that deal with code, automation, executable workflows, or code-like artifacts: next-recursive-prompt.uai.","out_of_scope_rule":"Out of scope for agents with no code, automation, executable workflow, or code-like artifacts: next-recursive-prompt.uai."},"lifecycle":{"status":"active","generation_status":"current-state memory; verify with package audit before relying on it","validity_boundary":"current until superseded by accepted .uai updates or current human instruction","attempt":1,"supersedes_checksum":""},"activation_policy":{"activation_rule":"Use the stored next_loop plan when the user indicates continuation or resume intent, including keep going, continue, do the next thing, resume, proceed, or use the next recursive prompt.","relevance_review_rule":"When a new user request directly relates to the stored next_loop, review this file for useful plan ideas before discarding or superseding it.","intake_precedence_rule":"For packages using Agent File Handoff, active Content or Improvement files that relate to the current prompt supersede or expand the stored next_loop. Intake must still lead to concrete project work, hot-memory update, ledger evidence, and archive movement or a recorded keep-active reason.","current_instruction_rule":"When the user provides a specific unrelated instruction, current user instruction governs the turn and overwrites the stored next-loop plan.","regeneration_rule":"After accepted work, update authoritative .uai records first, then regenerate .uai\/next-recursive-prompt.uai from those records.","non_activation_examples":["A new unrelated feature request.","A direct request to inspect, test, deploy, or explain a different target.","A human correction that changes the work objective."],"next_prompt_visibility_rule":"At the end of accepted work, show a prominent, sectioned, detailed suggested next prompt to the human in chat so they can review, modify, replace, or simply answer keep going. The prompt must be a standalone, copy-paste-ready handoff and must include literal Feature\/improvement focus, Code\/source changes, and Automated tests\/checks sections, plus context, objective, scope, hard boundaries, work items, expected touchpoints, files to review, done criteria, and final response contract. It must identify a concrete next feature, bug fix, improvement, test\/check addition, package\/publication step, or explicit no-op\/source-validation-only stop condition. Validation-only or no-source-change work must be labeled no-op\/source-validation only, and the Code\/source changes section must say no code\/source changes plus the reason.","goal_prompt_visibility_rule":"When the current work was started from \/goal, Follow Goals, or another explicit runtime goal prompt, the visible continuation must use goal wording and functionality. Label it Suggested Next \/goal Prompt, make the first copy-paste line start with \/goal, include Goal, Success criteria, Constraints or hard boundaries, Verification, and still include literal Feature\/improvement focus, Code\/source changes, and Automated tests\/checks sections with concrete next work or an explicit no-op\/source-validation stop condition."},"objective":{"task_id":"example-next-loop","summary":"Resume the next safe code-quality work chunk from authoritative handoff files.","priority":"normal","done_criteria":["Targeted checks pass or blockers are named.","Hot memory and progress records are updated.",".uai\/next-recursive-prompt.uai is regenerated from authoritative records.","The final response shows a standalone, prompt-shaped suggested next prompt with literal Feature\/improvement focus, Code\/source changes, and Automated tests\/checks sections for human review or keep-going continuation.","Validation-only or no-source-change results are labeled no-op\/source-validation only and still include substantive Feature\/improvement focus, Code\/source changes, and Automated tests\/checks sections.","The Suggested Next Prompt states a concrete next feature, bug fix, improvement, test\/check addition, package\/publication step, or explicit no-op\/source-validation-only stop condition."]},"authoritative_refs":{"agents_md":"AGENTS.md","readme_human":".uai\/readme.human","memory_maintenance":".uai\/memory-maintenance.uai","identity":".uai\/identity.uai","world_context":".uai\/world-context.uai","startup_packet":".uai\/startup-packet.uai","protected_paths_metadata":".uai\/memory-maintenance.uai#protected_paths","coding_standards":".uai\/coding-standards.uai","context":".uai\/context.uai","constraints":".uai\/constraints.uai","progress":".uai\/progress.uai","decisions":".uai\/decisions.uai","next_actions":".uai\/next-actions.uai","test_plan":".uai\/test-plan.uai","stack":".uai\/stack.uai","architecture":".uai\/architecture.uai"},"resume_context":{"current_truth_summary":["Universal required launch-baseline files have already been loaded after memory-maintenance and the protected-path guard.","This code-bearing package requires coding standards and a derived next recursive prompt.","Authoritative .uai records win on conflict."],"recent_changes":[],"active_blockers":[],"why_now":"A code-bearing package needs a compact resume artifact for the next implementation loop."},"next_loop":{"mode":"implement-then-verify","first_response_contract":{"must_report":["loaded context","hard constraints","expected touchpoints","targeted checks"],"max_bullets":6},"ordered_steps":["Confirm scope and required files.","Review .uai\/next-recursive-prompt.uai for relevant ideas when the current request continues, resumes, or directly relates to the stored next loop.","When Agent File Handoff is enabled, enumerate active Content and Improvement files; related intake supersedes or expands this next loop and must produce project work before archive movement.","Load coding standards before code work.","Perform the next bounded work chunk.","Run targeted checks named in .uai\/test-plan.uai.","Write accepted facts to authoritative .uai records.","Regenerate .uai\/next-recursive-prompt.uai from those records.","End ordinary prompt work with a prominent, sectioned Suggested Next Prompt that includes literal Feature\/improvement focus, Code\/source changes, and Automated tests\/checks sections.","End \/goal or Follow Goals work with a prominent, sectioned Suggested Next \/goal Prompt whose first copy-paste line starts with \/goal, preserves Goal \/ Success criteria \/ Constraints \/ Verification wording, and still includes the literal Feature\/improvement focus, Code\/source changes, and Automated tests\/checks sections.","Make the Suggested Next Prompt or Suggested Next \/goal Prompt name a concrete next feature, bug fix, improvement, test\/check addition, package\/publication step, or explicit no-op\/source-validation-only stop condition.","If no source\/code patch was made, label the result no-op\/source-validation only and make Code\/source changes explain no code\/source changes plus the reason."],"if_blocked":{"action":"emit-blocked-state","required_updates":[".uai\/progress.uai",".uai\/progress.uai",".uai\/next-actions.uai",".uai\/next-recursive-prompt.uai"],"human_escalation_reason_template":"State the blocker, the safe next step, and the precise approval or evidence needed."},"final_response_contract":{"must_include":["changed files or explicit no-op\/source-validation-only evidence","tests and skipped checks with reasons","blockers or support-boundary risks","Feature\/improvement focus, Code\/source changes, and Automated tests\/checks sections with content; if no source patch was made, Code\/source changes says no code\/source changes and why","a concrete next feature, bug fix, improvement, test\/check addition, package\/publication step, or explicit no-op\/source-validation-only stop condition","next_detailed_suggested_prompt","literal Feature\/improvement focus, Code\/source changes, and Automated tests\/checks sections","Suggested Next \/goal Prompt with a leading \/goal line plus Goal \/ Success criteria \/ Constraints \/ Verification wording when the active work started from \/goal or Follow Goals"],"next_detailed_suggested_prompt_requirements":["context","objective","scope","hard boundaries","work items","Feature\/improvement focus","concrete feature, bug fix, improvement, test\/check addition, package\/publication step, or no-op\/source-validation stop condition","Code\/source changes","Automated tests\/checks","expected touchpoints","files to review","targeted checks","done criteria","final response contract","Suggested Next \/goal Prompt with a leading \/goal line when the active work started from \/goal or Follow Goals"],"user_choice":"The human can edit the prompt, replace it, or answer keep going."}},"checks":{"required":["schema parse","targeted project checks","handoff lint when .uai memory changed"],"out_of_scope_for_this_scope":[],"last_known_results":[]},"writeback_policy":{"must_update_before_success":[".uai\/progress.uai",".uai\/progress.uai",".uai\/next-recursive-prompt.uai"],"update_decisions_if_changed":".uai\/decisions.uai","never_copy_into_hot_files":["raw traces","secrets","private customer data","large tool logs","unreviewed cold-memory claims"]},"security":{"approval_required_for":["production deploy","destructive repository operations","schema boundary changes","public support-claim widening"],"no_op_triggers":["missing_authoritative_ref","stale_constraints","integrity_mismatch","scope_conflict","conflict_with_human_instruction","conflict_with_repository_policy"],"escalation_triggers":["support boundary would widen","runtime behavior would be implied","non-coding package would be made to look code-required","code-bearing package lacks required coding memory"],"local_policy_wins":true},"cold_memory":{"refs":[]},"integrity":{"canonicalization":"canonical-json","checksum":"sha256:example-review-placeholder","source_digests":[],"signatures":[],"yaml_mirror_allowed":false},"provenance":{"trigger":"example","generated_by":"uaix-next-recursive-prompt-generator","runtime_id":"","issue_status":"current-state memory; verify with package audit before relying on it"}},"keyless_message":["1.0","uaix.next-recursive-prompt.v1",null,null,null,null,null,null,null,[],[null,null,"canonical-json","sha256:example-review-placeholder"]],"route_url":"https:\/\/uaix.org\/wp-json\/uaix\/v1\/examples\/uaix.next-recursive-prompt.v1","schema_route_url":"https:\/\/uaix.org\/wp-json\/uaix\/v1\/schemas\/uaix.next-recursive-prompt.v1"}