Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9f8b9ae
Move archive reads and writes onto zip 9.7.0.
cursoragent Nov 17, 2026
867eaca
Move datagram sockets onto quinn-udp 0.5.16.
cursoragent Nov 18, 2026
13d5728
Replace wall-clock timestamps with time.
cursoragent Nov 18, 2026
915aa7c
Keep omitted timestamps and year text compatible with stored JSON.
cursoragent Nov 18, 2026
050af76
Pin the probe lock to quote 1.0.44 and redox_syscall 0.5.17.
cursoragent Nov 18, 2026
4c8eb37
Point clock notes at time and pin candle-core zip exactly.
cursoragent Nov 18, 2026
15e6161
Fail closed on out-of-range clock input and kill the survivor mutants.
cursoragent Nov 18, 2026
1beaa42
Point the hello_companion banner test at the archived console binary.
cursoragent Nov 18, 2026
aaf15e0
Harden duration arithmetic and cover the feature-gated tests.
cursoragent Nov 19, 2026
7b52a75
Merge origin/main into the patched zip and time branch.
cursoragent Nov 20, 2026
7248235
Keep configured deadlines inside the clock range.
cursoragent Nov 20, 2026
3cb7e5f
Store a finite strength for a zero-second temporal window.
cursoragent Nov 20, 2026
e388a99
Match voxel brush display tests to the icon and the name.
cursoragent Nov 20, 2026
042bfc4
Correct editor autosave citations and the audit comment.
cursoragent Nov 20, 2026
401597d
Correct editor cites and run the bin tests in editor CI.
cursoragent Nov 20, 2026
3ba61d4
Gate the editor bin tests on the pull-request archive job.
cursoragent Nov 21, 2026
788afbd
Describe the editor bin step and correct the editor cites.
cursoragent Nov 21, 2026
3463485
Correct the PR 702 link, skipped-job wording, and zip pin comment.
cursoragent Nov 21, 2026
7117ca4
Correct the skip-semantics and rollup wording in the CI docs.
cursoragent Nov 22, 2026
f4cd05b
Bump url to 2.5.9 for RUSTSEC-2026-0592
cursoragent Nov 22, 2026
7c53eb8
Document the full-workspace rollup path and the four cleared advisories.
cursoragent Nov 22, 2026
13b0273
Correct the #756 advisory record and the full=true trigger cite.
cursoragent Nov 23, 2026
d9896c2
Name the pull-request full=true rows in the rollup parenthetical.
cursoragent Nov 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Point clock notes at time and pin candle-core zip exactly.
The dialogue dependency list matches Cargo.toml. candle-core's zip dependency is =9.7.0, so the existing pin wording stays true.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
  • Loading branch information
cursoragent and lazyxeon committed Nov 18, 2026
commit 4c8eb37361155841a2341a67eb0ead10851282cf
6 changes: 3 additions & 3 deletions docs/architecture/ai_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -1575,9 +1575,9 @@ All listed in parent §5 enrichment above. Summary:

**Dependencies (per `astraweave-dialogue/Cargo.toml`):**
- Used by basic layer: `serde`, `serde_json`, `anyhow`, `toml` (stdlib + serde stack only)
- Used by LLM layer only: `astraweave-llm`, `astraweave-embeddings`, `astraweave-context`, `astraweave-prompts`, `astraweave-rag`, `astraweave-persona`, `tokio (full)`, `async-trait`, `uuid`, `time`, `rand`, `regex`
- Used by LLM layer only: `astraweave-llm`, `astraweave-embeddings`, `astraweave-context`, `astraweave-prompts`, `astraweave-rag`, `astraweave-persona`, `tokio (full)`, `async-trait`, `regex`

The basic layer compiles without any of the LLM-stack deps; the LLM layer pulls in six AstraWeave crates plus heavyweight async + regex + non-deterministic RNG. The dependency split mirrors the active/dormant split.
The basic layer compiles without any of the LLM-stack deps; the LLM layer pulls in six AstraWeave crates plus tokio and regex. The dependency split mirrors the active/dormant split.

#### 13.4.5 Cross-subsystem touchpoints

