nested state machines
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 59
- Forks
- 27
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 5
Description
Why we need it?
If we face interactive command like openssl:
https://www.openssl.org/docs/manmaster/man1/openssl.html
https://wiki.openssl.org/index.php/Command_Line_Utilities (search "interactive mode")
then we may end up with something that may be started in multiple states of typical Moler device. openssl may run inside UNIX_LOCAL, PROXY_PC, UNIX_REMOTE.
Moreover, running interactive command introduces its own prompt (OpenSSL> for example). It finishes running openssl command but after it you can't run normal linux commands, just those of openssl. So, it constitutes state of device State Machine. We might introduce new state into existing devices but:
- that would require complicating state machine
- require to do same change in multiple machines since such cmd might run from different states
- adding next interactive command would require the same effort of even more
Concluding: such solution would generate exponential effort, unreadable code and maintenance nightmare.
Comments following below are results of days lasting discussions and analysis. It will discuss:
- possible solutions (benefits and drawbacks)
- selected solution
- analysis of moler current code and changes required to implement that solution
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the OpenSSL interactive-mode references and trace the UNIX_LOCAL, PROXY_PC, and UNIX_REMOTE states in Moler's device state machines. The issue says the current code and required changes need analysis, but it does not name files, tests, or a concrete implementation, so confirm scope and acceptance criteria before coding.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools, testing-qa
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100