mirror of
https://github.com/MarkusZoppelt/portfolio_rs.git
synced 2026-11-28 13:02:12 +01:00
Turn portfolio_rs into a library + CLI/TUI for the AI era: - Agent-friendly analysis: context, review, simulate, and validate commands with Markdown and camelCase JSON output - Machine-readable investment policy (portfolio/policy.toml) with strategy templates, policy-aware reviews, and rebalance simulations - Durable financial memory: finance workspaces (init-workspace, doctor, agent init) with decision records, weekly reports, and a .gitignore that protects private data - Decision records and weekly reports refuse to overwrite existing files in both the CLI and AppState layers, matching the workspace's never-overwrite contract (prevents GUI/CLI data loss) - Portable agent skill (agent skill show/export) and an experimental MCP server preview (JSON-RPC over stdio) - Local HTTP API (axum): positions CRUD, analysis endpoints, file persistence, short-TTL quote caching, JSON error responses, and a loud warning on non-loopback binds (no auth; local use only) - Library facade (state::AppState + camelCase DTOs) consumed by the HTTP API and the external GUI app - Robustness: consistent non-zero exit codes, no panics on missing subcommands or broken pipes, gpg failures surfaced, and decrypted data never written to disk - Tests: offline e2e suite for the CLI surface, offline HTTP API tests, and network tests kept behind #[ignore] Bump version to 0.8.0. chore: init AGENTS.md
93 lines
2.3 KiB
Markdown
93 lines
2.3 KiB
Markdown
# Investment Policy
|
||
|
||
> This is a user-owned financial constitution. Agents should read it before making portfolio suggestions.
|
||
|
||
## Goals
|
||
|
||
- [ ] Primary goal (e.g., long-term growth, capital preservation, income generation)
|
||
- [ ] Secondary goal
|
||
|
||
## Time Horizon
|
||
|
||
- [ ] Short-term (under 2 years)
|
||
- [ ] Medium-term (2–10 years)
|
||
- [ ] Long-term (10+ years)
|
||
|
||
## Base Currency
|
||
|
||
- [ ] EUR
|
||
- [ ] USD
|
||
- [ ] CHF
|
||
- [ ] Other: ___________
|
||
|
||
## Target Allocation
|
||
|
||
| Asset Class | Target % | Tolerance ±% |
|
||
|-------------|----------|--------------|
|
||
| Stocks | | |
|
||
| Bonds | | |
|
||
| Cash | | |
|
||
| Crypto | | |
|
||
| Gold | | |
|
||
| Commodities | | |
|
||
| Real Estate | | |
|
||
| Other | | |
|
||
|
||
## Minimum Cash Buffer
|
||
|
||
- [ ] 3 months of expenses
|
||
- [ ] 6 months of expenses
|
||
- [ ] 12 months of expenses
|
||
- [ ] Fixed amount: ___________
|
||
|
||
## Risk Tolerance
|
||
|
||
- [ ] Conservative (capital preservation first)
|
||
- [ ] Moderate (balanced growth and stability)
|
||
- [ ] Aggressive (maximize growth, accept volatility)
|
||
|
||
## Liquidity Needs
|
||
|
||
- [ ] None (fully invested)
|
||
- [ ] Occasional (small withdrawals)
|
||
- [ ] Frequent (regular withdrawals planned)
|
||
|
||
## Tax Considerations
|
||
|
||
- [ ] Tax-advantaged accounts available
|
||
- [ ] Tax-loss harvesting applicable
|
||
- [ ] Jurisdiction-specific rules: ___________
|
||
|
||
## Restricted Assets or Strategies
|
||
|
||
- [ ] No leverage
|
||
- [ ] No derivatives
|
||
- [ ] No specific sectors: ___________
|
||
- [ ] No specific assets: ___________
|
||
- [ ] ESG/SRI constraints
|
||
- [ ] Other: ___________
|
||
|
||
## Rebalancing Rules
|
||
|
||
- [ ] Threshold-based (rebalance when allocation drifts by ±__%)
|
||
- [ ] Calendar-based (rebalance every __ months)
|
||
- [ ] Cash-flow-based (rebalance with new contributions)
|
||
|
||
## Review Cadence
|
||
|
||
- [ ] Weekly
|
||
- [ ] Monthly
|
||
- [ ] Quarterly
|
||
- [ ] Annually
|
||
|
||
## Decision-Making Checklist
|
||
|
||
Before making portfolio changes, verify:
|
||
|
||
1. [ ] Does this align with the target allocation?
|
||
2. [ ] Does this respect the minimum cash buffer?
|
||
3. [ ] Does this respect restricted assets/strategies?
|
||
4. [ ] Has this been documented in the diary?
|
||
5. [ ] If significant, has a decision record been created?
|
||
6. [ ] Are tax implications considered?
|
||
7. [ ] Is the rationale clear enough to review in 6 months?
|