Skip to content

agent-spec/.github/workflows /tests.yaml use aisop by any llm to run #198

Description

@optimization2026

[
{
"role": "system",
"content": {
"protocol": "AISOP V1.0.0",
"axiom_0": "Human_Sovereignty_and_Wellbeing",
"id": "oracle_agent_spec_ci_pipeline",
"name": "PyAgentSpec CI Pipeline",
"version": "1.0.0",
"summary": "Automated pipeline for Formatting, Linting, Typing, Security, and Tests tracking Python 3.10 to 3.14 matrix.",
"flow_format": "mermaid"
}
},
{
"role": "user",
"content": {
"instruction": "RUN aisop.main",
"user_input": {
"repo_path": "$.global_context.workspace",
"skip_llm_tests": "1"
},
"aisop": {
"main": "graph TD\n Start[Initialize Environment] --> Fork_Matrix[aisop.fork:python_matrix]\n \n %% Parallel Matrix Execution\n Fork_Matrix --> Py310[Run Pipeline: Python 3.10]\n Fork_Matrix --> Py314[Run Pipeline: Python 3.14]\n \n %% 3.10 Standard Route\n Py310 --> Black_310[Black Formatting Check]\n Black_310 --> Isort_310[Isort Import Check]\n Isort_310 --> Bandit_310[Bandit Security Check]\n Bandit_310 --> Flake8_310[Flake8 Lint Checks]\n Flake8_310 --> Mypy_310[Mypy Static Typing]\n Mypy_310 --> Test_310[Run Pytest Suite]\n \n %% 3.14 Exceptional Route (Skips Flake8 & Mypy per tests.yaml conditional)\n Py314 --> Black_314[Black Formatting Check]\n Black_314 --> Isort_314[Isort Import Check]\n Isort_314 --> Bandit_314[Bandit Security Check]\n Bandit_314 --> Test_314[Run Pytest Suite]\n \n %% Error Boundary Routing via Broken Lines\n Black_310 -.->|Formatting Error| Auto_Fix[aisop.sub:code_auto_repair]\n Bandit_310 -.->|Security Breach| Sec_Alert[Security Vulnerability Alert]\n Test_310 -.->|Test Failure| Auto_Fix\n \n %% Matrix Synchronisation\n Test_310 --> Join_Matrix[aisop.join]\n Test_314 --> Join_Matrix\n Join_Matrix --> End_Node((Pipeline Success Report))"
},
"functions": {
"Start": {
"step1": "Checkout repository code to local workspace",
"step2": "Inject environment variable SKIP_LLM_TESTS=1"
},
"Black_310": {
"step1": "Execute: black --config pyagentspec/pyproject.toml --check pyagentspec/",
"step2": "Intercept non-zero exit codes to error router"
},
"Isort_310": {
"step1": "Execute: isort --settings-path pyagentspec/pyproject.toml --check-only pyagentspec/"
},
"Flake8_310": {
"step1": "Execute: flake8 --select C801 pyagentspec/",
"step2": "Enforce Oracle copyright template: flake8 --select C801 --copyright-check --copyright-regexp='# Copyright © [0-9]{4}...'"
},
"Bandit_310": {
"step1": "Execute: bandit -c bandit.yaml -r pyagentspec/",
"step2": "Export findings JSON block to context buffer"
},
"Mypy_310": {
"step1": "Execute: mypy pyagentspec/src/pyagentspec --config-file pyagentspec/pyproject.toml --exclude pyagentspec/src/pyagentspec/adapters"
},
"Test_310": {
"step1": "Change directory to working target pyagentspec",
"step2": "Execute: bash tests/run_tests.sh"
},
"Auto_Fix": {
"step1": "Trigger sys.agent.call to load oa://prime-vector/code-reviewer",
"step2": "Pass last_error log to sandbox environment for autonomous script healing"
},
"Sec_Alert": {
"step1": "Trigger sys.io.confirm to enforce Axiom 0 boundary",
"step2": "Block downstream pipelines and await human operator verification"
},
"End_Node": {
"step1": "Consolidate code matrix reports",
"step2": "Output final green build notification"
}
}
}
}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions