AutoBE
    Preparing search index...

    Interface AutoBeDatabaseAuthorizationReviewEvent

    Event fired when the Database agent reviews and validates the authorization component's table organization during the database design process.

    This event occurs after the initial authorization table generation phase, where the Database Authorization agent has created actor and session tables for ALL actors in a single component. The review validates the authorization tables against authentication requirements, checks for missing session tables for each actor, verifies naming conventions, and ensures proper actor-specific patterns.

    The review process ensures that the authorization component provides a solid foundation for authentication and session management by identifying and correcting organizational issues before detailed table schemas are created.

    Michael

    interface AutoBeDatabaseAuthorizationReviewEvent {
        acquisition: Pick<AutoBePreliminaryAcquisition, Kind>;
        created_at: string & Format<"date-time">;
        id: string;
        metric: AutoBeFunctionCallingMetric;
        modification: AutoBeDatabaseComponent;
        review: string;
        revises: AutoBeDatabaseComponentTableRevise[];
        step: number;
        tokenUsage: IComponent;
        type: "databaseAuthorizationReview";
    }

    Hierarchy (View Summary)

    • AutoBeEventBase<"databaseAuthorizationReview">
    • AutoBeAggregateEventBase
    • AutoBeAcquisitionEventBase<
          | "analysisSections"
          | "previousAnalysisSections"
          | "previousDatabaseSchemas",
      >
      • AutoBeDatabaseAuthorizationReviewEvent
    Index

    Properties

    acquisition: Pick<AutoBePreliminaryAcquisition, Kind>

    Summary of preliminary data acquired by the agent during RAG.

    Contains lightweight identifiers for each kind of preliminary data that was loaded into the agent's local context before producing its output. Only the kinds specified by the Kind type parameter are present.

    created_at: string & Format<"date-time">

    Timestamp when the event was created.

    ISO 8601 formatted date-time string indicating when this event was emitted by the system. This timestamp is crucial for event ordering, performance analysis, and debugging the agent workflow execution timeline.

    Format: "YYYY-MM-DDTHH:mm:ss.sssZ" (e.g., "2024-01-15T14:30:45.123Z")

    id: string

    A unique identifier for the event.

    Function calling trial statistics for the operation.

    Records the complete trial history of function calling attempts, tracking total executions, successful completions, consent requests, validation failures, and invalid JSON responses. These metrics reveal the reliability and quality of AI agent autonomous operation with tool usage.

    Trial statistics are critical for identifying operations where agents struggle with tool interfaces, generate invalid outputs, or require multiple correction attempts through self-healing spiral loops. High failure rates indicate opportunities for system prompt optimization or tool interface improvements.

    The reviewed authorization component with updated table list.

    Contains the complete authorization component definition after review, with all revisions applied. Tables that were added, removed, or renamed are reflected in this final component structure.

    review: string

    Comprehensive review analysis of the authorization component organization.

    Contains the AI agent's detailed evaluation of the authorization component structure including validation of actor table completeness, session table presence, naming conventions, and authentication pattern compliance.

    Review Dimensions:

    • Actor Table Completeness: Verifies all actor types have main tables
    • Session Table Presence: Ensures each actor has a session table
    • Authentication Support: Checks for necessary auth support tables
    • Naming Conventions: Verifies actor-based naming patterns
    • Normalization Patterns: Checks separate entity patterns for auth

    Array of table revision operations applied during the review.

    Contains all create, update, and erase operations that were identified and applied during the authorization review process. Each operation includes a reason explaining why the change was necessary.

    • Create: Tables added to fulfill missing authentication requirements
    • Update: Tables renamed to fix naming convention issues
    • Erase: Tables removed because they don't belong to authorization
    step: number

    Iteration number of the requirements analysis this authorization review was performed for.

    tokenUsage: IComponent

    Detailed token usage metrics for the operation.

    Contains comprehensive token consumption data including total usage, input token breakdown with cache hit rates, and output token categorization by generation type (reasoning, predictions). This component-level tracking enables precise cost analysis and identification of operations that benefit most from prompt caching or require optimization.

    Token usage directly translates to operational costs, making this metric essential for understanding the financial implications of different operation types and guiding resource allocation decisions.

    type: "databaseAuthorizationReview"

    Unique identifier for the event type.

    A literal string that discriminates between different event types in the AutoBE system. This field enables TypeScript's discriminated union feature, allowing type-safe event handling through switch statements or conditional checks.

    Examples: "analyzeWrite", "databaseSchema", "interfaceOperation", "testScenario"