Where do hiri and ottappa (shame, and fear of wrongdoing) fit in? Where do hiri and ottappa (shame and fear of wrongdoing) fit it, in:


The Four Noble Truths (4nt)
The Noble Eightfold Path (8aam)
The 37 Bodhipakkhiyādhammā (37bp)
The Seven Factors of Awakening (7sb)


In AN 7.67 we see it working, protecting the fortress with outer road and moat (and the remaining 5 factors are 5 indriya, and Dhamma weapons):
https://notesonthedhamma.blogspot.com/2019/06/an-767-frontier-fortress-sutta.html

In AN 7.65, it's a vital condition for sense restraint, which in turn is a vital condition for sila.


  Hirīottappasutta
  Conscience and Prudence  
  
  “Hirottappe, bhikkhave, asati hirottappavipannassa hatūpaniso hoti indriyasaṃvaro;
  “monks, when there is no conscience and prudence, one who lacks conscience and prudence has destroyed a vital condition for sense restraint.
  
  indriyasaṃvare asati indriyasaṃvaravipannassa hatūpanisaṃ hoti sīlaṃ;
  When there is no sense restraint, one who lacks sense restraint has destroyed a vital condition for ethical conduct.


There are probably other entry points where it's linked in (to the 7sb, 8aam, 37bp, 4nt)?

Unlike the 4 brahmavihara formula, where each brahmavihara has the keyword "abyapajja", which is a direct link to Noble Eightfold Path -- i.e. Right Resolve -> abyapada-sankappo (non-ill-will resolve) -- I can't think of any such very direct explicit link (into 4nt and 8aam or 37bp) for hiri and ottappa.

Anyone know for sure?

(update to this question 6/25/2019)
https://notesonthedhamma.blogspot.com/2019/06/new-uped-dictionary-entries-hiri.html

I haven't yet done an exhaustive search (looking at every single occurrence of hiri and ottappa in the suttas), but I have looked at enough passages now to establish an STED (standard EBT definition) that occurs in several key passages.

It looks like the strongest tie in with the 4nt, 8aam, 37bp, etc, would be under right effort and viriya, where hiri and ottappa have a strong explicit connection with the STED right effort formula of "papaka akusala dhamma" (evil unskillful Dharma[teachings &amp; qualities]), and also the sutta where ottappa and ātāpi are shown working together (they both have tapa, austerity, strong heat of effort in that word), and we know atapi is a key word in the 4sp (satipatthana) formula that references right effort.

Also several suttas, especially AN 4.169, have modified forms of 5bal and 5ind (bala and indriya) to incorporate hiri &amp; ottappa. So those seem like the strongest explicit EBT tie ins that I can find so far.

But I am keeping a comprehensive encyclopedia entry for hiri &amp; ottappa in the link above, so please feel free to share sutta references (with sutta ref number in modern numbering system, no PTS page number) on this thread and I'll add to collection. Thanks to all who contributed.
Upasaga Frank K, intetested,

- Namo tassa bhagavato arahato sammā-sambuddhassa -

☝ Shame and fear of wrong-doing requires much care how you look (in the eyes of wise)  

As for The Noble Eightfold Path (ariya-magga)

Hiri &amp; ottappa (shame &amp; fear of wrongdoing) is an aspect of right resolve, going after the desire of not harming, causing no conflicts and restrain, renouncing (sense desires, desire after becoming). Hiri &amp; ottappa are working here toward development of the virtue section and having the purification of virtue as result, resulting then in further refining through right effort (again a pattern of hiri &amp; ottapa), driving one into the heart of the conncentration section. As Nyom Rubben mentioned, they work for the perfection of Sila as prerequisite of right samadhi and panna.

In The Four Frames of Reference (satipaṭṭhāna) they work at all for in the area of ardent, alert, &amp; mindful — putting aside greed &amp; distress with reference to the world.

The Four Right Exertions (sammappadhāna), they cover the hole drive for right effort.

Likewise in The Four Bases of Power (iddhipāda) on a refined level.

In The Five Faculties (indrīya), Sila and it's cause is found in The faculty of conviction (saddhindrīya) and faculty of persistence (viriyindrīya).

Likewise in The Five Strengths (bala) as The strength of conviction (saddhā-bala) and strength of persistence (viriya-bala)..

In The Seven Factors for Awakening (bojjhaṅga) they are included in Mindfulness as a factor for Awakening (sati-sambojjhaṅga), Analysis of qualities as a factor for Awakening (dhamma-vicaya-sambojjhaṅga), Persistence as a factor for Awakening (viriya-sambojjhaṅga).

So hiri &amp; opatta are factors supporting Conviction: Right Speech (Eightfold Path), Right Action (Eightfold Path), Right Livelihood (Eightfold Path), Desire (Bases of Power) and Persistence: Right Effort (Eightfold Path), Four Right Exertions, Persistence (Bases of Power) Persistence (Factors for Awakening).

As coming from Right resolve, effort, bases on right view,  hiri &amp; opatta has right view as for-runner:


  There is the case where a certain person is not covetous. He does not covet the belongings of others, thinking, 'O, that what belongs to others would be mine!' He bears no ill will and is not corrupt in the resolves of his heart. [He thinks,] 'May these beings be free from animosity, free from oppression, free from trouble, and may they look after themselves with ease!' He has right view and is not warped in the way he sees things: 'There is what is given, what is offered, what is sacrificed. There are fruits &amp; results of good &amp; bad actions. There is this world &amp; the next world. There is mother &amp; father. There are spontaneously reborn beings; there are brahmans &amp; contemplatives who, faring rightly &amp; practicing rightly, proclaim this world &amp; the next after having directly known &amp; realized it for themselves.' This is how one is made pure in three ways by mental action."


One lacking in right view may think before or/and after deeds: to deny responsibility, to deny that harm was actually done, to deny the worth of the victim, to attack the accuser, and to claim that they were acting in the service of a higher cause.

And the Buddhas cut offs, maintained by right view are: (1) We are always responsible for our conscious choices. (2) We should always put ourselves in the other person's place. (3) All beings are worthy of respect. (4) We should regard those who point out our faults as if they were pointing out treasure. (5) There are no — repeat, no — higher purposes that excuse breaking the basic precepts of ethical behavior. (see Reconciliation, Right &amp; Wrong, in regard of changing ways)

Usual sense-desire and desire for becoming (joy, happiness) are the "higher pruposes" why people lose shame and fear of wrongdoing.

(right) Hiri &amp; Opatta are governed be the desire for becoming and to a state even beyind becoming, to leve behind low stands, states and enter that of the Noble Ones, governed by one or all three governing principles (right view):


  "There are these three governing principles. Which three? The self as a governing principle, the cosmos as a governing principle, and the Dhamma as a governing principle. ...Adhipateyya Sutta: Governing Principles


As there is shame and fear of wrong doing actually present in all beings and actions, but for the most shame in doing good and fear to lose face under fools, this talk may be usefull supply to leave associations with fools toward wise:

In the Eyes of the Wise: The Buddha’s Teachings on Honor &amp; Shame

May no one be ever ashamed in doing merits and may no one fear to do wrong what fools regard as their refuge, to find real happiness for oneself with ease.

A possible extended answer, with further cross-links and given space for discussion and further investigation can be found here:

[Q&amp;A] Where does hiri &amp; ottappa (shame &amp; fear of wrongdoing) fit in the Path?

(Note that this is not given for trade, exchange, stacks or entertainment but for development of restrain from unskillful toward liberation and make meritorious deeds with and on it)