chore(validator): drop .env, keep all config in FastAgent YAMLs
OPENAI_BASE_URL was duplicated between .env and fastagent.config.yaml; the YAML is authoritative, so .env is dead weight. Removing the .env template and gitignore entry, updating README to reflect. The real fastagent.secrets.yaml stays gitignored; fastagent.secrets.yaml.example remains as the documented schema. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
# Mnemosyne Validator — environment variables
|
|
||||||
#
|
|
||||||
# Copy to .env and adjust as needed. Loaded by Pallas at startup
|
|
||||||
# (without overwriting already-set vars).
|
|
||||||
#
|
|
||||||
# OPENAI_BASE_URL is also set in fastagent.config.yaml; this is here for
|
|
||||||
# parity with the standard Pallas-consumer layout.
|
|
||||||
|
|
||||||
OPENAI_BASE_URL=http://nyx.helu.ca:22079/v1
|
|
||||||
1
validator/.gitignore
vendored
1
validator/.gitignore
vendored
@@ -1,5 +1,4 @@
|
|||||||
fastagent.secrets.yaml
|
fastagent.secrets.yaml
|
||||||
.env
|
|
||||||
.venv/
|
.venv/
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|||||||
@@ -11,26 +11,28 @@ validator/
|
|||||||
├── pyproject.toml # pallas-mcp + fast-agent-mcp deps
|
├── pyproject.toml # pallas-mcp + fast-agent-mcp deps
|
||||||
├── agents.yaml # one-agent Pallas topology
|
├── agents.yaml # one-agent Pallas topology
|
||||||
├── fastagent.config.yaml # default_model + mnemosyne MCP server
|
├── fastagent.config.yaml # default_model + mnemosyne MCP server
|
||||||
├── fastagent.secrets.yaml.example # template for the bearer token
|
├── fastagent.secrets.yaml.example # schema for the (gitignored) secrets file
|
||||||
├── .env.example # OPENAI_BASE_URL etc.
|
|
||||||
└── agents/
|
└── agents/
|
||||||
└── mnemosyne_validator.py # the FastAgent definition
|
└── mnemosyne_validator.py # the FastAgent definition
|
||||||
```
|
```
|
||||||
|
|
||||||
|
All configuration lives in the FastAgent YAML files — no `.env` is used. The
|
||||||
|
real `fastagent.secrets.yaml` is gitignored; `fastagent.secrets.yaml.example`
|
||||||
|
documents its shape and is checked in.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd validator/
|
cd validator/
|
||||||
uv venv .venv
|
python3.13 -m venv .venv
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
uv pip install -e .
|
pip install -e .
|
||||||
```
|
```
|
||||||
|
|
||||||
Copy and fill the secrets/env templates:
|
Copy the secrets template and fill in the bearer token (see next section):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp fastagent.secrets.yaml.example fastagent.secrets.yaml
|
cp fastagent.secrets.yaml.example fastagent.secrets.yaml
|
||||||
cp .env.example .env
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Provision an MCP bearer token
|
## Provision an MCP bearer token
|
||||||
|
|||||||
Reference in New Issue
Block a user