NEWS
PRA 0.8.0
- New: critical path method and schedule risk analysis of resource-loaded
schedules.
project_schedule() validates a schedule of activities,
precedence links (FS, SS, FF and SF, with lags or leads), duration
distributions (normal, triangular, uniform and the new Beta-PERT), resources
with capacities and cost rates, assignments, uncertain resource productivity,
and a register of discrete risk events. cpm() computes the deterministic
schedule: early and late dates, total and free float, the critical path and
cost, optionally resource-leveled with a serial schedule-generation scheme.
sra() runs the Monte Carlo analysis, rescheduling the network in every
iteration, and reports finish and cost percentiles, the probability of
meeting the deterministic plan, criticality, sensitivity, cruciality and
schedule sensitivity indices per activity, risk-event rankings, a cost
S-curve band and resource-usage bands. contingency() works directly on its
result.
- Risk networks feed the schedule through resources.
project_schedule()
accepts a risk_net (a prob_net() of root causes and risk events) and
risk_effects that link its nodes to resources. sra() samples the network
jointly in every iteration, so risks sharing a cause occur together, and
each effect scales the productivity or cost rate of the resources it names.
Every activity assigned to an affected resource slows down, so one risk
reaches many tasks. Effect magnitudes are a distribution or the sampled
value of a severity node. sra() reports per-node statistics in
risk_net_stats. Adding a network leaves earlier random draws unchanged
for a given seed.
- New plot views: network diagrams with the critical path or criticality
shading, Gantt charts with float or P10-P90 finish ranges, the finish
histogram and cumulative probability curve, tornado charts by cruciality,
criticality, SSI, sensitivity or risk impact, the cost S-curve, and resource
histograms against capacity. Axes show dates when a start date is given.
- New MCP tools
cpm_tool and sra_tool, and a pra-schedule-risk agent
skill. contingency_tool also accepts the latest sra_tool result.
building_project gains a resource-loaded schedule: activities with
overlapping SS/FF logic, resources with capacities and rates, assignments,
a work-driven fit-out activity with uncertain crew productivity, and a
two-event risk register.
- New vignette,
vignette("schedule-risk", package = "PRA").
plot.prob_net() now shares its layered layout with the schedule network
plots; the drawing is unchanged.
PRA 0.7.0
- Every returned class now implements
print(), summary() and plot().
mcs, smm, dsm and pra_sigmoidal_fit gained the missing methods;
prob_net had none at all and fell through to print.default(), dumping the
whole object. Summaries return classed summary.<class> objects, so their
values can be used programmatically.
plot.prob_net() draws the network as a layered DAG in base graphics, with
no optional dependency required.
plot.pra_sigmoidal_fit() recovers the data, column names and model type
from the fitted object, so plot(fit) works with no further arguments.
plot_sigmoidal() is unchanged and still supported.
- Correlation matrices that are not positive semi-definite are now rejected
by
mcs(), smm() and sensitivity(). Such a matrix previously made
smm() return a negative variance and a NaN standard deviation, and made
mcs() fail inside chol() with an opaque message. Code that passed an
invalid matrix and appeared to work will now error. mcs() additionally
requires strict positive definiteness, since it factorizes the matrix;
smm() still accepts a perfectly correlated matrix, which it handles
analytically.
print.mcs() and print.smm() now return their input invisibly.
- Fixed scientific notation in MCP tool output, where values such as
200000
rendered as 2e+05 and the thousands separator was silently dropped.
- Added a long-form vignette,
vignette("pra", package = "PRA"), covering
every analytical module with worked examples and an end-to-end case study.
- Added
graphics, grDevices and tools to Imports; all three were
already in use but undeclared. Dropped the unused corrplot suggestion.
inst/CITATION now reads the version from DESCRIPTION instead of naming a
hard-coded one, which had gone stale at 0.4.0.
- Documentation:
pra_mcp_server() and the README no longer claim that every
analytical function is exposed over MCP; the probabilistic network functions
are not among the twelve tools the server advertises. sensitivity() now
documents that its indices sum to 1 and can be negative under negative
correlation.
- Added regression tests for the v0.6.0 fixes, which had none.
PRA 0.6.0 (2026-08-28)
cor_matrix() now draws column i from distribution i (previously
random with replacement, so columns could repeat or omit inputs); columns
are now labelled with distribution names. Results will differ.
- Correlation-matrix checks (symmetry,
[-1, 1] range, unit diagonal) are now
shared across mcs(), smm(), and sensitivity().
sensitivity() warns when an index is negative, which can happen under
negative correlation.
cost_pdf() no longer requires sum(risk_probs) <= 1.
cost_post_pdf() gained risk_probs, so unobserved (NA) risks are drawn
from their prior instead of treated as absent; warns if omitted with NAs
present.
predict_sigmoidal() now errors on a model_type/fit mismatch instead of
returning NA confidence bounds.
PRA 0.5.0
mcs() fixes the Cholesky decomposition for correlated tasks — target
correlations and marginal means were previously distorted. Correlated
results will differ; independent tasks are unaffected.
- AI integration is now MCP-only. Removed
pra_chat(), pra_app(),
slash commands, and the RAG functions; use pra_mcp_server() and the
bundled Agent Skills (inst/skills/) instead.
- Dropped
ragnar, shiny, shinychat, bslib, vitals, mockr; added
corrplot, igraph, networkD3, devtools, remotes, mcptools.
- New (experimental) probabilistic network module:
prob_net(),
prob_net_sim(), prob_net_learn(), prob_net_update().
- Probabilistic networks (breaking):
links are now load-bearing —
edges must match the distributions' dependencies, nodes must be
topologically ordered, and adjacency_matrix is now directed. Networks
that were already self-consistent are unaffected.
- Bayesian risk (breaking):
risk_prob()/risk_post_prob() combine
multiple causes with a noisy-OR, keeping results in [0, 1]. Single-cause
results are unchanged.
- Sensitivity analysis (breaking):
sensitivity() indices now reflect
each task's actual variance contribution instead of always returning 1.0
for independent tasks.
- Added the
building_project example dataset.
- Vignettes migrated to a companion Quarto book and a standalone manuscript.
- License changed from CC BY 4.0 to MIT + file LICENSE.
PRA 0.4.0 (2026-04-08)
- DSM Improvements
- Bayesian Improvements
- Agentic AI Framework
- Slash Commands
- Natural Language Interface
- RAG-enhanced Reasoning
- Local Execution via Ollama
- Shiny App
- Evaluation Framework
PRA 0.3.0 (2024-08-20)
- Previous changes and improvements...
PRA 0.2.0 (2024-07-02)
- Previous changes and improvements...
PRA 0.1.0
- Previous changes and improvements...