Expand Down Expand Up @@ -1739,7 +1739,7 @@ The Coordination subsystem is the **multi-agent orchestration layer** designed f
|---|---|---|
| **`Agent`** trait | Async trait with 15 required methods: `agent_id`, `agent_type`, `get_state`, `set_state`, `handle_message`, `get_goals`, `set_goals`, `get_capabilities`, `can_handle_task`, `execute_task`, `get_resource_usage`, `get_event_subscriptions`, `handle_world_event`, `add_task`, `is_available`. `Send + Sync`. **Distinct from** `astraweave-ai::orchestrator::Orchestrator` (parent §3) — Coordination's `Agent` is broader, message-oriented, and async-by-default. | `agent.rs:11-58` |
| **`AgentState`** | `#[non_exhaustive]` 6-variant enum: `Idle`, `Processing`, `WaitingForInput`, `Collaborating`, `Disabled`, `Error(String)`. Parallel to NPC's `NpcMode` (§13.3.3) and Director's `CoordinationStatus` but distinct. | `agent.rs:62-70` |
| **`AgentMessage`** | `{ id: String, from: String, to: String, message_type: MessageType, content: serde_json::Value, timestamp: DateTime<Utc>, ... }`. The inter-agent message envelope. | `agent.rs:73-…` |
| **`AgentMessage`** | `{ id: String, from: String, to: String, message_type: MessageType, content: serde_json::Value, timestamp: time::OffsetDateTime, ... }`. The inter-agent message envelope. | `agent.rs:73-…` |
| **`AgentGoal`**, **`Task`**, **`TaskResult`** | Goal/task lifecycle types used by `Agent::execute_task`. | `agent.rs` |
| **`WorldEvent`**, **`EventSeverity`** | World-event broadcast types used by `Agent::handle_world_event`. `EventSeverity` distribution defaults in `SeverityDistribution`: 40% trivial / 30% minor / 20% moderate / 8% major / 2% critical. | `agent.rs`, `world_events.rs:46-52` |
| **`ResourceUsage`** | Per-agent resource accounting (CPU/memory/LLM-token tracking) returned by `Agent::get_resource_usage`. | `agent.rs` |
Expand Down
2 changes: 1 addition & 1 deletion docs/current/AUTONOMOUS_GAMEPLAY_QA.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ These block a claim that "gameplay replay" is already cross-OS. They are not fix
| `.awsv` names and bundles include `Uuid::new_v4()` and `OffsetDateTime::now_utc()`. Greybox `WorldState.tick` is 0 and `state_hash` is the edit count | `persistence/aw-save`, greybox `save.rs` on #205 | QA hashes restored gameplay state, never file bytes. A later save API takes the id, the timestamp, and the tick from the sim |
| Greybox checkpoint omits enemies, motor mode, attack phase, lock, tick, and `cover_broken` | PR #275 / #205 | `greybox_combat_save` is expected to fail until the checkpoint stores those fields. Implement the fields with the scenario, or accept the deferred issue and skip the check |
| `auto_save_system` is empty and `replay_system` does not apply events | `astraweave-persistence-ecs` | QA does not call `PersistencePlugin` |
| `astraweave-quests` stamps `Utc::now()` and `Instant::now()` | quests trace, crate `astraweave-quests` | Quest scenarios use `astraweave-weaving::QuestManager` and tick counts. The LLM quest layer stays out of the hashed sim until its clocks are tick fields |
| `astraweave-quests` has no wall-clock crate. `generated_at` is a `u64` (`llm_quests.rs:434` sets `0`) | quests trace, crate `astraweave-quests` | Quest scenarios use `astraweave-weaving::QuestManager` and tick counts. The LLM quest layer stays out of the hashed sim |
| The audio rapid-volume test shared `tests/assets` with cleanup | this branch, same fix as #289 | The beep is written in a private temp directory |
| Two dialogue graphs (crate runner and editor panel) and two quest crates | quests trace | Bots bind the crate types named above. No third graph and no third quest type |

