{
  "schema_version": "1.0.0",
  "protocol_id": "ai_prompt_transformation_engine_v1",
  "mode": "protocol_derivation",
  "input": {
    "input_type": "text",
    "source_payload": "You are a specialist in transforming raw ideas into detailed, high-performance AI prompts. Your task is to convert any provided draft request into a professionally structured prompt ready for practical use. Each generated prompt must include a unique agent role, clearly defined objective, structured instructions, 3\u20137 mandatory input fields, and exceed 1000 non-space characters. If the original request lacks a clear objective, skip generation.",
    "extracted_semantics": [
      "Role: AI prompt transformation specialist",
      "Goal: convert draft prompt into professional structured prompt",
      "Minimum length: 1000 non-space characters",
      "Include 3\u20137 mandatory fillable fields",
      "Each prompt must have unique structure",
      "Skip vague or undefined input requests"
    ]
  },
  "context": {
    "domain": [
      "prompt_engineering",
      "ai_workflows",
      "content_structuring"
    ],
    "system_type": "organization",
    "time_horizon": "short_term",
    "risk_level": "low"
  },
  "protocol": {
    "items": [
      {
        "id": "validate_input_clarity",
        "primary_goal": "Ensure the incoming draft contains a defined objective and actionable direction.",
        "goal_refinement": "Reject or skip transformation if the draft lacks a clear goal, scope, or outcome expectation.",
        "tasks_and_steps": {
          "steps": [
            {
              "action": "Analyze whether the draft includes a measurable or clearly stated objective.",
              "frequency": "once",
              "owner": "self",
              "measurement": {
                "type": "boolean",
                "unit": "objective_detected",
                "collection_method": "checklist"
              }
            },
            {
              "action": "Identify missing contextual elements such as audience, format, or domain.",
              "frequency": "once",
              "owner": "self",
              "measurement": {
                "type": "count",
                "unit": "missing_context_elements",
                "collection_method": "self_report"
              }
            },
            {
              "action": "Decide to proceed or skip generation based on clarity threshold.",
              "frequency": "once",
              "owner": "self",
              "measurement": {
                "type": "boolean",
                "unit": "generation_decision",
                "collection_method": "checklist"
              }
            }
          ]
        },
        "expected_results_and_obstacles": {
          "expected_results": [
            "Only actionable prompts are processed",
            "Reduction of vague AI instructions",
            "Improved output precision"
          ],
          "possible_obstacles": [
            "Ambiguous user goals",
            "Overly abstract drafts",
            "Contradictory requirements"
          ]
        },
        "success_criteria": {
          "criteria": [
            {
              "metric": "Clear objective presence",
              "target": "Yes",
              "timeframe": "7_days",
              "measurement": {
                "type": "boolean",
                "collection_method": "checklist"
              }
            },
            {
              "metric": "Context completeness score",
              "target": "\u22653 contextual elements identified",
              "timeframe": "7_days",
              "measurement": {
                "type": "count",
                "collection_method": "self_report"
              }
            },
            {
              "metric": "Invalid prompt rejection rate",
              "target": "100% of vague prompts skipped",
              "timeframe": "7_days",
              "measurement": {
                "type": "percentage",
                "collection_method": "system_log"
              }
            }
          ]
        }
      },
      {
        "id": "generate_structured_prompt",
        "primary_goal": "Produce a unique, high-performance AI prompt exceeding 1000 non-space characters.",
        "goal_refinement": "Ensure structural originality, mandatory fillable fields (3\u20137), and professional clarity.",
        "tasks_and_steps": {
          "steps": [
            {
              "action": "Create a unique agent persona aligned with the application domain.",
              "frequency": "once",
              "owner": "self",
              "measurement": {
                "type": "boolean",
                "unit": "agent_role_defined",
                "collection_method": "checklist"
              }
            },
            {
              "action": "Define 3\u20137 mandatory fillable fields tailored to the user context.",
              "frequency": "once",
              "owner": "self",
              "measurement": {
                "type": "count",
                "unit": "fillable_fields_count",
                "collection_method": "system_log"
              }
            },
            {
              "action": "Write detailed execution instructions guaranteeing high-quality output.",
              "frequency": "once",
              "owner": "self",
              "measurement": {
                "type": "count",
                "unit": "instruction_blocks",
                "collection_method": "system_log"
              }
            },
            {
              "action": "Verify total character count exceeds 1000 non-space characters.",
              "frequency": "once",
              "owner": "self",
              "measurement": {
                "type": "count",
                "unit": "non_space_characters",
                "collection_method": "system_log"
              }
            }
          ]
        },
        "expected_results_and_obstacles": {
          "expected_results": [
            "Professional AI-ready prompt",
            "High clarity and usability",
            "Improved AI response quality"
          ],
          "possible_obstacles": [
            "Repetitive structure",
            "Insufficient depth",
            "Failure to meet length requirement"
          ]
        },
        "success_criteria": {
          "criteria": [
            {
              "metric": "Minimum non-space characters",
              "target": ">1000",
              "timeframe": "7_days",
              "measurement": {
                "type": "count",
                "collection_method": "system_log"
              }
            },
            {
              "metric": "Mandatory fields count",
              "target": "Between 3 and 7",
              "timeframe": "7_days",
              "measurement": {
                "type": "count",
                "collection_method": "system_log"
              }
            },
            {
              "metric": "Structural uniqueness",
              "target": "No duplication of previous templates",
              "timeframe": "7_days",
              "measurement": {
                "type": "boolean",
                "collection_method": "self_report"
              }
            }
          ]
        }
      }
    ]
  },
  "quality_control": {
    "anti_vagueness_rule": true,
    "measurement_rule": true,
    "diversity_rule": true,
    "ethical_constraints": {
      "no_diagnosis": true,
      "no_blame_language": true,
      "safety_override": "If transformation results in unsafe, misleading, or policy-violating instructions, generation must stop and request clarification."
    },
    "validation_report": {
      "passed": true,
      "violations": []
    }
  }
}