-
-
Notifications
You must be signed in to change notification settings - Fork 2
This commit introduces a new documentation website built with Jekyll … #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
muflhi1999-source
wants to merge
3
commits into
ARCOS-System:main
Choose a base branch
from
muflhi1999-source:feat/add-documentation-website
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
9a15b5d
This commit introduces a new documentation website built with Jekyll …
google-labs-jules[bot] 19c162d
This commit enhances the project by adding a CI validation workflow a…
google-labs-jules[bot] ae9d4db
This commit introduces the foundational structure for a Python-based …
google-labs-jules[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Validate XML Samples | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| validate-xml: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install libxml2-utils | ||
| run: sudo apt-get update && sudo apt-get install -y libxml2-utils | ||
|
|
||
| - name: Validate XML against local XSD | ||
| run: | | ||
| find SampleDomains -type f -name "*.xml" | while read xml_file; do | ||
| echo "INFO: Processing '$xml_file'" | ||
|
|
||
| # Extract the schema URL from the XML file | ||
| schema_url=$(grep -o 'xsi:noNamespaceSchemaLocation="[^"]*"' "$xml_file" | cut -d'"' -f2) | ||
|
|
||
| if [ -z "$schema_url" ]; then | ||
| echo "WARN: No schemaLocation found in '$xml_file'. Skipping." | ||
| continue | ||
| fi | ||
|
|
||
| # Convert the GitHub raw URL to a local file path. | ||
| # This handles different branch names in the URL. | ||
| schema_file=$(echo "$schema_url" | sed 's|https://raw.githubusercontent.com/ARCOS-System/ARCOS/[^/]\+/\(.*\)|\1|') | ||
|
|
||
| if [ ! -f "$schema_file" ]; then | ||
| echo "ERROR: Could not find local schema file '$schema_file' referenced in '$xml_file'. Failing the check." | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "INFO: Validating '$xml_file' against '$schema_file'..." | ||
| if xmllint --noout --schema "$schema_file" "$xml_file"; then | ||
| echo "SUCCESS: '$xml_file' is valid." | ||
| else | ||
| echo "ERROR: Validation of '$xml_file' failed." | ||
| exit 1 | ||
| fi | ||
| echo "" | ||
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| theme: jekyll-theme-minimal | ||
| title: ARCOS Documentation | ||
| description: "Official documentation for the AI Rule-Constrained Orchestration System." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| layout: default | ||
| title: Architecture | ||
| nav_order: 2 | ||
| --- | ||
|
|
||
| # ARCOS Architecture | ||
|
|
||
| The following diagram illustrates the high-level architecture of the ARCOS system. It shows the interaction between the **Maestro** coordinator and the various agents: **Speculus**, **Producer**, **Validator**, and **Post-Processor**. | ||
|
|
||
| All communication between these components is handled via standardized XML messages, which are validated against the official ARCOS schemas. | ||
|
|
||
|  |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| --- | ||
| layout: default | ||
| title: Getting Started | ||
| nav_order: 4 | ||
| --- | ||
|
|
||
| # Getting Started Tutorial | ||
|
|
||
| This tutorial provides a hands-on walkthrough of the ARCOS repository. You will learn how to clone the project, locate key files, and perform a basic validation of a sample XML file against its schema. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| Before you begin, ensure you have the following tools installed: | ||
| * **Git:** For cloning the repository. | ||
| * **An XML Schema Validator:** We will use `xmllint`, which is a standard command-line tool for XML validation, often pre-installed on Linux and macOS. | ||
|
|
||
| ## 1. Clone the Repository | ||
|
|
||
| First, clone the ARCOS repository to your local machine using the following command: | ||
|
|
||
| ```bash | ||
| git clone https://github.com/ARCOS-System/ARCOS.git | ||
| cd ARCOS | ||
| ``` | ||
|
|
||
| ## 2. Locate the Sample Files | ||
|
|
||
| This repository includes sample domains to help you understand how ARCOS works. For this tutorial, we will use the `BLEU` sample domain. | ||
|
|
||
| Navigate to the directory containing the sample XML and its corresponding schema: | ||
|
|
||
| ```bash | ||
| cd SampleDomains/BLEU/v5/ | ||
| ``` | ||
|
|
||
| You will find two key files here: | ||
| * `BLEU_parts_v5.xsd`: The XML Schema Definition (XSD) that defines the structure and rules for the inventory of a fictional parts manufacturer. | ||
| * `BLEU_inventory_v5_sample.xml`: A sample XML file containing inventory data that conforms to the schema. | ||
|
|
||
| ## 3. Understand the Schema and XML | ||
|
|
||
| The **XSD file (`BLEU_parts_v5.xsd`)** acts as a blueprint, defining the expected structure of the data. It specifies what elements are allowed (e.g., `Bolt`, `Nut`, `Washer`), their attributes (e.g., `id`, `code`), and their data types. | ||
|
|
||
| The **XML file (`BLEU_inventory_v5_sample.xml`)** is an instance of this blueprint. It contains the actual inventory data, structured according to the rules defined in the XSD. Notice the `xsi:noNamespaceSchemaLocation` attribute in the XML, which points to the location of the schema file that should be used for validation. | ||
|
|
||
| ## 4. Validate the XML | ||
|
|
||
| The core principle of ARCOS is schema-driven validation. You can test this yourself by validating the sample XML against its schema using `xmllint`: | ||
|
|
||
| ```bash | ||
| xmllint --noout --schema BLEU_parts_v5.xsd BLEU_inventory_v5_sample.xml | ||
| ``` | ||
|
|
||
| If the validation is successful, the command will output: | ||
| ``` | ||
| BLEU_inventory_v5_sample.xml validates | ||
| ``` | ||
|
|
||
| This confirms that the sample data adheres to the rules defined in the schema. | ||
|
|
||
| ## Conclusion | ||
|
|
||
| Congratulations! You have successfully cloned the ARCOS repository and validated a sample XML file. This simple exercise demonstrates the fundamental concept of ARCOS: ensuring that all data and messages conform to a predefined, verifiable structure. | ||
|
|
||
| From here, you can explore the other documentation sections to learn more about the system's [Architecture](./architecture.md) and [Component Guides](./guides.md). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| layout: default | ||
| title: Guides | ||
| nav_order: 3 | ||
| has_children: true | ||
| --- | ||
|
|
||
| # Component Guides | ||
|
|
||
| This section provides detailed guides for each of the major components in the ARCOS system. | ||
|
|
||
| Select a guide from the navigation menu to learn more about a specific component. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| layout: default | ||
| title: ARCOS Speculus Guide | ||
| parent: Guides | ||
| nav_order: 1 | ||
| --- | ||
|
|
||
| # ARCOS Speculus Guide | ||
|
|
||
| *This guide provides a detailed overview of the ARCOS Speculus component.* | ||
|
|
||
| **(Content to be migrated from `3-Domain and ARCOS_Speculus_Guide.pdf`)** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| layout: default | ||
| title: Domain Post-Processor Guide | ||
| parent: Guides | ||
| nav_order: 4 | ||
| --- | ||
|
|
||
| # Domain Post-Processor Guide | ||
|
|
||
| *This guide provides a detailed overview of the Domain Post-Processor component.* | ||
|
|
||
| **(Content to be migrated from `6-Domain_Post-Processor_Guide.pdf`)** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| layout: default | ||
| title: Domain Producer Guide | ||
| parent: Guides | ||
| nav_order: 2 | ||
| --- | ||
|
|
||
| # Domain Producer Guide | ||
|
|
||
| *This guide provides a detailed overview of the Domain Producer component.* | ||
|
|
||
| **(Content to be migrated from `4-Domain_Producer_Guide.pdf`)** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| layout: default | ||
| title: Domain Validator Guide | ||
| parent: Guides | ||
| nav_order: 3 | ||
| --- | ||
|
|
||
| # Domain Validator Guide | ||
|
|
||
| *This guide provides a detailed overview of the Domain Validator component.* | ||
|
|
||
| **(Content to be migrated from `5-Domain_Validator_Guide.pdf`)** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| layout: default | ||
| title: Home | ||
| nav_order: 1 | ||
|
||
| --- | ||
|
|
||
| # Welcome to ARCOS Documentation | ||
|
|
||
| **ARCOS** is a schema-driven framework for orchestrating AI agents under strict specification and validation rules. | ||
|
|
||
| This site provides the official documentation for the ARCOS project. Use the navigation to explore the different components and concepts. | ||
|
|
||
| ## Getting Started | ||
|
|
||
| To get started, check out the [Getting Started](./getting-started.md) page. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| --- | ||
| layout: default | ||
| title: Introduction | ||
| nav_order: 1 | ||
| --- | ||
|
|
||
| # Introduction to ARCOS | ||
|
|
||
| **ARCOS (AI Rule-Constrained Orchestration System)** is a schema-driven framework for orchestrating AI agents under strict specification and validation rules. It defines how a Coordinator (**Maestro**) interacts with **Speculus**, **Producer**, **Validator**, and **Post-Processor** agents through domain-agnostic XML messaging validated against schemas. | ||
|
|
||
| ## Why ARCOS? | ||
|
|
||
| - **Deterministic AI orchestration**: Every interaction is validated against XSD contracts. | ||
| - **Composable agents**: Swap in your own Producers, Validators, or Post-Processors. | ||
| - **Domain-agnostic**: Bring your own schema; ARCOS will give it to each domain component. | ||
| - **Fail-fast philosophy**: Invalid XML is rejected immediately. | ||
|
|
||
| This documentation site will guide you through the core concepts, architecture, and components of the ARCOS system. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| lxml~=5.2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # This file marks the 'arcos' directory as a Python package. |
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| from abc import ABC, abstractmethod | ||
|
|
||
| class Maestro(ABC): | ||
| """ | ||
| Abstract base class for the Maestro orchestrator. | ||
|
|
||
| The Maestro is responsible for coordinating the workflow between the | ||
| Producer, Validator, and PostProcessor agents. | ||
| """ | ||
|
|
||
| @abstractmethod | ||
| def orchestrate(self, spec_path: str, output_path: str): | ||
| """ | ||
| Executes the main orchestration logic. | ||
|
|
||
| Args: | ||
| spec_path: Path to the specification for the Producer. | ||
| output_path: Path to store the final, post-processed output. | ||
| """ | ||
| pass | ||
|
|
||
| class Producer(ABC): | ||
| """ | ||
| Abstract base class for a Producer agent. | ||
|
|
||
| A Producer generates an output artifact based on a given specification. | ||
| """ | ||
|
|
||
| @abstractmethod | ||
| def produce(self, spec: dict) -> str: | ||
| """ | ||
| Generates an artifact based on the provided specification. | ||
|
|
||
| Args: | ||
| spec: A dictionary representing the production specification. | ||
|
|
||
| Returns: | ||
| A string representing the generated artifact (e.g., XML content). | ||
| """ | ||
| pass | ||
|
|
||
| class Validator(ABC): | ||
| """ | ||
| Abstract base class for a Validator agent. | ||
|
|
||
| A Validator checks if a given artifact conforms to a set of rules or a schema. | ||
| """ | ||
|
|
||
| @abstractmethod | ||
| def validate(self, artifact_path: str, rules_path: str) -> bool: | ||
| """ | ||
| Validates an artifact against a set of rules. | ||
|
|
||
| Args: | ||
| artifact_path: The path to the artifact to be validated. | ||
| rules_path: The path to the rules or schema to validate against. | ||
|
|
||
| Returns: | ||
| True if the artifact is valid, False otherwise. | ||
| """ | ||
| pass | ||
|
|
||
| class PostProcessor(ABC): | ||
| """ | ||
| Abstract base class for a Post-Processor agent. | ||
|
|
||
| A Post-Processor performs some action on a validated artifact, such as | ||
| transformation, enrichment, or reporting. | ||
| """ | ||
|
|
||
| @abstractmethod | ||
| def process(self, artifact_path: str) -> str: | ||
| """ | ||
| Processes a validated artifact. | ||
|
|
||
| Args: | ||
| artifact_path: The path to the validated artifact. | ||
|
|
||
| Returns: | ||
| A string representing the result of the post-processing. | ||
| """ | ||
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| from .agents import Maestro, Producer, Validator, PostProcessor | ||
|
|
||
| class BasicMaestro(Maestro): | ||
| """ | ||
| A basic implementation of the Maestro orchestrator. | ||
|
|
||
| This implementation provides a simple, linear workflow for demonstration. | ||
| """ | ||
| def __init__(self, producer: Producer, validator: Validator, post_processor: PostProcessor): | ||
| self.producer = producer | ||
| self.validator = validator | ||
| self.post_processor = post_processor | ||
|
|
||
| def orchestrate(self, spec_path: str, output_path: str): | ||
| """ | ||
| A placeholder for the orchestration logic. | ||
|
|
||
| In a real implementation, this would involve: | ||
| 1. Reading and parsing the spec. | ||
| 2. Calling the producer. | ||
| 3. Calling the validator on the produced artifact. | ||
| 4. Calling the post-processor on the validated artifact. | ||
| 5. Writing the final result to the output path. | ||
| """ | ||
| print("--- BasicMaestro: Orchestration process started. ---") | ||
| print(f" - Specification file: {spec_path}") | ||
| print(f" - Producer: {self.producer.__class__.__name__}") | ||
| print(f" - Validator: {self.validator.__class__.__name__}") | ||
| print(f" - Post-Processor: {self.post_processor.__class__.__name__}") | ||
| print(f" - Final output will be at: {output_path}") | ||
| print("--- Orchestration logic is not yet implemented. ---") |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nav_order: 4 for getting-started.md creates a gap in navigation ordering since there's no nav_order: 3 defined (introduction.md and index.md both use nav_order: 1, architecture.md uses nav_order: 2, and guides.md uses nav_order: 3). Consider reordering to maintain sequential navigation.