Skip to content

Commit c20cdcd

Browse files
App-read comments say what 0.49 means; the README names ctx_memory as the agent's memory tool
Co-authored-by: Alfonso <alfonso-magic-context@users.noreply.github.com>
1 parent fc6f0c8 commit c20cdcd

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

‎crates/mc-module/src/app_read/fixture_tests.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ fn memories(conn: &mut Connection) {
339339
UPDATE memories SET merged_from = '[5,6]', revision = revision + 1,
340340
updated_at = 1700000400000 WHERE id = 6",
341341
);
342-
// The 0.49 dreamer's verify archived 8; it recorded no run.
342+
// The plugin's dreamer (Magic Context 0.49 and earlier) archived 8 in
343+
// its verify task, which recorded no run.
343344
change(
344345
conn,
345346
&[8],

‎crates/mc-module/src/app_read/memories.rs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,9 @@ fn writer(
540540
Some("ctx_memory") => vec![("writer", json!("agent"))],
541541
Some("historian") => vec![("writer", json!("summary"))],
542542
Some("dashboard_edit" | "dashboard_restore") => vec![("writer", json!("person"))],
543-
// The 0.49 dreamer's tasks, before runs were recorded: the task is
544-
// the 0.49 task name and there is no run to name.
543+
// Rows the plugin's dreamer wrote (Magic Context 0.49 and earlier),
544+
// before dreamer runs were recorded: the task is the plugin's task
545+
// name and there is no run to name.
545546
Some(task @ ("curate" | "verify" | "expire")) => {
546547
vec![("writer", json!("dreamer")), ("task", json!(task))]
547548
}

‎crates/mc-module/src/app_read/memories_tests.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ fn get_names_the_writer_of_each_history_entry() {
283283
(json!("dreamer"), json!(2), json!("swe:classify-memories"))
284284
);
285285
assert_eq!(get(&mut replica, 4)["history"][0]["writer"], "person");
286-
// The 0.49 dreamer recorded its task but no run.
286+
// The plugin's dreamer (Magic Context 0.49 and earlier) recorded its
287+
// task but no run.
287288
let verify = &get(&mut replica, 8)["history"][0];
288289
assert_eq!(
289290
(verify["writer"].clone(), verify["task"].clone()),

‎crates/mc-module/testdata/mc-app-read-samples-v13/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ none), `superseded_by?` and `history`, newest first. A history entry has `at`,
8080
| `writer` | Made by | Extra fields |
8181
| --- | --- | --- |
8282
| `summary` | the summarizer's second turn | |
83-
| `agent` | the agent's `ctx_memory` | |
83+
| `agent` | the agent, through its memory tool (`ctx_memory`) | |
8484
| `dreamer` | a dreamer task run | `run_id` (link to `dreamer.run`), `task` (profile task id) |
8585
| `person` | the person (the 0.49 dashboard's edit or restore) | |
8686

0 commit comments

Comments
 (0)