Expand Down
8 changes: 4 additions & 4 deletions docs/current/CAUSAL_WORLD_DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ Surveyed on `main` at `f1109340` unless a PR ref is named. "Wired" means a non-t

| Piece | Real or stub | On a tick? |
|---|---|---|
| `WorldEvent` in `agent.rs` | Real POD-shaped struct: `String` id, `String` type, `serde_json::Value` payload, `DateTime<Utc>` timestamp, `EventSeverity`. | No. `Agent::handle_world_event` has no impl outside the crate's tests. |
| `WorldEventGenerator` | Real async generator. `generate_event` calls the LLM, scores coherence as `f32`, and stamps `Utc::now()`. Default interval is 30_000 ms. `EconomicState.trade_routes_status` is a `HashMap<String, String>` inside that generator's private world. It is not a route graph. Fields are `dead_code`. Constructors in this file are the unit tests. | No. |
| `NarrativeCoherenceEngine` | Real async validator. Same four `Arc` handles (`LlmClient`, `RagPipeline`, conversation history, prompt library). Plot points use `DateTime<Utc>`. | No. |
| `WorldEvent` in `agent.rs` | Real POD-shaped struct: `String` id, `String` type, `serde_json::Value` payload, `time::OffsetDateTime` timestamp, `EventSeverity`. | No. `Agent::handle_world_event` has no impl outside the crate's tests. |
| `WorldEventGenerator` | Real async generator. `generate_event` calls the LLM, scores coherence as `f32`, and stamps `OffsetDateTime::now_utc()`. Default interval is 30_000 ms. `EconomicState.trade_routes_status` is a `HashMap<String, String>` inside that generator's private world. It is not a route graph. Fields are `dead_code`. Constructors in this file are the unit tests. | No. |
| `NarrativeCoherenceEngine` | Real async validator. Same four `Arc` handles (`LlmClient`, `RagPipeline`, conversation history, prompt library). Plot points use `time::OffsetDateTime`. | No. |
| `AgentCoordinator` | Real tokio router. `Transform` is a placeholder action. | No. |
| Editor `WorldEvent` in `tools/aw_editor/src/panels/world_panel.rs` | A different struct. `Instant` timestamp and a closed editor enum (terrain generated, weather, time, biome, settings). Presentation history for the world panel. | Editor UI only. Not sim. |

Expand Down Expand Up @@ -303,7 +303,7 @@ A cast stays a `WeaveCommand` on #252. Structural decay stays a `DestructionComm

Allowed: a recorded line for a template the rules already emitted. Allowed later, still off-tick: a proposed rule row that the baker hashes into the rule table before the session starts. A rule that arrives mid-session is a new session seed, not a live patch.

Forbidden on the tick: `generate_event`, `generate_storyline`, `QuestLlmSystem::update`, `NarrativeCoherenceEngine`, HTTP, `Utc::now`, and any write into stock or stance from parsed model text.
Forbidden on the tick: `generate_event`, `generate_storyline`, `QuestLlmSystem::update`, `NarrativeCoherenceEngine`, HTTP, `OffsetDateTime::now_utc`, and any write into stock or stance from parsed model text.

## 7. First vertical slice in the Aravath demo

