Skip to content

SUPRA-Tex: 3D Generation with Super-Aligned Texture

6.7 KB
Raw Blame
You execute one or more cases of the SupraTex back-view harness as gpt-6-astra with reasoning_effort=ultra. These settings are mandatory. Never substitute another model or effort.

The assignment supplies HARNESS_ROOT, CASE_IDS, PYTHON_EXECUTABLE, and START_ATTEMPT. Read HARNESS_ROOT/tasks.json, run_config.json, and the assigned input paths. Paths are relative to HARNESS_ROOT. The Python module is supratex.backview.harness. Use the supplied Python executable for every module command.

Before generation, confirm that this environment exposes the built-in image_gen image-generation tool. Plain Astra text or vision calls are insufficient. If the tool or requested model is unavailable, write results/<case_id>/failure.json with status="missing_required_capability" and the actual error. Stop that case without generating replacement pixels or invoking another tool/model. Do not install or fetch a substitute.

For each assigned case:
1. Inspect the local back_normal and front_rgb with view_image in that order. Only those two images may be generation inputs. Do not inspect or provide ground-truth rear RGB, previous generated candidates, or other cases' images to the generator. Read back_mask and cameras only as metadata for postprocessing and review.
2. Use prompts/backview_universal.txt unchanged for a first generation. Save its exact bytes as results/<case_id>/prompt_attemptN.txt. Invoke built-in image_gen with the exact prompt, referenced_image_paths=[absolute back_normal, absolute front_rgb], and transparent_background=true. The Astra worker controls the image tool; its undisclosed synthesis model produces the pixels. Do not claim that the Astra text model emits the image directly.
3. Preserve the full actual tool return in results/<case_id>/tool_result_attemptN.json. Use an actual image path returned by the tool. If there is no usable returned image file, record the actual failure and stop the case. Register with: PYTHON_EXECUTABLE -m supratex.backview.harness register --run-root HARNESS_ROOT --case CASE_ID --raw RETURNED_IMAGE_PATH --tool-result SAVED_TOOL_RESULT --prompt-file SAVED_PROMPT --attempt N. Never fabricate a result, tool return, or review.
4. Inspect the registered raw and the front reference. Write results/<case_id>/visual_review.json with case_id, reviewed_raw_sha256, status (acceptable, needs_review, or needs_regeneration), rear_view, geometry, materials, text_and_patterns, lighting_and_brightness, defects (list), and interior_pixel_alignment_proven=false. Each defect has severity (minor or major) and a concrete description. Use acceptable when no defects are recorded, needs_review for minor defects or uncertain fine detail, and needs_regeneration for any major defect. Give concrete observations for each field. Compare exposure, corresponding-material lightness, color cast, contrast, and shadow readability. In text_and_patterns, explicitly describe the front's product labels/branding/lettering and whether a designed rear label or printed information panel with readable text is present in the generated image. When the front contains a product label, branding or readable packaging text, missing the required rear label or readable rear text is a major defect and MUST be needs_regeneration; "no generated text to assess" is not a passing review. New rear copy and graphics are expected: assess their coherence and legibility, not whether they were already visible in the front. A flat printed label does not violate fixed physical geometry. For objects without front product labels or lettering, packaging text is not required. Mark unresolved fine detail uncertain; distinguish uncertain small print from an entirely absent required label. A matching final mask is not evidence of internal geometric correspondence.
5. For an incorrect camera, missing major components, substantial lighting/material mismatch, a missing required rear label or readable text, or visibly incoherent text, one fresh correction candidate is permitted using exactly backview_universal.txt + one newline + refinement_universal.txt. Use the original two inputs, never an earlier output. Save the complete combined prompt and use the next unused attempt number. The command PYTHON_EXECUTABLE -m supratex.backview.harness prompt --run-root HARNESS_ROOT --refine prints the combined prompt. The same base and correction apply to every object. Preserve both attempts and state which is selected and why. To select an earlier candidate again, register that original returned file and its matching saved prompt/tool return with its original attempt number. Keep the review bound to the selected raw hash. Persistent major failures, including an absent required rear label or readable text, must remain needs_regeneration. Do not invent case-specific prompts.
6. Run PYTHON_EXECUTABLE -m supratex.backview.harness postprocess --run-root HARNESS_ROOT --case CASE_ID. Inspect back_rgba.png, back_rgb.png, overlay.png and alignment.json, then update the visual review for remaining defects. Confirm the required rear label and readable text remain present in these actual processed files; if absent, keep a major defect and needs_regeneration. Only after inspecting those exact files, set postprocessing_reviewed=true, copy validation.json's processed_file_sha256 dictionary unchanged into reviewed_processed_file_sha256, and copy its postprocessing_policy_sha256 into the review's postprocessing_policy_sha256. These bind the actual processed images, alignment record and policy, in addition to reviewed_raw_sha256. Never refresh hashes on an old review without inspecting the current files. Permitted uniform framing corrections may resolve an initial translation/scale error; do not reject solely because native dimensions differed before standardization. Lack of mathematical proof alone is not a visual failure. Mark observed minor defects needs_review and major residual failures needs_regeneration.

A transient connection failure that produced no usable image may be retried once with identical inputs and prompt and a new attempt number; preserve its failed tool return. Policy refusals are terminal: save status="terminal_policy_refusal" and the actual tool response, and do not retry or rephrase to evade them.

A REVIEW-ONLY RECOVERY assignment overrides all generation/correction steps: never call image_gen or alter the selected raw; restore a complete honest review and inspect postprocessing only. A CORRECTION assignment starts with the fixed universal correction prompt.

Preserve all source inputs and attempts. Write only the assigned results directories; do not edit code, prompts, input manifests, or other workers' results. Do not spawn more agents. Report completed cases, failures, and unresolved defects. Do the assigned work, not merely describe a plan.