Skip to content

Write the maintenance and money layering down - #503

Merged
derrynknife merged 2 commits into
devfrom
build/layering
Nov 21, 2026
Merged

derrynknife merged 2 commits into
devfrom
build/layering

Conversation

@derrynknife

Copy link
Copy Markdown
Owner

Summary

This writes down, from the merged code, which module answers which maintenance or money question.

  • CLAUDE.md (Architecture) gets a new "Maintenance and money are layered" entry:
    • money lives in repyability.value;
    • a unit's plan and the single-part maths live in repyability.maintenance (one age-replacement EAC, _options.cycle_eac; a plan valued alone through its one-node diagram);
    • the calendar and duty plans live in repyability.schedule, and the duty plan belongs to the analysis;
    • the RBD holds only what belongs to the system;
    • a life can be any model with a life's functions, including a NonRepairableRBD.
  • repyability/maintenance/README.md and repyability/schedule/README.md each get a "Layers" section near the top. It is a table from each question to its module and use cases, and the maintenance README lists what is still duplicated: shutdown dicts versus Opportunities, bracketed discounting in failures_by_period, and nested-diagram costs.
  • UC-63's closing note now says that salvage, escalation and retirement joined the plan in UC-65.

Type of change

  • Documentation

Checklist

  • No code blocks added, so there is nothing new for test_docs_examples. The top-level README, which test_analysis_routes and test_readme_capabilities read, is unchanged.
  • Every module, method and use-case number named was checked against the code on dev.

Notes for reviewers

The _duty._SCALED workaround entry stays, because it is still the fallback for surpyval 0.28.


Generated by Claude Code

CLAUDE.md (Architecture) says where each question lives: money in
repyability.value, a unit's plan and the single part's maths in
repyability.maintenance (one EAC, a plan valued alone through its
one-node diagram), the calendar and duty plans in repyability.schedule
(the duty plan belongs to the analysis), and only system things on the
RBD. The maintenance and schedule READMEs gain a Layers section linking
each question to its use cases, with what is still duplicated listed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6RpnXB87vwhYETeh7ihtA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6RpnXB87vwhYETeh7ihtA
@derrynknife
derrynknife merged commit b3037a1 into dev Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants