Class AgentBundleArtifactValidator

java.lang.Object
com.agentforge4j.config.loader.agent.AgentBundleArtifactValidator
All Implemented Interfaces:
ArtifactValidator

public final class AgentBundleArtifactValidator extends Object implements ArtifactValidator
ArtifactValidator that asserts a generated agent bundle "loads as a valid AgentDefinition" by running the production parse/validate path on the captured artifacts: Jackson-parse agent.json, validate core fields, resolve the system prompt (inline or from the captured systemprompt.md / boundaries.md), and build the definition (applying the record's invariants). Any parse, validation, or build failure yields an invalid result, which the runtime turns into a fail-closed run.
  • Field Details

    • VALIDATOR_ID

      public static final String VALIDATOR_ID
      Stable id a VALIDATE step uses to select this validator.
      See Also:
    • AGENT_FILE_NAME

      public static final String AGENT_FILE_NAME
      Required bundle entry carrying the agent definition JSON.
      See Also:
  • Constructor Details

    • AgentBundleArtifactValidator

      public AgentBundleArtifactValidator(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Creates a validator over the given mapper.
      Parameters:
      objectMapper - the mapper used to parse agent.json; must not be null
  • Method Details