pm-update
Purpose
Persist durable knowledge back into Project Memory after meaningful work. Update affected PM units so the next session inherits accurate project truth. This is not a session log -- only write things that will still be true and useful tomorrow.
Required Reads
.agents/pm/pm-usage.md-- review the update criteria before writing anything..agents/pm/pm-index.md-- know which units exist.- The PM units you loaded during this session (via pm-load).
Procedure
- Filter for durability. Review what you learned or changed during the session. Only persist knowledge that meets at least one of these criteria:
- A durable boundary became clear (e.g., "module X cannot import from module Y").
- A project-wide decision was made that affects future work.
- Negative knowledge would save a future session significant time (e.g., "approach A fails because of constraint B").
- A previously recorded fact is now wrong and must be corrected.
- Update affected unit files. For each relevant
.agents/pm/units/<unit>.md:
- Update
Current Truthwith new verified facts. - Add to
Negative Knowledgeif you discovered something that does not work. - Update
Boundaries and Dependenciesif relationships changed. - Clear or update
Open Questionsthat were resolved. - Append a
Last Verifiedentry dated today with a one-line note. The section is an
append-only list — do not replace existing entries. Say what you did not re-verify and
which pass it is still resting on; that is the part a later reader cannot reconstruct.
- Refresh code-navigation units. If source files were created, renamed, moved, or
substantially restructured during this session:
a. Identify which code-navigation units (type code-nav in pm-index.md) are affected.
b. Update Key Source Files — add new files, remove deleted ones, update paths for moved files.
c. Update Key Types and Classes and Key Functions and Entry Points if new public types
or entry points were added.
d. Update Data Flow if the flow through the subsystem changed.
e. Add to Negative Knowledge if an approach was tried and abandoned.
f. Append a Last Verified entry dated today.
g. If a new subsystem emerged (new cluster of files with a distinct responsibility),
create a new code-navigation unit and add it to pm-index.md.
Code-navigation units are expected to need more frequent updates than infrastructure
units. This is by design — they trade durability for actionability.
- Update
pm-current-state.md. Refresh the summary if:
- Active work areas changed.
- A new risk was identified or an old risk was resolved.
- A workflow changed state (started, completed, failed, blocked).
- The recommended read order for the next session should change.
- Record decisions (check every time). Review the work done this session and ask:
"Was any durable project decision made?" This includes:
- Technology or language choices
- Architecture decisions (patterns, module boundaries, data flow)
- Scope decisions (what's in, what's deferred)
- UX or design decisions (interaction models, visual conventions)
- Process decisions (testing strategy, review approach, deployment model)
If yes, add a one-line entry to pm-decisions.md:
| <YYYY-MM-DD> | <decision summary> | <1-sentence rationale> | <workflow-id or "ad-hoc"> |
Do not skip this step. An empty pm-decisions.md after multiple workflows is a
process failure, not a sign that no decisions were made.
- Record terminology (check every time). Review the work done this session and ask:
"Was any new project-specific term, abbreviation, constant name, or calibration parameter
introduced?" If yes, add it to pm-glossary.md:
| <term> | <meaning> | <where-used or "project-wide"> |
- Update
pm-index.mdif you created a new unit or if a unit's purpose or facet changed.
Populate every column, Type and Always-Load included. The index is eight columns
wide — Unit, Type, Purpose, Status, Facet, Always-Load, When To Load,
Dependencies — and "add a row" is not an instruction to fill them all. Read the header
rather than imitating the row above it, which is how a column silently stops being written.
Typeis the unit's kind:arch-overview,code-nav,infra,domain.pm-load
and pm-validate both read it.
Always-Loadistrueonly for a unit that should be read in every session
before anything else — in practice the architecture overview, and usually exactly one per
project. Default it to false. It is a context-budget decision: every true is paid for
on every session, so if you are unsure, false is the answer and someone can raise it
later.
Reconsider Always-Load when a unit's role changes, not only when a row is created. If
an existing unit has grown into the project's architecture overview, this is the step that
sets its flag. Nothing else in the catalog revisits it: pm-init sets it once for the one
overview it generates, and before this instruction existed no skill could change it
afterwards, so a project whose overview arrived later had no supported way to mark it.
- Create new units if needed. If you worked in an area that has no PM unit and the knowledge is durable, create a new
.agents/pm/units/<area>.mdwith all eight standard sections and add it to the index — with every column populated, per step 7.
Output
- Modified files in
.agents/pm/(units, index, current-state, decisions, glossary as applicable). - No new files outside
.agents/pm/.
Completion Criteria
- Every unit you touched has a new
Last Verifiedentry dated today, appended below the
existing ones rather than replacing them.
pm-current-state.mdreflects the project state as of this moment.pm-index.mdlists every unit file that exists inunits/.- No session-specific or chronological content was written into PM (that belongs in run-log or session captures).
Error Handling
- If a unit file is missing from disk but listed in the index, either recreate it from what you know or remove it from the index. Do not leave dangling references.
- If you are unsure whether knowledge is durable, err on the side of not writing it. You can always add it in the next session.
- If
pm-index.mddoes not exist, runpm-initbefore attempting updates.