Expand Down
2 changes: 1 addition & 1 deletion docs/current/SECURITY_AUDIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Searched the LLM, quest, dialogue, memory, and coordination crates for `Command:
| `load_persona_zip` | Yes | `load_persona_zip` is `astraweave-persona/src/lib.rs:56`. It opens a caller-supplied path (`:57`). Model text is not passed in. The zip member is selected by `by_name("persona_manifest.toml")`, so member names are not a traversal. The manifest is capped at 1 MiB (`MAX_PERSONA_MANIFEST_BYTES` at `:54`, with the zip budgets at `:52-53`). The size check is `:80-84` and the read is `take` at `:87-88`. Callers: `examples/persona_loader` and tests. |
| PR #213 memory / RAG / persona | Not on `main` | `git grep` of `origin/pr213` under `astraweave-memory`, `astraweave-rag`, `astraweave-persona`, and `astraweave-npc` found no new `Command` or script eval. Persona still opens a path the caller passes. |

**SEC-LLM-2.** If a later PR wires `QuestLlmSystem` or `WorldEventGenerator` into the tick, model JSON becomes state with no byte cap and, for world events, no range check on the floats. `validation_script` must stay data. Do not pass it to Rhai. Quest ids are assigned with `Uuid::new_v4()` and timestamps with `Utc::now()` (`llm_quests.rs:433-434`). That is a wall clock. It is dormant. Do not move it onto the deterministic tick as part of the security fix.
**SEC-LLM-2.** If a later PR wires `QuestLlmSystem` or `WorldEventGenerator` into the tick, model JSON becomes state with no byte cap and, for world events, no range check on the floats. `validation_script` must stay data. Do not pass it to Rhai. Quest ids are assigned with `Uuid::new_v4()` and `generated_at` is set to `0` (`llm_quests.rs:433-434`). That field is a `u64`. The generator is dormant. Do not add a wall clock to the deterministic tick as part of the security fix.

**SEC-LLM-3.** `OllamaClient::complete` prints the full prompt and the URL (`astraweave-llm/src/lib.rs:175-184`). That is S0-2, still live. `sanitize_llm_prompt` prefixes `"SAFE: "` and returns the original text (`astraweave-security/src/lib.rs:358-364`). `LLMValidator.allowed_domains` includes `openai.com` and `anthropic.com` (`:163-166`). The validator has no production caller. Delete those domains when the validator is touched so a future caller cannot treat them as policy.

Expand Down
2 changes: 1 addition & 1 deletion third_party/candle-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ features = ["derive"]
# default-features stays off, matching the crates.io 0.8.4 crate, so this
# copy does not enable new codecs.
[dependencies.zip]
version = "9.7.0"
version = "=9.7.0"
default-features = false

[dev-dependencies.anyhow]
Expand Down
16 changes: 9 additions & 7 deletions tools/ASSET_SIGNING_DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ async fn sign_with_kms(data: &[u8], key_id: &str) -> Result<Vec<u8>> {
struct RootKeyRotation {
old_root_pubkey: [u8; 32],
new_root_pubkey: [u8; 32],
rotation_date: DateTime<Utc>,
grace_period_end: DateTime<Utc>,
rotation_date: time::OffsetDateTime,
grace_period_end: time::OffsetDateTime,
signature_over_new: Vec<u8>, // Signed by old root key
}
```
Expand Down Expand Up @@ -477,7 +477,7 @@ jobs:
struct RevocationCertificate {
revoked_pubkey: [u8; 32],
reason: RevocationReason,
revocation_date: DateTime<Utc>,
revocation_date: time::OffsetDateTime,
signature: Vec<u8>, // Signed by root key
}

Expand Down Expand Up @@ -1003,8 +1003,8 @@ struct KeyCertificate {
subject_pubkey: [u8; 32],
subject_role: String, // "dev", "ci", "production"
issuer_pubkey: [u8; 32], // Root key
valid_from: DateTime<Utc>,
valid_until: DateTime<Utc>,
valid_from: time::OffsetDateTime,
valid_until: time::OffsetDateTime,
signature: Vec<u8>, // Signed by issuer
}
```
Expand Down Expand Up @@ -1351,7 +1351,7 @@ cryptoki = "0.6" # PKCS11 (for YubiKey/HSM)
ed25519-dalek = "2.0" # Already present
sha2 = "0.10" # Already present
serde = { version = "1", features = ["derive"] }
chrono = "0.4" # Timestamps, expiry
time = { version = "0.3", features = ["formatting"] } # Timestamps, expiry
```

### 11.4 Testing Strategy
Expand Down Expand Up @@ -1632,7 +1632,9 @@ pub fn sign_asset_file(
asset_hash: hash_hex,
signature: sig_b64,
signer_role: key_role.to_string(),
signed_at: chrono::Utc::now().to_rfc3339(),
signed_at: time::OffsetDateTime::now_utc()
.format(&time::format_description::well_known::Rfc3339)
.expect("utc stamp"),
tool_version: env!("CARGO_PKG_VERSION").to_string(),
})
}
Expand Down
Loading